Version Description
- Huge update! The plugin has been completely re-written from the ground up to be faster, simpler to use
- Choose from snazzy new Related Post themes
- Related Posts now come mobile optimized and responsive out of the box - Shareaholic automagically determines how many Related Posts to show given how much screen width it is given
- Customize your "You may also like" Related Posts text
- Option to exclude any URL from Related Posts
- Choose from new Share button themes! (including vertical share buttons!)
- Additional URL shortener options
Download this release
Release Info
Developer | shareaholic |
Plugin | WordPress Social Tools, Related Posts, Monetization – Shareaholic |
Version | 7.0.0.3 |
Comparing to | |
See all releases |
Code changes from version 6.1.3.8 to 7.0.0.3
- admin.php +321 -0
- assets/banner-772x250.jpg +0 -0
- assets/css/bootstrap-responsive.css +1109 -0
- assets/css/bootstrap-responsive.min.css +9 -0
- assets/css/bootstrap.css +6158 -0
- assets/css/bootstrap.min.css +9 -0
- {spritegen_default → assets/css}/index.html +0 -0
- assets/css/main.css +249 -0
- {css/reveal → assets/css}/modal-gloss.png +0 -0
- {css/reveal → assets/css}/reveal.css +7 -22
- assets/img/analytics@2x.png +0 -0
- assets/img/check.png +0 -0
- assets/img/glyphicons-halflings-white.png +0 -0
- assets/img/glyphicons-halflings.png +0 -0
- assets/img/index.html +8 -0
- assets/img/related_content@2x.png +0 -0
- images/shareaholic-220.png → assets/img/shareaholic-logo.png +0 -0
- {images → assets/img}/shareaholic_16x16.png +0 -0
- assets/img/sharebuttons@2x.png +0 -0
- assets/img/wpdirectory/banner-772x250.jpg +0 -0
- assets/img/wpdirectory/index.html +8 -0
- assets/index.html +8 -0
- {js/bootstrap → assets/js}/bootstrap.js +1455 -912
- assets/js/bootstrap.min.js +6 -0
- assets/js/index.html +8 -0
- assets/js/jquery-1.4.4.min.js +167 -0
- {js/reveal → assets/js}/jquery.reveal.js +31 -48
- assets/js/main.js +187 -0
- assets/js/main.min.js +8 -0
- screenshot-1.png → assets/screenshot-1.png +0 -0
- screenshot-2.jpg → assets/screenshot-2.jpg +0 -0
- screenshot-3.jpg → assets/screenshot-3.jpg +0 -0
- screenshot-4.jpg → assets/screenshot-4.jpg +0 -0
- screenshot-5.jpg → assets/screenshot-5.jpg +0 -0
- screenshot-6.jpg → assets/screenshot-6.jpg +0 -0
- screenshot-7.jpg → assets/screenshot-7.jpg +0 -0
- screenshot-8.jpg → assets/screenshot-8.jpg +0 -0
- css/admin-style.css +0 -692
- css/bootstrap/bootstrap.min.css +0 -588
- css/comfeed.css +0 -2
- css/ie7-admin-style.css +0 -20
- css/shareaholic-promo.css +0 -15
- css/style.css +0 -1
- css/style.dev.css +0 -198
- curl.php +148 -0
- deprecation.php +71 -0
- global_functions.php +37 -0
- images/cbm.png +0 -0
- images/chart.png +0 -0
- images/circle_green.png +0 -0
- images/circle_grey.png +0 -0
- images/circle_red.png +0 -0
- images/circle_yellow.png +0 -0
- images/classicbookmark_16x16.png +0 -0
- images/classicbookmark_32x32.png +0 -0
- images/colorpicker_images/blank.gif +0 -0
- images/colorpicker_images/colorpicker_background.png +0 -0
- images/colorpicker_images/colorpicker_hex.png +0 -0
- images/colorpicker_images/colorpicker_hsb_b.png +0 -0
- images/colorpicker_images/colorpicker_hsb_h.png +0 -0
- images/colorpicker_images/colorpicker_hsb_s.png +0 -0
- images/colorpicker_images/colorpicker_indic.gif +0 -0
- images/colorpicker_images/colorpicker_overlay.png +0 -0
- images/colorpicker_images/colorpicker_rgb_b.png +0 -0
- images/colorpicker_images/colorpicker_rgb_g.png +0 -0
- images/colorpicker_images/colorpicker_rgb_r.png +0 -0
- images/colorpicker_images/colorpicker_select.gif +0 -0
- images/colorpicker_images/colorpicker_submit.png +0 -0
- images/colorpicker_images/select2.png +0 -0
- images/colorpicker_images/slider.png +0 -0
- images/comfeed.png +0 -0
- images/custom-fugue-sprite.png +0 -0
- images/error-delete.jpg +0 -0
- images/fbplusone.png +0 -0
- images/flo-head.jpg +0 -0
- images/ga-icon.png +0 -0
- images/glyphicons-halflings-white.png +0 -0
- images/glyphicons-halflings.png +0 -0
- images/googleplus.png +0 -0
- images/green-grad.png +0 -0
- images/information-delete.jpg +0 -0
- images/key.png +0 -0
- images/line-chart.png +0 -0
- images/new_badge.png +0 -0
- images/orange_arrow.gif +0 -0
- images/pinterest.png +0 -0
- images/red-grad.png +0 -0
- images/sbm.png +0 -0
- images/share-enjoy.png +0 -0
- images/share-german.png +0 -0
- images/share-knowledge.png +0 -0
- images/share-love-hearts.png +0 -0
- images/share-wealth.png +0 -0
- images/shareaholicmail.png +0 -0
- images/sharing-caring-hearts.png +0 -0
- images/sharing-caring.png +0 -0
- images/sharing-shr.png +0 -0
- images/shr-sprite.png +0 -0
- images/shrsb-logo.png +0 -0
- images/success-delete.jpg +0 -0
- images/thumbs-icon.png +0 -0
- images/thumbs.png +0 -0
- images/tophat.jpg +0 -0
- images/tweeth.png +0 -0
- images/tweetn.png +0 -0
- images/tweetv.png +0 -0
- images/twitter-16x16.png +0 -0
- images/warning-big.png +0 -0
- images/warning-delete.jpg +0 -0
- images/white-pix.jpg +0 -0
- includes/JSON.php +0 -804
- includes/bookmarks-data.php +0 -396
- includes/helper-functions.php +0 -149
- includes/html-helpers.php +0 -174
- includes/index.php +0 -4
- includes/mobile.php +0 -89
- includes/public.php +0 -1188
- includes/shr_pub_pro.php +0 -52
- includes/shrsb_activation_page.php +0 -41
- includes/shrsb_analytics_page.php +0 -54
- includes/shrsb_analytics_settings_page.php +0 -214
- includes/shrsb_authentication_page.php +0 -141
- includes/shrsb_classicbookmarks_page.php +0 -59
- includes/shrsb_classicbookmarks_settings_page.php +0 -173
- includes/shrsb_landing_page.php +0 -72
- includes/shrsb_recommendations_page.php +0 -60
- includes/shrsb_recommendations_settings_page.php +0 -205
- includes/shrsb_settings_page.php +0 -633
- includes/shrsb_sexybookmarks_page.php +0 -242
- includes/shrsb_sexybookmarks_settings_page.php +0 -1050
- includes/shrsb_topbar_page.php +0 -68
- includes/shrsb_topbar_settings_page.php +0 -230
- includes/widget.php +0 -53
- js/bootstrap/bootstrap.min.js +0 -7
- js/index.php +0 -6
- js/reveal/jquery.reveal.min.js +0 -177
- js/sexy-bookmarks-public.js +0 -81
- js/sexy-bookmarks-public.min.js +0 -4
- js/shareaholic-admin.js +0 -1190
- js/shareaholic-admin.min.js +0 -47
admin.php
ADDED
@@ -0,0 +1,321 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package shareaholic
|
4 |
+
*/
|
5 |
+
/**
|
6 |
+
* This class takes care of all of the admin interface.
|
7 |
+
*/
|
8 |
+
class ShareaholicAdmin {
|
9 |
+
public static function show_terms_of_service() {
|
10 |
+
ShareaholicUtilities::load_template('terms_of_service_notice');
|
11 |
+
}
|
12 |
+
|
13 |
+
/**
|
14 |
+
* Renders footer
|
15 |
+
*/
|
16 |
+
public static function show_footer() {
|
17 |
+
ShareaholicUtilities::load_template('footer');
|
18 |
+
}
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Renders SnapEngage
|
22 |
+
*/
|
23 |
+
public static function include_snapengage() {
|
24 |
+
ShareaholicUtilities::load_template('script_snapengage');
|
25 |
+
}
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Adds meta boxes for post options
|
29 |
+
*/
|
30 |
+
public static function add_meta_boxes($post) {
|
31 |
+
add_meta_box(
|
32 |
+
'shareaholic',
|
33 |
+
'Shareaholic',
|
34 |
+
array('ShareaholicAdmin', 'meta_box'),
|
35 |
+
'post',
|
36 |
+
'side',
|
37 |
+
'low'
|
38 |
+
);
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* This is the wp ajax callback for when a user
|
43 |
+
* checks a checkbox for a location that doesn't
|
44 |
+
* already have a location_id. After it has been
|
45 |
+
* successfully created the id needs to be stored,
|
46 |
+
* which is what this method does.
|
47 |
+
*/
|
48 |
+
public static function add_location() {
|
49 |
+
$location = $_POST['location'];
|
50 |
+
$app_name = $location['app_name'];
|
51 |
+
ShareaholicUtilities::update_options(array(
|
52 |
+
'location_name_ids' => array(
|
53 |
+
$app_name => array(
|
54 |
+
$location['name'] => $location['id']
|
55 |
+
),
|
56 |
+
),
|
57 |
+
$app_name => array(
|
58 |
+
$location['name'] => 'on'
|
59 |
+
)
|
60 |
+
));
|
61 |
+
|
62 |
+
echo json_encode(array(
|
63 |
+
'status' => "successfully created a new {$location['app_name']} location",
|
64 |
+
'id' => $location['id']
|
65 |
+
));
|
66 |
+
|
67 |
+
die();
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Shows the message about failing to create an api key
|
72 |
+
*/
|
73 |
+
public static function failed_to_create_api_key() {
|
74 |
+
ShareaholicUtilities::load_template('failed_to_create_api_key');
|
75 |
+
if (isset($_GET['page']) && preg_match('/shareaholic/', $_GET['page'])) {
|
76 |
+
ShareaholicUtilities::load_template('failed_to_create_api_key_modal');
|
77 |
+
}
|
78 |
+
}
|
79 |
+
|
80 |
+
|
81 |
+
/**
|
82 |
+
* The actual function in charge of drawing the meta boxes.
|
83 |
+
*/
|
84 |
+
public static function meta_box() {
|
85 |
+
global $post;
|
86 |
+
$settings = ShareaholicUtilities::get_settings();
|
87 |
+
ShareaholicUtilities::load_template('meta_boxes', array(
|
88 |
+
'settings' => $settings,
|
89 |
+
'post' => $post
|
90 |
+
));
|
91 |
+
}
|
92 |
+
|
93 |
+
/**
|
94 |
+
* This function fires when a post is saved
|
95 |
+
*
|
96 |
+
* @param int $post_id
|
97 |
+
*/
|
98 |
+
public static function save_post($post_id) {
|
99 |
+
// wordpress does something silly where save_post is fired twice,
|
100 |
+
// once with the id of a revision and once with the actual id. This
|
101 |
+
// filters out revision ids (which we don't want)
|
102 |
+
if (!wp_is_post_revision($post_id)) {
|
103 |
+
self::disable_post_attributes($post_id);
|
104 |
+
}
|
105 |
+
}
|
106 |
+
|
107 |
+
/**
|
108 |
+
* For each of the things that a user can disable per post,
|
109 |
+
* we iterate through and turn add the post meta, or make it false
|
110 |
+
* if it *used* to be true, but did not come through in $_POST
|
111 |
+
* (because unchecked boxes are not submitted).
|
112 |
+
*
|
113 |
+
* @param int $post_id
|
114 |
+
*/
|
115 |
+
private static function disable_post_attributes($post_id) {
|
116 |
+
foreach (array(
|
117 |
+
'disable_share_buttons',
|
118 |
+
'disable_open_graph_tags',
|
119 |
+
'disable_recommendations'
|
120 |
+
) as $attribute) {
|
121 |
+
$key = 'shareaholic_' . $attribute;
|
122 |
+
if (isset($_POST['shareaholic'][$attribute]) &&
|
123 |
+
$_POST['shareaholic'][$attribute] == 'on') {
|
124 |
+
update_post_meta($post_id, $key, true);
|
125 |
+
} elseif (get_post_meta($post_id, $key, true)) {
|
126 |
+
update_post_meta($post_id, $key, false);
|
127 |
+
}
|
128 |
+
}
|
129 |
+
}
|
130 |
+
|
131 |
+
/**
|
132 |
+
* Inserts admin css and js
|
133 |
+
*/
|
134 |
+
public static function admin_head() {
|
135 |
+
if (isset($_GET['page']) && preg_match('/shareaholic/', $_GET['page'])) {
|
136 |
+
$csss = array();
|
137 |
+
array_push($csss, ShareaholicUtilities::asset_url('application.css'));
|
138 |
+
array_push($csss, plugins_url('assets/css/bootstrap.min.css', __FILE__));
|
139 |
+
array_push($csss, plugins_url('assets/css/main.css', __FILE__));
|
140 |
+
array_push($csss, 'http://fonts.googleapis.com/css?family=Open+Sans:400,300,700');
|
141 |
+
|
142 |
+
$javascripts = array();
|
143 |
+
array_push($javascripts, '//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js');
|
144 |
+
array_push($javascripts, ShareaholicUtilities::asset_url('application.js'));
|
145 |
+
array_push($javascripts, ShareaholicUtilities::asset_url('pub/shareaholic.js'));
|
146 |
+
// array_push($javascripts, ShareaholicUtilities::asset_url('pub/utilities.js'));
|
147 |
+
array_push($javascripts, plugins_url('assets/js/bootstrap.min.js', __FILE__));
|
148 |
+
array_push($javascripts, plugins_url('assets/js/main.js', __FILE__));
|
149 |
+
|
150 |
+
foreach ($csss as $css) {
|
151 |
+
echo '<link rel="stylesheet" type="text/css" href="' . $css . '">';
|
152 |
+
}
|
153 |
+
|
154 |
+
foreach ($javascripts as $js) {
|
155 |
+
echo '<script type="text/javascript" src="' . $js . '"></script>';
|
156 |
+
}
|
157 |
+
}
|
158 |
+
}
|
159 |
+
|
160 |
+
/**
|
161 |
+
* Puts a new menu item under Settings.
|
162 |
+
*/
|
163 |
+
public static function admin_menu() {
|
164 |
+
add_menu_page('Shareaholic Settings',
|
165 |
+
'Shareaholic',
|
166 |
+
'manage_options',
|
167 |
+
'shareaholic-settings',
|
168 |
+
array('ShareaholicAdmin', 'admin'),
|
169 |
+
SHAREAHOLIC_ASSET_DIR . 'img/shareaholic_16x16.png'
|
170 |
+
);
|
171 |
+
add_submenu_page('shareaholic-settings',
|
172 |
+
'Available Apps',
|
173 |
+
'Available Apps',
|
174 |
+
'manage_options',
|
175 |
+
'shareaholic-settings',
|
176 |
+
array('ShareaholicAdmin', 'admin')
|
177 |
+
);
|
178 |
+
add_submenu_page('shareaholic-settings',
|
179 |
+
'Advanced Settings',
|
180 |
+
'Advanced Settings',
|
181 |
+
'manage_options',
|
182 |
+
'shareaholic-advanced',
|
183 |
+
array('ShareaholicAdmin', 'advanced_admin')
|
184 |
+
);
|
185 |
+
}
|
186 |
+
|
187 |
+
/**
|
188 |
+
* Updates the information if passed in and sets save message.
|
189 |
+
*/
|
190 |
+
public static function admin() {
|
191 |
+
$settings = ShareaholicUtilities::get_settings();
|
192 |
+
$action = str_replace( '%7E', '~', $_SERVER['REQUEST_URI']);
|
193 |
+
if(isset($_POST['already_submitted']) && $_POST['already_submitted'] == 'Y' &&
|
194 |
+
check_admin_referer($action, 'nonce_field')) {
|
195 |
+
echo "<div class='updated'><p><strong>Saved.</strong></p></div>";
|
196 |
+
|
197 |
+
/*
|
198 |
+
* only checked check boxes are submitted, so we have to iterate
|
199 |
+
* through the existing app locations and if they exist in the settings
|
200 |
+
* but not in $_POST, it must have been unchecked, and it
|
201 |
+
* should be set to 'off'
|
202 |
+
*/
|
203 |
+
foreach (array('share_buttons', 'recommendations') as $app) {
|
204 |
+
if (isset($settings[$app])) {
|
205 |
+
foreach ($settings[$app] as $location => $on) {
|
206 |
+
if (!isset($_POST[$app][$location]) && $on == 'on') {
|
207 |
+
$_POST[$app][$location] = 'off';
|
208 |
+
}
|
209 |
+
}
|
210 |
+
}
|
211 |
+
if (!isset($_POST[$app])) {
|
212 |
+
$_POST[$app] = array();
|
213 |
+
}
|
214 |
+
}
|
215 |
+
|
216 |
+
ShareaholicUtilities::update_options(array(
|
217 |
+
'share_buttons' => $_POST['share_buttons'],
|
218 |
+
'recommendations' => $_POST['recommendations'],
|
219 |
+
));
|
220 |
+
|
221 |
+
ShareaholicUtilities::log_event("UpdatedSettings");
|
222 |
+
|
223 |
+
}
|
224 |
+
|
225 |
+
ShareaholicUtilities::get_new_location_name_ids($settings['api_key']);
|
226 |
+
self::draw_deprecation_warnings();
|
227 |
+
self::draw_admin_form();
|
228 |
+
self::draw_verify_api_key();
|
229 |
+
}
|
230 |
+
|
231 |
+
/**
|
232 |
+
* The function for the advanced admin section
|
233 |
+
*/
|
234 |
+
public static function advanced_admin() {
|
235 |
+
$settings = ShareaholicUtilities::get_settings();
|
236 |
+
|
237 |
+
if (!ShareaholicUtilities::has_accepted_terms_of_service()) {
|
238 |
+
ShareaholicUtilities::load_template('terms_of_service_modal', array(
|
239 |
+
'image_url' => SHAREAHOLIC_ASSET_DIR . 'img'
|
240 |
+
));
|
241 |
+
}
|
242 |
+
|
243 |
+
if(isset($_POST['already_submitted']) && $_POST['already_submitted'] == 'Y') {
|
244 |
+
echo "<div class='updated'><p><strong>Saved.</strong></p></div>";
|
245 |
+
foreach (array('disable_tracking', 'disable_og_tags') as $setting) {
|
246 |
+
if (isset($settings[$setting]) &&
|
247 |
+
!isset($_POST['shareaholic'][$setting]) &&
|
248 |
+
$settings[$setting] == 'on') {
|
249 |
+
$_POST['shareaholic'][$setting] = 'off';
|
250 |
+
} elseif (!isset($_POST['shareaholic'][$setting])) {
|
251 |
+
$_POST['shareaholic'][$setting] = array();
|
252 |
+
}
|
253 |
+
}
|
254 |
+
|
255 |
+
if ($_POST['shareaholic']['api_key'] != $settings['api_key']) {
|
256 |
+
ShareaholicUtilities::get_new_location_name_ids($_POST['shareaholic']['api_key']);
|
257 |
+
}
|
258 |
+
|
259 |
+
ShareaholicUtilities::update_options(array(
|
260 |
+
'disable_tracking' => $_POST['shareaholic']['disable_tracking'],
|
261 |
+
'disable_og_tags' => $_POST['shareaholic']['disable_og_tags'],
|
262 |
+
'api_key' => $_POST['shareaholic']['api_key']
|
263 |
+
));
|
264 |
+
}
|
265 |
+
|
266 |
+
ShareaholicUtilities::load_template('advanced_settings', array(
|
267 |
+
'settings' => ShareaholicUtilities::get_settings(),
|
268 |
+
'action' => str_replace( '%7E', '~', $_SERVER['REQUEST_URI'])
|
269 |
+
));
|
270 |
+
}
|
271 |
+
|
272 |
+
private static function draw_deprecation_warnings() {
|
273 |
+
$deprecations = ShareaholicDeprecation::all();
|
274 |
+
if (!empty($deprecations)) {
|
275 |
+
ShareaholicUtilities::load_template('deprecation_warnings', array(
|
276 |
+
'deprecation_warnings' => $deprecations
|
277 |
+
));
|
278 |
+
}
|
279 |
+
}
|
280 |
+
|
281 |
+
/**
|
282 |
+
* Outputs the actual html for the form
|
283 |
+
*/
|
284 |
+
private static function draw_admin_form() {
|
285 |
+
$action = str_replace( '%7E', '~', $_SERVER['REQUEST_URI']);
|
286 |
+
$settings = ShareaholicUtilities::get_settings();
|
287 |
+
|
288 |
+
if (!ShareaholicUtilities::has_accepted_terms_of_service()) {
|
289 |
+
ShareaholicUtilities::load_template('terms_of_service_modal', array(
|
290 |
+
'image_url' => SHAREAHOLIC_ASSET_DIR . 'img'
|
291 |
+
));
|
292 |
+
}
|
293 |
+
|
294 |
+
ShareaholicUtilities::load_template('settings', array(
|
295 |
+
'shareaholic_url' => Shareaholic::URL,
|
296 |
+
'settings' => $settings,
|
297 |
+
'action' => $action,
|
298 |
+
'share_buttons' => (isset($settings['share_buttons'])) ? $settings['share_buttons'] : array(),
|
299 |
+
'recommendations' => (isset($settings['recommendations'])) ? $settings['recommendations'] : array(),
|
300 |
+
'directory' => dirname(plugin_basename(__FILE__)),
|
301 |
+
));
|
302 |
+
}
|
303 |
+
|
304 |
+
/**
|
305 |
+
* This function is in charge the logic for
|
306 |
+
* showing whatever it is we want to show a user
|
307 |
+
* about whether they have verified their api
|
308 |
+
* key or not.
|
309 |
+
*/
|
310 |
+
private static function draw_verify_api_key() {
|
311 |
+
if (!ShareaholicUtilities::api_key_verified()) {
|
312 |
+
$settings = ShareaholicUtilities::get_settings();
|
313 |
+
$api_key = $settings['api_key'];
|
314 |
+
$verification_key = $settings['verification_key'];
|
315 |
+
ShareaholicUtilities::load_template('verify_api_key_js', array(
|
316 |
+
'verification_key' => $verification_key
|
317 |
+
));
|
318 |
+
}
|
319 |
+
}
|
320 |
+
}
|
321 |
+
?>
|
assets/banner-772x250.jpg
ADDED
Binary file
|
assets/css/bootstrap-responsive.css
ADDED
@@ -0,0 +1,1109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Bootstrap Responsive v2.3.1
|
3 |
+
*
|
4 |
+
* Copyright 2012 Twitter, Inc
|
5 |
+
* Licensed under the Apache License v2.0
|
6 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7 |
+
*
|
8 |
+
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
9 |
+
*/
|
10 |
+
|
11 |
+
.clearfix {
|
12 |
+
*zoom: 1;
|
13 |
+
}
|
14 |
+
|
15 |
+
.clearfix:before,
|
16 |
+
.clearfix:after {
|
17 |
+
display: table;
|
18 |
+
line-height: 0;
|
19 |
+
content: "";
|
20 |
+
}
|
21 |
+
|
22 |
+
.clearfix:after {
|
23 |
+
clear: both;
|
24 |
+
}
|
25 |
+
|
26 |
+
.hide-text {
|
27 |
+
font: 0/0 a;
|
28 |
+
color: transparent;
|
29 |
+
text-shadow: none;
|
30 |
+
background-color: transparent;
|
31 |
+
border: 0;
|
32 |
+
}
|
33 |
+
|
34 |
+
.input-block-level {
|
35 |
+
display: block;
|
36 |
+
width: 100%;
|
37 |
+
min-height: 30px;
|
38 |
+
-webkit-box-sizing: border-box;
|
39 |
+
-moz-box-sizing: border-box;
|
40 |
+
box-sizing: border-box;
|
41 |
+
}
|
42 |
+
|
43 |
+
@-ms-viewport {
|
44 |
+
width: device-width;
|
45 |
+
}
|
46 |
+
|
47 |
+
.hidden {
|
48 |
+
display: none;
|
49 |
+
visibility: hidden;
|
50 |
+
}
|
51 |
+
|
52 |
+
.visible-phone {
|
53 |
+
display: none !important;
|
54 |
+
}
|
55 |
+
|
56 |
+
.visible-tablet {
|
57 |
+
display: none !important;
|
58 |
+
}
|
59 |
+
|
60 |
+
.hidden-desktop {
|
61 |
+
display: none !important;
|
62 |
+
}
|
63 |
+
|
64 |
+
.visible-desktop {
|
65 |
+
display: inherit !important;
|
66 |
+
}
|
67 |
+
|
68 |
+
@media (min-width: 768px) and (max-width: 979px) {
|
69 |
+
.hidden-desktop {
|
70 |
+
display: inherit !important;
|
71 |
+
}
|
72 |
+
.visible-desktop {
|
73 |
+
display: none !important ;
|
74 |
+
}
|
75 |
+
.visible-tablet {
|
76 |
+
display: inherit !important;
|
77 |
+
}
|
78 |
+
.hidden-tablet {
|
79 |
+
display: none !important;
|
80 |
+
}
|
81 |
+
}
|
82 |
+
|
83 |
+
@media (max-width: 767px) {
|
84 |
+
.hidden-desktop {
|
85 |
+
display: inherit !important;
|
86 |
+
}
|
87 |
+
.visible-desktop {
|
88 |
+
display: none !important;
|
89 |
+
}
|
90 |
+
.visible-phone {
|
91 |
+
display: inherit !important;
|
92 |
+
}
|
93 |
+
.hidden-phone {
|
94 |
+
display: none !important;
|
95 |
+
}
|
96 |
+
}
|
97 |
+
|
98 |
+
.visible-print {
|
99 |
+
display: none !important;
|
100 |
+
}
|
101 |
+
|
102 |
+
@media print {
|
103 |
+
.visible-print {
|
104 |
+
display: inherit !important;
|
105 |
+
}
|
106 |
+
.hidden-print {
|
107 |
+
display: none !important;
|
108 |
+
}
|
109 |
+
}
|
110 |
+
|
111 |
+
@media (min-width: 1200px) {
|
112 |
+
.row {
|
113 |
+
margin-left: -30px;
|
114 |
+
*zoom: 1;
|
115 |
+
}
|
116 |
+
.row:before,
|
117 |
+
.row:after {
|
118 |
+
display: table;
|
119 |
+
line-height: 0;
|
120 |
+
content: "";
|
121 |
+
}
|
122 |
+
.row:after {
|
123 |
+
clear: both;
|
124 |
+
}
|
125 |
+
[class*="span"] {
|
126 |
+
float: left;
|
127 |
+
min-height: 1px;
|
128 |
+
margin-left: 30px;
|
129 |
+
}
|
130 |
+
.container,
|
131 |
+
.navbar-static-top .container,
|
132 |
+
.navbar-fixed-top .container,
|
133 |
+
.navbar-fixed-bottom .container {
|
134 |
+
width: 1170px;
|
135 |
+
}
|
136 |
+
.span12 {
|
137 |
+
width: 1170px;
|
138 |
+
}
|
139 |
+
.span11 {
|
140 |
+
width: 1070px;
|
141 |
+
}
|
142 |
+
.span10 {
|
143 |
+
width: 970px;
|
144 |
+
}
|
145 |
+
.span9 {
|
146 |
+
width: 870px;
|
147 |
+
}
|
148 |
+
.span8 {
|
149 |
+
width: 770px;
|
150 |
+
}
|
151 |
+
.span7 {
|
152 |
+
width: 670px;
|
153 |
+
}
|
154 |
+
.span6 {
|
155 |
+
width: 570px;
|
156 |
+
}
|
157 |
+
.span5 {
|
158 |
+
width: 470px;
|
159 |
+
}
|
160 |
+
.span4 {
|
161 |
+
width: 370px;
|
162 |
+
}
|
163 |
+
.span3 {
|
164 |
+
width: 270px;
|
165 |
+
}
|
166 |
+
.span2 {
|
167 |
+
width: 170px;
|
168 |
+
}
|
169 |
+
.span1 {
|
170 |
+
width: 70px;
|
171 |
+
}
|
172 |
+
.offset12 {
|
173 |
+
margin-left: 1230px;
|
174 |
+
}
|
175 |
+
.offset11 {
|
176 |
+
margin-left: 1130px;
|
177 |
+
}
|
178 |
+
.offset10 {
|
179 |
+
margin-left: 1030px;
|
180 |
+
}
|
181 |
+
.offset9 {
|
182 |
+
margin-left: 930px;
|
183 |
+
}
|
184 |
+
.offset8 {
|
185 |
+
margin-left: 830px;
|
186 |
+
}
|
187 |
+
.offset7 {
|
188 |
+
margin-left: 730px;
|
189 |
+
}
|
190 |
+
.offset6 {
|
191 |
+
margin-left: 630px;
|
192 |
+
}
|
193 |
+
.offset5 {
|
194 |
+
margin-left: 530px;
|
195 |
+
}
|
196 |
+
.offset4 {
|
197 |
+
margin-left: 430px;
|
198 |
+
}
|
199 |
+
.offset3 {
|
200 |
+
margin-left: 330px;
|
201 |
+
}
|
202 |
+
.offset2 {
|
203 |
+
margin-left: 230px;
|
204 |
+
}
|
205 |
+
.offset1 {
|
206 |
+
margin-left: 130px;
|
207 |
+
}
|
208 |
+
.row-fluid {
|
209 |
+
width: 100%;
|
210 |
+
*zoom: 1;
|
211 |
+
}
|
212 |
+
.row-fluid:before,
|
213 |
+
.row-fluid:after {
|
214 |
+
display: table;
|
215 |
+
line-height: 0;
|
216 |
+
content: "";
|
217 |
+
}
|
218 |
+
.row-fluid:after {
|
219 |
+
clear: both;
|
220 |
+
}
|
221 |
+
.row-fluid [class*="span"] {
|
222 |
+
display: block;
|
223 |
+
float: left;
|
224 |
+
width: 100%;
|
225 |
+
min-height: 30px;
|
226 |
+
margin-left: 2.564102564102564%;
|
227 |
+
*margin-left: 2.5109110747408616%;
|
228 |
+
-webkit-box-sizing: border-box;
|
229 |
+
-moz-box-sizing: border-box;
|
230 |
+
box-sizing: border-box;
|
231 |
+
}
|
232 |
+
.row-fluid [class*="span"]:first-child {
|
233 |
+
margin-left: 0;
|
234 |
+
}
|
235 |
+
.row-fluid .controls-row [class*="span"] + [class*="span"] {
|
236 |
+
margin-left: 2.564102564102564%;
|
237 |
+
}
|
238 |
+
.row-fluid .span12 {
|
239 |
+
width: 100%;
|
240 |
+
*width: 99.94680851063829%;
|
241 |
+
}
|
242 |
+
.row-fluid .span11 {
|
243 |
+
width: 91.45299145299145%;
|
244 |
+
*width: 91.39979996362975%;
|
245 |
+
}
|
246 |
+
.row-fluid .span10 {
|
247 |
+
width: 82.90598290598291%;
|
248 |
+
*width: 82.8527914166212%;
|
249 |
+
}
|
250 |
+
.row-fluid .span9 {
|
251 |
+
width: 74.35897435897436%;
|
252 |
+
*width: 74.30578286961266%;
|
253 |
+
}
|
254 |
+
.row-fluid .span8 {
|
255 |
+
width: 65.81196581196582%;
|
256 |
+
*width: 65.75877432260411%;
|
257 |
+
}
|
258 |
+
.row-fluid .span7 {
|
259 |
+
width: 57.26495726495726%;
|
260 |
+
*width: 57.21176577559556%;
|
261 |
+
}
|
262 |
+
.row-fluid .span6 {
|
263 |
+
width: 48.717948717948715%;
|
264 |
+
*width: 48.664757228587014%;
|
265 |
+
}
|
266 |
+
.row-fluid .span5 {
|
267 |
+
width: 40.17094017094017%;
|
268 |
+
*width: 40.11774868157847%;
|
269 |
+
}
|
270 |
+
.row-fluid .span4 {
|
271 |
+
width: 31.623931623931625%;
|
272 |
+
*width: 31.570740134569924%;
|
273 |
+
}
|
274 |
+
.row-fluid .span3 {
|
275 |
+
width: 23.076923076923077%;
|
276 |
+
*width: 23.023731587561375%;
|
277 |
+
}
|
278 |
+
.row-fluid .span2 {
|
279 |
+
width: 14.52991452991453%;
|
280 |
+
*width: 14.476723040552828%;
|
281 |
+
}
|
282 |
+
.row-fluid .span1 {
|
283 |
+
width: 5.982905982905983%;
|
284 |
+
*width: 5.929714493544281%;
|
285 |
+
}
|
286 |
+
.row-fluid .offset12 {
|
287 |
+
margin-left: 105.12820512820512%;
|
288 |
+
*margin-left: 105.02182214948171%;
|
289 |
+
}
|
290 |
+
.row-fluid .offset12:first-child {
|
291 |
+
margin-left: 102.56410256410257%;
|
292 |
+
*margin-left: 102.45771958537915%;
|
293 |
+
}
|
294 |
+
.row-fluid .offset11 {
|
295 |
+
margin-left: 96.58119658119658%;
|
296 |
+
*margin-left: 96.47481360247316%;
|
297 |
+
}
|
298 |
+
.row-fluid .offset11:first-child {
|
299 |
+
margin-left: 94.01709401709402%;
|
300 |
+
*margin-left: 93.91071103837061%;
|
301 |
+
}
|
302 |
+
.row-fluid .offset10 {
|
303 |
+
margin-left: 88.03418803418803%;
|
304 |
+
*margin-left: 87.92780505546462%;
|
305 |
+
}
|
306 |
+
.row-fluid .offset10:first-child {
|
307 |
+
margin-left: 85.47008547008548%;
|
308 |
+
*margin-left: 85.36370249136206%;
|
309 |
+
}
|
310 |
+
.row-fluid .offset9 {
|
311 |
+
margin-left: 79.48717948717949%;
|
312 |
+
*margin-left: 79.38079650845607%;
|
313 |
+
}
|
314 |
+
.row-fluid .offset9:first-child {
|
315 |
+
margin-left: 76.92307692307693%;
|
316 |
+
*margin-left: 76.81669394435352%;
|
317 |
+
}
|
318 |
+
.row-fluid .offset8 {
|
319 |
+
margin-left: 70.94017094017094%;
|
320 |
+
*margin-left: 70.83378796144753%;
|
321 |
+
}
|
322 |
+
.row-fluid .offset8:first-child {
|
323 |
+
margin-left: 68.37606837606839%;
|
324 |
+
*margin-left: 68.26968539734497%;
|
325 |
+
}
|
326 |
+
.row-fluid .offset7 {
|
327 |
+
margin-left: 62.393162393162385%;
|
328 |
+
*margin-left: 62.28677941443899%;
|
329 |
+
}
|
330 |
+
.row-fluid .offset7:first-child {
|
331 |
+
margin-left: 59.82905982905982%;
|
332 |
+
*margin-left: 59.72267685033642%;
|
333 |
+
}
|
334 |
+
.row-fluid .offset6 {
|
335 |
+
margin-left: 53.84615384615384%;
|
336 |
+
*margin-left: 53.739770867430444%;
|
337 |
+
}
|
338 |
+
.row-fluid .offset6:first-child {
|
339 |
+
margin-left: 51.28205128205128%;
|
340 |
+
*margin-left: 51.175668303327875%;
|
341 |
+
}
|
342 |
+
.row-fluid .offset5 {
|
343 |
+
margin-left: 45.299145299145295%;
|
344 |
+
*margin-left: 45.1927623204219%;
|
345 |
+
}
|
346 |
+
.row-fluid .offset5:first-child {
|
347 |
+
margin-left: 42.73504273504273%;
|
348 |
+
*margin-left: 42.62865975631933%;
|
349 |
+
}
|
350 |
+
.row-fluid .offset4 {
|
351 |
+
margin-left: 36.75213675213675%;
|
352 |
+
*margin-left: 36.645753773413354%;
|
353 |
+
}
|
354 |
+
.row-fluid .offset4:first-child {
|
355 |
+
margin-left: 34.18803418803419%;
|
356 |
+
*margin-left: 34.081651209310785%;
|
357 |
+
}
|
358 |
+
.row-fluid .offset3 {
|
359 |
+
margin-left: 28.205128205128204%;
|
360 |
+
*margin-left: 28.0987452264048%;
|
361 |
+
}
|
362 |
+
.row-fluid .offset3:first-child {
|
363 |
+
margin-left: 25.641025641025642%;
|
364 |
+
*margin-left: 25.53464266230224%;
|
365 |
+
}
|
366 |
+
.row-fluid .offset2 {
|
367 |
+
margin-left: 19.65811965811966%;
|
368 |
+
*margin-left: 19.551736679396257%;
|
369 |
+
}
|
370 |
+
.row-fluid .offset2:first-child {
|
371 |
+
margin-left: 17.094017094017094%;
|
372 |
+
*margin-left: 16.98763411529369%;
|
373 |
+
}
|
374 |
+
.row-fluid .offset1 {
|
375 |
+
margin-left: 11.11111111111111%;
|
376 |
+
*margin-left: 11.004728132387708%;
|
377 |
+
}
|
378 |
+
.row-fluid .offset1:first-child {
|
379 |
+
margin-left: 8.547008547008547%;
|
380 |
+
*margin-left: 8.440625568285142%;
|
381 |
+
}
|
382 |
+
input,
|
383 |
+
textarea,
|
384 |
+
.uneditable-input {
|
385 |
+
margin-left: 0;
|
386 |
+
}
|
387 |
+
.controls-row [class*="span"] + [class*="span"] {
|
388 |
+
margin-left: 30px;
|
389 |
+
}
|
390 |
+
input.span12,
|
391 |
+
textarea.span12,
|
392 |
+
.uneditable-input.span12 {
|
393 |
+
width: 1156px;
|
394 |
+
}
|
395 |
+
input.span11,
|
396 |
+
textarea.span11,
|
397 |
+
.uneditable-input.span11 {
|
398 |
+
width: 1056px;
|
399 |
+
}
|
400 |
+
input.span10,
|
401 |
+
textarea.span10,
|
402 |
+
.uneditable-input.span10 {
|
403 |
+
width: 956px;
|
404 |
+
}
|
405 |
+
input.span9,
|
406 |
+
textarea.span9,
|
407 |
+
.uneditable-input.span9 {
|
408 |
+
width: 856px;
|
409 |
+
}
|
410 |
+
input.span8,
|
411 |
+
textarea.span8,
|
412 |
+
.uneditable-input.span8 {
|
413 |
+
width: 756px;
|
414 |
+
}
|
415 |
+
input.span7,
|
416 |
+
textarea.span7,
|
417 |
+
.uneditable-input.span7 {
|
418 |
+
width: 656px;
|
419 |
+
}
|
420 |
+
input.span6,
|
421 |
+
textarea.span6,
|
422 |
+
.uneditable-input.span6 {
|
423 |
+
width: 556px;
|
424 |
+
}
|
425 |
+
input.span5,
|
426 |
+
textarea.span5,
|
427 |
+
.uneditable-input.span5 {
|
428 |
+
width: 456px;
|
429 |
+
}
|
430 |
+
input.span4,
|
431 |
+
textarea.span4,
|
432 |
+
.uneditable-input.span4 {
|
433 |
+
width: 356px;
|
434 |
+
}
|
435 |
+
input.span3,
|
436 |
+
textarea.span3,
|
437 |
+
.uneditable-input.span3 {
|
438 |
+
width: 256px;
|
439 |
+
}
|
440 |
+
input.span2,
|
441 |
+
textarea.span2,
|
442 |
+
.uneditable-input.span2 {
|
443 |
+
width: 156px;
|
444 |
+
}
|
445 |
+
input.span1,
|
446 |
+
textarea.span1,
|
447 |
+
.uneditable-input.span1 {
|
448 |
+
width: 56px;
|
449 |
+
}
|
450 |
+
.thumbnails {
|
451 |
+
margin-left: -30px;
|
452 |
+
}
|
453 |
+
.thumbnails > li {
|
454 |
+
margin-left: 30px;
|
455 |
+
}
|
456 |
+
.row-fluid .thumbnails {
|
457 |
+
margin-left: 0;
|
458 |
+
}
|
459 |
+
}
|
460 |
+
|
461 |
+
@media (min-width: 768px) and (max-width: 979px) {
|
462 |
+
.row {
|
463 |
+
margin-left: -20px;
|
464 |
+
*zoom: 1;
|
465 |
+
}
|
466 |
+
.row:before,
|
467 |
+
.row:after {
|
468 |
+
display: table;
|
469 |
+
line-height: 0;
|
470 |
+
content: "";
|
471 |
+
}
|
472 |
+
.row:after {
|
473 |
+
clear: both;
|
474 |
+
}
|
475 |
+
[class*="span"] {
|
476 |
+
float: left;
|
477 |
+
min-height: 1px;
|
478 |
+
margin-left: 20px;
|
479 |
+
}
|
480 |
+
.container,
|
481 |
+
.navbar-static-top .container,
|
482 |
+
.navbar-fixed-top .container,
|
483 |
+
.navbar-fixed-bottom .container {
|
484 |
+
width: 724px;
|
485 |
+
}
|
486 |
+
.span12 {
|
487 |
+
width: 724px;
|
488 |
+
}
|
489 |
+
.span11 {
|
490 |
+
width: 662px;
|
491 |
+
}
|
492 |
+
.span10 {
|
493 |
+
width: 600px;
|
494 |
+
}
|
495 |
+
.span9 {
|
496 |
+
width: 538px;
|
497 |
+
}
|
498 |
+
.span8 {
|
499 |
+
width: 476px;
|
500 |
+
}
|
501 |
+
.span7 {
|
502 |
+
width: 414px;
|
503 |
+
}
|
504 |
+
.span6 {
|
505 |
+
width: 352px;
|
506 |
+
}
|
507 |
+
.span5 {
|
508 |
+
width: 290px;
|
509 |
+
}
|
510 |
+
.span4 {
|
511 |
+
width: 228px;
|
512 |
+
}
|
513 |
+
.span3 {
|
514 |
+
width: 166px;
|
515 |
+
}
|
516 |
+
.span2 {
|
517 |
+
width: 104px;
|
518 |
+
}
|
519 |
+
.span1 {
|
520 |
+
width: 42px;
|
521 |
+
}
|
522 |
+
.offset12 {
|
523 |
+
margin-left: 764px;
|
524 |
+
}
|
525 |
+
.offset11 {
|
526 |
+
margin-left: 702px;
|
527 |
+
}
|
528 |
+
.offset10 {
|
529 |
+
margin-left: 640px;
|
530 |
+
}
|
531 |
+
.offset9 {
|
532 |
+
margin-left: 578px;
|
533 |
+
}
|
534 |
+
.offset8 {
|
535 |
+
margin-left: 516px;
|
536 |
+
}
|
537 |
+
.offset7 {
|
538 |
+
margin-left: 454px;
|
539 |
+
}
|
540 |
+
.offset6 {
|
541 |
+
margin-left: 392px;
|
542 |
+
}
|
543 |
+
.offset5 {
|
544 |
+
margin-left: 330px;
|
545 |
+
}
|
546 |
+
.offset4 {
|
547 |
+
margin-left: 268px;
|
548 |
+
}
|
549 |
+
.offset3 {
|
550 |
+
margin-left: 206px;
|
551 |
+
}
|
552 |
+
.offset2 {
|
553 |
+
margin-left: 144px;
|
554 |
+
}
|
555 |
+
.offset1 {
|
556 |
+
margin-left: 82px;
|
557 |
+
}
|
558 |
+
.row-fluid {
|
559 |
+
width: 100%;
|
560 |
+
*zoom: 1;
|
561 |
+
}
|
562 |
+
.row-fluid:before,
|
563 |
+
.row-fluid:after {
|
564 |
+
display: table;
|
565 |
+
line-height: 0;
|
566 |
+
content: "";
|
567 |
+
}
|
568 |
+
.row-fluid:after {
|
569 |
+
clear: both;
|
570 |
+
}
|
571 |
+
.row-fluid [class*="span"] {
|
572 |
+
display: block;
|
573 |
+
float: left;
|
574 |
+
width: 100%;
|
575 |
+
min-height: 30px;
|
576 |
+
margin-left: 2.7624309392265194%;
|
577 |
+
*margin-left: 2.709239449864817%;
|
578 |
+
-webkit-box-sizing: border-box;
|
579 |
+
-moz-box-sizing: border-box;
|
580 |
+
box-sizing: border-box;
|
581 |
+
}
|
582 |
+
.row-fluid [class*="span"]:first-child {
|
583 |
+
margin-left: 0;
|
584 |
+
}
|
585 |
+
.row-fluid .controls-row [class*="span"] + [class*="span"] {
|
586 |
+
margin-left: 2.7624309392265194%;
|
587 |
+
}
|
588 |
+
.row-fluid .span12 {
|
589 |
+
width: 100%;
|
590 |
+
*width: 99.94680851063829%;
|
591 |
+
}
|
592 |
+
.row-fluid .span11 {
|
593 |
+
width: 91.43646408839778%;
|
594 |
+
*width: 91.38327259903608%;
|
595 |
+
}
|
596 |
+
.row-fluid .span10 {
|
597 |
+
width: 82.87292817679558%;
|
598 |
+
*width: 82.81973668743387%;
|
599 |
+
}
|
600 |
+
.row-fluid .span9 {
|
601 |
+
width: 74.30939226519337%;
|
602 |
+
*width: 74.25620077583166%;
|
603 |
+
}
|
604 |
+
.row-fluid .span8 {
|
605 |
+
width: 65.74585635359117%;
|
606 |
+
*width: 65.69266486422946%;
|
607 |
+
}
|
608 |
+
.row-fluid .span7 {
|
609 |
+
width: 57.18232044198895%;
|
610 |
+
*width: 57.12912895262725%;
|
611 |
+
}
|
612 |
+
.row-fluid .span6 {
|
613 |
+
width: 48.61878453038674%;
|
614 |
+
*width: 48.56559304102504%;
|
615 |
+
}
|
616 |
+
.row-fluid .span5 {
|
617 |
+
width: 40.05524861878453%;
|
618 |
+
*width: 40.00205712942283%;
|
619 |
+
}
|
620 |
+
.row-fluid .span4 {
|
621 |
+
width: 31.491712707182323%;
|
622 |
+
*width: 31.43852121782062%;
|
623 |
+
}
|
624 |
+
.row-fluid .span3 {
|
625 |
+
width: 22.92817679558011%;
|
626 |
+
*width: 22.87498530621841%;
|
627 |
+
}
|
628 |
+
.row-fluid .span2 {
|
629 |
+
width: 14.3646408839779%;
|
630 |
+
*width: 14.311449394616199%;
|
631 |
+
}
|
632 |
+
.row-fluid .span1 {
|
633 |
+
width: 5.801104972375691%;
|
634 |
+
*width: 5.747913483013988%;
|
635 |
+
}
|
636 |
+
.row-fluid .offset12 {
|
637 |
+
margin-left: 105.52486187845304%;
|
638 |
+
*margin-left: 105.41847889972962%;
|
639 |
+
}
|
640 |
+
.row-fluid .offset12:first-child {
|
641 |
+
margin-left: 102.76243093922652%;
|
642 |
+
*margin-left: 102.6560479605031%;
|
643 |
+
}
|
644 |
+
.row-fluid .offset11 {
|
645 |
+
margin-left: 96.96132596685082%;
|
646 |
+
*margin-left: 96.8549429881274%;
|
647 |
+
}
|
648 |
+
.row-fluid .offset11:first-child {
|
649 |
+
margin-left: 94.1988950276243%;
|
650 |
+
*margin-left: 94.09251204890089%;
|
651 |
+
}
|
652 |
+
.row-fluid .offset10 {
|
653 |
+
margin-left: 88.39779005524862%;
|
654 |
+
*margin-left: 88.2914070765252%;
|
655 |
+
}
|
656 |
+
.row-fluid .offset10:first-child {
|
657 |
+
margin-left: 85.6353591160221%;
|
658 |
+
*margin-left: 85.52897613729868%;
|
659 |
+
}
|
660 |
+
.row-fluid .offset9 {
|
661 |
+
margin-left: 79.8342541436464%;
|
662 |
+
*margin-left: 79.72787116492299%;
|
663 |
+
}
|
664 |
+
.row-fluid .offset9:first-child {
|
665 |
+
margin-left: 77.07182320441989%;
|
666 |
+
*margin-left: 76.96544022569647%;
|
667 |
+
}
|
668 |
+
.row-fluid .offset8 {
|
669 |
+
margin-left: 71.2707182320442%;
|
670 |
+
*margin-left: 71.16433525332079%;
|
671 |
+
}
|
672 |
+
.row-fluid .offset8:first-child {
|
673 |
+
margin-left: 68.50828729281768%;
|
674 |
+
*margin-left: 68.40190431409427%;
|
675 |
+
}
|
676 |
+
.row-fluid .offset7 {
|
677 |
+
margin-left: 62.70718232044199%;
|
678 |
+
*margin-left: 62.600799341718584%;
|
679 |
+
}
|
680 |
+
.row-fluid .offset7:first-child {
|
681 |
+
margin-left: 59.94475138121547%;
|
682 |
+
*margin-left: 59.838368402492065%;
|
683 |
+
}
|
684 |
+
.row-fluid .offset6 {
|
685 |
+
margin-left: 54.14364640883978%;
|
686 |
+
*margin-left: 54.037263430116376%;
|
687 |
+
}
|
688 |
+
.row-fluid .offset6:first-child {
|
689 |
+
margin-left: 51.38121546961326%;
|
690 |
+
*margin-left: 51.27483249088986%;
|
691 |
+
}
|
692 |
+
.row-fluid .offset5 {
|
693 |
+
margin-left: 45.58011049723757%;
|
694 |
+
*margin-left: 45.47372751851417%;
|
695 |
+
}
|
696 |
+
.row-fluid .offset5:first-child {
|
697 |
+
margin-left: 42.81767955801105%;
|
698 |
+
*margin-left: 42.71129657928765%;
|
699 |
+
}
|
700 |
+
.row-fluid .offset4 {
|
701 |
+
margin-left: 37.01657458563536%;
|
702 |
+
*margin-left: 36.91019160691196%;
|
703 |
+
}
|
704 |
+
.row-fluid .offset4:first-child {
|
705 |
+
margin-left: 34.25414364640884%;
|
706 |
+
*margin-left: 34.14776066768544%;
|
707 |
+
}
|
708 |
+
.row-fluid .offset3 {
|
709 |
+
margin-left: 28.45303867403315%;
|
710 |
+
*margin-left: 28.346655695309746%;
|
711 |
+
}
|
712 |
+
.row-fluid .offset3:first-child {
|
713 |
+
margin-left: 25.69060773480663%;
|
714 |
+
*margin-left: 25.584224756083227%;
|
715 |
+
}
|
716 |
+
.row-fluid .offset2 {
|
717 |
+
margin-left: 19.88950276243094%;
|
718 |
+
*margin-left: 19.783119783707537%;
|
719 |
+
}
|
720 |
+
.row-fluid .offset2:first-child {
|
721 |
+
margin-left: 17.12707182320442%;
|
722 |
+
*margin-left: 17.02068884448102%;
|
723 |
+
}
|
724 |
+
.row-fluid .offset1 {
|
725 |
+
margin-left: 11.32596685082873%;
|
726 |
+
*margin-left: 11.219583872105325%;
|
727 |
+
}
|
728 |
+
.row-fluid .offset1:first-child {
|
729 |
+
margin-left: 8.56353591160221%;
|
730 |
+
*margin-left: 8.457152932878806%;
|
731 |
+
}
|
732 |
+
input,
|
733 |
+
textarea,
|
734 |
+
.uneditable-input {
|
735 |
+
margin-left: 0;
|
736 |
+
}
|
737 |
+
.controls-row [class*="span"] + [class*="span"] {
|
738 |
+
margin-left: 20px;
|
739 |
+
}
|
740 |
+
input.span12,
|
741 |
+
textarea.span12,
|
742 |
+
.uneditable-input.span12 {
|
743 |
+
width: 710px;
|
744 |
+
}
|
745 |
+
input.span11,
|
746 |
+
textarea.span11,
|
747 |
+
.uneditable-input.span11 {
|
748 |
+
width: 648px;
|
749 |
+
}
|
750 |
+
input.span10,
|
751 |
+
textarea.span10,
|
752 |
+
.uneditable-input.span10 {
|
753 |
+
width: 586px;
|
754 |
+
}
|
755 |
+
input.span9,
|
756 |
+
textarea.span9,
|
757 |
+
.uneditable-input.span9 {
|
758 |
+
width: 524px;
|
759 |
+
}
|
760 |
+
input.span8,
|
761 |
+
textarea.span8,
|
762 |
+
.uneditable-input.span8 {
|
763 |
+
width: 462px;
|
764 |
+
}
|
765 |
+
input.span7,
|
766 |
+
textarea.span7,
|
767 |
+
.uneditable-input.span7 {
|
768 |
+
width: 400px;
|
769 |
+
}
|
770 |
+
input.span6,
|
771 |
+
textarea.span6,
|
772 |
+
.uneditable-input.span6 {
|
773 |
+
width: 338px;
|
774 |
+
}
|
775 |
+
input.span5,
|
776 |
+
textarea.span5,
|
777 |
+
.uneditable-input.span5 {
|
778 |
+
width: 276px;
|
779 |
+
}
|
780 |
+
input.span4,
|
781 |
+
textarea.span4,
|
782 |
+
.uneditable-input.span4 {
|
783 |
+
width: 214px;
|
784 |
+
}
|
785 |
+
input.span3,
|
786 |
+
textarea.span3,
|
787 |
+
.uneditable-input.span3 {
|
788 |
+
width: 152px;
|
789 |
+
}
|
790 |
+
input.span2,
|
791 |
+
textarea.span2,
|
792 |
+
.uneditable-input.span2 {
|
793 |
+
width: 90px;
|
794 |
+
}
|
795 |
+
input.span1,
|
796 |
+
textarea.span1,
|
797 |
+
.uneditable-input.span1 {
|
798 |
+
width: 28px;
|
799 |
+
}
|
800 |
+
}
|
801 |
+
|
802 |
+
@media (max-width: 767px) {
|
803 |
+
body {
|
804 |
+
padding-right: 20px;
|
805 |
+
padding-left: 20px;
|
806 |
+
}
|
807 |
+
.navbar-fixed-top,
|
808 |
+
.navbar-fixed-bottom,
|
809 |
+
.navbar-static-top {
|
810 |
+
margin-right: -20px;
|
811 |
+
margin-left: -20px;
|
812 |
+
}
|
813 |
+
.container-fluid {
|
814 |
+
padding: 0;
|
815 |
+
}
|
816 |
+
.dl-horizontal dt {
|
817 |
+
float: none;
|
818 |
+
width: auto;
|
819 |
+
clear: none;
|
820 |
+
text-align: left;
|
821 |
+
}
|
822 |
+
.dl-horizontal dd {
|
823 |
+
margin-left: 0;
|
824 |
+
}
|
825 |
+
.container {
|
826 |
+
width: auto;
|
827 |
+
}
|
828 |
+
.row-fluid {
|
829 |
+
width: 100%;
|
830 |
+
}
|
831 |
+
.row,
|
832 |
+
.thumbnails {
|
833 |
+
margin-left: 0;
|
834 |
+
}
|
835 |
+
.thumbnails > li {
|
836 |
+
float: none;
|
837 |
+
margin-left: 0;
|
838 |
+
}
|
839 |
+
[class*="span"],
|
840 |
+
.uneditable-input[class*="span"],
|
841 |
+
.row-fluid [class*="span"] {
|
842 |
+
display: block;
|
843 |
+
float: none;
|
844 |
+
width: 100%;
|
845 |
+
margin-left: 0;
|
846 |
+
-webkit-box-sizing: border-box;
|
847 |
+
-moz-box-sizing: border-box;
|
848 |
+
box-sizing: border-box;
|
849 |
+
}
|
850 |
+
.span12,
|
851 |
+
.row-fluid .span12 {
|
852 |
+
width: 100%;
|
853 |
+
-webkit-box-sizing: border-box;
|
854 |
+
-moz-box-sizing: border-box;
|
855 |
+
box-sizing: border-box;
|
856 |
+
}
|
857 |
+
.row-fluid [class*="offset"]:first-child {
|
858 |
+
margin-left: 0;
|
859 |
+
}
|
860 |
+
.input-large,
|
861 |
+
.input-xlarge,
|
862 |
+
.input-xxlarge,
|
863 |
+
input[class*="span"],
|
864 |
+
select[class*="span"],
|
865 |
+
textarea[class*="span"],
|
866 |
+
.uneditable-input {
|
867 |
+
display: block;
|
868 |
+
width: 100%;
|
869 |
+
min-height: 30px;
|
870 |
+
-webkit-box-sizing: border-box;
|
871 |
+
-moz-box-sizing: border-box;
|
872 |
+
box-sizing: border-box;
|
873 |
+
}
|
874 |
+
.input-prepend input,
|
875 |
+
.input-append input,
|
876 |
+
.input-prepend input[class*="span"],
|
877 |
+
.input-append input[class*="span"] {
|
878 |
+
display: inline-block;
|
879 |
+
width: auto;
|
880 |
+
}
|
881 |
+
.controls-row [class*="span"] + [class*="span"] {
|
882 |
+
margin-left: 0;
|
883 |
+
}
|
884 |
+
.modal {
|
885 |
+
position: fixed;
|
886 |
+
top: 20px;
|
887 |
+
right: 20px;
|
888 |
+
left: 20px;
|
889 |
+
width: auto;
|
890 |
+
margin: 0;
|
891 |
+
}
|
892 |
+
.modal.fade {
|
893 |
+
top: -100px;
|
894 |
+
}
|
895 |
+
.modal.fade.in {
|
896 |
+
top: 20px;
|
897 |
+
}
|
898 |
+
}
|
899 |
+
|
900 |
+
@media (max-width: 480px) {
|
901 |
+
.nav-collapse {
|
902 |
+
-webkit-transform: translate3d(0, 0, 0);
|
903 |
+
}
|
904 |
+
.page-header h1 small {
|
905 |
+
display: block;
|
906 |
+
line-height: 20px;
|
907 |
+
}
|
908 |
+
input[type="checkbox"],
|
909 |
+
input[type="radio"] {
|
910 |
+
border: 1px solid #ccc;
|
911 |
+
}
|
912 |
+
.form-horizontal .control-label {
|
913 |
+
float: none;
|
914 |
+
width: auto;
|
915 |
+
padding-top: 0;
|
916 |
+
text-align: left;
|
917 |
+
}
|
918 |
+
.form-horizontal .controls {
|
919 |
+
margin-left: 0;
|
920 |
+
}
|
921 |
+
.form-horizontal .control-list {
|
922 |
+
padding-top: 0;
|
923 |
+
}
|
924 |
+
.form-horizontal .form-actions {
|
925 |
+
padding-right: 10px;
|
926 |
+
padding-left: 10px;
|
927 |
+
}
|
928 |
+
.media .pull-left,
|
929 |
+
.media .pull-right {
|
930 |
+
display: block;
|
931 |
+
float: none;
|
932 |
+
margin-bottom: 10px;
|
933 |
+
}
|
934 |
+
.media-object {
|
935 |
+
margin-right: 0;
|
936 |
+
margin-left: 0;
|
937 |
+
}
|
938 |
+
.modal {
|
939 |
+
top: 10px;
|
940 |
+
right: 10px;
|
941 |
+
left: 10px;
|
942 |
+
}
|
943 |
+
.modal-header .close {
|
944 |
+
padding: 10px;
|
945 |
+
margin: -10px;
|
946 |
+
}
|
947 |
+
.carousel-caption {
|
948 |
+
position: static;
|
949 |
+
}
|
950 |
+
}
|
951 |
+
|
952 |
+
@media (max-width: 979px) {
|
953 |
+
body {
|
954 |
+
padding-top: 0;
|
955 |
+
}
|
956 |
+
.navbar-fixed-top,
|
957 |
+
.navbar-fixed-bottom {
|
958 |
+
position: static;
|
959 |
+
}
|
960 |
+
.navbar-fixed-top {
|
961 |
+
margin-bottom: 20px;
|
962 |
+
}
|
963 |
+
.navbar-fixed-bottom {
|
964 |
+
margin-top: 20px;
|
965 |
+
}
|
966 |
+
.navbar-fixed-top .navbar-inner,
|
967 |
+
.navbar-fixed-bottom .navbar-inner {
|
968 |
+
padding: 5px;
|
969 |
+
}
|
970 |
+
.navbar .container {
|
971 |
+
width: auto;
|
972 |
+
padding: 0;
|
973 |
+
}
|
974 |
+
.navbar .brand {
|
975 |
+
padding-right: 10px;
|
976 |
+
padding-left: 10px;
|
977 |
+
margin: 0 0 0 -5px;
|
978 |
+
}
|
979 |
+
.nav-collapse {
|
980 |
+
clear: both;
|
981 |
+
}
|
982 |
+
.nav-collapse .nav {
|
983 |
+
float: none;
|
984 |
+
margin: 0 0 10px;
|
985 |
+
}
|
986 |
+
.nav-collapse .nav > li {
|
987 |
+
float: none;
|
988 |
+
}
|
989 |
+
.nav-collapse .nav > li > a {
|
990 |
+
margin-bottom: 2px;
|
991 |
+
}
|
992 |
+
.nav-collapse .nav > .divider-vertical {
|
993 |
+
display: none;
|
994 |
+
}
|
995 |
+
.nav-collapse .nav .nav-header {
|
996 |
+
color: #777777;
|
997 |
+
text-shadow: none;
|
998 |
+
}
|
999 |
+
.nav-collapse .nav > li > a,
|
1000 |
+
.nav-collapse .dropdown-menu a {
|
1001 |
+
padding: 9px 15px;
|
1002 |
+
font-weight: bold;
|
1003 |
+
color: #777777;
|
1004 |
+
-webkit-border-radius: 3px;
|
1005 |
+
-moz-border-radius: 3px;
|
1006 |
+
border-radius: 3px;
|
1007 |
+
}
|
1008 |
+
.nav-collapse .btn {
|
1009 |
+
padding: 4px 10px 4px;
|
1010 |
+
font-weight: normal;
|
1011 |
+
-webkit-border-radius: 4px;
|
1012 |
+
-moz-border-radius: 4px;
|
1013 |
+
border-radius: 4px;
|
1014 |
+
}
|
1015 |
+
.nav-collapse .dropdown-menu li + li a {
|
1016 |
+
margin-bottom: 2px;
|
1017 |
+
}
|
1018 |
+
.nav-collapse .nav > li > a:hover,
|
1019 |
+
.nav-collapse .nav > li > a:focus,
|
1020 |
+
.nav-collapse .dropdown-menu a:hover,
|
1021 |
+
.nav-collapse .dropdown-menu a:focus {
|
1022 |
+
background-color: #f2f2f2;
|
1023 |
+
}
|
1024 |
+
.navbar-inverse .nav-collapse .nav > li > a,
|
1025 |
+
.navbar-inverse .nav-collapse .dropdown-menu a {
|
1026 |
+
color: #999999;
|
1027 |
+
}
|
1028 |
+
.navbar-inverse .nav-collapse .nav > li > a:hover,
|
1029 |
+
.navbar-inverse .nav-collapse .nav > li > a:focus,
|
1030 |
+
.navbar-inverse .nav-collapse .dropdown-menu a:hover,
|
1031 |
+
.navbar-inverse .nav-collapse .dropdown-menu a:focus {
|
1032 |
+
background-color: #111111;
|
1033 |
+
}
|
1034 |
+
.nav-collapse.in .btn-group {
|
1035 |
+
padding: 0;
|
1036 |
+
margin-top: 5px;
|
1037 |
+
}
|
1038 |
+
.nav-collapse .dropdown-menu {
|
1039 |
+
position: static;
|
1040 |
+
top: auto;
|
1041 |
+
left: auto;
|
1042 |
+
display: none;
|
1043 |
+
float: none;
|
1044 |
+
max-width: none;
|
1045 |
+
padding: 0;
|
1046 |
+
margin: 0 15px;
|
1047 |
+
background-color: transparent;
|
1048 |
+
border: none;
|
1049 |
+
-webkit-border-radius: 0;
|
1050 |
+
-moz-border-radius: 0;
|
1051 |
+
border-radius: 0;
|
1052 |
+
-webkit-box-shadow: none;
|
1053 |
+
-moz-box-shadow: none;
|
1054 |
+
box-shadow: none;
|
1055 |
+
}
|
1056 |
+
.nav-collapse .open > .dropdown-menu {
|
1057 |
+
display: block;
|
1058 |
+
}
|
1059 |
+
.nav-collapse .dropdown-menu:before,
|
1060 |
+
.nav-collapse .dropdown-menu:after {
|
1061 |
+
display: none;
|
1062 |
+
}
|
1063 |
+
.nav-collapse .dropdown-menu .divider {
|
1064 |
+
display: none;
|
1065 |
+
}
|
1066 |
+
.nav-collapse .nav > li > .dropdown-menu:before,
|
1067 |
+
.nav-collapse .nav > li > .dropdown-menu:after {
|
1068 |
+
display: none;
|
1069 |
+
}
|
1070 |
+
.nav-collapse .navbar-form,
|
1071 |
+
.nav-collapse .navbar-search {
|
1072 |
+
float: none;
|
1073 |
+
padding: 10px 15px;
|
1074 |
+
margin: 10px 0;
|
1075 |
+
border-top: 1px solid #f2f2f2;
|
1076 |
+
border-bottom: 1px solid #f2f2f2;
|
1077 |
+
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
|
1078 |
+
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
|
1079 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
|
1080 |
+
}
|
1081 |
+
.navbar-inverse .nav-collapse .navbar-form,
|
1082 |
+
.navbar-inverse .nav-collapse .navbar-search {
|
1083 |
+
border-top-color: #111111;
|
1084 |
+
border-bottom-color: #111111;
|
1085 |
+
}
|
1086 |
+
.navbar .nav-collapse .nav.pull-right {
|
1087 |
+
float: none;
|
1088 |
+
margin-left: 0;
|
1089 |
+
}
|
1090 |
+
.nav-collapse,
|
1091 |
+
.nav-collapse.collapse {
|
1092 |
+
height: 0;
|
1093 |
+
overflow: hidden;
|
1094 |
+
}
|
1095 |
+
.navbar .btn-navbar {
|
1096 |
+
display: block;
|
1097 |
+
}
|
1098 |
+
.navbar-static .navbar-inner {
|
1099 |
+
padding-right: 10px;
|
1100 |
+
padding-left: 10px;
|
1101 |
+
}
|
1102 |
+
}
|
1103 |
+
|
1104 |
+
@media (min-width: 980px) {
|
1105 |
+
.nav-collapse.collapse {
|
1106 |
+
height: auto !important;
|
1107 |
+
overflow: visible !important;
|
1108 |
+
}
|
1109 |
+
}
|
assets/css/bootstrap-responsive.min.css
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Bootstrap Responsive v2.3.1
|
3 |
+
*
|
4 |
+
* Copyright 2012 Twitter, Inc
|
5 |
+
* Licensed under the Apache License v2.0
|
6 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7 |
+
*
|
8 |
+
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
9 |
+
*/.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@-ms-viewport{width:device-width}.hidden{display:none;visibility:hidden}.visible-phone{display:none!important}.visible-tablet{display:none!important}.hidden-desktop{display:none!important}.visible-desktop{display:inherit!important}@media(min-width:768px) and (max-width:979px){.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}.visible-tablet{display:inherit!important}.hidden-tablet{display:none!important}}@media(max-width:767px){.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}.visible-phone{display:inherit!important}.hidden-phone{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:inherit!important}.hidden-print{display:none!important}}@media(min-width:1200px){.row{margin-left:-30px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:30px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:1170px}.span12{width:1170px}.span11{width:1070px}.span10{width:970px}.span9{width:870px}.span8{width:770px}.span7{width:670px}.span6{width:570px}.span5{width:470px}.span4{width:370px}.span3{width:270px}.span2{width:170px}.span1{width:70px}.offset12{margin-left:1230px}.offset11{margin-left:1130px}.offset10{margin-left:1030px}.offset9{margin-left:930px}.offset8{margin-left:830px}.offset7{margin-left:730px}.offset6{margin-left:630px}.offset5{margin-left:530px}.offset4{margin-left:430px}.offset3{margin-left:330px}.offset2{margin-left:230px}.offset1{margin-left:130px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.564102564102564%;*margin-left:2.5109110747408616%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .controls-row [class*="span"]+[class*="span"]{margin-left:2.564102564102564%}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.45299145299145%;*width:91.39979996362975%}.row-fluid .span10{width:82.90598290598291%;*width:82.8527914166212%}.row-fluid .span9{width:74.35897435897436%;*width:74.30578286961266%}.row-fluid .span8{width:65.81196581196582%;*width:65.75877432260411%}.row-fluid .span7{width:57.26495726495726%;*width:57.21176577559556%}.row-fluid .span6{width:48.717948717948715%;*width:48.664757228587014%}.row-fluid .span5{width:40.17094017094017%;*width:40.11774868157847%}.row-fluid .span4{width:31.623931623931625%;*width:31.570740134569924%}.row-fluid .span3{width:23.076923076923077%;*width:23.023731587561375%}.row-fluid .span2{width:14.52991452991453%;*width:14.476723040552828%}.row-fluid .span1{width:5.982905982905983%;*width:5.929714493544281%}.row-fluid .offset12{margin-left:105.12820512820512%;*margin-left:105.02182214948171%}.row-fluid .offset12:first-child{margin-left:102.56410256410257%;*margin-left:102.45771958537915%}.row-fluid .offset11{margin-left:96.58119658119658%;*margin-left:96.47481360247316%}.row-fluid .offset11:first-child{margin-left:94.01709401709402%;*margin-left:93.91071103837061%}.row-fluid .offset10{margin-left:88.03418803418803%;*margin-left:87.92780505546462%}.row-fluid .offset10:first-child{margin-left:85.47008547008548%;*margin-left:85.36370249136206%}.row-fluid .offset9{margin-left:79.48717948717949%;*margin-left:79.38079650845607%}.row-fluid .offset9:first-child{margin-left:76.92307692307693%;*margin-left:76.81669394435352%}.row-fluid .offset8{margin-left:70.94017094017094%;*margin-left:70.83378796144753%}.row-fluid .offset8:first-child{margin-left:68.37606837606839%;*margin-left:68.26968539734497%}.row-fluid .offset7{margin-left:62.393162393162385%;*margin-left:62.28677941443899%}.row-fluid .offset7:first-child{margin-left:59.82905982905982%;*margin-left:59.72267685033642%}.row-fluid .offset6{margin-left:53.84615384615384%;*margin-left:53.739770867430444%}.row-fluid .offset6:first-child{margin-left:51.28205128205128%;*margin-left:51.175668303327875%}.row-fluid .offset5{margin-left:45.299145299145295%;*margin-left:45.1927623204219%}.row-fluid .offset5:first-child{margin-left:42.73504273504273%;*margin-left:42.62865975631933%}.row-fluid .offset4{margin-left:36.75213675213675%;*margin-left:36.645753773413354%}.row-fluid .offset4:first-child{margin-left:34.18803418803419%;*margin-left:34.081651209310785%}.row-fluid .offset3{margin-left:28.205128205128204%;*margin-left:28.0987452264048%}.row-fluid .offset3:first-child{margin-left:25.641025641025642%;*margin-left:25.53464266230224%}.row-fluid .offset2{margin-left:19.65811965811966%;*margin-left:19.551736679396257%}.row-fluid .offset2:first-child{margin-left:17.094017094017094%;*margin-left:16.98763411529369%}.row-fluid .offset1{margin-left:11.11111111111111%;*margin-left:11.004728132387708%}.row-fluid .offset1:first-child{margin-left:8.547008547008547%;*margin-left:8.440625568285142%}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:30px}input.span12,textarea.span12,.uneditable-input.span12{width:1156px}input.span11,textarea.span11,.uneditable-input.span11{width:1056px}input.span10,textarea.span10,.uneditable-input.span10{width:956px}input.span9,textarea.span9,.uneditable-input.span9{width:856px}input.span8,textarea.span8,.uneditable-input.span8{width:756px}input.span7,textarea.span7,.uneditable-input.span7{width:656px}input.span6,textarea.span6,.uneditable-input.span6{width:556px}input.span5,textarea.span5,.uneditable-input.span5{width:456px}input.span4,textarea.span4,.uneditable-input.span4{width:356px}input.span3,textarea.span3,.uneditable-input.span3{width:256px}input.span2,textarea.span2,.uneditable-input.span2{width:156px}input.span1,textarea.span1,.uneditable-input.span1{width:56px}.thumbnails{margin-left:-30px}.thumbnails>li{margin-left:30px}.row-fluid .thumbnails{margin-left:0}}@media(min-width:768px) and (max-width:979px){.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:20px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:724px}.span12{width:724px}.span11{width:662px}.span10{width:600px}.span9{width:538px}.span8{width:476px}.span7{width:414px}.span6{width:352px}.span5{width:290px}.span4{width:228px}.span3{width:166px}.span2{width:104px}.span1{width:42px}.offset12{margin-left:764px}.offset11{margin-left:702px}.offset10{margin-left:640px}.offset9{margin-left:578px}.offset8{margin-left:516px}.offset7{margin-left:454px}.offset6{margin-left:392px}.offset5{margin-left:330px}.offset4{margin-left:268px}.offset3{margin-left:206px}.offset2{margin-left:144px}.offset1{margin-left:82px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.7624309392265194%;*margin-left:2.709239449864817%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .controls-row [class*="span"]+[class*="span"]{margin-left:2.7624309392265194%}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.43646408839778%;*width:91.38327259903608%}.row-fluid .span10{width:82.87292817679558%;*width:82.81973668743387%}.row-fluid .span9{width:74.30939226519337%;*width:74.25620077583166%}.row-fluid .span8{width:65.74585635359117%;*width:65.69266486422946%}.row-fluid .span7{width:57.18232044198895%;*width:57.12912895262725%}.row-fluid .span6{width:48.61878453038674%;*width:48.56559304102504%}.row-fluid .span5{width:40.05524861878453%;*width:40.00205712942283%}.row-fluid .span4{width:31.491712707182323%;*width:31.43852121782062%}.row-fluid .span3{width:22.92817679558011%;*width:22.87498530621841%}.row-fluid .span2{width:14.3646408839779%;*width:14.311449394616199%}.row-fluid .span1{width:5.801104972375691%;*width:5.747913483013988%}.row-fluid .offset12{margin-left:105.52486187845304%;*margin-left:105.41847889972962%}.row-fluid .offset12:first-child{margin-left:102.76243093922652%;*margin-left:102.6560479605031%}.row-fluid .offset11{margin-left:96.96132596685082%;*margin-left:96.8549429881274%}.row-fluid .offset11:first-child{margin-left:94.1988950276243%;*margin-left:94.09251204890089%}.row-fluid .offset10{margin-left:88.39779005524862%;*margin-left:88.2914070765252%}.row-fluid .offset10:first-child{margin-left:85.6353591160221%;*margin-left:85.52897613729868%}.row-fluid .offset9{margin-left:79.8342541436464%;*margin-left:79.72787116492299%}.row-fluid .offset9:first-child{margin-left:77.07182320441989%;*margin-left:76.96544022569647%}.row-fluid .offset8{margin-left:71.2707182320442%;*margin-left:71.16433525332079%}.row-fluid .offset8:first-child{margin-left:68.50828729281768%;*margin-left:68.40190431409427%}.row-fluid .offset7{margin-left:62.70718232044199%;*margin-left:62.600799341718584%}.row-fluid .offset7:first-child{margin-left:59.94475138121547%;*margin-left:59.838368402492065%}.row-fluid .offset6{margin-left:54.14364640883978%;*margin-left:54.037263430116376%}.row-fluid .offset6:first-child{margin-left:51.38121546961326%;*margin-left:51.27483249088986%}.row-fluid .offset5{margin-left:45.58011049723757%;*margin-left:45.47372751851417%}.row-fluid .offset5:first-child{margin-left:42.81767955801105%;*margin-left:42.71129657928765%}.row-fluid .offset4{margin-left:37.01657458563536%;*margin-left:36.91019160691196%}.row-fluid .offset4:first-child{margin-left:34.25414364640884%;*margin-left:34.14776066768544%}.row-fluid .offset3{margin-left:28.45303867403315%;*margin-left:28.346655695309746%}.row-fluid .offset3:first-child{margin-left:25.69060773480663%;*margin-left:25.584224756083227%}.row-fluid .offset2{margin-left:19.88950276243094%;*margin-left:19.783119783707537%}.row-fluid .offset2:first-child{margin-left:17.12707182320442%;*margin-left:17.02068884448102%}.row-fluid .offset1{margin-left:11.32596685082873%;*margin-left:11.219583872105325%}.row-fluid .offset1:first-child{margin-left:8.56353591160221%;*margin-left:8.457152932878806%}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:20px}input.span12,textarea.span12,.uneditable-input.span12{width:710px}input.span11,textarea.span11,.uneditable-input.span11{width:648px}input.span10,textarea.span10,.uneditable-input.span10{width:586px}input.span9,textarea.span9,.uneditable-input.span9{width:524px}input.span8,textarea.span8,.uneditable-input.span8{width:462px}input.span7,textarea.span7,.uneditable-input.span7{width:400px}input.span6,textarea.span6,.uneditable-input.span6{width:338px}input.span5,textarea.span5,.uneditable-input.span5{width:276px}input.span4,textarea.span4,.uneditable-input.span4{width:214px}input.span3,textarea.span3,.uneditable-input.span3{width:152px}input.span2,textarea.span2,.uneditable-input.span2{width:90px}input.span1,textarea.span1,.uneditable-input.span1{width:28px}}@media(max-width:767px){body{padding-right:20px;padding-left:20px}.navbar-fixed-top,.navbar-fixed-bottom,.navbar-static-top{margin-right:-20px;margin-left:-20px}.container-fluid{padding:0}.dl-horizontal dt{float:none;width:auto;clear:none;text-align:left}.dl-horizontal dd{margin-left:0}.container{width:auto}.row-fluid{width:100%}.row,.thumbnails{margin-left:0}.thumbnails>li{float:none;margin-left:0}[class*="span"],.uneditable-input[class*="span"],.row-fluid [class*="span"]{display:block;float:none;width:100%;margin-left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.span12,.row-fluid .span12{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="offset"]:first-child{margin-left:0}.input-large,.input-xlarge,.input-xxlarge,input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.input-prepend input,.input-append input,.input-prepend input[class*="span"],.input-append input[class*="span"]{display:inline-block;width:auto}.controls-row [class*="span"]+[class*="span"]{margin-left:0}.modal{position:fixed;top:20px;right:20px;left:20px;width:auto;margin:0}.modal.fade{top:-100px}.modal.fade.in{top:20px}}@media(max-width:480px){.nav-collapse{-webkit-transform:translate3d(0,0,0)}.page-header h1 small{display:block;line-height:20px}input[type="checkbox"],input[type="radio"]{border:1px solid #ccc}.form-horizontal .control-label{float:none;width:auto;padding-top:0;text-align:left}.form-horizontal .controls{margin-left:0}.form-horizontal .control-list{padding-top:0}.form-horizontal .form-actions{padding-right:10px;padding-left:10px}.media .pull-left,.media .pull-right{display:block;float:none;margin-bottom:10px}.media-object{margin-right:0;margin-left:0}.modal{top:10px;right:10px;left:10px}.modal-header .close{padding:10px;margin:-10px}.carousel-caption{position:static}}@media(max-width:979px){body{padding-top:0}.navbar-fixed-top,.navbar-fixed-bottom{position:static}.navbar-fixed-top{margin-bottom:20px}.navbar-fixed-bottom{margin-top:20px}.navbar-fixed-top .navbar-inner,.navbar-fixed-bottom .navbar-inner{padding:5px}.navbar .container{width:auto;padding:0}.navbar .brand{padding-right:10px;padding-left:10px;margin:0 0 0 -5px}.nav-collapse{clear:both}.nav-collapse .nav{float:none;margin:0 0 10px}.nav-collapse .nav>li{float:none}.nav-collapse .nav>li>a{margin-bottom:2px}.nav-collapse .nav>.divider-vertical{display:none}.nav-collapse .nav .nav-header{color:#777;text-shadow:none}.nav-collapse .nav>li>a,.nav-collapse .dropdown-menu a{padding:9px 15px;font-weight:bold;color:#777;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.nav-collapse .btn{padding:4px 10px 4px;font-weight:normal;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.nav-collapse .dropdown-menu li+li a{margin-bottom:2px}.nav-collapse .nav>li>a:hover,.nav-collapse .nav>li>a:focus,.nav-collapse .dropdown-menu a:hover,.nav-collapse .dropdown-menu a:focus{background-color:#f2f2f2}.navbar-inverse .nav-collapse .nav>li>a,.navbar-inverse .nav-collapse .dropdown-menu a{color:#999}.navbar-inverse .nav-collapse .nav>li>a:hover,.navbar-inverse .nav-collapse .nav>li>a:focus,.navbar-inverse .nav-collapse .dropdown-menu a:hover,.navbar-inverse .nav-collapse .dropdown-menu a:focus{background-color:#111}.nav-collapse.in .btn-group{padding:0;margin-top:5px}.nav-collapse .dropdown-menu{position:static;top:auto;left:auto;display:none;float:none;max-width:none;padding:0;margin:0 15px;background-color:transparent;border:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.nav-collapse .open>.dropdown-menu{display:block}.nav-collapse .dropdown-menu:before,.nav-collapse .dropdown-menu:after{display:none}.nav-collapse .dropdown-menu .divider{display:none}.nav-collapse .nav>li>.dropdown-menu:before,.nav-collapse .nav>li>.dropdown-menu:after{display:none}.nav-collapse .navbar-form,.nav-collapse .navbar-search{float:none;padding:10px 15px;margin:10px 0;border-top:1px solid #f2f2f2;border-bottom:1px solid #f2f2f2;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1)}.navbar-inverse .nav-collapse .navbar-form,.navbar-inverse .nav-collapse .navbar-search{border-top-color:#111;border-bottom-color:#111}.navbar .nav-collapse .nav.pull-right{float:none;margin-left:0}.nav-collapse,.nav-collapse.collapse{height:0;overflow:hidden}.navbar .btn-navbar{display:block}.navbar-static .navbar-inner{padding-right:10px;padding-left:10px}}@media(min-width:980px){.nav-collapse.collapse{height:auto!important;overflow:visible!important}}
|
assets/css/bootstrap.css
ADDED
@@ -0,0 +1,6158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Bootstrap v2.3.1
|
3 |
+
*
|
4 |
+
* Copyright 2012 Twitter, Inc
|
5 |
+
* Licensed under the Apache License v2.0
|
6 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7 |
+
*
|
8 |
+
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
9 |
+
*/
|
10 |
+
|
11 |
+
.clearfix {
|
12 |
+
*zoom: 1;
|
13 |
+
}
|
14 |
+
|
15 |
+
.clearfix:before,
|
16 |
+
.clearfix:after {
|
17 |
+
display: table;
|
18 |
+
line-height: 0;
|
19 |
+
content: "";
|
20 |
+
}
|
21 |
+
|
22 |
+
.clearfix:after {
|
23 |
+
clear: both;
|
24 |
+
}
|
25 |
+
|
26 |
+
.hide-text {
|
27 |
+
font: 0/0 a;
|
28 |
+
color: transparent;
|
29 |
+
text-shadow: none;
|
30 |
+
background-color: transparent;
|
31 |
+
border: 0;
|
32 |
+
}
|
33 |
+
|
34 |
+
.input-block-level {
|
35 |
+
display: block;
|
36 |
+
width: 100%;
|
37 |
+
min-height: 30px;
|
38 |
+
-webkit-box-sizing: border-box;
|
39 |
+
-moz-box-sizing: border-box;
|
40 |
+
box-sizing: border-box;
|
41 |
+
}
|
42 |
+
|
43 |
+
article,
|
44 |
+
aside,
|
45 |
+
details,
|
46 |
+
figcaption,
|
47 |
+
figure,
|
48 |
+
footer,
|
49 |
+
header,
|
50 |
+
hgroup,
|
51 |
+
nav,
|
52 |
+
section {
|
53 |
+
display: block;
|
54 |
+
}
|
55 |
+
|
56 |
+
audio,
|
57 |
+
canvas,
|
58 |
+
video {
|
59 |
+
display: inline-block;
|
60 |
+
*display: inline;
|
61 |
+
*zoom: 1;
|
62 |
+
}
|
63 |
+
|
64 |
+
audio:not([controls]) {
|
65 |
+
display: none;
|
66 |
+
}
|
67 |
+
|
68 |
+
html {
|
69 |
+
font-size: 100%;
|
70 |
+
-webkit-text-size-adjust: 100%;
|
71 |
+
-ms-text-size-adjust: 100%;
|
72 |
+
}
|
73 |
+
|
74 |
+
a:focus {
|
75 |
+
outline: thin dotted #333;
|
76 |
+
outline: 5px auto -webkit-focus-ring-color;
|
77 |
+
outline-offset: -2px;
|
78 |
+
}
|
79 |
+
|
80 |
+
a:hover,
|
81 |
+
a:active {
|
82 |
+
outline: 0;
|
83 |
+
}
|
84 |
+
|
85 |
+
sub,
|
86 |
+
sup {
|
87 |
+
position: relative;
|
88 |
+
font-size: 75%;
|
89 |
+
line-height: 0;
|
90 |
+
vertical-align: baseline;
|
91 |
+
}
|
92 |
+
|
93 |
+
sup {
|
94 |
+
top: -0.5em;
|
95 |
+
}
|
96 |
+
|
97 |
+
sub {
|
98 |
+
bottom: -0.25em;
|
99 |
+
}
|
100 |
+
|
101 |
+
img {
|
102 |
+
width: auto\9;
|
103 |
+
height: auto;
|
104 |
+
max-width: 100%;
|
105 |
+
vertical-align: middle;
|
106 |
+
border: 0;
|
107 |
+
-ms-interpolation-mode: bicubic;
|
108 |
+
}
|
109 |
+
|
110 |
+
#map_canvas img,
|
111 |
+
.google-maps img {
|
112 |
+
max-width: none;
|
113 |
+
}
|
114 |
+
|
115 |
+
button,
|
116 |
+
input,
|
117 |
+
select,
|
118 |
+
textarea {
|
119 |
+
margin: 0;
|
120 |
+
font-size: 100%;
|
121 |
+
vertical-align: middle;
|
122 |
+
}
|
123 |
+
|
124 |
+
button,
|
125 |
+
input {
|
126 |
+
*overflow: visible;
|
127 |
+
line-height: normal;
|
128 |
+
}
|
129 |
+
|
130 |
+
button::-moz-focus-inner,
|
131 |
+
input::-moz-focus-inner {
|
132 |
+
padding: 0;
|
133 |
+
border: 0;
|
134 |
+
}
|
135 |
+
|
136 |
+
button,
|
137 |
+
html input[type="button"],
|
138 |
+
input[type="reset"],
|
139 |
+
input[type="submit"] {
|
140 |
+
cursor: pointer;
|
141 |
+
-webkit-appearance: button;
|
142 |
+
}
|
143 |
+
|
144 |
+
label,
|
145 |
+
select,
|
146 |
+
button,
|
147 |
+
input[type="button"],
|
148 |
+
input[type="reset"],
|
149 |
+
input[type="submit"],
|
150 |
+
input[type="radio"],
|
151 |
+
input[type="checkbox"] {
|
152 |
+
cursor: pointer;
|
153 |
+
}
|
154 |
+
|
155 |
+
input[type="search"] {
|
156 |
+
-webkit-box-sizing: content-box;
|
157 |
+
-moz-box-sizing: content-box;
|
158 |
+
box-sizing: content-box;
|
159 |
+
-webkit-appearance: textfield;
|
160 |
+
}
|
161 |
+
|
162 |
+
input[type="search"]::-webkit-search-decoration,
|
163 |
+
input[type="search"]::-webkit-search-cancel-button {
|
164 |
+
-webkit-appearance: none;
|
165 |
+
}
|
166 |
+
|
167 |
+
textarea {
|
168 |
+
overflow: auto;
|
169 |
+
vertical-align: top;
|
170 |
+
}
|
171 |
+
|
172 |
+
@media print {
|
173 |
+
* {
|
174 |
+
color: #000 !important;
|
175 |
+
text-shadow: none !important;
|
176 |
+
background: transparent !important;
|
177 |
+
box-shadow: none !important;
|
178 |
+
}
|
179 |
+
a,
|
180 |
+
a:visited {
|
181 |
+
text-decoration: underline;
|
182 |
+
}
|
183 |
+
a[href]:after {
|
184 |
+
content: " (" attr(href) ")";
|
185 |
+
}
|
186 |
+
abbr[title]:after {
|
187 |
+
content: " (" attr(title) ")";
|
188 |
+
}
|
189 |
+
.ir a:after,
|
190 |
+
a[href^="javascript:"]:after,
|
191 |
+
a[href^="#"]:after {
|
192 |
+
content: "";
|
193 |
+
}
|
194 |
+
pre,
|
195 |
+
blockquote {
|
196 |
+
border: 1px solid #999;
|
197 |
+
page-break-inside: avoid;
|
198 |
+
}
|
199 |
+
thead {
|
200 |
+
display: table-header-group;
|
201 |
+
}
|
202 |
+
tr,
|
203 |
+
img {
|
204 |
+
page-break-inside: avoid;
|
205 |
+
}
|
206 |
+
img {
|
207 |
+
max-width: 100% !important;
|
208 |
+
}
|
209 |
+
@page {
|
210 |
+
margin: 0.5cm;
|
211 |
+
}
|
212 |
+
p,
|
213 |
+
h2,
|
214 |
+
h3 {
|
215 |
+
orphans: 3;
|
216 |
+
widows: 3;
|
217 |
+
}
|
218 |
+
h2,
|
219 |
+
h3 {
|
220 |
+
page-break-after: avoid;
|
221 |
+
}
|
222 |
+
}
|
223 |
+
|
224 |
+
body {
|
225 |
+
margin: 0;
|
226 |
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
227 |
+
font-size: 14px;
|
228 |
+
line-height: 20px;
|
229 |
+
color: #333333;
|
230 |
+
background-color: #ffffff;
|
231 |
+
}
|
232 |
+
|
233 |
+
a {
|
234 |
+
color: #0088cc;
|
235 |
+
text-decoration: none;
|
236 |
+
}
|
237 |
+
|
238 |
+
a:hover,
|
239 |
+
a:focus {
|
240 |
+
color: #005580;
|
241 |
+
text-decoration: underline;
|
242 |
+
}
|
243 |
+
|
244 |
+
.img-rounded {
|
245 |
+
-webkit-border-radius: 6px;
|
246 |
+
-moz-border-radius: 6px;
|
247 |
+
border-radius: 6px;
|
248 |
+
}
|
249 |
+
|
250 |
+
.img-polaroid {
|
251 |
+
padding: 4px;
|
252 |
+
background-color: #fff;
|
253 |
+
border: 1px solid #ccc;
|
254 |
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
255 |
+
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
256 |
+
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
257 |
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
258 |
+
}
|
259 |
+
|
260 |
+
.img-circle {
|
261 |
+
-webkit-border-radius: 500px;
|
262 |
+
-moz-border-radius: 500px;
|
263 |
+
border-radius: 500px;
|
264 |
+
}
|
265 |
+
|
266 |
+
.row {
|
267 |
+
margin-left: -20px;
|
268 |
+
*zoom: 1;
|
269 |
+
}
|
270 |
+
|
271 |
+
.row:before,
|
272 |
+
.row:after {
|
273 |
+
display: table;
|
274 |
+
line-height: 0;
|
275 |
+
content: "";
|
276 |
+
}
|
277 |
+
|
278 |
+
.row:after {
|
279 |
+
clear: both;
|
280 |
+
}
|
281 |
+
|
282 |
+
[class*="span"] {
|
283 |
+
float: left;
|
284 |
+
min-height: 1px;
|
285 |
+
margin-left: 20px;
|
286 |
+
}
|
287 |
+
|
288 |
+
.container,
|
289 |
+
.navbar-static-top .container,
|
290 |
+
.navbar-fixed-top .container,
|
291 |
+
.navbar-fixed-bottom .container {
|
292 |
+
width: 940px;
|
293 |
+
}
|
294 |
+
|
295 |
+
.span12 {
|
296 |
+
width: 940px;
|
297 |
+
}
|
298 |
+
|
299 |
+
.span11 {
|
300 |
+
width: 860px;
|
301 |
+
}
|
302 |
+
|
303 |
+
.span10 {
|
304 |
+
width: 780px;
|
305 |
+
}
|
306 |
+
|
307 |
+
.span9 {
|
308 |
+
width: 700px;
|
309 |
+
}
|
310 |
+
|
311 |
+
.span8 {
|
312 |
+
width: 620px;
|
313 |
+
}
|
314 |
+
|
315 |
+
.span7 {
|
316 |
+
width: 540px;
|
317 |
+
}
|
318 |
+
|
319 |
+
.span6 {
|
320 |
+
width: 460px;
|
321 |
+
}
|
322 |
+
|
323 |
+
.span5 {
|
324 |
+
width: 380px;
|
325 |
+
}
|
326 |
+
|
327 |
+
.span4 {
|
328 |
+
width: 300px;
|
329 |
+
}
|
330 |
+
|
331 |
+
.span3 {
|
332 |
+
width: 220px;
|
333 |
+
}
|
334 |
+
|
335 |
+
.span2 {
|
336 |
+
width: 140px;
|
337 |
+
}
|
338 |
+
|
339 |
+
.span1 {
|
340 |
+
width: 60px;
|
341 |
+
}
|
342 |
+
|
343 |
+
.offset12 {
|
344 |
+
margin-left: 980px;
|
345 |
+
}
|
346 |
+
|
347 |
+
.offset11 {
|
348 |
+
margin-left: 900px;
|
349 |
+
}
|
350 |
+
|
351 |
+
.offset10 {
|
352 |
+
margin-left: 820px;
|
353 |
+
}
|
354 |
+
|
355 |
+
.offset9 {
|
356 |
+
margin-left: 740px;
|
357 |
+
}
|
358 |
+
|
359 |
+
.offset8 {
|
360 |
+
margin-left: 660px;
|
361 |
+
}
|
362 |
+
|
363 |
+
.offset7 {
|
364 |
+
margin-left: 580px;
|
365 |
+
}
|
366 |
+
|
367 |
+
.offset6 {
|
368 |
+
margin-left: 500px;
|
369 |
+
}
|
370 |
+
|
371 |
+
.offset5 {
|
372 |
+
margin-left: 420px;
|
373 |
+
}
|
374 |
+
|
375 |
+
.offset4 {
|
376 |
+
margin-left: 340px;
|
377 |
+
}
|
378 |
+
|
379 |
+
.offset3 {
|
380 |
+
margin-left: 260px;
|
381 |
+
}
|
382 |
+
|
383 |
+
.offset2 {
|
384 |
+
margin-left: 180px;
|
385 |
+
}
|
386 |
+
|
387 |
+
.offset1 {
|
388 |
+
margin-left: 100px;
|
389 |
+
}
|
390 |
+
|
391 |
+
.row-fluid {
|
392 |
+
width: 100%;
|
393 |
+
*zoom: 1;
|
394 |
+
}
|
395 |
+
|
396 |
+
.row-fluid:before,
|
397 |
+
.row-fluid:after {
|
398 |
+
display: table;
|
399 |
+
line-height: 0;
|
400 |
+
content: "";
|
401 |
+
}
|
402 |
+
|
403 |
+
.row-fluid:after {
|
404 |
+
clear: both;
|
405 |
+
}
|
406 |
+
|
407 |
+
.row-fluid [class*="span"] {
|
408 |
+
display: block;
|
409 |
+
float: left;
|
410 |
+
width: 100%;
|
411 |
+
min-height: 30px;
|
412 |
+
margin-left: 2.127659574468085%;
|
413 |
+
*margin-left: 2.074468085106383%;
|
414 |
+
-webkit-box-sizing: border-box;
|
415 |
+
-moz-box-sizing: border-box;
|
416 |
+
box-sizing: border-box;
|
417 |
+
}
|
418 |
+
|
419 |
+
.row-fluid [class*="span"]:first-child {
|
420 |
+
margin-left: 0;
|
421 |
+
}
|
422 |
+
|
423 |
+
.row-fluid .controls-row [class*="span"] + [class*="span"] {
|
424 |
+
margin-left: 2.127659574468085%;
|
425 |
+
}
|
426 |
+
|
427 |
+
.row-fluid .span12 {
|
428 |
+
width: 100%;
|
429 |
+
*width: 99.94680851063829%;
|
430 |
+
}
|
431 |
+
|
432 |
+
.row-fluid .span11 {
|
433 |
+
width: 91.48936170212765%;
|
434 |
+
*width: 91.43617021276594%;
|
435 |
+
}
|
436 |
+
|
437 |
+
.row-fluid .span10 {
|
438 |
+
width: 82.97872340425532%;
|
439 |
+
*width: 82.92553191489361%;
|
440 |
+
}
|
441 |
+
|
442 |
+
.row-fluid .span9 {
|
443 |
+
width: 74.46808510638297%;
|
444 |
+
*width: 74.41489361702126%;
|
445 |
+
}
|
446 |
+
|
447 |
+
.row-fluid .span8 {
|
448 |
+
width: 65.95744680851064%;
|
449 |
+
*width: 65.90425531914893%;
|
450 |
+
}
|
451 |
+
|
452 |
+
.row-fluid .span7 {
|
453 |
+
width: 57.44680851063829%;
|
454 |
+
*width: 57.39361702127659%;
|
455 |
+
}
|
456 |
+
|
457 |
+
.row-fluid .span6 {
|
458 |
+
width: 48.93617021276595%;
|
459 |
+
*width: 48.88297872340425%;
|
460 |
+
}
|
461 |
+
|
462 |
+
.row-fluid .span5 {
|
463 |
+
width: 40.42553191489362%;
|
464 |
+
*width: 40.37234042553192%;
|
465 |
+
}
|
466 |
+
|
467 |
+
.row-fluid .span4 {
|
468 |
+
width: 31.914893617021278%;
|
469 |
+
*width: 31.861702127659576%;
|
470 |
+
}
|
471 |
+
|
472 |
+
.row-fluid .span3 {
|
473 |
+
width: 23.404255319148934%;
|
474 |
+
*width: 23.351063829787233%;
|
475 |
+
}
|
476 |
+
|
477 |
+
.row-fluid .span2 {
|
478 |
+
width: 14.893617021276595%;
|
479 |
+
*width: 14.840425531914894%;
|
480 |
+
}
|
481 |
+
|
482 |
+
.row-fluid .span1 {
|
483 |
+
width: 6.382978723404255%;
|
484 |
+
*width: 6.329787234042553%;
|
485 |
+
}
|
486 |
+
|
487 |
+
.row-fluid .offset12 {
|
488 |
+
margin-left: 104.25531914893617%;
|
489 |
+
*margin-left: 104.14893617021275%;
|
490 |
+
}
|
491 |
+
|
492 |
+
.row-fluid .offset12:first-child {
|
493 |
+
margin-left: 102.12765957446808%;
|
494 |
+
*margin-left: 102.02127659574467%;
|
495 |
+
}
|
496 |
+
|
497 |
+
.row-fluid .offset11 {
|
498 |
+
margin-left: 95.74468085106382%;
|
499 |
+
*margin-left: 95.6382978723404%;
|
500 |
+
}
|
501 |
+
|
502 |
+
.row-fluid .offset11:first-child {
|
503 |
+
margin-left: 93.61702127659574%;
|
504 |
+
*margin-left: 93.51063829787232%;
|
505 |
+
}
|
506 |
+
|
507 |
+
.row-fluid .offset10 {
|
508 |
+
margin-left: 87.23404255319149%;
|
509 |
+
*margin-left: 87.12765957446807%;
|
510 |
+
}
|
511 |
+
|
512 |
+
.row-fluid .offset10:first-child {
|
513 |
+
margin-left: 85.1063829787234%;
|
514 |
+
*margin-left: 84.99999999999999%;
|
515 |
+
}
|
516 |
+
|
517 |
+
.row-fluid .offset9 {
|
518 |
+
margin-left: 78.72340425531914%;
|
519 |
+
*margin-left: 78.61702127659572%;
|
520 |
+
}
|
521 |
+
|
522 |
+
.row-fluid .offset9:first-child {
|
523 |
+
margin-left: 76.59574468085106%;
|
524 |
+
*margin-left: 76.48936170212764%;
|
525 |
+
}
|
526 |
+
|
527 |
+
.row-fluid .offset8 {
|
528 |
+
margin-left: 70.2127659574468%;
|
529 |
+
*margin-left: 70.10638297872339%;
|
530 |
+
}
|
531 |
+
|
532 |
+
.row-fluid .offset8:first-child {
|
533 |
+
margin-left: 68.08510638297872%;
|
534 |
+
*margin-left: 67.9787234042553%;
|
535 |
+
}
|
536 |
+
|
537 |
+
.row-fluid .offset7 {
|
538 |
+
margin-left: 61.70212765957446%;
|
539 |
+
*margin-left: 61.59574468085106%;
|
540 |
+
}
|
541 |
+
|
542 |
+
.row-fluid .offset7:first-child {
|
543 |
+
margin-left: 59.574468085106375%;
|
544 |
+
*margin-left: 59.46808510638297%;
|
545 |
+
}
|
546 |
+
|
547 |
+
.row-fluid .offset6 {
|
548 |
+
margin-left: 53.191489361702125%;
|
549 |
+
*margin-left: 53.085106382978715%;
|
550 |
+
}
|
551 |
+
|
552 |
+
.row-fluid .offset6:first-child {
|
553 |
+
margin-left: 51.063829787234035%;
|
554 |
+
*margin-left: 50.95744680851063%;
|
555 |
+
}
|
556 |
+
|
557 |
+
.row-fluid .offset5 {
|
558 |
+
margin-left: 44.68085106382979%;
|
559 |
+
*margin-left: 44.57446808510638%;
|
560 |
+
}
|
561 |
+
|
562 |
+
.row-fluid .offset5:first-child {
|
563 |
+
margin-left: 42.5531914893617%;
|
564 |
+
*margin-left: 42.4468085106383%;
|
565 |
+
}
|
566 |
+
|
567 |
+
.row-fluid .offset4 {
|
568 |
+
margin-left: 36.170212765957444%;
|
569 |
+
*margin-left: 36.06382978723405%;
|
570 |
+
}
|
571 |
+
|
572 |
+
.row-fluid .offset4:first-child {
|
573 |
+
margin-left: 34.04255319148936%;
|
574 |
+
*margin-left: 33.93617021276596%;
|
575 |
+
}
|
576 |
+
|
577 |
+
.row-fluid .offset3 {
|
578 |
+
margin-left: 27.659574468085104%;
|
579 |
+
*margin-left: 27.5531914893617%;
|
580 |
+
}
|
581 |
+
|
582 |
+
.row-fluid .offset3:first-child {
|
583 |
+
margin-left: 25.53191489361702%;
|
584 |
+
*margin-left: 25.425531914893618%;
|
585 |
+
}
|
586 |
+
|
587 |
+
.row-fluid .offset2 {
|
588 |
+
margin-left: 19.148936170212764%;
|
589 |
+
*margin-left: 19.04255319148936%;
|
590 |
+
}
|
591 |
+
|
592 |
+
.row-fluid .offset2:first-child {
|
593 |
+
margin-left: 17.02127659574468%;
|
594 |
+
*margin-left: 16.914893617021278%;
|
595 |
+
}
|
596 |
+
|
597 |
+
.row-fluid .offset1 {
|
598 |
+
margin-left: 10.638297872340425%;
|
599 |
+
*margin-left: 10.53191489361702%;
|
600 |
+
}
|
601 |
+
|
602 |
+
.row-fluid .offset1:first-child {
|
603 |
+
margin-left: 8.51063829787234%;
|
604 |
+
*margin-left: 8.404255319148938%;
|
605 |
+
}
|
606 |
+
|
607 |
+
[class*="span"].hide,
|
608 |
+
.row-fluid [class*="span"].hide {
|
609 |
+
display: none;
|
610 |
+
}
|
611 |
+
|
612 |
+
[class*="span"].pull-right,
|
613 |
+
.row-fluid [class*="span"].pull-right {
|
614 |
+
float: right;
|
615 |
+
}
|
616 |
+
|
617 |
+
.container {
|
618 |
+
margin-right: auto;
|
619 |
+
margin-left: auto;
|
620 |
+
*zoom: 1;
|
621 |
+
}
|
622 |
+
|
623 |
+
.container:before,
|
624 |
+
.container:after {
|
625 |
+
display: table;
|
626 |
+
line-height: 0;
|
627 |
+
content: "";
|
628 |
+
}
|
629 |
+
|
630 |
+
.container:after {
|
631 |
+
clear: both;
|
632 |
+
}
|
633 |
+
|
634 |
+
.container-fluid {
|
635 |
+
padding-right: 20px;
|
636 |
+
padding-left: 20px;
|
637 |
+
*zoom: 1;
|
638 |
+
}
|
639 |
+
|
640 |
+
.container-fluid:before,
|
641 |
+
.container-fluid:after {
|
642 |
+
display: table;
|
643 |
+
line-height: 0;
|
644 |
+
content: "";
|
645 |
+
}
|
646 |
+
|
647 |
+
.container-fluid:after {
|
648 |
+
clear: both;
|
649 |
+
}
|
650 |
+
|
651 |
+
p {
|
652 |
+
margin: 0 0 10px;
|
653 |
+
}
|
654 |
+
|
655 |
+
.lead {
|
656 |
+
margin-bottom: 20px;
|
657 |
+
font-size: 21px;
|
658 |
+
font-weight: 200;
|
659 |
+
line-height: 30px;
|
660 |
+
}
|
661 |
+
|
662 |
+
small {
|
663 |
+
font-size: 85%;
|
664 |
+
}
|
665 |
+
|
666 |
+
strong {
|
667 |
+
font-weight: bold;
|
668 |
+
}
|
669 |
+
|
670 |
+
em {
|
671 |
+
font-style: italic;
|
672 |
+
}
|
673 |
+
|
674 |
+
cite {
|
675 |
+
font-style: normal;
|
676 |
+
}
|
677 |
+
|
678 |
+
.muted {
|
679 |
+
color: #999999;
|
680 |
+
}
|
681 |
+
|
682 |
+
a.muted:hover,
|
683 |
+
a.muted:focus {
|
684 |
+
color: #808080;
|
685 |
+
}
|
686 |
+
|
687 |
+
.text-warning {
|
688 |
+
color: #c09853;
|
689 |
+
}
|
690 |
+
|
691 |
+
a.text-warning:hover,
|
692 |
+
a.text-warning:focus {
|
693 |
+
color: #a47e3c;
|
694 |
+
}
|
695 |
+
|
696 |
+
.text-error {
|
697 |
+
color: #b94a48;
|
698 |
+
}
|
699 |
+
|
700 |
+
a.text-error:hover,
|
701 |
+
a.text-error:focus {
|
702 |
+
color: #953b39;
|
703 |
+
}
|
704 |
+
|
705 |
+
.text-info {
|
706 |
+
color: #3a87ad;
|
707 |
+
}
|
708 |
+
|
709 |
+
a.text-info:hover,
|
710 |
+
a.text-info:focus {
|
711 |
+
color: #2d6987;
|
712 |
+
}
|
713 |
+
|
714 |
+
.text-success {
|
715 |
+
color: #468847;
|
716 |
+
}
|
717 |
+
|
718 |
+
a.text-success:hover,
|
719 |
+
a.text-success:focus {
|
720 |
+
color: #356635;
|
721 |
+
}
|
722 |
+
|
723 |
+
.text-left {
|
724 |
+
text-align: left;
|
725 |
+
}
|
726 |
+
|
727 |
+
.text-right {
|
728 |
+
text-align: right;
|
729 |
+
}
|
730 |
+
|
731 |
+
.text-center {
|
732 |
+
text-align: center;
|
733 |
+
}
|
734 |
+
|
735 |
+
h1,
|
736 |
+
h2,
|
737 |
+
h3,
|
738 |
+
h4,
|
739 |
+
h5,
|
740 |
+
h6 {
|
741 |
+
margin: 10px 0;
|
742 |
+
font-family: inherit;
|
743 |
+
font-weight: bold;
|
744 |
+
line-height: 20px;
|
745 |
+
color: inherit;
|
746 |
+
text-rendering: optimizelegibility;
|
747 |
+
}
|
748 |
+
|
749 |
+
h1 small,
|
750 |
+
h2 small,
|
751 |
+
h3 small,
|
752 |
+
h4 small,
|
753 |
+
h5 small,
|
754 |
+
h6 small {
|
755 |
+
font-weight: normal;
|
756 |
+
line-height: 1;
|
757 |
+
color: #999999;
|
758 |
+
}
|
759 |
+
|
760 |
+
h1,
|
761 |
+
h2,
|
762 |
+
h3 {
|
763 |
+
line-height: 40px;
|
764 |
+
}
|
765 |
+
|
766 |
+
h1 {
|
767 |
+
font-size: 38.5px;
|
768 |
+
}
|
769 |
+
|
770 |
+
h2 {
|
771 |
+
font-size: 31.5px;
|
772 |
+
}
|
773 |
+
|
774 |
+
h3 {
|
775 |
+
font-size: 24.5px;
|
776 |
+
}
|
777 |
+
|
778 |
+
h4 {
|
779 |
+
font-size: 17.5px;
|
780 |
+
}
|
781 |
+
|
782 |
+
h5 {
|
783 |
+
font-size: 14px;
|
784 |
+
}
|
785 |
+
|
786 |
+
h6 {
|
787 |
+
font-size: 11.9px;
|
788 |
+
}
|
789 |
+
|
790 |
+
h1 small {
|
791 |
+
font-size: 24.5px;
|
792 |
+
}
|
793 |
+
|
794 |
+
h2 small {
|
795 |
+
font-size: 17.5px;
|
796 |
+
}
|
797 |
+
|
798 |
+
h3 small {
|
799 |
+
font-size: 14px;
|
800 |
+
}
|
801 |
+
|
802 |
+
h4 small {
|
803 |
+
font-size: 14px;
|
804 |
+
}
|
805 |
+
|
806 |
+
.page-header {
|
807 |
+
padding-bottom: 9px;
|
808 |
+
margin: 20px 0 30px;
|
809 |
+
border-bottom: 1px solid #eeeeee;
|
810 |
+
}
|
811 |
+
|
812 |
+
ul,
|
813 |
+
ol {
|
814 |
+
padding: 0;
|
815 |
+
margin: 0 0 10px 25px;
|
816 |
+
}
|
817 |
+
|
818 |
+
ul ul,
|
819 |
+
ul ol,
|
820 |
+
ol ol,
|
821 |
+
ol ul {
|
822 |
+
margin-bottom: 0;
|
823 |
+
}
|
824 |
+
|
825 |
+
li {
|
826 |
+
line-height: 20px;
|
827 |
+
}
|
828 |
+
|
829 |
+
ul.unstyled,
|
830 |
+
ol.unstyled {
|
831 |
+
margin-left: 0;
|
832 |
+
list-style: none;
|
833 |
+
}
|
834 |
+
|
835 |
+
ul.inline,
|
836 |
+
ol.inline {
|
837 |
+
margin-left: 0;
|
838 |
+
list-style: none;
|
839 |
+
}
|
840 |
+
|
841 |
+
ul.inline > li,
|
842 |
+
ol.inline > li {
|
843 |
+
display: inline-block;
|
844 |
+
*display: inline;
|
845 |
+
padding-right: 5px;
|
846 |
+
padding-left: 5px;
|
847 |
+
*zoom: 1;
|
848 |
+
}
|
849 |
+
|
850 |
+
dl {
|
851 |
+
margin-bottom: 20px;
|
852 |
+
}
|
853 |
+
|
854 |
+
dt,
|
855 |
+
dd {
|
856 |
+
line-height: 20px;
|
857 |
+
}
|
858 |
+
|
859 |
+
dt {
|
860 |
+
font-weight: bold;
|
861 |
+
}
|
862 |
+
|
863 |
+
dd {
|
864 |
+
margin-left: 10px;
|
865 |
+
}
|
866 |
+
|
867 |
+
.dl-horizontal {
|
868 |
+
*zoom: 1;
|
869 |
+
}
|
870 |
+
|
871 |
+
.dl-horizontal:before,
|
872 |
+
.dl-horizontal:after {
|
873 |
+
display: table;
|
874 |
+
line-height: 0;
|
875 |
+
content: "";
|
876 |
+
}
|
877 |
+
|
878 |
+
.dl-horizontal:after {
|
879 |
+
clear: both;
|
880 |
+
}
|
881 |
+
|
882 |
+
.dl-horizontal dt {
|
883 |
+
float: left;
|
884 |
+
width: 160px;
|
885 |
+
overflow: hidden;
|
886 |
+
clear: left;
|
887 |
+
text-align: right;
|
888 |
+
text-overflow: ellipsis;
|
889 |
+
white-space: nowrap;
|
890 |
+
}
|
891 |
+
|
892 |
+
.dl-horizontal dd {
|
893 |
+
margin-left: 180px;
|
894 |
+
}
|
895 |
+
|
896 |
+
hr {
|
897 |
+
margin: 20px 0;
|
898 |
+
border: 0;
|
899 |
+
border-top: 1px solid #eeeeee;
|
900 |
+
border-bottom: 1px solid #ffffff;
|
901 |
+
}
|
902 |
+
|
903 |
+
abbr[title],
|
904 |
+
abbr[data-original-title] {
|
905 |
+
cursor: help;
|
906 |
+
border-bottom: 1px dotted #999999;
|
907 |
+
}
|
908 |
+
|
909 |
+
abbr.initialism {
|
910 |
+
font-size: 90%;
|
911 |
+
text-transform: uppercase;
|
912 |
+
}
|
913 |
+
|
914 |
+
blockquote {
|
915 |
+
padding: 0 0 0 15px;
|
916 |
+
margin: 0 0 20px;
|
917 |
+
border-left: 5px solid #eeeeee;
|
918 |
+
}
|
919 |
+
|
920 |
+
blockquote p {
|
921 |
+
margin-bottom: 0;
|
922 |
+
font-size: 17.5px;
|
923 |
+
font-weight: 300;
|
924 |
+
line-height: 1.25;
|
925 |
+
}
|
926 |
+
|
927 |
+
blockquote small {
|
928 |
+
display: block;
|
929 |
+
line-height: 20px;
|
930 |
+
color: #999999;
|
931 |
+
}
|
932 |
+
|
933 |
+
blockquote small:before {
|
934 |
+
content: '\2014 \00A0';
|
935 |
+
}
|
936 |
+
|
937 |
+
blockquote.pull-right {
|
938 |
+
float: right;
|
939 |
+
padding-right: 15px;
|
940 |
+
padding-left: 0;
|
941 |
+
border-right: 5px solid #eeeeee;
|
942 |
+
border-left: 0;
|
943 |
+
}
|
944 |
+
|
945 |
+
blockquote.pull-right p,
|
946 |
+
blockquote.pull-right small {
|
947 |
+
text-align: right;
|
948 |
+
}
|
949 |
+
|
950 |
+
blockquote.pull-right small:before {
|
951 |
+
content: '';
|
952 |
+
}
|
953 |
+
|
954 |
+
blockquote.pull-right small:after {
|
955 |
+
content: '\00A0 \2014';
|
956 |
+
}
|
957 |
+
|
958 |
+
q:before,
|
959 |
+
q:after,
|
960 |
+
blockquote:before,
|
961 |
+
blockquote:after {
|
962 |
+
content: "";
|
963 |
+
}
|
964 |
+
|
965 |
+
address {
|
966 |
+
display: block;
|
967 |
+
margin-bottom: 20px;
|
968 |
+
font-style: normal;
|
969 |
+
line-height: 20px;
|
970 |
+
}
|
971 |
+
|
972 |
+
code,
|
973 |
+
pre {
|
974 |
+
padding: 0 3px 2px;
|
975 |
+
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
|
976 |
+
font-size: 12px;
|
977 |
+
color: #333333;
|
978 |
+
-webkit-border-radius: 3px;
|
979 |
+
-moz-border-radius: 3px;
|
980 |
+
border-radius: 3px;
|
981 |
+
}
|
982 |
+
|
983 |
+
code {
|
984 |
+
padding: 2px 4px;
|
985 |
+
color: #d14;
|
986 |
+
white-space: nowrap;
|
987 |
+
background-color: #f7f7f9;
|
988 |
+
border: 1px solid #e1e1e8;
|
989 |
+
}
|
990 |
+
|
991 |
+
pre {
|
992 |
+
display: block;
|
993 |
+
padding: 9.5px;
|
994 |
+
margin: 0 0 10px;
|
995 |
+
font-size: 13px;
|
996 |
+
line-height: 20px;
|
997 |
+
word-break: break-all;
|
998 |
+
word-wrap: break-word;
|
999 |
+
white-space: pre;
|
1000 |
+
white-space: pre-wrap;
|
1001 |
+
background-color: #f5f5f5;
|
1002 |
+
border: 1px solid #ccc;
|
1003 |
+
border: 1px solid rgba(0, 0, 0, 0.15);
|
1004 |
+
-webkit-border-radius: 4px;
|
1005 |
+
-moz-border-radius: 4px;
|
1006 |
+
border-radius: 4px;
|
1007 |
+
}
|
1008 |
+
|
1009 |
+
pre.prettyprint {
|
1010 |
+
margin-bottom: 20px;
|
1011 |
+
}
|
1012 |
+
|
1013 |
+
pre code {
|
1014 |
+
padding: 0;
|
1015 |
+
color: inherit;
|
1016 |
+
white-space: pre;
|
1017 |
+
white-space: pre-wrap;
|
1018 |
+
background-color: transparent;
|
1019 |
+
border: 0;
|
1020 |
+
}
|
1021 |
+
|
1022 |
+
.pre-scrollable {
|
1023 |
+
max-height: 340px;
|
1024 |
+
overflow-y: scroll;
|
1025 |
+
}
|
1026 |
+
|
1027 |
+
form {
|
1028 |
+
margin: 0 0 20px;
|
1029 |
+
}
|
1030 |
+
|
1031 |
+
fieldset {
|
1032 |
+
padding: 0;
|
1033 |
+
margin: 0;
|
1034 |
+
border: 0;
|
1035 |
+
}
|
1036 |
+
|
1037 |
+
legend {
|
1038 |
+
display: block;
|
1039 |
+
width: 100%;
|
1040 |
+
padding: 0;
|
1041 |
+
margin-bottom: 20px;
|
1042 |
+
font-size: 21px;
|
1043 |
+
line-height: 40px;
|
1044 |
+
color: #333333;
|
1045 |
+
border: 0;
|
1046 |
+
border-bottom: 1px solid #e5e5e5;
|
1047 |
+
}
|
1048 |
+
|
1049 |
+
legend small {
|
1050 |
+
font-size: 15px;
|
1051 |
+
color: #999999;
|
1052 |
+
}
|
1053 |
+
|
1054 |
+
label,
|
1055 |
+
input,
|
1056 |
+
button,
|
1057 |
+
select,
|
1058 |
+
textarea {
|
1059 |
+
font-size: 14px;
|
1060 |
+
font-weight: normal;
|
1061 |
+
line-height: 20px;
|
1062 |
+
}
|
1063 |
+
|
1064 |
+
input,
|
1065 |
+
button,
|
1066 |
+
select,
|
1067 |
+
textarea {
|
1068 |
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
1069 |
+
}
|
1070 |
+
|
1071 |
+
label {
|
1072 |
+
display: block;
|
1073 |
+
margin-bottom: 5px;
|
1074 |
+
}
|
1075 |
+
|
1076 |
+
select,
|
1077 |
+
textarea,
|
1078 |
+
input[type="text"],
|
1079 |
+
input[type="password"],
|
1080 |
+
input[type="datetime"],
|
1081 |
+
input[type="datetime-local"],
|
1082 |
+
input[type="date"],
|
1083 |
+
input[type="month"],
|
1084 |
+
input[type="time"],
|
1085 |
+
input[type="week"],
|
1086 |
+
input[type="number"],
|
1087 |
+
input[type="email"],
|
1088 |
+
input[type="url"],
|
1089 |
+
input[type="search"],
|
1090 |
+
input[type="tel"],
|
1091 |
+
input[type="color"],
|
1092 |
+
.uneditable-input {
|
1093 |
+
display: inline-block;
|
1094 |
+
height: 20px;
|
1095 |
+
padding: 4px 6px;
|
1096 |
+
margin-bottom: 10px;
|
1097 |
+
font-size: 14px;
|
1098 |
+
line-height: 20px;
|
1099 |
+
color: #555555;
|
1100 |
+
vertical-align: middle;
|
1101 |
+
-webkit-border-radius: 4px;
|
1102 |
+
-moz-border-radius: 4px;
|
1103 |
+
border-radius: 4px;
|
1104 |
+
}
|
1105 |
+
|
1106 |
+
input,
|
1107 |
+
textarea,
|
1108 |
+
.uneditable-input {
|
1109 |
+
width: 206px;
|
1110 |
+
}
|
1111 |
+
|
1112 |
+
textarea {
|
1113 |
+
height: auto;
|
1114 |
+
}
|
1115 |
+
|
1116 |
+
textarea,
|
1117 |
+
input[type="text"],
|
1118 |
+
input[type="password"],
|
1119 |
+
input[type="datetime"],
|
1120 |
+
input[type="datetime-local"],
|
1121 |
+
input[type="date"],
|
1122 |
+
input[type="month"],
|
1123 |
+
input[type="time"],
|
1124 |
+
input[type="week"],
|
1125 |
+
input[type="number"],
|
1126 |
+
input[type="email"],
|
1127 |
+
input[type="url"],
|
1128 |
+
input[type="search"],
|
1129 |
+
input[type="tel"],
|
1130 |
+
input[type="color"],
|
1131 |
+
.uneditable-input {
|
1132 |
+
background-color: #ffffff;
|
1133 |
+
border: 1px solid #cccccc;
|
1134 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
1135 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
1136 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
1137 |
+
-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
|
1138 |
+
-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
|
1139 |
+
-o-transition: border linear 0.2s, box-shadow linear 0.2s;
|
1140 |
+
transition: border linear 0.2s, box-shadow linear 0.2s;
|
1141 |
+
}
|
1142 |
+
|
1143 |
+
textarea:focus,
|
1144 |
+
input[type="text"]:focus,
|
1145 |
+
input[type="password"]:focus,
|
1146 |
+
input[type="datetime"]:focus,
|
1147 |
+
input[type="datetime-local"]:focus,
|
1148 |
+
input[type="date"]:focus,
|
1149 |
+
input[type="month"]:focus,
|
1150 |
+
input[type="time"]:focus,
|
1151 |
+
input[type="week"]:focus,
|
1152 |
+
input[type="number"]:focus,
|
1153 |
+
input[type="email"]:focus,
|
1154 |
+
input[type="url"]:focus,
|
1155 |
+
input[type="search"]:focus,
|
1156 |
+
input[type="tel"]:focus,
|
1157 |
+
input[type="color"]:focus,
|
1158 |
+
.uneditable-input:focus {
|
1159 |
+
border-color: rgba(82, 168, 236, 0.8);
|
1160 |
+
outline: 0;
|
1161 |
+
outline: thin dotted \9;
|
1162 |
+
/* IE6-9 */
|
1163 |
+
|
1164 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
|
1165 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
|
1166 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
|
1167 |
+
}
|
1168 |
+
|
1169 |
+
input[type="radio"],
|
1170 |
+
input[type="checkbox"] {
|
1171 |
+
margin: 4px 0 0;
|
1172 |
+
margin-top: 1px \9;
|
1173 |
+
*margin-top: 0;
|
1174 |
+
line-height: normal;
|
1175 |
+
}
|
1176 |
+
|
1177 |
+
input[type="file"],
|
1178 |
+
input[type="image"],
|
1179 |
+
input[type="submit"],
|
1180 |
+
input[type="reset"],
|
1181 |
+
input[type="button"],
|
1182 |
+
input[type="radio"],
|
1183 |
+
input[type="checkbox"] {
|
1184 |
+
width: auto;
|
1185 |
+
}
|
1186 |
+
|
1187 |
+
select,
|
1188 |
+
input[type="file"] {
|
1189 |
+
height: 30px;
|
1190 |
+
/* In IE7, the height of the select element cannot be changed by height, only font-size */
|
1191 |
+
|
1192 |
+
*margin-top: 4px;
|
1193 |
+
/* For IE7, add top margin to align select with labels */
|
1194 |
+
|
1195 |
+
line-height: 30px;
|
1196 |
+
}
|
1197 |
+
|
1198 |
+
select {
|
1199 |
+
width: 220px;
|
1200 |
+
background-color: #ffffff;
|
1201 |
+
border: 1px solid #cccccc;
|
1202 |
+
}
|
1203 |
+
|
1204 |
+
select[multiple],
|
1205 |
+
select[size] {
|
1206 |
+
height: auto;
|
1207 |
+
}
|
1208 |
+
|
1209 |
+
select:focus,
|
1210 |
+
input[type="file"]:focus,
|
1211 |
+
input[type="radio"]:focus,
|
1212 |
+
input[type="checkbox"]:focus {
|
1213 |
+
outline: thin dotted #333;
|
1214 |
+
outline: 5px auto -webkit-focus-ring-color;
|
1215 |
+
outline-offset: -2px;
|
1216 |
+
}
|
1217 |
+
|
1218 |
+
.uneditable-input,
|
1219 |
+
.uneditable-textarea {
|
1220 |
+
color: #999999;
|
1221 |
+
cursor: not-allowed;
|
1222 |
+
background-color: #fcfcfc;
|
1223 |
+
border-color: #cccccc;
|
1224 |
+
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
|
1225 |
+
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
|
1226 |
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
|
1227 |
+
}
|
1228 |
+
|
1229 |
+
.uneditable-input {
|
1230 |
+
overflow: hidden;
|
1231 |
+
white-space: nowrap;
|
1232 |
+
}
|
1233 |
+
|
1234 |
+
.uneditable-textarea {
|
1235 |
+
width: auto;
|
1236 |
+
height: auto;
|
1237 |
+
}
|
1238 |
+
|
1239 |
+
input:-moz-placeholder,
|
1240 |
+
textarea:-moz-placeholder {
|
1241 |
+
color: #999999;
|
1242 |
+
}
|
1243 |
+
|
1244 |
+
input:-ms-input-placeholder,
|
1245 |
+
textarea:-ms-input-placeholder {
|
1246 |
+
color: #999999;
|
1247 |
+
}
|
1248 |
+
|
1249 |
+
input::-webkit-input-placeholder,
|
1250 |
+
textarea::-webkit-input-placeholder {
|
1251 |
+
color: #999999;
|
1252 |
+
}
|
1253 |
+
|
1254 |
+
.radio,
|
1255 |
+
.checkbox {
|
1256 |
+
min-height: 20px;
|
1257 |
+
padding-left: 20px;
|
1258 |
+
}
|
1259 |
+
|
1260 |
+
.radio input[type="radio"],
|
1261 |
+
.checkbox input[type="checkbox"] {
|
1262 |
+
float: left;
|
1263 |
+
margin-left: -20px;
|
1264 |
+
}
|
1265 |
+
|
1266 |
+
.controls > .radio:first-child,
|
1267 |
+
.controls > .checkbox:first-child {
|
1268 |
+
padding-top: 5px;
|
1269 |
+
}
|
1270 |
+
|
1271 |
+
.radio.inline,
|
1272 |
+
.checkbox.inline {
|
1273 |
+
display: inline-block;
|
1274 |
+
padding-top: 5px;
|
1275 |
+
margin-bottom: 0;
|
1276 |
+
vertical-align: middle;
|
1277 |
+
}
|
1278 |
+
|
1279 |
+
.radio.inline + .radio.inline,
|
1280 |
+
.checkbox.inline + .checkbox.inline {
|
1281 |
+
margin-left: 10px;
|
1282 |
+
}
|
1283 |
+
|
1284 |
+
.input-mini {
|
1285 |
+
width: 60px;
|
1286 |
+
}
|
1287 |
+
|
1288 |
+
.input-small {
|
1289 |
+
width: 90px;
|
1290 |
+
}
|
1291 |
+
|
1292 |
+
.input-medium {
|
1293 |
+
width: 150px;
|
1294 |
+
}
|
1295 |
+
|
1296 |
+
.input-large {
|
1297 |
+
width: 210px;
|
1298 |
+
}
|
1299 |
+
|
1300 |
+
.input-xlarge {
|
1301 |
+
width: 270px;
|
1302 |
+
}
|
1303 |
+
|
1304 |
+
.input-xxlarge {
|
1305 |
+
width: 530px;
|
1306 |
+
}
|
1307 |
+
|
1308 |
+
input[class*="span"],
|
1309 |
+
select[class*="span"],
|
1310 |
+
textarea[class*="span"],
|
1311 |
+
.uneditable-input[class*="span"],
|
1312 |
+
.row-fluid input[class*="span"],
|
1313 |
+
.row-fluid select[class*="span"],
|
1314 |
+
.row-fluid textarea[class*="span"],
|
1315 |
+
.row-fluid .uneditable-input[class*="span"] {
|
1316 |
+
float: none;
|
1317 |
+
margin-left: 0;
|
1318 |
+
}
|
1319 |
+
|
1320 |
+
.input-append input[class*="span"],
|
1321 |
+
.input-append .uneditable-input[class*="span"],
|
1322 |
+
.input-prepend input[class*="span"],
|
1323 |
+
.input-prepend .uneditable-input[class*="span"],
|
1324 |
+
.row-fluid input[class*="span"],
|
1325 |
+
.row-fluid select[class*="span"],
|
1326 |
+
.row-fluid textarea[class*="span"],
|
1327 |
+
.row-fluid .uneditable-input[class*="span"],
|
1328 |
+
.row-fluid .input-prepend [class*="span"],
|
1329 |
+
.row-fluid .input-append [class*="span"] {
|
1330 |
+
display: inline-block;
|
1331 |
+
}
|
1332 |
+
|
1333 |
+
input,
|
1334 |
+
textarea,
|
1335 |
+
.uneditable-input {
|
1336 |
+
margin-left: 0;
|
1337 |
+
}
|
1338 |
+
|
1339 |
+
.controls-row [class*="span"] + [class*="span"] {
|
1340 |
+
margin-left: 20px;
|
1341 |
+
}
|
1342 |
+
|
1343 |
+
input.span12,
|
1344 |
+
textarea.span12,
|
1345 |
+
.uneditable-input.span12 {
|
1346 |
+
width: 926px;
|
1347 |
+
}
|
1348 |
+
|
1349 |
+
input.span11,
|
1350 |
+
textarea.span11,
|
1351 |
+
.uneditable-input.span11 {
|
1352 |
+
width: 846px;
|
1353 |
+
}
|
1354 |
+
|
1355 |
+
input.span10,
|
1356 |
+
textarea.span10,
|
1357 |
+
.uneditable-input.span10 {
|
1358 |
+
width: 766px;
|
1359 |
+
}
|
1360 |
+
|
1361 |
+
input.span9,
|
1362 |
+
textarea.span9,
|
1363 |
+
.uneditable-input.span9 {
|
1364 |
+
width: 686px;
|
1365 |
+
}
|
1366 |
+
|
1367 |
+
input.span8,
|
1368 |
+
textarea.span8,
|
1369 |
+
.uneditable-input.span8 {
|
1370 |
+
width: 606px;
|
1371 |
+
}
|
1372 |
+
|
1373 |
+
input.span7,
|
1374 |
+
textarea.span7,
|
1375 |
+
.uneditable-input.span7 {
|
1376 |
+
width: 526px;
|
1377 |
+
}
|
1378 |
+
|
1379 |
+
input.span6,
|
1380 |
+
textarea.span6,
|
1381 |
+
.uneditable-input.span6 {
|
1382 |
+
width: 446px;
|
1383 |
+
}
|
1384 |
+
|
1385 |
+
input.span5,
|
1386 |
+
textarea.span5,
|
1387 |
+
.uneditable-input.span5 {
|
1388 |
+
width: 366px;
|
1389 |
+
}
|
1390 |
+
|
1391 |
+
input.span4,
|
1392 |
+
textarea.span4,
|
1393 |
+
.uneditable-input.span4 {
|
1394 |
+
width: 286px;
|
1395 |
+
}
|
1396 |
+
|
1397 |
+
input.span3,
|
1398 |
+
textarea.span3,
|
1399 |
+
.uneditable-input.span3 {
|
1400 |
+
width: 206px;
|
1401 |
+
}
|
1402 |
+
|
1403 |
+
input.span2,
|
1404 |
+
textarea.span2,
|
1405 |
+
.uneditable-input.span2 {
|
1406 |
+
width: 126px;
|
1407 |
+
}
|
1408 |
+
|
1409 |
+
input.span1,
|
1410 |
+
textarea.span1,
|
1411 |
+
.uneditable-input.span1 {
|
1412 |
+
width: 46px;
|
1413 |
+
}
|
1414 |
+
|
1415 |
+
.controls-row {
|
1416 |
+
*zoom: 1;
|
1417 |
+
}
|
1418 |
+
|
1419 |
+
.controls-row:before,
|
1420 |
+
.controls-row:after {
|
1421 |
+
display: table;
|
1422 |
+
line-height: 0;
|
1423 |
+
content: "";
|
1424 |
+
}
|
1425 |
+
|
1426 |
+
.controls-row:after {
|
1427 |
+
clear: both;
|
1428 |
+
}
|
1429 |
+
|
1430 |
+
.controls-row [class*="span"],
|
1431 |
+
.row-fluid .controls-row [class*="span"] {
|
1432 |
+
float: left;
|
1433 |
+
}
|
1434 |
+
|
1435 |
+
.controls-row .checkbox[class*="span"],
|
1436 |
+
.controls-row .radio[class*="span"] {
|
1437 |
+
padding-top: 5px;
|
1438 |
+
}
|
1439 |
+
|
1440 |
+
input[disabled],
|
1441 |
+
select[disabled],
|
1442 |
+
textarea[disabled],
|
1443 |
+
input[readonly],
|
1444 |
+
select[readonly],
|
1445 |
+
textarea[readonly] {
|
1446 |
+
cursor: not-allowed;
|
1447 |
+
background-color: #eeeeee;
|
1448 |
+
}
|
1449 |
+
|
1450 |
+
input[type="radio"][disabled],
|
1451 |
+
input[type="checkbox"][disabled],
|
1452 |
+
input[type="radio"][readonly],
|
1453 |
+
input[type="checkbox"][readonly] {
|
1454 |
+
background-color: transparent;
|
1455 |
+
}
|
1456 |
+
|
1457 |
+
.control-group.warning .control-label,
|
1458 |
+
.control-group.warning .help-block,
|
1459 |
+
.control-group.warning .help-inline {
|
1460 |
+
color: #c09853;
|
1461 |
+
}
|
1462 |
+
|
1463 |
+
.control-group.warning .checkbox,
|
1464 |
+
.control-group.warning .radio,
|
1465 |
+
.control-group.warning input,
|
1466 |
+
.control-group.warning select,
|
1467 |
+
.control-group.warning textarea {
|
1468 |
+
color: #c09853;
|
1469 |
+
}
|
1470 |
+
|
1471 |
+
.control-group.warning input,
|
1472 |
+
.control-group.warning select,
|
1473 |
+
.control-group.warning textarea {
|
1474 |
+
border-color: #c09853;
|
1475 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
1476 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
1477 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
1478 |
+
}
|
1479 |
+
|
1480 |
+
.control-group.warning input:focus,
|
1481 |
+
.control-group.warning select:focus,
|
1482 |
+
.control-group.warning textarea:focus {
|
1483 |
+
border-color: #a47e3c;
|
1484 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e;
|
1485 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e;
|
1486 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e;
|
1487 |
+
}
|
1488 |
+
|
1489 |
+
.control-group.warning .input-prepend .add-on,
|
1490 |
+
.control-group.warning .input-append .add-on {
|
1491 |
+
color: #c09853;
|
1492 |
+
background-color: #fcf8e3;
|
1493 |
+
border-color: #c09853;
|
1494 |
+
}
|
1495 |
+
|
1496 |
+
.control-group.error .control-label,
|
1497 |
+
.control-group.error .help-block,
|
1498 |
+
.control-group.error .help-inline {
|
1499 |
+
color: #b94a48;
|
1500 |
+
}
|
1501 |
+
|
1502 |
+
.control-group.error .checkbox,
|
1503 |
+
.control-group.error .radio,
|
1504 |
+
.control-group.error input,
|
1505 |
+
.control-group.error select,
|
1506 |
+
.control-group.error textarea {
|
1507 |
+
color: #b94a48;
|
1508 |
+
}
|
1509 |
+
|
1510 |
+
.control-group.error input,
|
1511 |
+
.control-group.error select,
|
1512 |
+
.control-group.error textarea {
|
1513 |
+
border-color: #b94a48;
|
1514 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
1515 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
1516 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
1517 |
+
}
|
1518 |
+
|
1519 |
+
.control-group.error input:focus,
|
1520 |
+
.control-group.error select:focus,
|
1521 |
+
.control-group.error textarea:focus {
|
1522 |
+
border-color: #953b39;
|
1523 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;
|
1524 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;
|
1525 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;
|
1526 |
+
}
|
1527 |
+
|
1528 |
+
.control-group.error .input-prepend .add-on,
|
1529 |
+
.control-group.error .input-append .add-on {
|
1530 |
+
color: #b94a48;
|
1531 |
+
background-color: #f2dede;
|
1532 |
+
border-color: #b94a48;
|
1533 |
+
}
|
1534 |
+
|
1535 |
+
.control-group.success .control-label,
|
1536 |
+
.control-group.success .help-block,
|
1537 |
+
.control-group.success .help-inline {
|
1538 |
+
color: #468847;
|
1539 |
+
}
|
1540 |
+
|
1541 |
+
.control-group.success .checkbox,
|
1542 |
+
.control-group.success .radio,
|
1543 |
+
.control-group.success input,
|
1544 |
+
.control-group.success select,
|
1545 |
+
.control-group.success textarea {
|
1546 |
+
color: #468847;
|
1547 |
+
}
|
1548 |
+
|
1549 |
+
.control-group.success input,
|
1550 |
+
.control-group.success select,
|
1551 |
+
.control-group.success textarea {
|
1552 |
+
border-color: #468847;
|
1553 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
1554 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
1555 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
1556 |
+
}
|
1557 |
+
|
1558 |
+
.control-group.success input:focus,
|
1559 |
+
.control-group.success select:focus,
|
1560 |
+
.control-group.success textarea:focus {
|
1561 |
+
border-color: #356635;
|
1562 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b;
|
1563 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b;
|
1564 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b;
|
1565 |
+
}
|
1566 |
+
|
1567 |
+
.control-group.success .input-prepend .add-on,
|
1568 |
+
.control-group.success .input-append .add-on {
|
1569 |
+
color: #468847;
|
1570 |
+
background-color: #dff0d8;
|
1571 |
+
border-color: #468847;
|
1572 |
+
}
|
1573 |
+
|
1574 |
+
.control-group.info .control-label,
|
1575 |
+
.control-group.info .help-block,
|
1576 |
+
.control-group.info .help-inline {
|
1577 |
+
color: #3a87ad;
|
1578 |
+
}
|
1579 |
+
|
1580 |
+
.control-group.info .checkbox,
|
1581 |
+
.control-group.info .radio,
|
1582 |
+
.control-group.info input,
|
1583 |
+
.control-group.info select,
|
1584 |
+
.control-group.info textarea {
|
1585 |
+
color: #3a87ad;
|
1586 |
+
}
|
1587 |
+
|
1588 |
+
.control-group.info input,
|
1589 |
+
.control-group.info select,
|
1590 |
+
.control-group.info textarea {
|
1591 |
+
border-color: #3a87ad;
|
1592 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
1593 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
1594 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
1595 |
+
}
|
1596 |
+
|
1597 |
+
.control-group.info input:focus,
|
1598 |
+
.control-group.info select:focus,
|
1599 |
+
.control-group.info textarea:focus {
|
1600 |
+
border-color: #2d6987;
|
1601 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3;
|
1602 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3;
|
1603 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3;
|
1604 |
+
}
|
1605 |
+
|
1606 |
+
.control-group.info .input-prepend .add-on,
|
1607 |
+
.control-group.info .input-append .add-on {
|
1608 |
+
color: #3a87ad;
|
1609 |
+
background-color: #d9edf7;
|
1610 |
+
border-color: #3a87ad;
|
1611 |
+
}
|
1612 |
+
|
1613 |
+
input:focus:invalid,
|
1614 |
+
textarea:focus:invalid,
|
1615 |
+
select:focus:invalid {
|
1616 |
+
color: #b94a48;
|
1617 |
+
border-color: #ee5f5b;
|
1618 |
+
}
|
1619 |
+
|
1620 |
+
input:focus:invalid:focus,
|
1621 |
+
textarea:focus:invalid:focus,
|
1622 |
+
select:focus:invalid:focus {
|
1623 |
+
border-color: #e9322d;
|
1624 |
+
-webkit-box-shadow: 0 0 6px #f8b9b7;
|
1625 |
+
-moz-box-shadow: 0 0 6px #f8b9b7;
|
1626 |
+
box-shadow: 0 0 6px #f8b9b7;
|
1627 |
+
}
|
1628 |
+
|
1629 |
+
.form-actions {
|
1630 |
+
padding: 19px 20px 20px;
|
1631 |
+
margin-top: 20px;
|
1632 |
+
margin-bottom: 20px;
|
1633 |
+
background-color: #f5f5f5;
|
1634 |
+
border-top: 1px solid #e5e5e5;
|
1635 |
+
*zoom: 1;
|
1636 |
+
}
|
1637 |
+
|
1638 |
+
.form-actions:before,
|
1639 |
+
.form-actions:after {
|
1640 |
+
display: table;
|
1641 |
+
line-height: 0;
|
1642 |
+
content: "";
|
1643 |
+
}
|
1644 |
+
|
1645 |
+
.form-actions:after {
|
1646 |
+
clear: both;
|
1647 |
+
}
|
1648 |
+
|
1649 |
+
.help-block,
|
1650 |
+
.help-inline {
|
1651 |
+
color: #595959;
|
1652 |
+
}
|
1653 |
+
|
1654 |
+
.help-block {
|
1655 |
+
display: block;
|
1656 |
+
margin-bottom: 10px;
|
1657 |
+
}
|
1658 |
+
|
1659 |
+
.help-inline {
|
1660 |
+
display: inline-block;
|
1661 |
+
*display: inline;
|
1662 |
+
padding-left: 5px;
|
1663 |
+
vertical-align: middle;
|
1664 |
+
*zoom: 1;
|
1665 |
+
}
|
1666 |
+
|
1667 |
+
.input-append,
|
1668 |
+
.input-prepend {
|
1669 |
+
display: inline-block;
|
1670 |
+
margin-bottom: 10px;
|
1671 |
+
font-size: 0;
|
1672 |
+
white-space: nowrap;
|
1673 |
+
vertical-align: middle;
|
1674 |
+
}
|
1675 |
+
|
1676 |
+
.input-append input,
|
1677 |
+
.input-prepend input,
|
1678 |
+
.input-append select,
|
1679 |
+
.input-prepend select,
|
1680 |
+
.input-append .uneditable-input,
|
1681 |
+
.input-prepend .uneditable-input,
|
1682 |
+
.input-append .dropdown-menu,
|
1683 |
+
.input-prepend .dropdown-menu,
|
1684 |
+
.input-append .popover,
|
1685 |
+
.input-prepend .popover {
|
1686 |
+
font-size: 14px;
|
1687 |
+
}
|
1688 |
+
|
1689 |
+
.input-append input,
|
1690 |
+
.input-prepend input,
|
1691 |
+
.input-append select,
|
1692 |
+
.input-prepend select,
|
1693 |
+
.input-append .uneditable-input,
|
1694 |
+
.input-prepend .uneditable-input {
|
1695 |
+
position: relative;
|
1696 |
+
margin-bottom: 0;
|
1697 |
+
*margin-left: 0;
|
1698 |
+
vertical-align: top;
|
1699 |
+
-webkit-border-radius: 0 4px 4px 0;
|
1700 |
+
-moz-border-radius: 0 4px 4px 0;
|
1701 |
+
border-radius: 0 4px 4px 0;
|
1702 |
+
}
|
1703 |
+
|
1704 |
+
.input-append input:focus,
|
1705 |
+
.input-prepend input:focus,
|
1706 |
+
.input-append select:focus,
|
1707 |
+
.input-prepend select:focus,
|
1708 |
+
.input-append .uneditable-input:focus,
|
1709 |
+
.input-prepend .uneditable-input:focus {
|
1710 |
+
z-index: 2;
|
1711 |
+
}
|
1712 |
+
|
1713 |
+
.input-append .add-on,
|
1714 |
+
.input-prepend .add-on {
|
1715 |
+
display: inline-block;
|
1716 |
+
width: auto;
|
1717 |
+
height: 20px;
|
1718 |
+
min-width: 16px;
|
1719 |
+
padding: 4px 5px;
|
1720 |
+
font-size: 14px;
|
1721 |
+
font-weight: normal;
|
1722 |
+
line-height: 20px;
|
1723 |
+
text-align: center;
|
1724 |
+
text-shadow: 0 1px 0 #ffffff;
|
1725 |
+
background-color: #eeeeee;
|
1726 |
+
border: 1px solid #ccc;
|
1727 |
+
}
|
1728 |
+
|
1729 |
+
.input-append .add-on,
|
1730 |
+
.input-prepend .add-on,
|
1731 |
+
.input-append .btn,
|
1732 |
+
.input-prepend .btn,
|
1733 |
+
.input-append .btn-group > .dropdown-toggle,
|
1734 |
+
.input-prepend .btn-group > .dropdown-toggle {
|
1735 |
+
vertical-align: top;
|
1736 |
+
-webkit-border-radius: 0;
|
1737 |
+
-moz-border-radius: 0;
|
1738 |
+
border-radius: 0;
|
1739 |
+
}
|
1740 |
+
|
1741 |
+
.input-append .active,
|
1742 |
+
.input-prepend .active {
|
1743 |
+
background-color: #a9dba9;
|
1744 |
+
border-color: #46a546;
|
1745 |
+
}
|
1746 |
+
|
1747 |
+
.input-prepend .add-on,
|
1748 |
+
.input-prepend .btn {
|
1749 |
+
margin-right: -1px;
|
1750 |
+
}
|
1751 |
+
|
1752 |
+
.input-prepend .add-on:first-child,
|
1753 |
+
.input-prepend .btn:first-child {
|
1754 |
+
-webkit-border-radius: 4px 0 0 4px;
|
1755 |
+
-moz-border-radius: 4px 0 0 4px;
|
1756 |
+
border-radius: 4px 0 0 4px;
|
1757 |
+
}
|
1758 |
+
|
1759 |
+
.input-append input,
|
1760 |
+
.input-append select,
|
1761 |
+
.input-append .uneditable-input {
|
1762 |
+
-webkit-border-radius: 4px 0 0 4px;
|
1763 |
+
-moz-border-radius: 4px 0 0 4px;
|
1764 |
+
border-radius: 4px 0 0 4px;
|
1765 |
+
}
|
1766 |
+
|
1767 |
+
.input-append input + .btn-group .btn:last-child,
|
1768 |
+
.input-append select + .btn-group .btn:last-child,
|
1769 |
+
.input-append .uneditable-input + .btn-group .btn:last-child {
|
1770 |
+
-webkit-border-radius: 0 4px 4px 0;
|
1771 |
+
-moz-border-radius: 0 4px 4px 0;
|
1772 |
+
border-radius: 0 4px 4px 0;
|
1773 |
+
}
|
1774 |
+
|
1775 |
+
.input-append .add-on,
|
1776 |
+
.input-append .btn,
|
1777 |
+
.input-append .btn-group {
|
1778 |
+
margin-left: -1px;
|
1779 |
+
}
|
1780 |
+
|
1781 |
+
.input-append .add-on:last-child,
|
1782 |
+
.input-append .btn:last-child,
|
1783 |
+
.input-append .btn-group:last-child > .dropdown-toggle {
|
1784 |
+
-webkit-border-radius: 0 4px 4px 0;
|
1785 |
+
-moz-border-radius: 0 4px 4px 0;
|
1786 |
+
border-radius: 0 4px 4px 0;
|
1787 |
+
}
|
1788 |
+
|
1789 |
+
.input-prepend.input-append input,
|
1790 |
+
.input-prepend.input-append select,
|
1791 |
+
.input-prepend.input-append .uneditable-input {
|
1792 |
+
-webkit-border-radius: 0;
|
1793 |
+
-moz-border-radius: 0;
|
1794 |
+
border-radius: 0;
|
1795 |
+
}
|
1796 |
+
|
1797 |
+
.input-prepend.input-append input + .btn-group .btn,
|
1798 |
+
.input-prepend.input-append select + .btn-group .btn,
|
1799 |
+
.input-prepend.input-append .uneditable-input + .btn-group .btn {
|
1800 |
+
-webkit-border-radius: 0 4px 4px 0;
|
1801 |
+
-moz-border-radius: 0 4px 4px 0;
|
1802 |
+
border-radius: 0 4px 4px 0;
|
1803 |
+
}
|
1804 |
+
|
1805 |
+
.input-prepend.input-append .add-on:first-child,
|
1806 |
+
.input-prepend.input-append .btn:first-child {
|
1807 |
+
margin-right: -1px;
|
1808 |
+
-webkit-border-radius: 4px 0 0 4px;
|
1809 |
+
-moz-border-radius: 4px 0 0 4px;
|
1810 |
+
border-radius: 4px 0 0 4px;
|
1811 |
+
}
|
1812 |
+
|
1813 |
+
.input-prepend.input-append .add-on:last-child,
|
1814 |
+
.input-prepend.input-append .btn:last-child {
|
1815 |
+
margin-left: -1px;
|
1816 |
+
-webkit-border-radius: 0 4px 4px 0;
|
1817 |
+
-moz-border-radius: 0 4px 4px 0;
|
1818 |
+
border-radius: 0 4px 4px 0;
|
1819 |
+
}
|
1820 |
+
|
1821 |
+
.input-prepend.input-append .btn-group:first-child {
|
1822 |
+
margin-left: 0;
|
1823 |
+
}
|
1824 |
+
|
1825 |
+
input.search-query {
|
1826 |
+
padding-right: 14px;
|
1827 |
+
padding-right: 4px \9;
|
1828 |
+
padding-left: 14px;
|
1829 |
+
padding-left: 4px \9;
|
1830 |
+
/* IE7-8 doesn't have border-radius, so don't indent the padding */
|
1831 |
+
|
1832 |
+
margin-bottom: 0;
|
1833 |
+
-webkit-border-radius: 15px;
|
1834 |
+
-moz-border-radius: 15px;
|
1835 |
+
border-radius: 15px;
|
1836 |
+
}
|
1837 |
+
|
1838 |
+
/* Allow for input prepend/append in search forms */
|
1839 |
+
|
1840 |
+
.form-search .input-append .search-query,
|
1841 |
+
.form-search .input-prepend .search-query {
|
1842 |
+
-webkit-border-radius: 0;
|
1843 |
+
-moz-border-radius: 0;
|
1844 |
+
border-radius: 0;
|
1845 |
+
}
|
1846 |
+
|
1847 |
+
.form-search .input-append .search-query {
|
1848 |
+
-webkit-border-radius: 14px 0 0 14px;
|
1849 |
+
-moz-border-radius: 14px 0 0 14px;
|
1850 |
+
border-radius: 14px 0 0 14px;
|
1851 |
+
}
|
1852 |
+
|
1853 |
+
.form-search .input-append .btn {
|
1854 |
+
-webkit-border-radius: 0 14px 14px 0;
|
1855 |
+
-moz-border-radius: 0 14px 14px 0;
|
1856 |
+
border-radius: 0 14px 14px 0;
|
1857 |
+
}
|
1858 |
+
|
1859 |
+
.form-search .input-prepend .search-query {
|
1860 |
+
-webkit-border-radius: 0 14px 14px 0;
|
1861 |
+
-moz-border-radius: 0 14px 14px 0;
|
1862 |
+
border-radius: 0 14px 14px 0;
|
1863 |
+
}
|
1864 |
+
|
1865 |
+
.form-search .input-prepend .btn {
|
1866 |
+
-webkit-border-radius: 14px 0 0 14px;
|
1867 |
+
-moz-border-radius: 14px 0 0 14px;
|
1868 |
+
border-radius: 14px 0 0 14px;
|
1869 |
+
}
|
1870 |
+
|
1871 |
+
.form-search input,
|
1872 |
+
.form-inline input,
|
1873 |
+
.form-horizontal input,
|
1874 |
+
.form-search textarea,
|
1875 |
+
.form-inline textarea,
|
1876 |
+
.form-horizontal textarea,
|
1877 |
+
.form-search select,
|
1878 |
+
.form-inline select,
|
1879 |
+
.form-horizontal select,
|
1880 |
+
.form-search .help-inline,
|
1881 |
+
.form-inline .help-inline,
|
1882 |
+
.form-horizontal .help-inline,
|
1883 |
+
.form-search .uneditable-input,
|
1884 |
+
.form-inline .uneditable-input,
|
1885 |
+
.form-horizontal .uneditable-input,
|
1886 |
+
.form-search .input-prepend,
|
1887 |
+
.form-inline .input-prepend,
|
1888 |
+
.form-horizontal .input-prepend,
|
1889 |
+
.form-search .input-append,
|
1890 |
+
.form-inline .input-append,
|
1891 |
+
.form-horizontal .input-append {
|
1892 |
+
display: inline-block;
|
1893 |
+
*display: inline;
|
1894 |
+
margin-bottom: 0;
|
1895 |
+
vertical-align: middle;
|
1896 |
+
*zoom: 1;
|
1897 |
+
}
|
1898 |
+
|
1899 |
+
.form-search .hide,
|
1900 |
+
.form-inline .hide,
|
1901 |
+
.form-horizontal .hide {
|
1902 |
+
display: none;
|
1903 |
+
}
|
1904 |
+
|
1905 |
+
.form-search label,
|
1906 |
+
.form-inline label,
|
1907 |
+
.form-search .btn-group,
|
1908 |
+
.form-inline .btn-group {
|
1909 |
+
display: inline-block;
|
1910 |
+
}
|
1911 |
+
|
1912 |
+
.form-search .input-append,
|
1913 |
+
.form-inline .input-append,
|
1914 |
+
.form-search .input-prepend,
|
1915 |
+
.form-inline .input-prepend {
|
1916 |
+
margin-bottom: 0;
|
1917 |
+
}
|
1918 |
+
|
1919 |
+
.form-search .radio,
|
1920 |
+
.form-search .checkbox,
|
1921 |
+
.form-inline .radio,
|
1922 |
+
.form-inline .checkbox {
|
1923 |
+
padding-left: 0;
|
1924 |
+
margin-bottom: 0;
|
1925 |
+
vertical-align: middle;
|
1926 |
+
}
|
1927 |
+
|
1928 |
+
.form-search .radio input[type="radio"],
|
1929 |
+
.form-search .checkbox input[type="checkbox"],
|
1930 |
+
.form-inline .radio input[type="radio"],
|
1931 |
+
.form-inline .checkbox input[type="checkbox"] {
|
1932 |
+
float: left;
|
1933 |
+
margin-right: 3px;
|
1934 |
+
margin-left: 0;
|
1935 |
+
}
|
1936 |
+
|
1937 |
+
.control-group {
|
1938 |
+
margin-bottom: 10px;
|
1939 |
+
}
|
1940 |
+
|
1941 |
+
legend + .control-group {
|
1942 |
+
margin-top: 20px;
|
1943 |
+
-webkit-margin-top-collapse: separate;
|
1944 |
+
}
|
1945 |
+
|
1946 |
+
.form-horizontal .control-group {
|
1947 |
+
margin-bottom: 20px;
|
1948 |
+
*zoom: 1;
|
1949 |
+
}
|
1950 |
+
|
1951 |
+
.form-horizontal .control-group:before,
|
1952 |
+
.form-horizontal .control-group:after {
|
1953 |
+
display: table;
|
1954 |
+
line-height: 0;
|
1955 |
+
content: "";
|
1956 |
+
}
|
1957 |
+
|
1958 |
+
.form-horizontal .control-group:after {
|
1959 |
+
clear: both;
|
1960 |
+
}
|
1961 |
+
|
1962 |
+
.form-horizontal .control-label {
|
1963 |
+
float: left;
|
1964 |
+
width: 160px;
|
1965 |
+
padding-top: 5px;
|
1966 |
+
text-align: right;
|
1967 |
+
}
|
1968 |
+
|
1969 |
+
.form-horizontal .controls {
|
1970 |
+
*display: inline-block;
|
1971 |
+
*padding-left: 20px;
|
1972 |
+
margin-left: 180px;
|
1973 |
+
*margin-left: 0;
|
1974 |
+
}
|
1975 |
+
|
1976 |
+
.form-horizontal .controls:first-child {
|
1977 |
+
*padding-left: 180px;
|
1978 |
+
}
|
1979 |
+
|
1980 |
+
.form-horizontal .help-block {
|
1981 |
+
margin-bottom: 0;
|
1982 |
+
}
|
1983 |
+
|
1984 |
+
.form-horizontal input + .help-block,
|
1985 |
+
.form-horizontal select + .help-block,
|
1986 |
+
.form-horizontal textarea + .help-block,
|
1987 |
+
.form-horizontal .uneditable-input + .help-block,
|
1988 |
+
.form-horizontal .input-prepend + .help-block,
|
1989 |
+
.form-horizontal .input-append + .help-block {
|
1990 |
+
margin-top: 10px;
|
1991 |
+
}
|
1992 |
+
|
1993 |
+
.form-horizontal .form-actions {
|
1994 |
+
padding-left: 180px;
|
1995 |
+
}
|
1996 |
+
|
1997 |
+
table {
|
1998 |
+
max-width: 100%;
|
1999 |
+
background-color: transparent;
|
2000 |
+
border-collapse: collapse;
|
2001 |
+
border-spacing: 0;
|
2002 |
+
}
|
2003 |
+
|
2004 |
+
.table {
|
2005 |
+
width: 100%;
|
2006 |
+
margin-bottom: 20px;
|
2007 |
+
}
|
2008 |
+
|
2009 |
+
.table th,
|
2010 |
+
.table td {
|
2011 |
+
padding: 8px;
|
2012 |
+
line-height: 20px;
|
2013 |
+
text-align: left;
|
2014 |
+
vertical-align: top;
|
2015 |
+
border-top: 1px solid #dddddd;
|
2016 |
+
}
|
2017 |
+
|
2018 |
+
.table th {
|
2019 |
+
font-weight: bold;
|
2020 |
+
}
|
2021 |
+
|
2022 |
+
.table thead th {
|
2023 |
+
vertical-align: bottom;
|
2024 |
+
}
|
2025 |
+
|
2026 |
+
.table caption + thead tr:first-child th,
|
2027 |
+
.table caption + thead tr:first-child td,
|
2028 |
+
.table colgroup + thead tr:first-child th,
|
2029 |
+
.table colgroup + thead tr:first-child td,
|
2030 |
+
.table thead:first-child tr:first-child th,
|
2031 |
+
.table thead:first-child tr:first-child td {
|
2032 |
+
border-top: 0;
|
2033 |
+
}
|
2034 |
+
|
2035 |
+
.table tbody + tbody {
|
2036 |
+
border-top: 2px solid #dddddd;
|
2037 |
+
}
|
2038 |
+
|
2039 |
+
.table .table {
|
2040 |
+
background-color: #ffffff;
|
2041 |
+
}
|
2042 |
+
|
2043 |
+
.table-condensed th,
|
2044 |
+
.table-condensed td {
|
2045 |
+
padding: 4px 5px;
|
2046 |
+
}
|
2047 |
+
|
2048 |
+
.table-bordered {
|
2049 |
+
border: 1px solid #dddddd;
|
2050 |
+
border-collapse: separate;
|
2051 |
+
*border-collapse: collapse;
|
2052 |
+
border-left: 0;
|
2053 |
+
-webkit-border-radius: 4px;
|
2054 |
+
-moz-border-radius: 4px;
|
2055 |
+
border-radius: 4px;
|
2056 |
+
}
|
2057 |
+
|
2058 |
+
.table-bordered th,
|
2059 |
+
.table-bordered td {
|
2060 |
+
border-left: 1px solid #dddddd;
|
2061 |
+
}
|
2062 |
+
|
2063 |
+
.table-bordered caption + thead tr:first-child th,
|
2064 |
+
.table-bordered caption + tbody tr:first-child th,
|
2065 |
+
.table-bordered caption + tbody tr:first-child td,
|
2066 |
+
.table-bordered colgroup + thead tr:first-child th,
|
2067 |
+
.table-bordered colgroup + tbody tr:first-child th,
|
2068 |
+
.table-bordered colgroup + tbody tr:first-child td,
|
2069 |
+
.table-bordered thead:first-child tr:first-child th,
|
2070 |
+
.table-bordered tbody:first-child tr:first-child th,
|
2071 |
+
.table-bordered tbody:first-child tr:first-child td {
|
2072 |
+
border-top: 0;
|
2073 |
+
}
|
2074 |
+
|
2075 |
+
.table-bordered thead:first-child tr:first-child > th:first-child,
|
2076 |
+
.table-bordered tbody:first-child tr:first-child > td:first-child,
|
2077 |
+
.table-bordered tbody:first-child tr:first-child > th:first-child {
|
2078 |
+
-webkit-border-top-left-radius: 4px;
|
2079 |
+
border-top-left-radius: 4px;
|
2080 |
+
-moz-border-radius-topleft: 4px;
|
2081 |
+
}
|
2082 |
+
|
2083 |
+
.table-bordered thead:first-child tr:first-child > th:last-child,
|
2084 |
+
.table-bordered tbody:first-child tr:first-child > td:last-child,
|
2085 |
+
.table-bordered tbody:first-child tr:first-child > th:last-child {
|
2086 |
+
-webkit-border-top-right-radius: 4px;
|
2087 |
+
border-top-right-radius: 4px;
|
2088 |
+
-moz-border-radius-topright: 4px;
|
2089 |
+
}
|
2090 |
+
|
2091 |
+
.table-bordered thead:last-child tr:last-child > th:first-child,
|
2092 |
+
.table-bordered tbody:last-child tr:last-child > td:first-child,
|
2093 |
+
.table-bordered tbody:last-child tr:last-child > th:first-child,
|
2094 |
+
.table-bordered tfoot:last-child tr:last-child > td:first-child,
|
2095 |
+
.table-bordered tfoot:last-child tr:last-child > th:first-child {
|
2096 |
+
-webkit-border-bottom-left-radius: 4px;
|
2097 |
+
border-bottom-left-radius: 4px;
|
2098 |
+
-moz-border-radius-bottomleft: 4px;
|
2099 |
+
}
|
2100 |
+
|
2101 |
+
.table-bordered thead:last-child tr:last-child > th:last-child,
|
2102 |
+
.table-bordered tbody:last-child tr:last-child > td:last-child,
|
2103 |
+
.table-bordered tbody:last-child tr:last-child > th:last-child,
|
2104 |
+
.table-bordered tfoot:last-child tr:last-child > td:last-child,
|
2105 |
+
.table-bordered tfoot:last-child tr:last-child > th:last-child {
|
2106 |
+
-webkit-border-bottom-right-radius: 4px;
|
2107 |
+
border-bottom-right-radius: 4px;
|
2108 |
+
-moz-border-radius-bottomright: 4px;
|
2109 |
+
}
|
2110 |
+
|
2111 |
+
.table-bordered tfoot + tbody:last-child tr:last-child td:first-child {
|
2112 |
+
-webkit-border-bottom-left-radius: 0;
|
2113 |
+
border-bottom-left-radius: 0;
|
2114 |
+
-moz-border-radius-bottomleft: 0;
|
2115 |
+
}
|
2116 |
+
|
2117 |
+
.table-bordered tfoot + tbody:last-child tr:last-child td:last-child {
|
2118 |
+
-webkit-border-bottom-right-radius: 0;
|
2119 |
+
border-bottom-right-radius: 0;
|
2120 |
+
-moz-border-radius-bottomright: 0;
|
2121 |
+
}
|
2122 |
+
|
2123 |
+
.table-bordered caption + thead tr:first-child th:first-child,
|
2124 |
+
.table-bordered caption + tbody tr:first-child td:first-child,
|
2125 |
+
.table-bordered colgroup + thead tr:first-child th:first-child,
|
2126 |
+
.table-bordered colgroup + tbody tr:first-child td:first-child {
|
2127 |
+
-webkit-border-top-left-radius: 4px;
|
2128 |
+
border-top-left-radius: 4px;
|
2129 |
+
-moz-border-radius-topleft: 4px;
|
2130 |
+
}
|
2131 |
+
|
2132 |
+
.table-bordered caption + thead tr:first-child th:last-child,
|
2133 |
+
.table-bordered caption + tbody tr:first-child td:last-child,
|
2134 |
+
.table-bordered colgroup + thead tr:first-child th:last-child,
|
2135 |
+
.table-bordered colgroup + tbody tr:first-child td:last-child {
|
2136 |
+
-webkit-border-top-right-radius: 4px;
|
2137 |
+
border-top-right-radius: 4px;
|
2138 |
+
-moz-border-radius-topright: 4px;
|
2139 |
+
}
|
2140 |
+
|
2141 |
+
.table-striped tbody > tr:nth-child(odd) > td,
|
2142 |
+
.table-striped tbody > tr:nth-child(odd) > th {
|
2143 |
+
background-color: #f9f9f9;
|
2144 |
+
}
|
2145 |
+
|
2146 |
+
.table-hover tbody tr:hover > td,
|
2147 |
+
.table-hover tbody tr:hover > th {
|
2148 |
+
background-color: #f5f5f5;
|
2149 |
+
}
|
2150 |
+
|
2151 |
+
table td[class*="span"],
|
2152 |
+
table th[class*="span"],
|
2153 |
+
.row-fluid table td[class*="span"],
|
2154 |
+
.row-fluid table th[class*="span"] {
|
2155 |
+
display: table-cell;
|
2156 |
+
float: none;
|
2157 |
+
margin-left: 0;
|
2158 |
+
}
|
2159 |
+
|
2160 |
+
.table td.span1,
|
2161 |
+
.table th.span1 {
|
2162 |
+
float: none;
|
2163 |
+
width: 44px;
|
2164 |
+
margin-left: 0;
|
2165 |
+
}
|
2166 |
+
|
2167 |
+
.table td.span2,
|
2168 |
+
.table th.span2 {
|
2169 |
+
float: none;
|
2170 |
+
width: 124px;
|
2171 |
+
margin-left: 0;
|
2172 |
+
}
|
2173 |
+
|
2174 |
+
.table td.span3,
|
2175 |
+
.table th.span3 {
|
2176 |
+
float: none;
|
2177 |
+
width: 204px;
|
2178 |
+
margin-left: 0;
|
2179 |
+
}
|
2180 |
+
|
2181 |
+
.table td.span4,
|
2182 |
+
.table th.span4 {
|
2183 |
+
float: none;
|
2184 |
+
width: 284px;
|
2185 |
+
margin-left: 0;
|
2186 |
+
}
|
2187 |
+
|
2188 |
+
.table td.span5,
|
2189 |
+
.table th.span5 {
|
2190 |
+
float: none;
|
2191 |
+
width: 364px;
|
2192 |
+
margin-left: 0;
|
2193 |
+
}
|
2194 |
+
|
2195 |
+
.table td.span6,
|
2196 |
+
.table th.span6 {
|
2197 |
+
float: none;
|
2198 |
+
width: 444px;
|
2199 |
+
margin-left: 0;
|
2200 |
+
}
|
2201 |
+
|
2202 |
+
.table td.span7,
|
2203 |
+
.table th.span7 {
|
2204 |
+
float: none;
|
2205 |
+
width: 524px;
|
2206 |
+
margin-left: 0;
|
2207 |
+
}
|
2208 |
+
|
2209 |
+
.table td.span8,
|
2210 |
+
.table th.span8 {
|
2211 |
+
float: none;
|
2212 |
+
width: 604px;
|
2213 |
+
margin-left: 0;
|
2214 |
+
}
|
2215 |
+
|
2216 |
+
.table td.span9,
|
2217 |
+
.table th.span9 {
|
2218 |
+
float: none;
|
2219 |
+
width: 684px;
|
2220 |
+
margin-left: 0;
|
2221 |
+
}
|
2222 |
+
|
2223 |
+
.table td.span10,
|
2224 |
+
.table th.span10 {
|
2225 |
+
float: none;
|
2226 |
+
width: 764px;
|
2227 |
+
margin-left: 0;
|
2228 |
+
}
|
2229 |
+
|
2230 |
+
.table td.span11,
|
2231 |
+
.table th.span11 {
|
2232 |
+
float: none;
|
2233 |
+
width: 844px;
|
2234 |
+
margin-left: 0;
|
2235 |
+
}
|
2236 |
+
|
2237 |
+
.table td.span12,
|
2238 |
+
.table th.span12 {
|
2239 |
+
float: none;
|
2240 |
+
width: 924px;
|
2241 |
+
margin-left: 0;
|
2242 |
+
}
|
2243 |
+
|
2244 |
+
.table tbody tr.success > td {
|
2245 |
+
background-color: #dff0d8;
|
2246 |
+
}
|
2247 |
+
|
2248 |
+
.table tbody tr.error > td {
|
2249 |
+
background-color: #f2dede;
|
2250 |
+
}
|
2251 |
+
|
2252 |
+
.table tbody tr.warning > td {
|
2253 |
+
background-color: #fcf8e3;
|
2254 |
+
}
|
2255 |
+
|
2256 |
+
.table tbody tr.info > td {
|
2257 |
+
background-color: #d9edf7;
|
2258 |
+
}
|
2259 |
+
|
2260 |
+
.table-hover tbody tr.success:hover > td {
|
2261 |
+
background-color: #d0e9c6;
|
2262 |
+
}
|
2263 |
+
|
2264 |
+
.table-hover tbody tr.error:hover > td {
|
2265 |
+
background-color: #ebcccc;
|
2266 |
+
}
|
2267 |
+
|
2268 |
+
.table-hover tbody tr.warning:hover > td {
|
2269 |
+
background-color: #faf2cc;
|
2270 |
+
}
|
2271 |
+
|
2272 |
+
.table-hover tbody tr.info:hover > td {
|
2273 |
+
background-color: #c4e3f3;
|
2274 |
+
}
|
2275 |
+
|
2276 |
+
[class^="icon-"],
|
2277 |
+
[class*=" icon-"] {
|
2278 |
+
display: inline-block;
|
2279 |
+
width: 14px;
|
2280 |
+
height: 14px;
|
2281 |
+
margin-top: 1px;
|
2282 |
+
*margin-right: .3em;
|
2283 |
+
line-height: 14px;
|
2284 |
+
vertical-align: text-top;
|
2285 |
+
background-image: url("../img/glyphicons-halflings.png");
|
2286 |
+
background-position: 14px 14px;
|
2287 |
+
background-repeat: no-repeat;
|
2288 |
+
}
|
2289 |
+
|
2290 |
+
/* White icons with optional class, or on hover/focus/active states of certain elements */
|
2291 |
+
|
2292 |
+
.icon-white,
|
2293 |
+
.nav-pills > .active > a > [class^="icon-"],
|
2294 |
+
.nav-pills > .active > a > [class*=" icon-"],
|
2295 |
+
.nav-list > .active > a > [class^="icon-"],
|
2296 |
+
.nav-list > .active > a > [class*=" icon-"],
|
2297 |
+
.navbar-inverse .nav > .active > a > [class^="icon-"],
|
2298 |
+
.navbar-inverse .nav > .active > a > [class*=" icon-"],
|
2299 |
+
.dropdown-menu > li > a:hover > [class^="icon-"],
|
2300 |
+
.dropdown-menu > li > a:focus > [class^="icon-"],
|
2301 |
+
.dropdown-menu > li > a:hover > [class*=" icon-"],
|
2302 |
+
.dropdown-menu > li > a:focus > [class*=" icon-"],
|
2303 |
+
.dropdown-menu > .active > a > [class^="icon-"],
|
2304 |
+
.dropdown-menu > .active > a > [class*=" icon-"],
|
2305 |
+
.dropdown-submenu:hover > a > [class^="icon-"],
|
2306 |
+
.dropdown-submenu:focus > a > [class^="icon-"],
|
2307 |
+
.dropdown-submenu:hover > a > [class*=" icon-"],
|
2308 |
+
.dropdown-submenu:focus > a > [class*=" icon-"] {
|
2309 |
+
background-image: url("../img/glyphicons-halflings-white.png");
|
2310 |
+
}
|
2311 |
+
|
2312 |
+
.icon-glass {
|
2313 |
+
background-position: 0 0;
|
2314 |
+
}
|
2315 |
+
|
2316 |
+
.icon-music {
|
2317 |
+
background-position: -24px 0;
|
2318 |
+
}
|
2319 |
+
|
2320 |
+
.icon-search {
|
2321 |
+
background-position: -48px 0;
|
2322 |
+
}
|
2323 |
+
|
2324 |
+
.icon-envelope {
|
2325 |
+
background-position: -72px 0;
|
2326 |
+
}
|
2327 |
+
|
2328 |
+
.icon-heart {
|
2329 |
+
background-position: -96px 0;
|
2330 |
+
}
|
2331 |
+
|
2332 |
+
.icon-star {
|
2333 |
+
background-position: -120px 0;
|
2334 |
+
}
|
2335 |
+
|
2336 |
+
.icon-star-empty {
|
2337 |
+
background-position: -144px 0;
|
2338 |
+
}
|
2339 |
+
|
2340 |
+
.icon-user {
|
2341 |
+
background-position: -168px 0;
|
2342 |
+
}
|
2343 |
+
|
2344 |
+
.icon-film {
|
2345 |
+
background-position: -192px 0;
|
2346 |
+
}
|
2347 |
+
|
2348 |
+
.icon-th-large {
|
2349 |
+
background-position: -216px 0;
|
2350 |
+
}
|
2351 |
+
|
2352 |
+
.icon-th {
|
2353 |
+
background-position: -240px 0;
|
2354 |
+
}
|
2355 |
+
|
2356 |
+
.icon-th-list {
|
2357 |
+
background-position: -264px 0;
|
2358 |
+
}
|
2359 |
+
|
2360 |
+
.icon-ok {
|
2361 |
+
background-position: -288px 0;
|
2362 |
+
}
|
2363 |
+
|
2364 |
+
.icon-remove {
|
2365 |
+
background-position: -312px 0;
|
2366 |
+
}
|
2367 |
+
|
2368 |
+
.icon-zoom-in {
|
2369 |
+
background-position: -336px 0;
|
2370 |
+
}
|
2371 |
+
|
2372 |
+
.icon-zoom-out {
|
2373 |
+
background-position: -360px 0;
|
2374 |
+
}
|
2375 |
+
|
2376 |
+
.icon-off {
|
2377 |
+
background-position: -384px 0;
|
2378 |
+
}
|
2379 |
+
|
2380 |
+
.icon-signal {
|
2381 |
+
background-position: -408px 0;
|
2382 |
+
}
|
2383 |
+
|
2384 |
+
.icon-cog {
|
2385 |
+
background-position: -432px 0;
|
2386 |
+
}
|
2387 |
+
|
2388 |
+
.icon-trash {
|
2389 |
+
background-position: -456px 0;
|
2390 |
+
}
|
2391 |
+
|
2392 |
+
.icon-home {
|
2393 |
+
background-position: 0 -24px;
|
2394 |
+
}
|
2395 |
+
|
2396 |
+
.icon-file {
|
2397 |
+
background-position: -24px -24px;
|
2398 |
+
}
|
2399 |
+
|
2400 |
+
.icon-time {
|
2401 |
+
background-position: -48px -24px;
|
2402 |
+
}
|
2403 |
+
|
2404 |
+
.icon-road {
|
2405 |
+
background-position: -72px -24px;
|
2406 |
+
}
|
2407 |
+
|
2408 |
+
.icon-download-alt {
|
2409 |
+
background-position: -96px -24px;
|
2410 |
+
}
|
2411 |
+
|
2412 |
+
.icon-download {
|
2413 |
+
background-position: -120px -24px;
|
2414 |
+
}
|
2415 |
+
|
2416 |
+
.icon-upload {
|
2417 |
+
background-position: -144px -24px;
|
2418 |
+
}
|
2419 |
+
|
2420 |
+
.icon-inbox {
|
2421 |
+
background-position: -168px -24px;
|
2422 |
+
}
|
2423 |
+
|
2424 |
+
.icon-play-circle {
|
2425 |
+
background-position: -192px -24px;
|
2426 |
+
}
|
2427 |
+
|
2428 |
+
.icon-repeat {
|
2429 |
+
background-position: -216px -24px;
|
2430 |
+
}
|
2431 |
+
|
2432 |
+
.icon-refresh {
|
2433 |
+
background-position: -240px -24px;
|
2434 |
+
}
|
2435 |
+
|
2436 |
+
.icon-list-alt {
|
2437 |
+
background-position: -264px -24px;
|
2438 |
+
}
|
2439 |
+
|
2440 |
+
.icon-lock {
|
2441 |
+
background-position: -287px -24px;
|
2442 |
+
}
|
2443 |
+
|
2444 |
+
.icon-flag {
|
2445 |
+
background-position: -312px -24px;
|
2446 |
+
}
|
2447 |
+
|
2448 |
+
.icon-headphones {
|
2449 |
+
background-position: -336px -24px;
|
2450 |
+
}
|
2451 |
+
|
2452 |
+
.icon-volume-off {
|
2453 |
+
background-position: -360px -24px;
|
2454 |
+
}
|
2455 |
+
|
2456 |
+
.icon-volume-down {
|
2457 |
+
background-position: -384px -24px;
|
2458 |
+
}
|
2459 |
+
|
2460 |
+
.icon-volume-up {
|
2461 |
+
background-position: -408px -24px;
|
2462 |
+
}
|
2463 |
+
|
2464 |
+
.icon-qrcode {
|
2465 |
+
background-position: -432px -24px;
|
2466 |
+
}
|
2467 |
+
|
2468 |
+
.icon-barcode {
|
2469 |
+
background-position: -456px -24px;
|
2470 |
+
}
|
2471 |
+
|
2472 |
+
.icon-tag {
|
2473 |
+
background-position: 0 -48px;
|
2474 |
+
}
|
2475 |
+
|
2476 |
+
.icon-tags {
|
2477 |
+
background-position: -25px -48px;
|
2478 |
+
}
|
2479 |
+
|
2480 |
+
.icon-book {
|
2481 |
+
background-position: -48px -48px;
|
2482 |
+
}
|
2483 |
+
|
2484 |
+
.icon-bookmark {
|
2485 |
+
background-position: -72px -48px;
|
2486 |
+
}
|
2487 |
+
|
2488 |
+
.icon-print {
|
2489 |
+
background-position: -96px -48px;
|
2490 |
+
}
|
2491 |
+
|
2492 |
+
.icon-camera {
|
2493 |
+
background-position: -120px -48px;
|
2494 |
+
}
|
2495 |
+
|
2496 |
+
.icon-font {
|
2497 |
+
background-position: -144px -48px;
|
2498 |
+
}
|
2499 |
+
|
2500 |
+
.icon-bold {
|
2501 |
+
background-position: -167px -48px;
|
2502 |
+
}
|
2503 |
+
|
2504 |
+
.icon-italic {
|
2505 |
+
background-position: -192px -48px;
|
2506 |
+
}
|
2507 |
+
|
2508 |
+
.icon-text-height {
|
2509 |
+
background-position: -216px -48px;
|
2510 |
+
}
|
2511 |
+
|
2512 |
+
.icon-text-width {
|
2513 |
+
background-position: -240px -48px;
|
2514 |
+
}
|
2515 |
+
|
2516 |
+
.icon-align-left {
|
2517 |
+
background-position: -264px -48px;
|
2518 |
+
}
|
2519 |
+
|
2520 |
+
.icon-align-center {
|
2521 |
+
background-position: -288px -48px;
|
2522 |
+
}
|
2523 |
+
|
2524 |
+
.icon-align-right {
|
2525 |
+
background-position: -312px -48px;
|
2526 |
+
}
|
2527 |
+
|
2528 |
+
.icon-align-justify {
|
2529 |
+
background-position: -336px -48px;
|
2530 |
+
}
|
2531 |
+
|
2532 |
+
.icon-list {
|
2533 |
+
background-position: -360px -48px;
|
2534 |
+
}
|
2535 |
+
|
2536 |
+
.icon-indent-left {
|
2537 |
+
background-position: -384px -48px;
|
2538 |
+
}
|
2539 |
+
|
2540 |
+
.icon-indent-right {
|
2541 |
+
background-position: -408px -48px;
|
2542 |
+
}
|
2543 |
+
|
2544 |
+
.icon-facetime-video {
|
2545 |
+
background-position: -432px -48px;
|
2546 |
+
}
|
2547 |
+
|
2548 |
+
.icon-picture {
|
2549 |
+
background-position: -456px -48px;
|
2550 |
+
}
|
2551 |
+
|
2552 |
+
.icon-pencil {
|
2553 |
+
background-position: 0 -72px;
|
2554 |
+
}
|
2555 |
+
|
2556 |
+
.icon-map-marker {
|
2557 |
+
background-position: -24px -72px;
|
2558 |
+
}
|
2559 |
+
|
2560 |
+
.icon-adjust {
|
2561 |
+
background-position: -48px -72px;
|
2562 |
+
}
|
2563 |
+
|
2564 |
+
.icon-tint {
|
2565 |
+
background-position: -72px -72px;
|
2566 |
+
}
|
2567 |
+
|
2568 |
+
.icon-edit {
|
2569 |
+
background-position: -96px -72px;
|
2570 |
+
}
|
2571 |
+
|
2572 |
+
.icon-share {
|
2573 |
+
background-position: -120px -72px;
|
2574 |
+
}
|
2575 |
+
|
2576 |
+
.icon-check {
|
2577 |
+
background-position: -144px -72px;
|
2578 |
+
}
|
2579 |
+
|
2580 |
+
.icon-move {
|
2581 |
+
background-position: -168px -72px;
|
2582 |
+
}
|
2583 |
+
|
2584 |
+
.icon-step-backward {
|
2585 |
+
background-position: -192px -72px;
|
2586 |
+
}
|
2587 |
+
|
2588 |
+
.icon-fast-backward {
|
2589 |
+
background-position: -216px -72px;
|
2590 |
+
}
|
2591 |
+
|
2592 |
+
.icon-backward {
|
2593 |
+
background-position: -240px -72px;
|
2594 |
+
}
|
2595 |
+
|
2596 |
+
.icon-play {
|
2597 |
+
background-position: -264px -72px;
|
2598 |
+
}
|
2599 |
+
|
2600 |
+
.icon-pause {
|
2601 |
+
background-position: -288px -72px;
|
2602 |
+
}
|
2603 |
+
|
2604 |
+
.icon-stop {
|
2605 |
+
background-position: -312px -72px;
|
2606 |
+
}
|
2607 |
+
|
2608 |
+
.icon-forward {
|
2609 |
+
background-position: -336px -72px;
|
2610 |
+
}
|
2611 |
+
|
2612 |
+
.icon-fast-forward {
|
2613 |
+
background-position: -360px -72px;
|
2614 |
+
}
|
2615 |
+
|
2616 |
+
.icon-step-forward {
|
2617 |
+
background-position: -384px -72px;
|
2618 |
+
}
|
2619 |
+
|
2620 |
+
.icon-eject {
|
2621 |
+
background-position: -408px -72px;
|
2622 |
+
}
|
2623 |
+
|
2624 |
+
.icon-chevron-left {
|
2625 |
+
background-position: -432px -72px;
|
2626 |
+
}
|
2627 |
+
|
2628 |
+
.icon-chevron-right {
|
2629 |
+
background-position: -456px -72px;
|
2630 |
+
}
|
2631 |
+
|
2632 |
+
.icon-plus-sign {
|
2633 |
+
background-position: 0 -96px;
|
2634 |
+
}
|
2635 |
+
|
2636 |
+
.icon-minus-sign {
|
2637 |
+
background-position: -24px -96px;
|
2638 |
+
}
|
2639 |
+
|
2640 |
+
.icon-remove-sign {
|
2641 |
+
background-position: -48px -96px;
|
2642 |
+
}
|
2643 |
+
|
2644 |
+
.icon-ok-sign {
|
2645 |
+
background-position: -72px -96px;
|
2646 |
+
}
|
2647 |
+
|
2648 |
+
.icon-question-sign {
|
2649 |
+
background-position: -96px -96px;
|
2650 |
+
}
|
2651 |
+
|
2652 |
+
.icon-info-sign {
|
2653 |
+
background-position: -120px -96px;
|
2654 |
+
}
|
2655 |
+
|
2656 |
+
.icon-screenshot {
|
2657 |
+
background-position: -144px -96px;
|
2658 |
+
}
|
2659 |
+
|
2660 |
+
.icon-remove-circle {
|
2661 |
+
background-position: -168px -96px;
|
2662 |
+
}
|
2663 |
+
|
2664 |
+
.icon-ok-circle {
|
2665 |
+
background-position: -192px -96px;
|
2666 |
+
}
|
2667 |
+
|
2668 |
+
.icon-ban-circle {
|
2669 |
+
background-position: -216px -96px;
|
2670 |
+
}
|
2671 |
+
|
2672 |
+
.icon-arrow-left {
|
2673 |
+
background-position: -240px -96px;
|
2674 |
+
}
|
2675 |
+
|
2676 |
+
.icon-arrow-right {
|
2677 |
+
background-position: -264px -96px;
|
2678 |
+
}
|
2679 |
+
|
2680 |
+
.icon-arrow-up {
|
2681 |
+
background-position: -289px -96px;
|
2682 |
+
}
|
2683 |
+
|
2684 |
+
.icon-arrow-down {
|
2685 |
+
background-position: -312px -96px;
|
2686 |
+
}
|
2687 |
+
|
2688 |
+
.icon-share-alt {
|
2689 |
+
background-position: -336px -96px;
|
2690 |
+
}
|
2691 |
+
|
2692 |
+
.icon-resize-full {
|
2693 |
+
background-position: -360px -96px;
|
2694 |
+
}
|
2695 |
+
|
2696 |
+
.icon-resize-small {
|
2697 |
+
background-position: -384px -96px;
|
2698 |
+
}
|
2699 |
+
|
2700 |
+
.icon-plus {
|
2701 |
+
background-position: -408px -96px;
|
2702 |
+
}
|
2703 |
+
|
2704 |
+
.icon-minus {
|
2705 |
+
background-position: -433px -96px;
|
2706 |
+
}
|
2707 |
+
|
2708 |
+
.icon-asterisk {
|
2709 |
+
background-position: -456px -96px;
|
2710 |
+
}
|
2711 |
+
|
2712 |
+
.icon-exclamation-sign {
|
2713 |
+
background-position: 0 -120px;
|
2714 |
+
}
|
2715 |
+
|
2716 |
+
.icon-gift {
|
2717 |
+
background-position: -24px -120px;
|
2718 |
+
}
|
2719 |
+
|
2720 |
+
.icon-leaf {
|
2721 |
+
background-position: -48px -120px;
|
2722 |
+
}
|
2723 |
+
|
2724 |
+
.icon-fire {
|
2725 |
+
background-position: -72px -120px;
|
2726 |
+
}
|
2727 |
+
|
2728 |
+
.icon-eye-open {
|
2729 |
+
background-position: -96px -120px;
|
2730 |
+
}
|
2731 |
+
|
2732 |
+
.icon-eye-close {
|
2733 |
+
background-position: -120px -120px;
|
2734 |
+
}
|
2735 |
+
|
2736 |
+
.icon-warning-sign {
|
2737 |
+
background-position: -144px -120px;
|
2738 |
+
}
|
2739 |
+
|
2740 |
+
.icon-plane {
|
2741 |
+
background-position: -168px -120px;
|
2742 |
+
}
|
2743 |
+
|
2744 |
+
.icon-calendar {
|
2745 |
+
background-position: -192px -120px;
|
2746 |
+
}
|
2747 |
+
|
2748 |
+
.icon-random {
|
2749 |
+
width: 16px;
|
2750 |
+
background-position: -216px -120px;
|
2751 |
+
}
|
2752 |
+
|
2753 |
+
.icon-comment {
|
2754 |
+
background-position: -240px -120px;
|
2755 |
+
}
|
2756 |
+
|
2757 |
+
.icon-magnet {
|
2758 |
+
background-position: -264px -120px;
|
2759 |
+
}
|
2760 |
+
|
2761 |
+
.icon-chevron-up {
|
2762 |
+
background-position: -288px -120px;
|
2763 |
+
}
|
2764 |
+
|
2765 |
+
.icon-chevron-down {
|
2766 |
+
background-position: -313px -119px;
|
2767 |
+
}
|
2768 |
+
|
2769 |
+
.icon-retweet {
|
2770 |
+
background-position: -336px -120px;
|
2771 |
+
}
|
2772 |
+
|
2773 |
+
.icon-shopping-cart {
|
2774 |
+
background-position: -360px -120px;
|
2775 |
+
}
|
2776 |
+
|
2777 |
+
.icon-folder-close {
|
2778 |
+
width: 16px;
|
2779 |
+
background-position: -384px -120px;
|
2780 |
+
}
|
2781 |
+
|
2782 |
+
.icon-folder-open {
|
2783 |
+
width: 16px;
|
2784 |
+
background-position: -408px -120px;
|
2785 |
+
}
|
2786 |
+
|
2787 |
+
.icon-resize-vertical {
|
2788 |
+
background-position: -432px -119px;
|
2789 |
+
}
|
2790 |
+
|
2791 |
+
.icon-resize-horizontal {
|
2792 |
+
background-position: -456px -118px;
|
2793 |
+
}
|
2794 |
+
|
2795 |
+
.icon-hdd {
|
2796 |
+
background-position: 0 -144px;
|
2797 |
+
}
|
2798 |
+
|
2799 |
+
.icon-bullhorn {
|
2800 |
+
background-position: -24px -144px;
|
2801 |
+
}
|
2802 |
+
|
2803 |
+
.icon-bell {
|
2804 |
+
background-position: -48px -144px;
|
2805 |
+
}
|
2806 |
+
|
2807 |
+
.icon-certificate {
|
2808 |
+
background-position: -72px -144px;
|
2809 |
+
}
|
2810 |
+
|
2811 |
+
.icon-thumbs-up {
|
2812 |
+
background-position: -96px -144px;
|
2813 |
+
}
|
2814 |
+
|
2815 |
+
.icon-thumbs-down {
|
2816 |
+
background-position: -120px -144px;
|
2817 |
+
}
|
2818 |
+
|
2819 |
+
.icon-hand-right {
|
2820 |
+
background-position: -144px -144px;
|
2821 |
+
}
|
2822 |
+
|
2823 |
+
.icon-hand-left {
|
2824 |
+
background-position: -168px -144px;
|
2825 |
+
}
|
2826 |
+
|
2827 |
+
.icon-hand-up {
|
2828 |
+
background-position: -192px -144px;
|
2829 |
+
}
|
2830 |
+
|
2831 |
+
.icon-hand-down {
|
2832 |
+
background-position: -216px -144px;
|
2833 |
+
}
|
2834 |
+
|
2835 |
+
.icon-circle-arrow-right {
|
2836 |
+
background-position: -240px -144px;
|
2837 |
+
}
|
2838 |
+
|
2839 |
+
.icon-circle-arrow-left {
|
2840 |
+
background-position: -264px -144px;
|
2841 |
+
}
|
2842 |
+
|
2843 |
+
.icon-circle-arrow-up {
|
2844 |
+
background-position: -288px -144px;
|
2845 |
+
}
|
2846 |
+
|
2847 |
+
.icon-circle-arrow-down {
|
2848 |
+
background-position: -312px -144px;
|
2849 |
+
}
|
2850 |
+
|
2851 |
+
.icon-globe {
|
2852 |
+
background-position: -336px -144px;
|
2853 |
+
}
|
2854 |
+
|
2855 |
+
.icon-wrench {
|
2856 |
+
background-position: -360px -144px;
|
2857 |
+
}
|
2858 |
+
|
2859 |
+
.icon-tasks {
|
2860 |
+
background-position: -384px -144px;
|
2861 |
+
}
|
2862 |
+
|
2863 |
+
.icon-filter {
|
2864 |
+
background-position: -408px -144px;
|
2865 |
+
}
|
2866 |
+
|
2867 |
+
.icon-briefcase {
|
2868 |
+
background-position: -432px -144px;
|
2869 |
+
}
|
2870 |
+
|
2871 |
+
.icon-fullscreen {
|
2872 |
+
background-position: -456px -144px;
|
2873 |
+
}
|
2874 |
+
|
2875 |
+
.dropup,
|
2876 |
+
.dropdown {
|
2877 |
+
position: relative;
|
2878 |
+
}
|
2879 |
+
|
2880 |
+
.dropdown-toggle {
|
2881 |
+
*margin-bottom: -3px;
|
2882 |
+
}
|
2883 |
+
|
2884 |
+
.dropdown-toggle:active,
|
2885 |
+
.open .dropdown-toggle {
|
2886 |
+
outline: 0;
|
2887 |
+
}
|
2888 |
+
|
2889 |
+
.caret {
|
2890 |
+
display: inline-block;
|
2891 |
+
width: 0;
|
2892 |
+
height: 0;
|
2893 |
+
vertical-align: top;
|
2894 |
+
border-top: 4px solid #000000;
|
2895 |
+
border-right: 4px solid transparent;
|
2896 |
+
border-left: 4px solid transparent;
|
2897 |
+
content: "";
|
2898 |
+
}
|
2899 |
+
|
2900 |
+
.dropdown .caret {
|
2901 |
+
margin-top: 8px;
|
2902 |
+
margin-left: 2px;
|
2903 |
+
}
|
2904 |
+
|
2905 |
+
.dropdown-menu {
|
2906 |
+
position: absolute;
|
2907 |
+
top: 100%;
|
2908 |
+
left: 0;
|
2909 |
+
z-index: 1000;
|
2910 |
+
display: none;
|
2911 |
+
float: left;
|
2912 |
+
min-width: 160px;
|
2913 |
+
padding: 5px 0;
|
2914 |
+
margin: 2px 0 0;
|
2915 |
+
list-style: none;
|
2916 |
+
background-color: #ffffff;
|
2917 |
+
border: 1px solid #ccc;
|
2918 |
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
2919 |
+
*border-right-width: 2px;
|
2920 |
+
*border-bottom-width: 2px;
|
2921 |
+
-webkit-border-radius: 6px;
|
2922 |
+
-moz-border-radius: 6px;
|
2923 |
+
border-radius: 6px;
|
2924 |
+
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
2925 |
+
-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
2926 |
+
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
2927 |
+
-webkit-background-clip: padding-box;
|
2928 |
+
-moz-background-clip: padding;
|
2929 |
+
background-clip: padding-box;
|
2930 |
+
}
|
2931 |
+
|
2932 |
+
.dropdown-menu.pull-right {
|
2933 |
+
right: 0;
|
2934 |
+
left: auto;
|
2935 |
+
}
|
2936 |
+
|
2937 |
+
.dropdown-menu .divider {
|
2938 |
+
*width: 100%;
|
2939 |
+
height: 1px;
|
2940 |
+
margin: 9px 1px;
|
2941 |
+
*margin: -5px 0 5px;
|
2942 |
+
overflow: hidden;
|
2943 |
+
background-color: #e5e5e5;
|
2944 |
+
border-bottom: 1px solid #ffffff;
|
2945 |
+
}
|
2946 |
+
|
2947 |
+
.dropdown-menu > li > a {
|
2948 |
+
display: block;
|
2949 |
+
padding: 3px 20px;
|
2950 |
+
clear: both;
|
2951 |
+
font-weight: normal;
|
2952 |
+
line-height: 20px;
|
2953 |
+
color: #333333;
|
2954 |
+
white-space: nowrap;
|
2955 |
+
}
|
2956 |
+
|
2957 |
+
.dropdown-menu > li > a:hover,
|
2958 |
+
.dropdown-menu > li > a:focus,
|
2959 |
+
.dropdown-submenu:hover > a,
|
2960 |
+
.dropdown-submenu:focus > a {
|
2961 |
+
color: #ffffff;
|
2962 |
+
text-decoration: none;
|
2963 |
+
background-color: #0081c2;
|
2964 |
+
background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
|
2965 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
|
2966 |
+
background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
|
2967 |
+
background-image: -o-linear-gradient(top, #0088cc, #0077b3);
|
2968 |
+
background-image: linear-gradient(to bottom, #0088cc, #0077b3);
|
2969 |
+
background-repeat: repeat-x;
|
2970 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
|
2971 |
+
}
|
2972 |
+
|
2973 |
+
.dropdown-menu > .active > a,
|
2974 |
+
.dropdown-menu > .active > a:hover,
|
2975 |
+
.dropdown-menu > .active > a:focus {
|
2976 |
+
color: #ffffff;
|
2977 |
+
text-decoration: none;
|
2978 |
+
background-color: #0081c2;
|
2979 |
+
background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
|
2980 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
|
2981 |
+
background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
|
2982 |
+
background-image: -o-linear-gradient(top, #0088cc, #0077b3);
|
2983 |
+
background-image: linear-gradient(to bottom, #0088cc, #0077b3);
|
2984 |
+
background-repeat: repeat-x;
|
2985 |
+
outline: 0;
|
2986 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
|
2987 |
+
}
|
2988 |
+
|
2989 |
+
.dropdown-menu > .disabled > a,
|
2990 |
+
.dropdown-menu > .disabled > a:hover,
|
2991 |
+
.dropdown-menu > .disabled > a:focus {
|
2992 |
+
color: #999999;
|
2993 |
+
}
|
2994 |
+
|
2995 |
+
.dropdown-menu > .disabled > a:hover,
|
2996 |
+
.dropdown-menu > .disabled > a:focus {
|
2997 |
+
text-decoration: none;
|
2998 |
+
cursor: default;
|
2999 |
+
background-color: transparent;
|
3000 |
+
background-image: none;
|
3001 |
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
3002 |
+
}
|
3003 |
+
|
3004 |
+
.open {
|
3005 |
+
*z-index: 1000;
|
3006 |
+
}
|
3007 |
+
|
3008 |
+
.open > .dropdown-menu {
|
3009 |
+
display: block;
|
3010 |
+
}
|
3011 |
+
|
3012 |
+
.pull-right > .dropdown-menu {
|
3013 |
+
right: 0;
|
3014 |
+
left: auto;
|
3015 |
+
}
|
3016 |
+
|
3017 |
+
.dropup .caret,
|
3018 |
+
.navbar-fixed-bottom .dropdown .caret {
|
3019 |
+
border-top: 0;
|
3020 |
+
border-bottom: 4px solid #000000;
|
3021 |
+
content: "";
|
3022 |
+
}
|
3023 |
+
|
3024 |
+
.dropup .dropdown-menu,
|
3025 |
+
.navbar-fixed-bottom .dropdown .dropdown-menu {
|
3026 |
+
top: auto;
|
3027 |
+
bottom: 100%;
|
3028 |
+
margin-bottom: 1px;
|
3029 |
+
}
|
3030 |
+
|
3031 |
+
.dropdown-submenu {
|
3032 |
+
position: relative;
|
3033 |
+
}
|
3034 |
+
|
3035 |
+
.dropdown-submenu > .dropdown-menu {
|
3036 |
+
top: 0;
|
3037 |
+
left: 100%;
|
3038 |
+
margin-top: -6px;
|
3039 |
+
margin-left: -1px;
|
3040 |
+
-webkit-border-radius: 0 6px 6px 6px;
|
3041 |
+
-moz-border-radius: 0 6px 6px 6px;
|
3042 |
+
border-radius: 0 6px 6px 6px;
|
3043 |
+
}
|
3044 |
+
|
3045 |
+
.dropdown-submenu:hover > .dropdown-menu {
|
3046 |
+
display: block;
|
3047 |
+
}
|
3048 |
+
|
3049 |
+
.dropup .dropdown-submenu > .dropdown-menu {
|
3050 |
+
top: auto;
|
3051 |
+
bottom: 0;
|
3052 |
+
margin-top: 0;
|
3053 |
+
margin-bottom: -2px;
|
3054 |
+
-webkit-border-radius: 5px 5px 5px 0;
|
3055 |
+
-moz-border-radius: 5px 5px 5px 0;
|
3056 |
+
border-radius: 5px 5px 5px 0;
|
3057 |
+
}
|
3058 |
+
|
3059 |
+
.dropdown-submenu > a:after {
|
3060 |
+
display: block;
|
3061 |
+
float: right;
|
3062 |
+
width: 0;
|
3063 |
+
height: 0;
|
3064 |
+
margin-top: 5px;
|
3065 |
+
margin-right: -10px;
|
3066 |
+
border-color: transparent;
|
3067 |
+
border-left-color: #cccccc;
|
3068 |
+
border-style: solid;
|
3069 |
+
border-width: 5px 0 5px 5px;
|
3070 |
+
content: " ";
|
3071 |
+
}
|
3072 |
+
|
3073 |
+
.dropdown-submenu:hover > a:after {
|
3074 |
+
border-left-color: #ffffff;
|
3075 |
+
}
|
3076 |
+
|
3077 |
+
.dropdown-submenu.pull-left {
|
3078 |
+
float: none;
|
3079 |
+
}
|
3080 |
+
|
3081 |
+
.dropdown-submenu.pull-left > .dropdown-menu {
|
3082 |
+
left: -100%;
|
3083 |
+
margin-left: 10px;
|
3084 |
+
-webkit-border-radius: 6px 0 6px 6px;
|
3085 |
+
-moz-border-radius: 6px 0 6px 6px;
|
3086 |
+
border-radius: 6px 0 6px 6px;
|
3087 |
+
}
|
3088 |
+
|
3089 |
+
.dropdown .dropdown-menu .nav-header {
|
3090 |
+
padding-right: 20px;
|
3091 |
+
padding-left: 20px;
|
3092 |
+
}
|
3093 |
+
|
3094 |
+
.typeahead {
|
3095 |
+
z-index: 1051;
|
3096 |
+
margin-top: 2px;
|
3097 |
+
-webkit-border-radius: 4px;
|
3098 |
+
-moz-border-radius: 4px;
|
3099 |
+
border-radius: 4px;
|
3100 |
+
}
|
3101 |
+
|
3102 |
+
.well {
|
3103 |
+
min-height: 20px;
|
3104 |
+
padding: 19px;
|
3105 |
+
margin-bottom: 20px;
|
3106 |
+
background-color: #f5f5f5;
|
3107 |
+
border: 1px solid #e3e3e3;
|
3108 |
+
-webkit-border-radius: 4px;
|
3109 |
+
-moz-border-radius: 4px;
|
3110 |
+
border-radius: 4px;
|
3111 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
|
3112 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
|
3113 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
|
3114 |
+
}
|
3115 |
+
|
3116 |
+
.well blockquote {
|
3117 |
+
border-color: #ddd;
|
3118 |
+
border-color: rgba(0, 0, 0, 0.15);
|
3119 |
+
}
|
3120 |
+
|
3121 |
+
.well-large {
|
3122 |
+
padding: 24px;
|
3123 |
+
-webkit-border-radius: 6px;
|
3124 |
+
-moz-border-radius: 6px;
|
3125 |
+
border-radius: 6px;
|
3126 |
+
}
|
3127 |
+
|
3128 |
+
.well-small {
|
3129 |
+
padding: 9px;
|
3130 |
+
-webkit-border-radius: 3px;
|
3131 |
+
-moz-border-radius: 3px;
|
3132 |
+
border-radius: 3px;
|
3133 |
+
}
|
3134 |
+
|
3135 |
+
.fade {
|
3136 |
+
opacity: 0;
|
3137 |
+
-webkit-transition: opacity 0.15s linear;
|
3138 |
+
-moz-transition: opacity 0.15s linear;
|
3139 |
+
-o-transition: opacity 0.15s linear;
|
3140 |
+
transition: opacity 0.15s linear;
|
3141 |
+
}
|
3142 |
+
|
3143 |
+
.fade.in {
|
3144 |
+
opacity: 1;
|
3145 |
+
}
|
3146 |
+
|
3147 |
+
.collapse {
|
3148 |
+
position: relative;
|
3149 |
+
height: 0;
|
3150 |
+
overflow: hidden;
|
3151 |
+
-webkit-transition: height 0.35s ease;
|
3152 |
+
-moz-transition: height 0.35s ease;
|
3153 |
+
-o-transition: height 0.35s ease;
|
3154 |
+
transition: height 0.35s ease;
|
3155 |
+
}
|
3156 |
+
|
3157 |
+
.collapse.in {
|
3158 |
+
height: auto;
|
3159 |
+
}
|
3160 |
+
|
3161 |
+
.close {
|
3162 |
+
float: right;
|
3163 |
+
font-size: 20px;
|
3164 |
+
font-weight: bold;
|
3165 |
+
line-height: 20px;
|
3166 |
+
color: #000000;
|
3167 |
+
text-shadow: 0 1px 0 #ffffff;
|
3168 |
+
opacity: 0.2;
|
3169 |
+
filter: alpha(opacity=20);
|
3170 |
+
}
|
3171 |
+
|
3172 |
+
.close:hover,
|
3173 |
+
.close:focus {
|
3174 |
+
color: #000000;
|
3175 |
+
text-decoration: none;
|
3176 |
+
cursor: pointer;
|
3177 |
+
opacity: 0.4;
|
3178 |
+
filter: alpha(opacity=40);
|
3179 |
+
}
|
3180 |
+
|
3181 |
+
button.close {
|
3182 |
+
padding: 0;
|
3183 |
+
cursor: pointer;
|
3184 |
+
background: transparent;
|
3185 |
+
border: 0;
|
3186 |
+
-webkit-appearance: none;
|
3187 |
+
}
|
3188 |
+
|
3189 |
+
.btn {
|
3190 |
+
display: inline-block;
|
3191 |
+
*display: inline;
|
3192 |
+
padding: 4px 12px;
|
3193 |
+
margin-bottom: 0;
|
3194 |
+
*margin-left: .3em;
|
3195 |
+
font-size: 14px;
|
3196 |
+
line-height: 20px;
|
3197 |
+
color: #333333;
|
3198 |
+
text-align: center;
|
3199 |
+
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
|
3200 |
+
vertical-align: middle;
|
3201 |
+
cursor: pointer;
|
3202 |
+
background-color: #f5f5f5;
|
3203 |
+
*background-color: #e6e6e6;
|
3204 |
+
background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
|
3205 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
|
3206 |
+
background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
|
3207 |
+
background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
|
3208 |
+
background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
|
3209 |
+
background-repeat: repeat-x;
|
3210 |
+
border: 1px solid #cccccc;
|
3211 |
+
*border: 0;
|
3212 |
+
border-color: #e6e6e6 #e6e6e6 #bfbfbf;
|
3213 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
3214 |
+
border-bottom-color: #b3b3b3;
|
3215 |
+
-webkit-border-radius: 4px;
|
3216 |
+
-moz-border-radius: 4px;
|
3217 |
+
border-radius: 4px;
|
3218 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
|
3219 |
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
3220 |
+
*zoom: 1;
|
3221 |
+
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
3222 |
+
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
3223 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
3224 |
+
}
|
3225 |
+
|
3226 |
+
.btn:hover,
|
3227 |
+
.btn:focus,
|
3228 |
+
.btn:active,
|
3229 |
+
.btn.active,
|
3230 |
+
.btn.disabled,
|
3231 |
+
.btn[disabled] {
|
3232 |
+
color: #333333;
|
3233 |
+
background-color: #e6e6e6;
|
3234 |
+
*background-color: #d9d9d9;
|
3235 |
+
}
|
3236 |
+
|
3237 |
+
.btn:active,
|
3238 |
+
.btn.active {
|
3239 |
+
background-color: #cccccc \9;
|
3240 |
+
}
|
3241 |
+
|
3242 |
+
.btn:first-child {
|
3243 |
+
*margin-left: 0;
|
3244 |
+
}
|
3245 |
+
|
3246 |
+
.btn:hover,
|
3247 |
+
.btn:focus {
|
3248 |
+
color: #333333;
|
3249 |
+
text-decoration: none;
|
3250 |
+
background-position: 0 -15px;
|
3251 |
+
-webkit-transition: background-position 0.1s linear;
|
3252 |
+
-moz-transition: background-position 0.1s linear;
|
3253 |
+
-o-transition: background-position 0.1s linear;
|
3254 |
+
transition: background-position 0.1s linear;
|
3255 |
+
}
|
3256 |
+
|
3257 |
+
.btn:focus {
|
3258 |
+
outline: thin dotted #333;
|
3259 |
+
outline: 5px auto -webkit-focus-ring-color;
|
3260 |
+
outline-offset: -2px;
|
3261 |
+
}
|
3262 |
+
|
3263 |
+
.btn.active,
|
3264 |
+
.btn:active {
|
3265 |
+
background-image: none;
|
3266 |
+
outline: 0;
|
3267 |
+
-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
3268 |
+
-moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
3269 |
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
3270 |
+
}
|
3271 |
+
|
3272 |
+
.btn.disabled,
|
3273 |
+
.btn[disabled] {
|
3274 |
+
cursor: default;
|
3275 |
+
background-image: none;
|
3276 |
+
opacity: 0.65;
|
3277 |
+
filter: alpha(opacity=65);
|
3278 |
+
-webkit-box-shadow: none;
|
3279 |
+
-moz-box-shadow: none;
|
3280 |
+
box-shadow: none;
|
3281 |
+
}
|
3282 |
+
|
3283 |
+
.btn-large {
|
3284 |
+
padding: 11px 19px;
|
3285 |
+
font-size: 17.5px;
|
3286 |
+
-webkit-border-radius: 6px;
|
3287 |
+
-moz-border-radius: 6px;
|
3288 |
+
border-radius: 6px;
|
3289 |
+
}
|
3290 |
+
|
3291 |
+
.btn-large [class^="icon-"],
|
3292 |
+
.btn-large [class*=" icon-"] {
|
3293 |
+
margin-top: 4px;
|
3294 |
+
}
|
3295 |
+
|
3296 |
+
.btn-small {
|
3297 |
+
padding: 2px 10px;
|
3298 |
+
font-size: 11.9px;
|
3299 |
+
-webkit-border-radius: 3px;
|
3300 |
+
-moz-border-radius: 3px;
|
3301 |
+
border-radius: 3px;
|
3302 |
+
}
|
3303 |
+
|
3304 |
+
.btn-small [class^="icon-"],
|
3305 |
+
.btn-small [class*=" icon-"] {
|
3306 |
+
margin-top: 0;
|
3307 |
+
}
|
3308 |
+
|
3309 |
+
.btn-mini [class^="icon-"],
|
3310 |
+
.btn-mini [class*=" icon-"] {
|
3311 |
+
margin-top: -1px;
|
3312 |
+
}
|
3313 |
+
|
3314 |
+
.btn-mini {
|
3315 |
+
padding: 0 6px;
|
3316 |
+
font-size: 10.5px;
|
3317 |
+
-webkit-border-radius: 3px;
|
3318 |
+
-moz-border-radius: 3px;
|
3319 |
+
border-radius: 3px;
|
3320 |
+
}
|
3321 |
+
|
3322 |
+
.btn-block {
|
3323 |
+
display: block;
|
3324 |
+
width: 100%;
|
3325 |
+
padding-right: 0;
|
3326 |
+
padding-left: 0;
|
3327 |
+
-webkit-box-sizing: border-box;
|
3328 |
+
-moz-box-sizing: border-box;
|
3329 |
+
box-sizing: border-box;
|
3330 |
+
}
|
3331 |
+
|
3332 |
+
.btn-block + .btn-block {
|
3333 |
+
margin-top: 5px;
|
3334 |
+
}
|
3335 |
+
|
3336 |
+
input[type="submit"].btn-block,
|
3337 |
+
input[type="reset"].btn-block,
|
3338 |
+
input[type="button"].btn-block {
|
3339 |
+
width: 100%;
|
3340 |
+
}
|
3341 |
+
|
3342 |
+
.btn-primary.active,
|
3343 |
+
.btn-warning.active,
|
3344 |
+
.btn-danger.active,
|
3345 |
+
.btn-success.active,
|
3346 |
+
.btn-info.active,
|
3347 |
+
.btn-inverse.active {
|
3348 |
+
color: rgba(255, 255, 255, 0.75);
|
3349 |
+
}
|
3350 |
+
|
3351 |
+
.btn-primary {
|
3352 |
+
color: #ffffff;
|
3353 |
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
3354 |
+
background-color: #006dcc;
|
3355 |
+
*background-color: #0044cc;
|
3356 |
+
background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
|
3357 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
|
3358 |
+
background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
|
3359 |
+
background-image: -o-linear-gradient(top, #0088cc, #0044cc);
|
3360 |
+
background-image: linear-gradient(to bottom, #0088cc, #0044cc);
|
3361 |
+
background-repeat: repeat-x;
|
3362 |
+
border-color: #0044cc #0044cc #002a80;
|
3363 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
3364 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0);
|
3365 |
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
3366 |
+
}
|
3367 |
+
|
3368 |
+
.btn-primary:hover,
|
3369 |
+
.btn-primary:focus,
|
3370 |
+
.btn-primary:active,
|
3371 |
+
.btn-primary.active,
|
3372 |
+
.btn-primary.disabled,
|
3373 |
+
.btn-primary[disabled] {
|
3374 |
+
color: #ffffff;
|
3375 |
+
background-color: #0044cc;
|
3376 |
+
*background-color: #003bb3;
|
3377 |
+
}
|
3378 |
+
|
3379 |
+
.btn-primary:active,
|
3380 |
+
.btn-primary.active {
|
3381 |
+
background-color: #003399 \9;
|
3382 |
+
}
|
3383 |
+
|
3384 |
+
.btn-warning {
|
3385 |
+
color: #ffffff;
|
3386 |
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
3387 |
+
background-color: #faa732;
|
3388 |
+
*background-color: #f89406;
|
3389 |
+
background-image: -moz-linear-gradient(top, #fbb450, #f89406);
|
3390 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
|
3391 |
+
background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
|
3392 |
+
background-image: -o-linear-gradient(top, #fbb450, #f89406);
|
3393 |
+
background-image: linear-gradient(to bottom, #fbb450, #f89406);
|
3394 |
+
background-repeat: repeat-x;
|
3395 |
+
border-color: #f89406 #f89406 #ad6704;
|
3396 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
3397 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);
|
3398 |
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
3399 |
+
}
|
3400 |
+
|
3401 |
+
.btn-warning:hover,
|
3402 |
+
.btn-warning:focus,
|
3403 |
+
.btn-warning:active,
|
3404 |
+
.btn-warning.active,
|
3405 |
+
.btn-warning.disabled,
|
3406 |
+
.btn-warning[disabled] {
|
3407 |
+
color: #ffffff;
|
3408 |
+
background-color: #f89406;
|
3409 |
+
*background-color: #df8505;
|
3410 |
+
}
|
3411 |
+
|
3412 |
+
.btn-warning:active,
|
3413 |
+
.btn-warning.active {
|
3414 |
+
background-color: #c67605 \9;
|
3415 |
+
}
|
3416 |
+
|
3417 |
+
.btn-danger {
|
3418 |
+
color: #ffffff;
|
3419 |
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
3420 |
+
background-color: #da4f49;
|
3421 |
+
*background-color: #bd362f;
|
3422 |
+
background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
|
3423 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));
|
3424 |
+
background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f);
|
3425 |
+
background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);
|
3426 |
+
background-image: linear-gradient(to bottom, #ee5f5b, #bd362f);
|
3427 |
+
background-repeat: repeat-x;
|
3428 |
+
border-color: #bd362f #bd362f #802420;
|
3429 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
3430 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0);
|
3431 |
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
3432 |
+
}
|
3433 |
+
|
3434 |
+
.btn-danger:hover,
|
3435 |
+
.btn-danger:focus,
|
3436 |
+
.btn-danger:active,
|
3437 |
+
.btn-danger.active,
|
3438 |
+
.btn-danger.disabled,
|
3439 |
+
.btn-danger[disabled] {
|
3440 |
+
color: #ffffff;
|
3441 |
+
background-color: #bd362f;
|
3442 |
+
*background-color: #a9302a;
|
3443 |
+
}
|
3444 |
+
|
3445 |
+
.btn-danger:active,
|
3446 |
+
.btn-danger.active {
|
3447 |
+
background-color: #942a25 \9;
|
3448 |
+
}
|
3449 |
+
|
3450 |
+
.btn-success {
|
3451 |
+
color: #ffffff;
|
3452 |
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
3453 |
+
background-color: #5bb75b;
|
3454 |
+
*background-color: #51a351;
|
3455 |
+
background-image: -moz-linear-gradient(top, #62c462, #51a351);
|
3456 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));
|
3457 |
+
background-image: -webkit-linear-gradient(top, #62c462, #51a351);
|
3458 |
+
background-image: -o-linear-gradient(top, #62c462, #51a351);
|
3459 |
+
background-image: linear-gradient(to bottom, #62c462, #51a351);
|
3460 |
+
background-repeat: repeat-x;
|
3461 |
+
border-color: #51a351 #51a351 #387038;
|
3462 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
3463 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0);
|
3464 |
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
3465 |
+
}
|
3466 |
+
|
3467 |
+
.btn-success:hover,
|
3468 |
+
.btn-success:focus,
|
3469 |
+
.btn-success:active,
|
3470 |
+
.btn-success.active,
|
3471 |
+
.btn-success.disabled,
|
3472 |
+
.btn-success[disabled] {
|
3473 |
+
color: #ffffff;
|
3474 |
+
background-color: #51a351;
|
3475 |
+
*background-color: #499249;
|
3476 |
+
}
|
3477 |
+
|
3478 |
+
.btn-success:active,
|
3479 |
+
.btn-success.active {
|
3480 |
+
background-color: #408140 \9;
|
3481 |
+
}
|
3482 |
+
|
3483 |
+
.btn-info {
|
3484 |
+
color: #ffffff;
|
3485 |
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
3486 |
+
background-color: #49afcd;
|
3487 |
+
*background-color: #2f96b4;
|
3488 |
+
background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4);
|
3489 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4));
|
3490 |
+
background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4);
|
3491 |
+
background-image: -o-linear-gradient(top, #5bc0de, #2f96b4);
|
3492 |
+
background-image: linear-gradient(to bottom, #5bc0de, #2f96b4);
|
3493 |
+
background-repeat: repeat-x;
|
3494 |
+
border-color: #2f96b4 #2f96b4 #1f6377;
|
3495 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
3496 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f96b4', GradientType=0);
|
3497 |
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
3498 |
+
}
|
3499 |
+
|
3500 |
+
.btn-info:hover,
|
3501 |
+
.btn-info:focus,
|
3502 |
+
.btn-info:active,
|
3503 |
+
.btn-info.active,
|
3504 |
+
.btn-info.disabled,
|
3505 |
+
.btn-info[disabled] {
|
3506 |
+
color: #ffffff;
|
3507 |
+
background-color: #2f96b4;
|
3508 |
+
*background-color: #2a85a0;
|
3509 |
+
}
|
3510 |
+
|
3511 |
+
.btn-info:active,
|
3512 |
+
.btn-info.active {
|
3513 |
+
background-color: #24748c \9;
|
3514 |
+
}
|
3515 |
+
|
3516 |
+
.btn-inverse {
|
3517 |
+
color: #ffffff;
|
3518 |
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
3519 |
+
background-color: #363636;
|
3520 |
+
*background-color: #222222;
|
3521 |
+
background-image: -moz-linear-gradient(top, #444444, #222222);
|
3522 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222));
|
3523 |
+
background-image: -webkit-linear-gradient(top, #444444, #222222);
|
3524 |
+
background-image: -o-linear-gradient(top, #444444, #222222);
|
3525 |
+
background-image: linear-gradient(to bottom, #444444, #222222);
|
3526 |
+
background-repeat: repeat-x;
|
3527 |
+
border-color: #222222 #222222 #000000;
|
3528 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
3529 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444', endColorstr='#ff222222', GradientType=0);
|
3530 |
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
3531 |
+
}
|
3532 |
+
|
3533 |
+
.btn-inverse:hover,
|
3534 |
+
.btn-inverse:focus,
|
3535 |
+
.btn-inverse:active,
|
3536 |
+
.btn-inverse.active,
|
3537 |
+
.btn-inverse.disabled,
|
3538 |
+
.btn-inverse[disabled] {
|
3539 |
+
color: #ffffff;
|
3540 |
+
background-color: #222222;
|
3541 |
+
*background-color: #151515;
|
3542 |
+
}
|
3543 |
+
|
3544 |
+
.btn-inverse:active,
|
3545 |
+
.btn-inverse.active {
|
3546 |
+
background-color: #080808 \9;
|
3547 |
+
}
|
3548 |
+
|
3549 |
+
button.btn,
|
3550 |
+
input[type="submit"].btn {
|
3551 |
+
*padding-top: 3px;
|
3552 |
+
*padding-bottom: 3px;
|
3553 |
+
}
|
3554 |
+
|
3555 |
+
button.btn::-moz-focus-inner,
|
3556 |
+
input[type="submit"].btn::-moz-focus-inner {
|
3557 |
+
padding: 0;
|
3558 |
+
border: 0;
|
3559 |
+
}
|
3560 |
+
|
3561 |
+
button.btn.btn-large,
|
3562 |
+
input[type="submit"].btn.btn-large {
|
3563 |
+
*padding-top: 7px;
|
3564 |
+
*padding-bottom: 7px;
|
3565 |
+
}
|
3566 |
+
|
3567 |
+
button.btn.btn-small,
|
3568 |
+
input[type="submit"].btn.btn-small {
|
3569 |
+
*padding-top: 3px;
|
3570 |
+
*padding-bottom: 3px;
|
3571 |
+
}
|
3572 |
+
|
3573 |
+
button.btn.btn-mini,
|
3574 |
+
input[type="submit"].btn.btn-mini {
|
3575 |
+
*padding-top: 1px;
|
3576 |
+
*padding-bottom: 1px;
|
3577 |
+
}
|
3578 |
+
|
3579 |
+
.btn-link,
|
3580 |
+
.btn-link:active,
|
3581 |
+
.btn-link[disabled] {
|
3582 |
+
background-color: transparent;
|
3583 |
+
background-image: none;
|
3584 |
+
-webkit-box-shadow: none;
|
3585 |
+
-moz-box-shadow: none;
|
3586 |
+
box-shadow: none;
|
3587 |
+
}
|
3588 |
+
|
3589 |
+
.btn-link {
|
3590 |
+
color: #0088cc;
|
3591 |
+
cursor: pointer;
|
3592 |
+
border-color: transparent;
|
3593 |
+
-webkit-border-radius: 0;
|
3594 |
+
-moz-border-radius: 0;
|
3595 |
+
border-radius: 0;
|
3596 |
+
}
|
3597 |
+
|
3598 |
+
.btn-link:hover,
|
3599 |
+
.btn-link:focus {
|
3600 |
+
color: #005580;
|
3601 |
+
text-decoration: underline;
|
3602 |
+
background-color: transparent;
|
3603 |
+
}
|
3604 |
+
|
3605 |
+
.btn-link[disabled]:hover,
|
3606 |
+
.btn-link[disabled]:focus {
|
3607 |
+
color: #333333;
|
3608 |
+
text-decoration: none;
|
3609 |
+
}
|
3610 |
+
|
3611 |
+
.btn-group {
|
3612 |
+
position: relative;
|
3613 |
+
display: inline-block;
|
3614 |
+
*display: inline;
|
3615 |
+
*margin-left: .3em;
|
3616 |
+
font-size: 0;
|
3617 |
+
white-space: nowrap;
|
3618 |
+
vertical-align: middle;
|
3619 |
+
*zoom: 1;
|
3620 |
+
}
|
3621 |
+
|
3622 |
+
.btn-group:first-child {
|
3623 |
+
*margin-left: 0;
|
3624 |
+
}
|
3625 |
+
|
3626 |
+
.btn-group + .btn-group {
|
3627 |
+
margin-left: 5px;
|
3628 |
+
}
|
3629 |
+
|
3630 |
+
.btn-toolbar {
|
3631 |
+
margin-top: 10px;
|
3632 |
+
margin-bottom: 10px;
|
3633 |
+
font-size: 0;
|
3634 |
+
}
|
3635 |
+
|
3636 |
+
.btn-toolbar > .btn + .btn,
|
3637 |
+
.btn-toolbar > .btn-group + .btn,
|
3638 |
+
.btn-toolbar > .btn + .btn-group {
|
3639 |
+
margin-left: 5px;
|
3640 |
+
}
|
3641 |
+
|
3642 |
+
.btn-group > .btn {
|
3643 |
+
position: relative;
|
3644 |
+
-webkit-border-radius: 0;
|
3645 |
+
-moz-border-radius: 0;
|
3646 |
+
border-radius: 0;
|
3647 |
+
}
|
3648 |
+
|
3649 |
+
.btn-group > .btn + .btn {
|
3650 |
+
margin-left: -1px;
|
3651 |
+
}
|
3652 |
+
|
3653 |
+
.btn-group > .btn,
|
3654 |
+
.btn-group > .dropdown-menu,
|
3655 |
+
.btn-group > .popover {
|
3656 |
+
font-size: 14px;
|
3657 |
+
}
|
3658 |
+
|
3659 |
+
.btn-group > .btn-mini {
|
3660 |
+
font-size: 10.5px;
|
3661 |
+
}
|
3662 |
+
|
3663 |
+
.btn-group > .btn-small {
|
3664 |
+
font-size: 11.9px;
|
3665 |
+
}
|
3666 |
+
|
3667 |
+
.btn-group > .btn-large {
|
3668 |
+
font-size: 17.5px;
|
3669 |
+
}
|
3670 |
+
|
3671 |
+
.btn-group > .btn:first-child {
|
3672 |
+
margin-left: 0;
|
3673 |
+
-webkit-border-bottom-left-radius: 4px;
|
3674 |
+
border-bottom-left-radius: 4px;
|
3675 |
+
-webkit-border-top-left-radius: 4px;
|
3676 |
+
border-top-left-radius: 4px;
|
3677 |
+
-moz-border-radius-bottomleft: 4px;
|
3678 |
+
-moz-border-radius-topleft: 4px;
|
3679 |
+
}
|
3680 |
+
|
3681 |
+
.btn-group > .btn:last-child,
|
3682 |
+
.btn-group > .dropdown-toggle {
|
3683 |
+
-webkit-border-top-right-radius: 4px;
|
3684 |
+
border-top-right-radius: 4px;
|
3685 |
+
-webkit-border-bottom-right-radius: 4px;
|
3686 |
+
border-bottom-right-radius: 4px;
|
3687 |
+
-moz-border-radius-topright: 4px;
|
3688 |
+
-moz-border-radius-bottomright: 4px;
|
3689 |
+
}
|
3690 |
+
|
3691 |
+
.btn-group > .btn.large:first-child {
|
3692 |
+
margin-left: 0;
|
3693 |
+
-webkit-border-bottom-left-radius: 6px;
|
3694 |
+
border-bottom-left-radius: 6px;
|
3695 |
+
-webkit-border-top-left-radius: 6px;
|
3696 |
+
border-top-left-radius: 6px;
|
3697 |
+
-moz-border-radius-bottomleft: 6px;
|
3698 |
+
-moz-border-radius-topleft: 6px;
|
3699 |
+
}
|
3700 |
+
|
3701 |
+
.btn-group > .btn.large:last-child,
|
3702 |
+
.btn-group > .large.dropdown-toggle {
|
3703 |
+
-webkit-border-top-right-radius: 6px;
|
3704 |
+
border-top-right-radius: 6px;
|
3705 |
+
-webkit-border-bottom-right-radius: 6px;
|
3706 |
+
border-bottom-right-radius: 6px;
|
3707 |
+
-moz-border-radius-topright: 6px;
|
3708 |
+
-moz-border-radius-bottomright: 6px;
|
3709 |
+
}
|
3710 |
+
|
3711 |
+
.btn-group > .btn:hover,
|
3712 |
+
.btn-group > .btn:focus,
|
3713 |
+
.btn-group > .btn:active,
|
3714 |
+
.btn-group > .btn.active {
|
3715 |
+
z-index: 2;
|
3716 |
+
}
|
3717 |
+
|
3718 |
+
.btn-group .dropdown-toggle:active,
|
3719 |
+
.btn-group.open .dropdown-toggle {
|
3720 |
+
outline: 0;
|
3721 |
+
}
|
3722 |
+
|
3723 |
+
.btn-group > .btn + .dropdown-toggle {
|
3724 |
+
*padding-top: 5px;
|
3725 |
+
padding-right: 8px;
|
3726 |
+
*padding-bottom: 5px;
|
3727 |
+
padding-left: 8px;
|
3728 |
+
-webkit-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
3729 |
+
-moz-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
3730 |
+
box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
3731 |
+
}
|
3732 |
+
|
3733 |
+
.btn-group > .btn-mini + .dropdown-toggle {
|
3734 |
+
*padding-top: 2px;
|
3735 |
+
padding-right: 5px;
|
3736 |
+
*padding-bottom: 2px;
|
3737 |
+
padding-left: 5px;
|
3738 |
+
}
|
3739 |
+
|
3740 |
+
.btn-group > .btn-small + .dropdown-toggle {
|
3741 |
+
*padding-top: 5px;
|
3742 |
+
*padding-bottom: 4px;
|
3743 |
+
}
|
3744 |
+
|
3745 |
+
.btn-group > .btn-large + .dropdown-toggle {
|
3746 |
+
*padding-top: 7px;
|
3747 |
+
padding-right: 12px;
|
3748 |
+
*padding-bottom: 7px;
|
3749 |
+
padding-left: 12px;
|
3750 |
+
}
|
3751 |
+
|
3752 |
+
.btn-group.open .dropdown-toggle {
|
3753 |
+
background-image: none;
|
3754 |
+
-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
3755 |
+
-moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
3756 |
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
3757 |
+
}
|
3758 |
+
|
3759 |
+
.btn-group.open .btn.dropdown-toggle {
|
3760 |
+
background-color: #e6e6e6;
|
3761 |
+
}
|
3762 |
+
|
3763 |
+
.btn-group.open .btn-primary.dropdown-toggle {
|
3764 |
+
background-color: #0044cc;
|
3765 |
+
}
|
3766 |
+
|
3767 |
+
.btn-group.open .btn-warning.dropdown-toggle {
|
3768 |
+
background-color: #f89406;
|
3769 |
+
}
|
3770 |
+
|
3771 |
+
.btn-group.open .btn-danger.dropdown-toggle {
|
3772 |
+
background-color: #bd362f;
|
3773 |
+
}
|
3774 |
+
|
3775 |
+
.btn-group.open .btn-success.dropdown-toggle {
|
3776 |
+
background-color: #51a351;
|
3777 |
+
}
|
3778 |
+
|
3779 |
+
.btn-group.open .btn-info.dropdown-toggle {
|
3780 |
+
background-color: #2f96b4;
|
3781 |
+
}
|
3782 |
+
|
3783 |
+
.btn-group.open .btn-inverse.dropdown-toggle {
|
3784 |
+
background-color: #222222;
|
3785 |
+
}
|
3786 |
+
|
3787 |
+
.btn .caret {
|
3788 |
+
margin-top: 8px;
|
3789 |
+
margin-left: 0;
|
3790 |
+
}
|
3791 |
+
|
3792 |
+
.btn-large .caret {
|
3793 |
+
margin-top: 6px;
|
3794 |
+
}
|
3795 |
+
|
3796 |
+
.btn-large .caret {
|
3797 |
+
border-top-width: 5px;
|
3798 |
+
border-right-width: 5px;
|
3799 |
+
border-left-width: 5px;
|
3800 |
+
}
|
3801 |
+
|
3802 |
+
.btn-mini .caret,
|
3803 |
+
.btn-small .caret {
|
3804 |
+
margin-top: 8px;
|
3805 |
+
}
|
3806 |
+
|
3807 |
+
.dropup .btn-large .caret {
|
3808 |
+
border-bottom-width: 5px;
|
3809 |
+
}
|
3810 |
+
|
3811 |
+
.btn-primary .caret,
|
3812 |
+
.btn-warning .caret,
|
3813 |
+
.btn-danger .caret,
|
3814 |
+
.btn-info .caret,
|
3815 |
+
.btn-success .caret,
|
3816 |
+
.btn-inverse .caret {
|
3817 |
+
border-top-color: #ffffff;
|
3818 |
+
border-bottom-color: #ffffff;
|
3819 |
+
}
|
3820 |
+
|
3821 |
+
.btn-group-vertical {
|
3822 |
+
display: inline-block;
|
3823 |
+
*display: inline;
|
3824 |
+
/* IE7 inline-block hack */
|
3825 |
+
|
3826 |
+
*zoom: 1;
|
3827 |
+
}
|
3828 |
+
|
3829 |
+
.btn-group-vertical > .btn {
|
3830 |
+
display: block;
|
3831 |
+
float: none;
|
3832 |
+
max-width: 100%;
|
3833 |
+
-webkit-border-radius: 0;
|
3834 |
+
-moz-border-radius: 0;
|
3835 |
+
border-radius: 0;
|
3836 |
+
}
|
3837 |
+
|
3838 |
+
.btn-group-vertical > .btn + .btn {
|
3839 |
+
margin-top: -1px;
|
3840 |
+
margin-left: 0;
|
3841 |
+
}
|
3842 |
+
|
3843 |
+
.btn-group-vertical > .btn:first-child {
|
3844 |
+
-webkit-border-radius: 4px 4px 0 0;
|
3845 |
+
-moz-border-radius: 4px 4px 0 0;
|
3846 |
+
border-radius: 4px 4px 0 0;
|
3847 |
+
}
|
3848 |
+
|
3849 |
+
.btn-group-vertical > .btn:last-child {
|
3850 |
+
-webkit-border-radius: 0 0 4px 4px;
|
3851 |
+
-moz-border-radius: 0 0 4px 4px;
|
3852 |
+
border-radius: 0 0 4px 4px;
|
3853 |
+
}
|
3854 |
+
|
3855 |
+
.btn-group-vertical > .btn-large:first-child {
|
3856 |
+
-webkit-border-radius: 6px 6px 0 0;
|
3857 |
+
-moz-border-radius: 6px 6px 0 0;
|
3858 |
+
border-radius: 6px 6px 0 0;
|
3859 |
+
}
|
3860 |
+
|
3861 |
+
.btn-group-vertical > .btn-large:last-child {
|
3862 |
+
-webkit-border-radius: 0 0 6px 6px;
|
3863 |
+
-moz-border-radius: 0 0 6px 6px;
|
3864 |
+
border-radius: 0 0 6px 6px;
|
3865 |
+
}
|
3866 |
+
|
3867 |
+
.alert {
|
3868 |
+
padding: 8px 35px 8px 14px;
|
3869 |
+
margin-bottom: 20px;
|
3870 |
+
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
|
3871 |
+
background-color: #fcf8e3;
|
3872 |
+
border: 1px solid #fbeed5;
|
3873 |
+
-webkit-border-radius: 4px;
|
3874 |
+
-moz-border-radius: 4px;
|
3875 |
+
border-radius: 4px;
|
3876 |
+
}
|
3877 |
+
|
3878 |
+
.alert,
|
3879 |
+
.alert h4 {
|
3880 |
+
color: #c09853;
|
3881 |
+
}
|
3882 |
+
|
3883 |
+
.alert h4 {
|
3884 |
+
margin: 0;
|
3885 |
+
}
|
3886 |
+
|
3887 |
+
.alert .close {
|
3888 |
+
position: relative;
|
3889 |
+
top: -2px;
|
3890 |
+
right: -21px;
|
3891 |
+
line-height: 20px;
|
3892 |
+
}
|
3893 |
+
|
3894 |
+
.alert-success {
|
3895 |
+
color: #468847;
|
3896 |
+
background-color: #dff0d8;
|
3897 |
+
border-color: #d6e9c6;
|
3898 |
+
}
|
3899 |
+
|
3900 |
+
.alert-success h4 {
|
3901 |
+
color: #468847;
|
3902 |
+
}
|
3903 |
+
|
3904 |
+
.alert-danger,
|
3905 |
+
.alert-error {
|
3906 |
+
color: #b94a48;
|
3907 |
+
background-color: #f2dede;
|
3908 |
+
border-color: #eed3d7;
|
3909 |
+
}
|
3910 |
+
|
3911 |
+
.alert-danger h4,
|
3912 |
+
.alert-error h4 {
|
3913 |
+
color: #b94a48;
|
3914 |
+
}
|
3915 |
+
|
3916 |
+
.alert-info {
|
3917 |
+
color: #3a87ad;
|
3918 |
+
background-color: #d9edf7;
|
3919 |
+
border-color: #bce8f1;
|
3920 |
+
}
|
3921 |
+
|
3922 |
+
.alert-info h4 {
|
3923 |
+
color: #3a87ad;
|
3924 |
+
}
|
3925 |
+
|
3926 |
+
.alert-block {
|
3927 |
+
padding-top: 14px;
|
3928 |
+
padding-bottom: 14px;
|
3929 |
+
}
|
3930 |
+
|
3931 |
+
.alert-block > p,
|
3932 |
+
.alert-block > ul {
|
3933 |
+
margin-bottom: 0;
|
3934 |
+
}
|
3935 |
+
|
3936 |
+
.alert-block p + p {
|
3937 |
+
margin-top: 5px;
|
3938 |
+
}
|
3939 |
+
|
3940 |
+
.nav {
|
3941 |
+
margin-bottom: 20px;
|
3942 |
+
margin-left: 0;
|
3943 |
+
list-style: none;
|
3944 |
+
}
|
3945 |
+
|
3946 |
+
.nav > li > a {
|
3947 |
+
display: block;
|
3948 |
+
}
|
3949 |
+
|
3950 |
+
.nav > li > a:hover,
|
3951 |
+
.nav > li > a:focus {
|
3952 |
+
text-decoration: none;
|
3953 |
+
background-color: #eeeeee;
|
3954 |
+
}
|
3955 |
+
|
3956 |
+
.nav > li > a > img {
|
3957 |
+
max-width: none;
|
3958 |
+
}
|
3959 |
+
|
3960 |
+
.nav > .pull-right {
|
3961 |
+
float: right;
|
3962 |
+
}
|
3963 |
+
|
3964 |
+
.nav-header {
|
3965 |
+
display: block;
|
3966 |
+
padding: 3px 15px;
|
3967 |
+
font-size: 11px;
|
3968 |
+
font-weight: bold;
|
3969 |
+
line-height: 20px;
|
3970 |
+
color: #999999;
|
3971 |
+
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
|
3972 |
+
text-transform: uppercase;
|
3973 |
+
}
|
3974 |
+
|
3975 |
+
.nav li + .nav-header {
|
3976 |
+
margin-top: 9px;
|
3977 |
+
}
|
3978 |
+
|
3979 |
+
.nav-list {
|
3980 |
+
padding-right: 15px;
|
3981 |
+
padding-left: 15px;
|
3982 |
+
margin-bottom: 0;
|
3983 |
+
}
|
3984 |
+
|
3985 |
+
.nav-list > li > a,
|
3986 |
+
.nav-list .nav-header {
|
3987 |
+
margin-right: -15px;
|
3988 |
+
margin-left: -15px;
|
3989 |
+
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
|
3990 |
+
}
|
3991 |
+
|
3992 |
+
.nav-list > li > a {
|
3993 |
+
padding: 3px 15px;
|
3994 |
+
}
|
3995 |
+
|
3996 |
+
.nav-list > .active > a,
|
3997 |
+
.nav-list > .active > a:hover,
|
3998 |
+
.nav-list > .active > a:focus {
|
3999 |
+
color: #ffffff;
|
4000 |
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
|
4001 |
+
background-color: #0088cc;
|
4002 |
+
}
|
4003 |
+
|
4004 |
+
.nav-list [class^="icon-"],
|
4005 |
+
.nav-list [class*=" icon-"] {
|
4006 |
+
margin-right: 2px;
|
4007 |
+
}
|
4008 |
+
|
4009 |
+
.nav-list .divider {
|
4010 |
+
*width: 100%;
|
4011 |
+
height: 1px;
|
4012 |
+
margin: 9px 1px;
|
4013 |
+
*margin: -5px 0 5px;
|
4014 |
+
overflow: hidden;
|
4015 |
+
background-color: #e5e5e5;
|
4016 |
+
border-bottom: 1px solid #ffffff;
|
4017 |
+
}
|
4018 |
+
|
4019 |
+
.nav-tabs,
|
4020 |
+
.nav-pills {
|
4021 |
+
*zoom: 1;
|
4022 |
+
}
|
4023 |
+
|
4024 |
+
.nav-tabs:before,
|
4025 |
+
.nav-pills:before,
|
4026 |
+
.nav-tabs:after,
|
4027 |
+
.nav-pills:after {
|
4028 |
+
display: table;
|
4029 |
+
line-height: 0;
|
4030 |
+
content: "";
|
4031 |
+
}
|
4032 |
+
|
4033 |
+
.nav-tabs:after,
|
4034 |
+
.nav-pills:after {
|
4035 |
+
clear: both;
|
4036 |
+
}
|
4037 |
+
|
4038 |
+
.nav-tabs > li,
|
4039 |
+
.nav-pills > li {
|
4040 |
+
float: left;
|
4041 |
+
}
|
4042 |
+
|
4043 |
+
.nav-tabs > li > a,
|
4044 |
+
.nav-pills > li > a {
|
4045 |
+
padding-right: 12px;
|
4046 |
+
padding-left: 12px;
|
4047 |
+
margin-right: 2px;
|
4048 |
+
line-height: 14px;
|
4049 |
+
}
|
4050 |
+
|
4051 |
+
.nav-tabs {
|
4052 |
+
border-bottom: 1px solid #ddd;
|
4053 |
+
}
|
4054 |
+
|
4055 |
+
.nav-tabs > li {
|
4056 |
+
margin-bottom: -1px;
|
4057 |
+
}
|
4058 |
+
|
4059 |
+
.nav-tabs > li > a {
|
4060 |
+
padding-top: 8px;
|
4061 |
+
padding-bottom: 8px;
|
4062 |
+
line-height: 20px;
|
4063 |
+
border: 1px solid transparent;
|
4064 |
+
-webkit-border-radius: 4px 4px 0 0;
|
4065 |
+
-moz-border-radius: 4px 4px 0 0;
|
4066 |
+
border-radius: 4px 4px 0 0;
|
4067 |
+
}
|
4068 |
+
|
4069 |
+
.nav-tabs > li > a:hover,
|
4070 |
+
.nav-tabs > li > a:focus {
|
4071 |
+
border-color: #eeeeee #eeeeee #dddddd;
|
4072 |
+
}
|
4073 |
+
|
4074 |
+
.nav-tabs > .active > a,
|
4075 |
+
.nav-tabs > .active > a:hover,
|
4076 |
+
.nav-tabs > .active > a:focus {
|
4077 |
+
color: #555555;
|
4078 |
+
cursor: default;
|
4079 |
+
background-color: #ffffff;
|
4080 |
+
border: 1px solid #ddd;
|
4081 |
+
border-bottom-color: transparent;
|
4082 |
+
}
|
4083 |
+
|
4084 |
+
.nav-pills > li > a {
|
4085 |
+
padding-top: 8px;
|
4086 |
+
padding-bottom: 8px;
|
4087 |
+
margin-top: 2px;
|
4088 |
+
margin-bottom: 2px;
|
4089 |
+
-webkit-border-radius: 5px;
|
4090 |
+
-moz-border-radius: 5px;
|
4091 |
+
border-radius: 5px;
|
4092 |
+
}
|
4093 |
+
|
4094 |
+
.nav-pills > .active > a,
|
4095 |
+
.nav-pills > .active > a:hover,
|
4096 |
+
.nav-pills > .active > a:focus {
|
4097 |
+
color: #ffffff;
|
4098 |
+
background-color: #0088cc;
|
4099 |
+
}
|
4100 |
+
|
4101 |
+
.nav-stacked > li {
|
4102 |
+
float: none;
|
4103 |
+
}
|
4104 |
+
|
4105 |
+
.nav-stacked > li > a {
|
4106 |
+
margin-right: 0;
|
4107 |
+
}
|
4108 |
+
|
4109 |
+
.nav-tabs.nav-stacked {
|
4110 |
+
border-bottom: 0;
|
4111 |
+
}
|
4112 |
+
|
4113 |
+
.nav-tabs.nav-stacked > li > a {
|
4114 |
+
border: 1px solid #ddd;
|
4115 |
+
-webkit-border-radius: 0;
|
4116 |
+
-moz-border-radius: 0;
|
4117 |
+
border-radius: 0;
|
4118 |
+
}
|
4119 |
+
|
4120 |
+
.nav-tabs.nav-stacked > li:first-child > a {
|
4121 |
+
-webkit-border-top-right-radius: 4px;
|
4122 |
+
border-top-right-radius: 4px;
|
4123 |
+
-webkit-border-top-left-radius: 4px;
|
4124 |
+
border-top-left-radius: 4px;
|
4125 |
+
-moz-border-radius-topright: 4px;
|
4126 |
+
-moz-border-radius-topleft: 4px;
|
4127 |
+
}
|
4128 |
+
|
4129 |
+
.nav-tabs.nav-stacked > li:last-child > a {
|
4130 |
+
-webkit-border-bottom-right-radius: 4px;
|
4131 |
+
border-bottom-right-radius: 4px;
|
4132 |
+
-webkit-border-bottom-left-radius: 4px;
|
4133 |
+
border-bottom-left-radius: 4px;
|
4134 |
+
-moz-border-radius-bottomright: 4px;
|
4135 |
+
-moz-border-radius-bottomleft: 4px;
|
4136 |
+
}
|
4137 |
+
|
4138 |
+
.nav-tabs.nav-stacked > li > a:hover,
|
4139 |
+
.nav-tabs.nav-stacked > li > a:focus {
|
4140 |
+
z-index: 2;
|
4141 |
+
border-color: #ddd;
|
4142 |
+
}
|
4143 |
+
|
4144 |
+
.nav-pills.nav-stacked > li > a {
|
4145 |
+
margin-bottom: 3px;
|
4146 |
+
}
|
4147 |
+
|
4148 |
+
.nav-pills.nav-stacked > li:last-child > a {
|
4149 |
+
margin-bottom: 1px;
|
4150 |
+
}
|
4151 |
+
|
4152 |
+
.nav-tabs .dropdown-menu {
|
4153 |
+
-webkit-border-radius: 0 0 6px 6px;
|
4154 |
+
-moz-border-radius: 0 0 6px 6px;
|
4155 |
+
border-radius: 0 0 6px 6px;
|
4156 |
+
}
|
4157 |
+
|
4158 |
+
.nav-pills .dropdown-menu {
|
4159 |
+
-webkit-border-radius: 6px;
|
4160 |
+
-moz-border-radius: 6px;
|
4161 |
+
border-radius: 6px;
|
4162 |
+
}
|
4163 |
+
|
4164 |
+
.nav .dropdown-toggle .caret {
|
4165 |
+
margin-top: 6px;
|
4166 |
+
border-top-color: #0088cc;
|
4167 |
+
border-bottom-color: #0088cc;
|
4168 |
+
}
|
4169 |
+
|
4170 |
+
.nav .dropdown-toggle:hover .caret,
|
4171 |
+
.nav .dropdown-toggle:focus .caret {
|
4172 |
+
border-top-color: #005580;
|
4173 |
+
border-bottom-color: #005580;
|
4174 |
+
}
|
4175 |
+
|
4176 |
+
/* move down carets for tabs */
|
4177 |
+
|
4178 |
+
.nav-tabs .dropdown-toggle .caret {
|
4179 |
+
margin-top: 8px;
|
4180 |
+
}
|
4181 |
+
|
4182 |
+
.nav .active .dropdown-toggle .caret {
|
4183 |
+
border-top-color: #fff;
|
4184 |
+
border-bottom-color: #fff;
|
4185 |
+
}
|
4186 |
+
|
4187 |
+
.nav-tabs .active .dropdown-toggle .caret {
|
4188 |
+
border-top-color: #555555;
|
4189 |
+
border-bottom-color: #555555;
|
4190 |
+
}
|
4191 |
+
|
4192 |
+
.nav > .dropdown.active > a:hover,
|
4193 |
+
.nav > .dropdown.active > a:focus {
|
4194 |
+
cursor: pointer;
|
4195 |
+
}
|
4196 |
+
|
4197 |
+
.nav-tabs .open .dropdown-toggle,
|
4198 |
+
.nav-pills .open .dropdown-toggle,
|
4199 |
+
.nav > li.dropdown.open.active > a:hover,
|
4200 |
+
.nav > li.dropdown.open.active > a:focus {
|
4201 |
+
color: #ffffff;
|
4202 |
+
background-color: #999999;
|
4203 |
+
border-color: #999999;
|
4204 |
+
}
|
4205 |
+
|
4206 |
+
.nav li.dropdown.open .caret,
|
4207 |
+
.nav li.dropdown.open.active .caret,
|
4208 |
+
.nav li.dropdown.open a:hover .caret,
|
4209 |
+
.nav li.dropdown.open a:focus .caret {
|
4210 |
+
border-top-color: #ffffff;
|
4211 |
+
border-bottom-color: #ffffff;
|
4212 |
+
opacity: 1;
|
4213 |
+
filter: alpha(opacity=100);
|
4214 |
+
}
|
4215 |
+
|
4216 |
+
.tabs-stacked .open > a:hover,
|
4217 |
+
.tabs-stacked .open > a:focus {
|
4218 |
+
border-color: #999999;
|
4219 |
+
}
|
4220 |
+
|
4221 |
+
.tabbable {
|
4222 |
+
*zoom: 1;
|
4223 |
+
}
|
4224 |
+
|
4225 |
+
.tabbable:before,
|
4226 |
+
.tabbable:after {
|
4227 |
+
display: table;
|
4228 |
+
line-height: 0;
|
4229 |
+
content: "";
|
4230 |
+
}
|
4231 |
+
|
4232 |
+
.tabbable:after {
|
4233 |
+
clear: both;
|
4234 |
+
}
|
4235 |
+
|
4236 |
+
.tab-content {
|
4237 |
+
overflow: auto;
|
4238 |
+
}
|
4239 |
+
|
4240 |
+
.tabs-below > .nav-tabs,
|
4241 |
+
.tabs-right > .nav-tabs,
|
4242 |
+
.tabs-left > .nav-tabs {
|
4243 |
+
border-bottom: 0;
|
4244 |
+
}
|
4245 |
+
|
4246 |
+
.tab-content > .tab-pane,
|
4247 |
+
.pill-content > .pill-pane {
|
4248 |
+
display: none;
|
4249 |
+
}
|
4250 |
+
|
4251 |
+
.tab-content > .active,
|
4252 |
+
.pill-content > .active {
|
4253 |
+
display: block;
|
4254 |
+
}
|
4255 |
+
|
4256 |
+
.tabs-below > .nav-tabs {
|
4257 |
+
border-top: 1px solid #ddd;
|
4258 |
+
}
|
4259 |
+
|
4260 |
+
.tabs-below > .nav-tabs > li {
|
4261 |
+
margin-top: -1px;
|
4262 |
+
margin-bottom: 0;
|
4263 |
+
}
|
4264 |
+
|
4265 |
+
.tabs-below > .nav-tabs > li > a {
|
4266 |
+
-webkit-border-radius: 0 0 4px 4px;
|
4267 |
+
-moz-border-radius: 0 0 4px 4px;
|
4268 |
+
border-radius: 0 0 4px 4px;
|
4269 |
+
}
|
4270 |
+
|
4271 |
+
.tabs-below > .nav-tabs > li > a:hover,
|
4272 |
+
.tabs-below > .nav-tabs > li > a:focus {
|
4273 |
+
border-top-color: #ddd;
|
4274 |
+
border-bottom-color: transparent;
|
4275 |
+
}
|
4276 |
+
|
4277 |
+
.tabs-below > .nav-tabs > .active > a,
|
4278 |
+
.tabs-below > .nav-tabs > .active > a:hover,
|
4279 |
+
.tabs-below > .nav-tabs > .active > a:focus {
|
4280 |
+
border-color: transparent #ddd #ddd #ddd;
|
4281 |
+
}
|
4282 |
+
|
4283 |
+
.tabs-left > .nav-tabs > li,
|
4284 |
+
.tabs-right > .nav-tabs > li {
|
4285 |
+
float: none;
|
4286 |
+
}
|
4287 |
+
|
4288 |
+
.tabs-left > .nav-tabs > li > a,
|
4289 |
+
.tabs-right > .nav-tabs > li > a {
|
4290 |
+
min-width: 74px;
|
4291 |
+
margin-right: 0;
|
4292 |
+
margin-bottom: 3px;
|
4293 |
+
}
|
4294 |
+
|
4295 |
+
.tabs-left > .nav-tabs {
|
4296 |
+
float: left;
|
4297 |
+
margin-right: 19px;
|
4298 |
+
border-right: 1px solid #ddd;
|
4299 |
+
}
|
4300 |
+
|
4301 |
+
.tabs-left > .nav-tabs > li > a {
|
4302 |
+
margin-right: -1px;
|
4303 |
+
-webkit-border-radius: 4px 0 0 4px;
|
4304 |
+
-moz-border-radius: 4px 0 0 4px;
|
4305 |
+
border-radius: 4px 0 0 4px;
|
4306 |
+
}
|
4307 |
+
|
4308 |
+
.tabs-left > .nav-tabs > li > a:hover,
|
4309 |
+
.tabs-left > .nav-tabs > li > a:focus {
|
4310 |
+
border-color: #eeeeee #dddddd #eeeeee #eeeeee;
|
4311 |
+
}
|
4312 |
+
|
4313 |
+
.tabs-left > .nav-tabs .active > a,
|
4314 |
+
.tabs-left > .nav-tabs .active > a:hover,
|
4315 |
+
.tabs-left > .nav-tabs .active > a:focus {
|
4316 |
+
border-color: #ddd transparent #ddd #ddd;
|
4317 |
+
*border-right-color: #ffffff;
|
4318 |
+
}
|
4319 |
+
|
4320 |
+
.tabs-right > .nav-tabs {
|
4321 |
+
float: right;
|
4322 |
+
margin-left: 19px;
|
4323 |
+
border-left: 1px solid #ddd;
|
4324 |
+
}
|
4325 |
+
|
4326 |
+
.tabs-right > .nav-tabs > li > a {
|
4327 |
+
margin-left: -1px;
|
4328 |
+
-webkit-border-radius: 0 4px 4px 0;
|
4329 |
+
-moz-border-radius: 0 4px 4px 0;
|
4330 |
+
border-radius: 0 4px 4px 0;
|
4331 |
+
}
|
4332 |
+
|
4333 |
+
.tabs-right > .nav-tabs > li > a:hover,
|
4334 |
+
.tabs-right > .nav-tabs > li > a:focus {
|
4335 |
+
border-color: #eeeeee #eeeeee #eeeeee #dddddd;
|
4336 |
+
}
|
4337 |
+
|
4338 |
+
.tabs-right > .nav-tabs .active > a,
|
4339 |
+
.tabs-right > .nav-tabs .active > a:hover,
|
4340 |
+
.tabs-right > .nav-tabs .active > a:focus {
|
4341 |
+
border-color: #ddd #ddd #ddd transparent;
|
4342 |
+
*border-left-color: #ffffff;
|
4343 |
+
}
|
4344 |
+
|
4345 |
+
.nav > .disabled > a {
|
4346 |
+
color: #999999;
|
4347 |
+
}
|
4348 |
+
|
4349 |
+
.nav > .disabled > a:hover,
|
4350 |
+
.nav > .disabled > a:focus {
|
4351 |
+
text-decoration: none;
|
4352 |
+
cursor: default;
|
4353 |
+
background-color: transparent;
|
4354 |
+
}
|
4355 |
+
|
4356 |
+
.navbar {
|
4357 |
+
*position: relative;
|
4358 |
+
*z-index: 2;
|
4359 |
+
margin-bottom: 20px;
|
4360 |
+
overflow: visible;
|
4361 |
+
}
|
4362 |
+
|
4363 |
+
.navbar-inner {
|
4364 |
+
min-height: 40px;
|
4365 |
+
padding-right: 20px;
|
4366 |
+
padding-left: 20px;
|
4367 |
+
background-color: #fafafa;
|
4368 |
+
background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2);
|
4369 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f2f2f2));
|
4370 |
+
background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2);
|
4371 |
+
background-image: -o-linear-gradient(top, #ffffff, #f2f2f2);
|
4372 |
+
background-image: linear-gradient(to bottom, #ffffff, #f2f2f2);
|
4373 |
+
background-repeat: repeat-x;
|
4374 |
+
border: 1px solid #d4d4d4;
|
4375 |
+
-webkit-border-radius: 4px;
|
4376 |
+
-moz-border-radius: 4px;
|
4377 |
+
border-radius: 4px;
|
4378 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);
|
4379 |
+
*zoom: 1;
|
4380 |
+
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
|
4381 |
+
-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
|
4382 |
+
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
|
4383 |
+
}
|
4384 |
+
|
4385 |
+
.navbar-inner:before,
|
4386 |
+
.navbar-inner:after {
|
4387 |
+
display: table;
|
4388 |
+
line-height: 0;
|
4389 |
+
content: "";
|
4390 |
+
}
|
4391 |
+
|
4392 |
+
.navbar-inner:after {
|
4393 |
+
clear: both;
|
4394 |
+
}
|
4395 |
+
|
4396 |
+
.navbar .container {
|
4397 |
+
width: auto;
|
4398 |
+
}
|
4399 |
+
|
4400 |
+
.nav-collapse.collapse {
|
4401 |
+
height: auto;
|
4402 |
+
overflow: visible;
|
4403 |
+
}
|
4404 |
+
|
4405 |
+
.navbar .brand {
|
4406 |
+
display: block;
|
4407 |
+
float: left;
|
4408 |
+
padding: 10px 20px 10px;
|
4409 |
+
margin-left: -20px;
|
4410 |
+
font-size: 20px;
|
4411 |
+
font-weight: 200;
|
4412 |
+
color: #777777;
|
4413 |
+
text-shadow: 0 1px 0 #ffffff;
|
4414 |
+
}
|
4415 |
+
|
4416 |
+
.navbar .brand:hover,
|
4417 |
+
.navbar .brand:focus {
|
4418 |
+
text-decoration: none;
|
4419 |
+
}
|
4420 |
+
|
4421 |
+
.navbar-text {
|
4422 |
+
margin-bottom: 0;
|
4423 |
+
line-height: 40px;
|
4424 |
+
color: #777777;
|
4425 |
+
}
|
4426 |
+
|
4427 |
+
.navbar-link {
|
4428 |
+
color: #777777;
|
4429 |
+
}
|
4430 |
+
|
4431 |
+
.navbar-link:hover,
|
4432 |
+
.navbar-link:focus {
|
4433 |
+
color: #333333;
|
4434 |
+
}
|
4435 |
+
|
4436 |
+
.navbar .divider-vertical {
|
4437 |
+
height: 40px;
|
4438 |
+
margin: 0 9px;
|
4439 |
+
border-right: 1px solid #ffffff;
|
4440 |
+
border-left: 1px solid #f2f2f2;
|
4441 |
+
}
|
4442 |
+
|
4443 |
+
.navbar .btn,
|
4444 |
+
.navbar .btn-group {
|
4445 |
+
margin-top: 5px;
|
4446 |
+
}
|
4447 |
+
|
4448 |
+
.navbar .btn-group .btn,
|
4449 |
+
.navbar .input-prepend .btn,
|
4450 |
+
.navbar .input-append .btn,
|
4451 |
+
.navbar .input-prepend .btn-group,
|
4452 |
+
.navbar .input-append .btn-group {
|
4453 |
+
margin-top: 0;
|
4454 |
+
}
|
4455 |
+
|
4456 |
+
.navbar-form {
|
4457 |
+
margin-bottom: 0;
|
4458 |
+
*zoom: 1;
|
4459 |
+
}
|
4460 |
+
|
4461 |
+
.navbar-form:before,
|
4462 |
+
.navbar-form:after {
|
4463 |
+
display: table;
|
4464 |
+
line-height: 0;
|
4465 |
+
content: "";
|
4466 |
+
}
|
4467 |
+
|
4468 |
+
.navbar-form:after {
|
4469 |
+
clear: both;
|
4470 |
+
}
|
4471 |
+
|
4472 |
+
.navbar-form input,
|
4473 |
+
.navbar-form select,
|
4474 |
+
.navbar-form .radio,
|
4475 |
+
.navbar-form .checkbox {
|
4476 |
+
margin-top: 5px;
|
4477 |
+
}
|
4478 |
+
|
4479 |
+
.navbar-form input,
|
4480 |
+
.navbar-form select,
|
4481 |
+
.navbar-form .btn {
|
4482 |
+
display: inline-block;
|
4483 |
+
margin-bottom: 0;
|
4484 |
+
}
|
4485 |
+
|
4486 |
+
.navbar-form input[type="image"],
|
4487 |
+
.navbar-form input[type="checkbox"],
|
4488 |
+
.navbar-form input[type="radio"] {
|
4489 |
+
margin-top: 3px;
|
4490 |
+
}
|
4491 |
+
|
4492 |
+
.navbar-form .input-append,
|
4493 |
+
.navbar-form .input-prepend {
|
4494 |
+
margin-top: 5px;
|
4495 |
+
white-space: nowrap;
|
4496 |
+
}
|
4497 |
+
|
4498 |
+
.navbar-form .input-append input,
|
4499 |
+
.navbar-form .input-prepend input {
|
4500 |
+
margin-top: 0;
|
4501 |
+
}
|
4502 |
+
|
4503 |
+
.navbar-search {
|
4504 |
+
position: relative;
|
4505 |
+
float: left;
|
4506 |
+
margin-top: 5px;
|
4507 |
+
margin-bottom: 0;
|
4508 |
+
}
|
4509 |
+
|
4510 |
+
.navbar-search .search-query {
|
4511 |
+
padding: 4px 14px;
|
4512 |
+
margin-bottom: 0;
|
4513 |
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
4514 |
+
font-size: 13px;
|
4515 |
+
font-weight: normal;
|
4516 |
+
line-height: 1;
|
4517 |
+
-webkit-border-radius: 15px;
|
4518 |
+
-moz-border-radius: 15px;
|
4519 |
+
border-radius: 15px;
|
4520 |
+
}
|
4521 |
+
|
4522 |
+
.navbar-static-top {
|
4523 |
+
position: static;
|
4524 |
+
margin-bottom: 0;
|
4525 |
+
}
|
4526 |
+
|
4527 |
+
.navbar-static-top .navbar-inner {
|
4528 |
+
-webkit-border-radius: 0;
|
4529 |
+
-moz-border-radius: 0;
|
4530 |
+
border-radius: 0;
|
4531 |
+
}
|
4532 |
+
|
4533 |
+
.navbar-fixed-top,
|
4534 |
+
.navbar-fixed-bottom {
|
4535 |
+
position: fixed;
|
4536 |
+
right: 0;
|
4537 |
+
left: 0;
|
4538 |
+
z-index: 1030;
|
4539 |
+
margin-bottom: 0;
|
4540 |
+
}
|
4541 |
+
|
4542 |
+
.navbar-fixed-top .navbar-inner,
|
4543 |
+
.navbar-static-top .navbar-inner {
|
4544 |
+
border-width: 0 0 1px;
|
4545 |
+
}
|
4546 |
+
|
4547 |
+
.navbar-fixed-bottom .navbar-inner {
|
4548 |
+
border-width: 1px 0 0;
|
4549 |
+
}
|
4550 |
+
|
4551 |
+
.navbar-fixed-top .navbar-inner,
|
4552 |
+
.navbar-fixed-bottom .navbar-inner {
|
4553 |
+
padding-right: 0;
|
4554 |
+
padding-left: 0;
|
4555 |
+
-webkit-border-radius: 0;
|
4556 |
+
-moz-border-radius: 0;
|
4557 |
+
border-radius: 0;
|
4558 |
+
}
|
4559 |
+
|
4560 |
+
.navbar-static-top .container,
|
4561 |
+
.navbar-fixed-top .container,
|
4562 |
+
.navbar-fixed-bottom .container {
|
4563 |
+
width: 940px;
|
4564 |
+
}
|
4565 |
+
|
4566 |
+
.navbar-fixed-top {
|
4567 |
+
top: 0;
|
4568 |
+
}
|
4569 |
+
|
4570 |
+
.navbar-fixed-top .navbar-inner,
|
4571 |
+
.navbar-static-top .navbar-inner {
|
4572 |
+
-webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
|
4573 |
+
-moz-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
|
4574 |
+
box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
|
4575 |
+
}
|
4576 |
+
|
4577 |
+
.navbar-fixed-bottom {
|
4578 |
+
bottom: 0;
|
4579 |
+
}
|
4580 |
+
|
4581 |
+
.navbar-fixed-bottom .navbar-inner {
|
4582 |
+
-webkit-box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1);
|
4583 |
+
-moz-box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1);
|
4584 |
+
box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1);
|
4585 |
+
}
|
4586 |
+
|
4587 |
+
.navbar .nav {
|
4588 |
+
position: relative;
|
4589 |
+
left: 0;
|
4590 |
+
display: block;
|
4591 |
+
float: left;
|
4592 |
+
margin: 0 10px 0 0;
|
4593 |
+
}
|
4594 |
+
|
4595 |
+
.navbar .nav.pull-right {
|
4596 |
+
float: right;
|
4597 |
+
margin-right: 0;
|
4598 |
+
}
|
4599 |
+
|
4600 |
+
.navbar .nav > li {
|
4601 |
+
float: left;
|
4602 |
+
}
|
4603 |
+
|
4604 |
+
.navbar .nav > li > a {
|
4605 |
+
float: none;
|
4606 |
+
padding: 10px 15px 10px;
|
4607 |
+
color: #777777;
|
4608 |
+
text-decoration: none;
|
4609 |
+
text-shadow: 0 1px 0 #ffffff;
|
4610 |
+
}
|
4611 |
+
|
4612 |
+
.navbar .nav .dropdown-toggle .caret {
|
4613 |
+
margin-top: 8px;
|
4614 |
+
}
|
4615 |
+
|
4616 |
+
.navbar .nav > li > a:focus,
|
4617 |
+
.navbar .nav > li > a:hover {
|
4618 |
+
color: #333333;
|
4619 |
+
text-decoration: none;
|
4620 |
+
background-color: transparent;
|
4621 |
+
}
|
4622 |
+
|
4623 |
+
.navbar .nav > .active > a,
|
4624 |
+
.navbar .nav > .active > a:hover,
|
4625 |
+
.navbar .nav > .active > a:focus {
|
4626 |
+
color: #555555;
|
4627 |
+
text-decoration: none;
|
4628 |
+
background-color: #e5e5e5;
|
4629 |
+
-webkit-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
|
4630 |
+
-moz-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
|
4631 |
+
box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
|
4632 |
+
}
|
4633 |
+
|
4634 |
+
.navbar .btn-navbar {
|
4635 |
+
display: none;
|
4636 |
+
float: right;
|
4637 |
+
padding: 7px 10px;
|
4638 |
+
margin-right: 5px;
|
4639 |
+
margin-left: 5px;
|
4640 |
+
color: #ffffff;
|
4641 |
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
4642 |
+
background-color: #ededed;
|
4643 |
+
*background-color: #e5e5e5;
|
4644 |
+
background-image: -moz-linear-gradient(top, #f2f2f2, #e5e5e5);
|
4645 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f2f2f2), to(#e5e5e5));
|
4646 |
+
background-image: -webkit-linear-gradient(top, #f2f2f2, #e5e5e5);
|
4647 |
+
background-image: -o-linear-gradient(top, #f2f2f2, #e5e5e5);
|
4648 |
+
background-image: linear-gradient(to bottom, #f2f2f2, #e5e5e5);
|
4649 |
+
background-repeat: repeat-x;
|
4650 |
+
border-color: #e5e5e5 #e5e5e5 #bfbfbf;
|
4651 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
4652 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2f2f2', endColorstr='#ffe5e5e5', GradientType=0);
|
4653 |
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
4654 |
+
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075);
|
4655 |
+
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075);
|
4656 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075);
|
4657 |
+
}
|
4658 |
+
|
4659 |
+
.navbar .btn-navbar:hover,
|
4660 |
+
.navbar .btn-navbar:focus,
|
4661 |
+
.navbar .btn-navbar:active,
|
4662 |
+
.navbar .btn-navbar.active,
|
4663 |
+
.navbar .btn-navbar.disabled,
|
4664 |
+
.navbar .btn-navbar[disabled] {
|
4665 |
+
color: #ffffff;
|
4666 |
+
background-color: #e5e5e5;
|
4667 |
+
*background-color: #d9d9d9;
|
4668 |
+
}
|
4669 |
+
|
4670 |
+
.navbar .btn-navbar:active,
|
4671 |
+
.navbar .btn-navbar.active {
|
4672 |
+
background-color: #cccccc \9;
|
4673 |
+
}
|
4674 |
+
|
4675 |
+
.navbar .btn-navbar .icon-bar {
|
4676 |
+
display: block;
|
4677 |
+
width: 18px;
|
4678 |
+
height: 2px;
|
4679 |
+
background-color: #f5f5f5;
|
4680 |
+
-webkit-border-radius: 1px;
|
4681 |
+
-moz-border-radius: 1px;
|
4682 |
+
border-radius: 1px;
|
4683 |
+
-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
|
4684 |
+
-moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
|
4685 |
+
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
|
4686 |
+
}
|
4687 |
+
|
4688 |
+
.btn-navbar .icon-bar + .icon-bar {
|
4689 |
+
margin-top: 3px;
|
4690 |
+
}
|
4691 |
+
|
4692 |
+
.navbar .nav > li > .dropdown-menu:before {
|
4693 |
+
position: absolute;
|
4694 |
+
top: -7px;
|
4695 |
+
left: 9px;
|
4696 |
+
display: inline-block;
|
4697 |
+
border-right: 7px solid transparent;
|
4698 |
+
border-bottom: 7px solid #ccc;
|
4699 |
+
border-left: 7px solid transparent;
|
4700 |
+
border-bottom-color: rgba(0, 0, 0, 0.2);
|
4701 |
+
content: '';
|
4702 |
+
}
|
4703 |
+
|
4704 |
+
.navbar .nav > li > .dropdown-menu:after {
|
4705 |
+
position: absolute;
|
4706 |
+
top: -6px;
|
4707 |
+
left: 10px;
|
4708 |
+
display: inline-block;
|
4709 |
+
border-right: 6px solid transparent;
|
4710 |
+
border-bottom: 6px solid #ffffff;
|
4711 |
+
border-left: 6px solid transparent;
|
4712 |
+
content: '';
|
4713 |
+
}
|
4714 |
+
|
4715 |
+
.navbar-fixed-bottom .nav > li > .dropdown-menu:before {
|
4716 |
+
top: auto;
|
4717 |
+
bottom: -7px;
|
4718 |
+
border-top: 7px solid #ccc;
|
4719 |
+
border-bottom: 0;
|
4720 |
+
border-top-color: rgba(0, 0, 0, 0.2);
|
4721 |
+
}
|
4722 |
+
|
4723 |
+
.navbar-fixed-bottom .nav > li > .dropdown-menu:after {
|
4724 |
+
top: auto;
|
4725 |
+
bottom: -6px;
|
4726 |
+
border-top: 6px solid #ffffff;
|
4727 |
+
border-bottom: 0;
|
4728 |
+
}
|
4729 |
+
|
4730 |
+
.navbar .nav li.dropdown > a:hover .caret,
|
4731 |
+
.navbar .nav li.dropdown > a:focus .caret {
|
4732 |
+
border-top-color: #333333;
|
4733 |
+
border-bottom-color: #333333;
|
4734 |
+
}
|
4735 |
+
|
4736 |
+
.navbar .nav li.dropdown.open > .dropdown-toggle,
|
4737 |
+
.navbar .nav li.dropdown.active > .dropdown-toggle,
|
4738 |
+
.navbar .nav li.dropdown.open.active > .dropdown-toggle {
|
4739 |
+
color: #555555;
|
4740 |
+
background-color: #e5e5e5;
|
4741 |
+
}
|
4742 |
+
|
4743 |
+
.navbar .nav li.dropdown > .dropdown-toggle .caret {
|
4744 |
+
border-top-color: #777777;
|
4745 |
+
border-bottom-color: #777777;
|
4746 |
+
}
|
4747 |
+
|
4748 |
+
.navbar .nav li.dropdown.open > .dropdown-toggle .caret,
|
4749 |
+
.navbar .nav li.dropdown.active > .dropdown-toggle .caret,
|
4750 |
+
.navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {
|
4751 |
+
border-top-color: #555555;
|
4752 |
+
border-bottom-color: #555555;
|
4753 |
+
}
|
4754 |
+
|
4755 |
+
.navbar .pull-right > li > .dropdown-menu,
|
4756 |
+
.navbar .nav > li > .dropdown-menu.pull-right {
|
4757 |
+
right: 0;
|
4758 |
+
left: auto;
|
4759 |
+
}
|
4760 |
+
|
4761 |
+
.navbar .pull-right > li > .dropdown-menu:before,
|
4762 |
+
.navbar .nav > li > .dropdown-menu.pull-right:before {
|
4763 |
+
right: 12px;
|
4764 |
+
left: auto;
|
4765 |
+
}
|
4766 |
+
|
4767 |
+
.navbar .pull-right > li > .dropdown-menu:after,
|
4768 |
+
.navbar .nav > li > .dropdown-menu.pull-right:after {
|
4769 |
+
right: 13px;
|
4770 |
+
left: auto;
|
4771 |
+
}
|
4772 |
+
|
4773 |
+
.navbar .pull-right > li > .dropdown-menu .dropdown-menu,
|
4774 |
+
.navbar .nav > li > .dropdown-menu.pull-right .dropdown-menu {
|
4775 |
+
right: 100%;
|
4776 |
+
left: auto;
|
4777 |
+
margin-right: -1px;
|
4778 |
+
margin-left: 0;
|
4779 |
+
-webkit-border-radius: 6px 0 6px 6px;
|
4780 |
+
-moz-border-radius: 6px 0 6px 6px;
|
4781 |
+
border-radius: 6px 0 6px 6px;
|
4782 |
+
}
|
4783 |
+
|
4784 |
+
.navbar-inverse .navbar-inner {
|
4785 |
+
background-color: #1b1b1b;
|
4786 |
+
background-image: -moz-linear-gradient(top, #222222, #111111);
|
4787 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#222222), to(#111111));
|
4788 |
+
background-image: -webkit-linear-gradient(top, #222222, #111111);
|
4789 |
+
background-image: -o-linear-gradient(top, #222222, #111111);
|
4790 |
+
background-image: linear-gradient(to bottom, #222222, #111111);
|
4791 |
+
background-repeat: repeat-x;
|
4792 |
+
border-color: #252525;
|
4793 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff222222', endColorstr='#ff111111', GradientType=0);
|
4794 |
+
}
|
4795 |
+
|
4796 |
+
.navbar-inverse .brand,
|
4797 |
+
.navbar-inverse .nav > li > a {
|
4798 |
+
color: #999999;
|
4799 |
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
4800 |
+
}
|
4801 |
+
|
4802 |
+
.navbar-inverse .brand:hover,
|
4803 |
+
.navbar-inverse .nav > li > a:hover,
|
4804 |
+
.navbar-inverse .brand:focus,
|
4805 |
+
.navbar-inverse .nav > li > a:focus {
|
4806 |
+
color: #ffffff;
|
4807 |
+
}
|
4808 |
+
|
4809 |
+
.navbar-inverse .brand {
|
4810 |
+
color: #999999;
|
4811 |
+
}
|
4812 |
+
|
4813 |
+
.navbar-inverse .navbar-text {
|
4814 |
+
color: #999999;
|
4815 |
+
}
|
4816 |
+
|
4817 |
+
.navbar-inverse .nav > li > a:focus,
|
4818 |
+
.navbar-inverse .nav > li > a:hover {
|
4819 |
+
color: #ffffff;
|
4820 |
+
background-color: transparent;
|
4821 |
+
}
|
4822 |
+
|
4823 |
+
.navbar-inverse .nav .active > a,
|
4824 |
+
.navbar-inverse .nav .active > a:hover,
|
4825 |
+
.navbar-inverse .nav .active > a:focus {
|
4826 |
+
color: #ffffff;
|
4827 |
+
background-color: #111111;
|
4828 |
+
}
|
4829 |
+
|
4830 |
+
.navbar-inverse .navbar-link {
|
4831 |
+
color: #999999;
|
4832 |
+
}
|
4833 |
+
|
4834 |
+
.navbar-inverse .navbar-link:hover,
|
4835 |
+
.navbar-inverse .navbar-link:focus {
|
4836 |
+
color: #ffffff;
|
4837 |
+
}
|
4838 |
+
|
4839 |
+
.navbar-inverse .divider-vertical {
|
4840 |
+
border-right-color: #222222;
|
4841 |
+
border-left-color: #111111;
|
4842 |
+
}
|
4843 |
+
|
4844 |
+
.navbar-inverse .nav li.dropdown.open > .dropdown-toggle,
|
4845 |
+
.navbar-inverse .nav li.dropdown.active > .dropdown-toggle,
|
4846 |
+
.navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle {
|
4847 |
+
color: #ffffff;
|
4848 |
+
background-color: #111111;
|
4849 |
+
}
|
4850 |
+
|
4851 |
+
.navbar-inverse .nav li.dropdown > a:hover .caret,
|
4852 |
+
.navbar-inverse .nav li.dropdown > a:focus .caret {
|
4853 |
+
border-top-color: #ffffff;
|
4854 |
+
border-bottom-color: #ffffff;
|
4855 |
+
}
|
4856 |
+
|
4857 |
+
.navbar-inverse .nav li.dropdown > .dropdown-toggle .caret {
|
4858 |
+
border-top-color: #999999;
|
4859 |
+
border-bottom-color: #999999;
|
4860 |
+
}
|
4861 |
+
|
4862 |
+
.navbar-inverse .nav li.dropdown.open > .dropdown-toggle .caret,
|
4863 |
+
.navbar-inverse .nav li.dropdown.active > .dropdown-toggle .caret,
|
4864 |
+
.navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle .caret {
|
4865 |
+
border-top-color: #ffffff;
|
4866 |
+
border-bottom-color: #ffffff;
|
4867 |
+
}
|
4868 |
+
|
4869 |
+
.navbar-inverse .navbar-search .search-query {
|
4870 |
+
color: #ffffff;
|
4871 |
+
background-color: #515151;
|
4872 |
+
border-color: #111111;
|
4873 |
+
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15);
|
4874 |
+
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15);
|
4875 |
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15);
|
4876 |
+
-webkit-transition: none;
|
4877 |
+
-moz-transition: none;
|
4878 |
+
-o-transition: none;
|
4879 |
+
transition: none;
|
4880 |
+
}
|
4881 |
+
|
4882 |
+
.navbar-inverse .navbar-search .search-query:-moz-placeholder {
|
4883 |
+
color: #cccccc;
|
4884 |
+
}
|
4885 |
+
|
4886 |
+
.navbar-inverse .navbar-search .search-query:-ms-input-placeholder {
|
4887 |
+
color: #cccccc;
|
4888 |
+
}
|
4889 |
+
|
4890 |
+
.navbar-inverse .navbar-search .search-query::-webkit-input-placeholder {
|
4891 |
+
color: #cccccc;
|
4892 |
+
}
|
4893 |
+
|
4894 |
+
.navbar-inverse .navbar-search .search-query:focus,
|
4895 |
+
.navbar-inverse .navbar-search .search-query.focused {
|
4896 |
+
padding: 5px 15px;
|
4897 |
+
color: #333333;
|
4898 |
+
text-shadow: 0 1px 0 #ffffff;
|
4899 |
+
background-color: #ffffff;
|
4900 |
+
border: 0;
|
4901 |
+
outline: 0;
|
4902 |
+
-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
|
4903 |
+
-moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
|
4904 |
+
box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
|
4905 |
+
}
|
4906 |
+
|
4907 |
+
.navbar-inverse .btn-navbar {
|
4908 |
+
color: #ffffff;
|
4909 |
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
4910 |
+
background-color: #0e0e0e;
|
4911 |
+
*background-color: #040404;
|
4912 |
+
background-image: -moz-linear-gradient(top, #151515, #040404);
|
4913 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#151515), to(#040404));
|
4914 |
+
background-image: -webkit-linear-gradient(top, #151515, #040404);
|
4915 |
+
background-image: -o-linear-gradient(top, #151515, #040404);
|
4916 |
+
background-image: linear-gradient(to bottom, #151515, #040404);
|
4917 |
+
background-repeat: repeat-x;
|
4918 |
+
border-color: #040404 #040404 #000000;
|
4919 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
4920 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff151515', endColorstr='#ff040404', GradientType=0);
|
4921 |
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
4922 |
+
}
|
4923 |
+
|
4924 |
+
.navbar-inverse .btn-navbar:hover,
|
4925 |
+
.navbar-inverse .btn-navbar:focus,
|
4926 |
+
.navbar-inverse .btn-navbar:active,
|
4927 |
+
.navbar-inverse .btn-navbar.active,
|
4928 |
+
.navbar-inverse .btn-navbar.disabled,
|
4929 |
+
.navbar-inverse .btn-navbar[disabled] {
|
4930 |
+
color: #ffffff;
|
4931 |
+
background-color: #040404;
|
4932 |
+
*background-color: #000000;
|
4933 |
+
}
|
4934 |
+
|
4935 |
+
.navbar-inverse .btn-navbar:active,
|
4936 |
+
.navbar-inverse .btn-navbar.active {
|
4937 |
+
background-color: #000000 \9;
|
4938 |
+
}
|
4939 |
+
|
4940 |
+
.breadcrumb {
|
4941 |
+
padding: 8px 15px;
|
4942 |
+
margin: 0 0 20px;
|
4943 |
+
list-style: none;
|
4944 |
+
background-color: #f5f5f5;
|
4945 |
+
-webkit-border-radius: 4px;
|
4946 |
+
-moz-border-radius: 4px;
|
4947 |
+
border-radius: 4px;
|
4948 |
+
}
|
4949 |
+
|
4950 |
+
.breadcrumb > li {
|
4951 |
+
display: inline-block;
|
4952 |
+
*display: inline;
|
4953 |
+
text-shadow: 0 1px 0 #ffffff;
|
4954 |
+
*zoom: 1;
|
4955 |
+
}
|
4956 |
+
|
4957 |
+
.breadcrumb > li > .divider {
|
4958 |
+
padding: 0 5px;
|
4959 |
+
color: #ccc;
|
4960 |
+
}
|
4961 |
+
|
4962 |
+
.breadcrumb > .active {
|
4963 |
+
color: #999999;
|
4964 |
+
}
|
4965 |
+
|
4966 |
+
.pagination {
|
4967 |
+
margin: 20px 0;
|
4968 |
+
}
|
4969 |
+
|
4970 |
+
.pagination ul {
|
4971 |
+
display: inline-block;
|
4972 |
+
*display: inline;
|
4973 |
+
margin-bottom: 0;
|
4974 |
+
margin-left: 0;
|
4975 |
+
-webkit-border-radius: 4px;
|
4976 |
+
-moz-border-radius: 4px;
|
4977 |
+
border-radius: 4px;
|
4978 |
+
*zoom: 1;
|
4979 |
+
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
4980 |
+
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
4981 |
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
4982 |
+
}
|
4983 |
+
|
4984 |
+
.pagination ul > li {
|
4985 |
+
display: inline;
|
4986 |
+
}
|
4987 |
+
|
4988 |
+
.pagination ul > li > a,
|
4989 |
+
.pagination ul > li > span {
|
4990 |
+
float: left;
|
4991 |
+
padding: 4px 12px;
|
4992 |
+
line-height: 20px;
|
4993 |
+
text-decoration: none;
|
4994 |
+
background-color: #ffffff;
|
4995 |
+
border: 1px solid #dddddd;
|
4996 |
+
border-left-width: 0;
|
4997 |
+
}
|
4998 |
+
|
4999 |
+
.pagination ul > li > a:hover,
|
5000 |
+
.pagination ul > li > a:focus,
|
5001 |
+
.pagination ul > .active > a,
|
5002 |
+
.pagination ul > .active > span {
|
5003 |
+
background-color: #f5f5f5;
|
5004 |
+
}
|
5005 |
+
|
5006 |
+
.pagination ul > .active > a,
|
5007 |
+
.pagination ul > .active > span {
|
5008 |
+
color: #999999;
|
5009 |
+
cursor: default;
|
5010 |
+
}
|
5011 |
+
|
5012 |
+
.pagination ul > .disabled > span,
|
5013 |
+
.pagination ul > .disabled > a,
|
5014 |
+
.pagination ul > .disabled > a:hover,
|
5015 |
+
.pagination ul > .disabled > a:focus {
|
5016 |
+
color: #999999;
|
5017 |
+
cursor: default;
|
5018 |
+
background-color: transparent;
|
5019 |
+
}
|
5020 |
+
|
5021 |
+
.pagination ul > li:first-child > a,
|
5022 |
+
.pagination ul > li:first-child > span {
|
5023 |
+
border-left-width: 1px;
|
5024 |
+
-webkit-border-bottom-left-radius: 4px;
|
5025 |
+
border-bottom-left-radius: 4px;
|
5026 |
+
-webkit-border-top-left-radius: 4px;
|
5027 |
+
border-top-left-radius: 4px;
|
5028 |
+
-moz-border-radius-bottomleft: 4px;
|
5029 |
+
-moz-border-radius-topleft: 4px;
|
5030 |
+
}
|
5031 |
+
|
5032 |
+
.pagination ul > li:last-child > a,
|
5033 |
+
.pagination ul > li:last-child > span {
|
5034 |
+
-webkit-border-top-right-radius: 4px;
|
5035 |
+
border-top-right-radius: 4px;
|
5036 |
+
-webkit-border-bottom-right-radius: 4px;
|
5037 |
+
border-bottom-right-radius: 4px;
|
5038 |
+
-moz-border-radius-topright: 4px;
|
5039 |
+
-moz-border-radius-bottomright: 4px;
|
5040 |
+
}
|
5041 |
+
|
5042 |
+
.pagination-centered {
|
5043 |
+
text-align: center;
|
5044 |
+
}
|
5045 |
+
|
5046 |
+
.pagination-right {
|
5047 |
+
text-align: right;
|
5048 |
+
}
|
5049 |
+
|
5050 |
+
.pagination-large ul > li > a,
|
5051 |
+
.pagination-large ul > li > span {
|
5052 |
+
padding: 11px 19px;
|
5053 |
+
font-size: 17.5px;
|
5054 |
+
}
|
5055 |
+
|
5056 |
+
.pagination-large ul > li:first-child > a,
|
5057 |
+
.pagination-large ul > li:first-child > span {
|
5058 |
+
-webkit-border-bottom-left-radius: 6px;
|
5059 |
+
border-bottom-left-radius: 6px;
|
5060 |
+
-webkit-border-top-left-radius: 6px;
|
5061 |
+
border-top-left-radius: 6px;
|
5062 |
+
-moz-border-radius-bottomleft: 6px;
|
5063 |
+
-moz-border-radius-topleft: 6px;
|
5064 |
+
}
|
5065 |
+
|
5066 |
+
.pagination-large ul > li:last-child > a,
|
5067 |
+
.pagination-large ul > li:last-child > span {
|
5068 |
+
-webkit-border-top-right-radius: 6px;
|
5069 |
+
border-top-right-radius: 6px;
|
5070 |
+
-webkit-border-bottom-right-radius: 6px;
|
5071 |
+
border-bottom-right-radius: 6px;
|
5072 |
+
-moz-border-radius-topright: 6px;
|
5073 |
+
-moz-border-radius-bottomright: 6px;
|
5074 |
+
}
|
5075 |
+
|
5076 |
+
.pagination-mini ul > li:first-child > a,
|
5077 |
+
.pagination-small ul > li:first-child > a,
|
5078 |
+
.pagination-mini ul > li:first-child > span,
|
5079 |
+
.pagination-small ul > li:first-child > span {
|
5080 |
+
-webkit-border-bottom-left-radius: 3px;
|
5081 |
+
border-bottom-left-radius: 3px;
|
5082 |
+
-webkit-border-top-left-radius: 3px;
|
5083 |
+
border-top-left-radius: 3px;
|
5084 |
+
-moz-border-radius-bottomleft: 3px;
|
5085 |
+
-moz-border-radius-topleft: 3px;
|
5086 |
+
}
|
5087 |
+
|
5088 |
+
.pagination-mini ul > li:last-child > a,
|
5089 |
+
.pagination-small ul > li:last-child > a,
|
5090 |
+
.pagination-mini ul > li:last-child > span,
|
5091 |
+
.pagination-small ul > li:last-child > span {
|
5092 |
+
-webkit-border-top-right-radius: 3px;
|
5093 |
+
border-top-right-radius: 3px;
|
5094 |
+
-webkit-border-bottom-right-radius: 3px;
|
5095 |
+
border-bottom-right-radius: 3px;
|
5096 |
+
-moz-border-radius-topright: 3px;
|
5097 |
+
-moz-border-radius-bottomright: 3px;
|
5098 |
+
}
|
5099 |
+
|
5100 |
+
.pagination-small ul > li > a,
|
5101 |
+
.pagination-small ul > li > span {
|
5102 |
+
padding: 2px 10px;
|
5103 |
+
font-size: 11.9px;
|
5104 |
+
}
|
5105 |
+
|
5106 |
+
.pagination-mini ul > li > a,
|
5107 |
+
.pagination-mini ul > li > span {
|
5108 |
+
padding: 0 6px;
|
5109 |
+
font-size: 10.5px;
|
5110 |
+
}
|
5111 |
+
|
5112 |
+
.pager {
|
5113 |
+
margin: 20px 0;
|
5114 |
+
text-align: center;
|
5115 |
+
list-style: none;
|
5116 |
+
*zoom: 1;
|
5117 |
+
}
|
5118 |
+
|
5119 |
+
.pager:before,
|
5120 |
+
.pager:after {
|
5121 |
+
display: table;
|
5122 |
+
line-height: 0;
|
5123 |
+
content: "";
|
5124 |
+
}
|
5125 |
+
|
5126 |
+
.pager:after {
|
5127 |
+
clear: both;
|
5128 |
+
}
|
5129 |
+
|
5130 |
+
.pager li {
|
5131 |
+
display: inline;
|
5132 |
+
}
|
5133 |
+
|
5134 |
+
.pager li > a,
|
5135 |
+
.pager li > span {
|
5136 |
+
display: inline-block;
|
5137 |
+
padding: 5px 14px;
|
5138 |
+
background-color: #fff;
|
5139 |
+
border: 1px solid #ddd;
|
5140 |
+
-webkit-border-radius: 15px;
|
5141 |
+
-moz-border-radius: 15px;
|
5142 |
+
border-radius: 15px;
|
5143 |
+
}
|
5144 |
+
|
5145 |
+
.pager li > a:hover,
|
5146 |
+
.pager li > a:focus {
|
5147 |
+
text-decoration: none;
|
5148 |
+
background-color: #f5f5f5;
|
5149 |
+
}
|
5150 |
+
|
5151 |
+
.pager .next > a,
|
5152 |
+
.pager .next > span {
|
5153 |
+
float: right;
|
5154 |
+
}
|
5155 |
+
|
5156 |
+
.pager .previous > a,
|
5157 |
+
.pager .previous > span {
|
5158 |
+
float: left;
|
5159 |
+
}
|
5160 |
+
|
5161 |
+
.pager .disabled > a,
|
5162 |
+
.pager .disabled > a:hover,
|
5163 |
+
.pager .disabled > a:focus,
|
5164 |
+
.pager .disabled > span {
|
5165 |
+
color: #999999;
|
5166 |
+
cursor: default;
|
5167 |
+
background-color: #fff;
|
5168 |
+
}
|
5169 |
+
|
5170 |
+
.modal-backdrop {
|
5171 |
+
position: fixed;
|
5172 |
+
top: 0;
|
5173 |
+
right: 0;
|
5174 |
+
bottom: 0;
|
5175 |
+
left: 0;
|
5176 |
+
z-index: 1040;
|
5177 |
+
background-color: #000000;
|
5178 |
+
}
|
5179 |
+
|
5180 |
+
.modal-backdrop.fade {
|
5181 |
+
opacity: 0;
|
5182 |
+
}
|
5183 |
+
|
5184 |
+
.modal-backdrop,
|
5185 |
+
.modal-backdrop.fade.in {
|
5186 |
+
opacity: 0.8;
|
5187 |
+
filter: alpha(opacity=80);
|
5188 |
+
}
|
5189 |
+
|
5190 |
+
.modal {
|
5191 |
+
position: fixed;
|
5192 |
+
top: 10%;
|
5193 |
+
left: 50%;
|
5194 |
+
z-index: 1050;
|
5195 |
+
width: 560px;
|
5196 |
+
margin-left: -280px;
|
5197 |
+
background-color: #ffffff;
|
5198 |
+
border: 1px solid #999;
|
5199 |
+
border: 1px solid rgba(0, 0, 0, 0.3);
|
5200 |
+
*border: 1px solid #999;
|
5201 |
+
-webkit-border-radius: 6px;
|
5202 |
+
-moz-border-radius: 6px;
|
5203 |
+
border-radius: 6px;
|
5204 |
+
outline: none;
|
5205 |
+
-webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
|
5206 |
+
-moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
|
5207 |
+
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
|
5208 |
+
-webkit-background-clip: padding-box;
|
5209 |
+
-moz-background-clip: padding-box;
|
5210 |
+
background-clip: padding-box;
|
5211 |
+
}
|
5212 |
+
|
5213 |
+
.modal.fade {
|
5214 |
+
top: -25%;
|
5215 |
+
-webkit-transition: opacity 0.3s linear, top 0.3s ease-out;
|
5216 |
+
-moz-transition: opacity 0.3s linear, top 0.3s ease-out;
|
5217 |
+
-o-transition: opacity 0.3s linear, top 0.3s ease-out;
|
5218 |
+
transition: opacity 0.3s linear, top 0.3s ease-out;
|
5219 |
+
}
|
5220 |
+
|
5221 |
+
.modal.fade.in {
|
5222 |
+
top: 10%;
|
5223 |
+
}
|
5224 |
+
|
5225 |
+
.modal-header {
|
5226 |
+
padding: 9px 15px;
|
5227 |
+
border-bottom: 1px solid #eee;
|
5228 |
+
}
|
5229 |
+
|
5230 |
+
.modal-header .close {
|
5231 |
+
margin-top: 2px;
|
5232 |
+
}
|
5233 |
+
|
5234 |
+
.modal-header h3 {
|
5235 |
+
margin: 0;
|
5236 |
+
line-height: 30px;
|
5237 |
+
}
|
5238 |
+
|
5239 |
+
.modal-body {
|
5240 |
+
position: relative;
|
5241 |
+
max-height: 400px;
|
5242 |
+
padding: 15px;
|
5243 |
+
overflow-y: auto;
|
5244 |
+
}
|
5245 |
+
|
5246 |
+
.modal-form {
|
5247 |
+
margin-bottom: 0;
|
5248 |
+
}
|
5249 |
+
|
5250 |
+
.modal-footer {
|
5251 |
+
padding: 14px 15px 15px;
|
5252 |
+
margin-bottom: 0;
|
5253 |
+
text-align: right;
|
5254 |
+
background-color: #f5f5f5;
|
5255 |
+
border-top: 1px solid #ddd;
|
5256 |
+
-webkit-border-radius: 0 0 6px 6px;
|
5257 |
+
-moz-border-radius: 0 0 6px 6px;
|
5258 |
+
border-radius: 0 0 6px 6px;
|
5259 |
+
*zoom: 1;
|
5260 |
+
-webkit-box-shadow: inset 0 1px 0 #ffffff;
|
5261 |
+
-moz-box-shadow: inset 0 1px 0 #ffffff;
|
5262 |
+
box-shadow: inset 0 1px 0 #ffffff;
|
5263 |
+
}
|
5264 |
+
|
5265 |
+
.modal-footer:before,
|
5266 |
+
.modal-footer:after {
|
5267 |
+
display: table;
|
5268 |
+
line-height: 0;
|
5269 |
+
content: "";
|
5270 |
+
}
|
5271 |
+
|
5272 |
+
.modal-footer:after {
|
5273 |
+
clear: both;
|
5274 |
+
}
|
5275 |
+
|
5276 |
+
.modal-footer .btn + .btn {
|
5277 |
+
margin-bottom: 0;
|
5278 |
+
margin-left: 5px;
|
5279 |
+
}
|
5280 |
+
|
5281 |
+
.modal-footer .btn-group .btn + .btn {
|
5282 |
+
margin-left: -1px;
|
5283 |
+
}
|
5284 |
+
|
5285 |
+
.modal-footer .btn-block + .btn-block {
|
5286 |
+
margin-left: 0;
|
5287 |
+
}
|
5288 |
+
|
5289 |
+
.tooltip {
|
5290 |
+
position: absolute;
|
5291 |
+
z-index: 1030;
|
5292 |
+
display: block;
|
5293 |
+
font-size: 11px;
|
5294 |
+
line-height: 1.4;
|
5295 |
+
opacity: 0;
|
5296 |
+
filter: alpha(opacity=0);
|
5297 |
+
visibility: visible;
|
5298 |
+
}
|
5299 |
+
|
5300 |
+
.tooltip.in {
|
5301 |
+
opacity: 0.8;
|
5302 |
+
filter: alpha(opacity=80);
|
5303 |
+
}
|
5304 |
+
|
5305 |
+
.tooltip.top {
|
5306 |
+
padding: 5px 0;
|
5307 |
+
margin-top: -3px;
|
5308 |
+
}
|
5309 |
+
|
5310 |
+
.tooltip.right {
|
5311 |
+
padding: 0 5px;
|
5312 |
+
margin-left: 3px;
|
5313 |
+
}
|
5314 |
+
|
5315 |
+
.tooltip.bottom {
|
5316 |
+
padding: 5px 0;
|
5317 |
+
margin-top: 3px;
|
5318 |
+
}
|
5319 |
+
|
5320 |
+
.tooltip.left {
|
5321 |
+
padding: 0 5px;
|
5322 |
+
margin-left: -3px;
|
5323 |
+
}
|
5324 |
+
|
5325 |
+
.tooltip-inner {
|
5326 |
+
max-width: 200px;
|
5327 |
+
padding: 8px;
|
5328 |
+
color: #ffffff;
|
5329 |
+
text-align: center;
|
5330 |
+
text-decoration: none;
|
5331 |
+
background-color: #000000;
|
5332 |
+
-webkit-border-radius: 4px;
|
5333 |
+
-moz-border-radius: 4px;
|
5334 |
+
border-radius: 4px;
|
5335 |
+
}
|
5336 |
+
|
5337 |
+
.tooltip-arrow {
|
5338 |
+
position: absolute;
|
5339 |
+
width: 0;
|
5340 |
+
height: 0;
|
5341 |
+
border-color: transparent;
|
5342 |
+
border-style: solid;
|
5343 |
+
}
|
5344 |
+
|
5345 |
+
.tooltip.top .tooltip-arrow {
|
5346 |
+
bottom: 0;
|
5347 |
+
left: 50%;
|
5348 |
+
margin-left: -5px;
|
5349 |
+
border-top-color: #000000;
|
5350 |
+
border-width: 5px 5px 0;
|
5351 |
+
}
|
5352 |
+
|
5353 |
+
.tooltip.right .tooltip-arrow {
|
5354 |
+
top: 50%;
|
5355 |
+
left: 0;
|
5356 |
+
margin-top: -5px;
|
5357 |
+
border-right-color: #000000;
|
5358 |
+
border-width: 5px 5px 5px 0;
|
5359 |
+
}
|
5360 |
+
|
5361 |
+
.tooltip.left .tooltip-arrow {
|
5362 |
+
top: 50%;
|
5363 |
+
right: 0;
|
5364 |
+
margin-top: -5px;
|
5365 |
+
border-left-color: #000000;
|
5366 |
+
border-width: 5px 0 5px 5px;
|
5367 |
+
}
|
5368 |
+
|
5369 |
+
.tooltip.bottom .tooltip-arrow {
|
5370 |
+
top: 0;
|
5371 |
+
left: 50%;
|
5372 |
+
margin-left: -5px;
|
5373 |
+
border-bottom-color: #000000;
|
5374 |
+
border-width: 0 5px 5px;
|
5375 |
+
}
|
5376 |
+
|
5377 |
+
.popover {
|
5378 |
+
position: absolute;
|
5379 |
+
top: 0;
|
5380 |
+
left: 0;
|
5381 |
+
z-index: 1010;
|
5382 |
+
display: none;
|
5383 |
+
max-width: 276px;
|
5384 |
+
padding: 1px;
|
5385 |
+
text-align: left;
|
5386 |
+
white-space: normal;
|
5387 |
+
background-color: #ffffff;
|
5388 |
+
border: 1px solid #ccc;
|
5389 |
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
5390 |
+
-webkit-border-radius: 6px;
|
5391 |
+
-moz-border-radius: 6px;
|
5392 |
+
border-radius: 6px;
|
5393 |
+
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
5394 |
+
-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
5395 |
+
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
5396 |
+
-webkit-background-clip: padding-box;
|
5397 |
+
-moz-background-clip: padding;
|
5398 |
+
background-clip: padding-box;
|
5399 |
+
}
|
5400 |
+
|
5401 |
+
.popover.top {
|
5402 |
+
margin-top: -10px;
|
5403 |
+
}
|
5404 |
+
|
5405 |
+
.popover.right {
|
5406 |
+
margin-left: 10px;
|
5407 |
+
}
|
5408 |
+
|
5409 |
+
.popover.bottom {
|
5410 |
+
margin-top: 10px;
|
5411 |
+
}
|
5412 |
+
|
5413 |
+
.popover.left {
|
5414 |
+
margin-left: -10px;
|
5415 |
+
}
|
5416 |
+
|
5417 |
+
.popover-title {
|
5418 |
+
padding: 8px 14px;
|
5419 |
+
margin: 0;
|
5420 |
+
font-size: 14px;
|
5421 |
+
font-weight: normal;
|
5422 |
+
line-height: 18px;
|
5423 |
+
background-color: #f7f7f7;
|
5424 |
+
border-bottom: 1px solid #ebebeb;
|
5425 |
+
-webkit-border-radius: 5px 5px 0 0;
|
5426 |
+
-moz-border-radius: 5px 5px 0 0;
|
5427 |
+
border-radius: 5px 5px 0 0;
|
5428 |
+
}
|
5429 |
+
|
5430 |
+
.popover-title:empty {
|
5431 |
+
display: none;
|
5432 |
+
}
|
5433 |
+
|
5434 |
+
.popover-content {
|
5435 |
+
padding: 9px 14px;
|
5436 |
+
}
|
5437 |
+
|
5438 |
+
.popover .arrow,
|
5439 |
+
.popover .arrow:after {
|
5440 |
+
position: absolute;
|
5441 |
+
display: block;
|
5442 |
+
width: 0;
|
5443 |
+
height: 0;
|
5444 |
+
border-color: transparent;
|
5445 |
+
border-style: solid;
|
5446 |
+
}
|
5447 |
+
|
5448 |
+
.popover .arrow {
|
5449 |
+
border-width: 11px;
|
5450 |
+
}
|
5451 |
+
|
5452 |
+
.popover .arrow:after {
|
5453 |
+
border-width: 10px;
|
5454 |
+
content: "";
|
5455 |
+
}
|
5456 |
+
|
5457 |
+
.popover.top .arrow {
|
5458 |
+
bottom: -11px;
|
5459 |
+
left: 50%;
|
5460 |
+
margin-left: -11px;
|
5461 |
+
border-top-color: #999;
|
5462 |
+
border-top-color: rgba(0, 0, 0, 0.25);
|
5463 |
+
border-bottom-width: 0;
|
5464 |
+
}
|
5465 |
+
|
5466 |
+
.popover.top .arrow:after {
|
5467 |
+
bottom: 1px;
|
5468 |
+
margin-left: -10px;
|
5469 |
+
border-top-color: #ffffff;
|
5470 |
+
border-bottom-width: 0;
|
5471 |
+
}
|
5472 |
+
|
5473 |
+
.popover.right .arrow {
|
5474 |
+
top: 50%;
|
5475 |
+
left: -11px;
|
5476 |
+
margin-top: -11px;
|
5477 |
+
border-right-color: #999;
|
5478 |
+
border-right-color: rgba(0, 0, 0, 0.25);
|
5479 |
+
border-left-width: 0;
|
5480 |
+
}
|
5481 |
+
|
5482 |
+
.popover.right .arrow:after {
|
5483 |
+
bottom: -10px;
|
5484 |
+
left: 1px;
|
5485 |
+
border-right-color: #ffffff;
|
5486 |
+
border-left-width: 0;
|
5487 |
+
}
|
5488 |
+
|
5489 |
+
.popover.bottom .arrow {
|
5490 |
+
top: -11px;
|
5491 |
+
left: 50%;
|
5492 |
+
margin-left: -11px;
|
5493 |
+
border-bottom-color: #999;
|
5494 |
+
border-bottom-color: rgba(0, 0, 0, 0.25);
|
5495 |
+
border-top-width: 0;
|
5496 |
+
}
|
5497 |
+
|
5498 |
+
.popover.bottom .arrow:after {
|
5499 |
+
top: 1px;
|
5500 |
+
margin-left: -10px;
|
5501 |
+
border-bottom-color: #ffffff;
|
5502 |
+
border-top-width: 0;
|
5503 |
+
}
|
5504 |
+
|
5505 |
+
.popover.left .arrow {
|
5506 |
+
top: 50%;
|
5507 |
+
right: -11px;
|
5508 |
+
margin-top: -11px;
|
5509 |
+
border-left-color: #999;
|
5510 |
+
border-left-color: rgba(0, 0, 0, 0.25);
|
5511 |
+
border-right-width: 0;
|
5512 |
+
}
|
5513 |
+
|
5514 |
+
.popover.left .arrow:after {
|
5515 |
+
right: 1px;
|
5516 |
+
bottom: -10px;
|
5517 |
+
border-left-color: #ffffff;
|
5518 |
+
border-right-width: 0;
|
5519 |
+
}
|
5520 |
+
|
5521 |
+
.thumbnails {
|
5522 |
+
margin-left: -20px;
|
5523 |
+
list-style: none;
|
5524 |
+
*zoom: 1;
|
5525 |
+
}
|
5526 |
+
|
5527 |
+
.thumbnails:before,
|
5528 |
+
.thumbnails:after {
|
5529 |
+
display: table;
|
5530 |
+
line-height: 0;
|
5531 |
+
content: "";
|
5532 |
+
}
|
5533 |
+
|
5534 |
+
.thumbnails:after {
|
5535 |
+
clear: both;
|
5536 |
+
}
|
5537 |
+
|
5538 |
+
.row-fluid .thumbnails {
|
5539 |
+
margin-left: 0;
|
5540 |
+
}
|
5541 |
+
|
5542 |
+
.thumbnails > li {
|
5543 |
+
float: left;
|
5544 |
+
margin-bottom: 20px;
|
5545 |
+
margin-left: 20px;
|
5546 |
+
}
|
5547 |
+
|
5548 |
+
.thumbnail {
|
5549 |
+
display: block;
|
5550 |
+
padding: 4px;
|
5551 |
+
line-height: 20px;
|
5552 |
+
border: 1px solid #ddd;
|
5553 |
+
-webkit-border-radius: 4px;
|
5554 |
+
-moz-border-radius: 4px;
|
5555 |
+
border-radius: 4px;
|
5556 |
+
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055);
|
5557 |
+
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055);
|
5558 |
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055);
|
5559 |
+
-webkit-transition: all 0.2s ease-in-out;
|
5560 |
+
-moz-transition: all 0.2s ease-in-out;
|
5561 |
+
-o-transition: all 0.2s ease-in-out;
|
5562 |
+
transition: all 0.2s ease-in-out;
|
5563 |
+
}
|
5564 |
+
|
5565 |
+
a.thumbnail:hover,
|
5566 |
+
a.thumbnail:focus {
|
5567 |
+
border-color: #0088cc;
|
5568 |
+
-webkit-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);
|
5569 |
+
-moz-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);
|
5570 |
+
box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);
|
5571 |
+
}
|
5572 |
+
|
5573 |
+
.thumbnail > img {
|
5574 |
+
display: block;
|
5575 |
+
max-width: 100%;
|
5576 |
+
margin-right: auto;
|
5577 |
+
margin-left: auto;
|
5578 |
+
}
|
5579 |
+
|
5580 |
+
.thumbnail .caption {
|
5581 |
+
padding: 9px;
|
5582 |
+
color: #555555;
|
5583 |
+
}
|
5584 |
+
|
5585 |
+
.media,
|
5586 |
+
.media-body {
|
5587 |
+
overflow: hidden;
|
5588 |
+
*overflow: visible;
|
5589 |
+
zoom: 1;
|
5590 |
+
}
|
5591 |
+
|
5592 |
+
.media,
|
5593 |
+
.media .media {
|
5594 |
+
margin-top: 15px;
|
5595 |
+
}
|
5596 |
+
|
5597 |
+
.media:first-child {
|
5598 |
+
margin-top: 0;
|
5599 |
+
}
|
5600 |
+
|
5601 |
+
.media-object {
|
5602 |
+
display: block;
|
5603 |
+
}
|
5604 |
+
|
5605 |
+
.media-heading {
|
5606 |
+
margin: 0 0 5px;
|
5607 |
+
}
|
5608 |
+
|
5609 |
+
.media > .pull-left {
|
5610 |
+
margin-right: 10px;
|
5611 |
+
}
|
5612 |
+
|
5613 |
+
.media > .pull-right {
|
5614 |
+
margin-left: 10px;
|
5615 |
+
}
|
5616 |
+
|
5617 |
+
.media-list {
|
5618 |
+
margin-left: 0;
|
5619 |
+
list-style: none;
|
5620 |
+
}
|
5621 |
+
|
5622 |
+
.label,
|
5623 |
+
.badge {
|
5624 |
+
display: inline-block;
|
5625 |
+
padding: 2px 4px;
|
5626 |
+
font-size: 11.844px;
|
5627 |
+
font-weight: bold;
|
5628 |
+
line-height: 14px;
|
5629 |
+
color: #ffffff;
|
5630 |
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
5631 |
+
white-space: nowrap;
|
5632 |
+
vertical-align: baseline;
|
5633 |
+
background-color: #999999;
|
5634 |
+
}
|
5635 |
+
|
5636 |
+
.label {
|
5637 |
+
-webkit-border-radius: 3px;
|
5638 |
+
-moz-border-radius: 3px;
|
5639 |
+
border-radius: 3px;
|
5640 |
+
}
|
5641 |
+
|
5642 |
+
.badge {
|
5643 |
+
padding-right: 9px;
|
5644 |
+
padding-left: 9px;
|
5645 |
+
-webkit-border-radius: 9px;
|
5646 |
+
-moz-border-radius: 9px;
|
5647 |
+
border-radius: 9px;
|
5648 |
+
}
|
5649 |
+
|
5650 |
+
.label:empty,
|
5651 |
+
.badge:empty {
|
5652 |
+
display: none;
|
5653 |
+
}
|
5654 |
+
|
5655 |
+
a.label:hover,
|
5656 |
+
a.label:focus,
|
5657 |
+
a.badge:hover,
|
5658 |
+
a.badge:focus {
|
5659 |
+
color: #ffffff;
|
5660 |
+
text-decoration: none;
|
5661 |
+
cursor: pointer;
|
5662 |
+
}
|
5663 |
+
|
5664 |
+
.label-important,
|
5665 |
+
.badge-important {
|
5666 |
+
background-color: #b94a48;
|
5667 |
+
}
|
5668 |
+
|
5669 |
+
.label-important[href],
|
5670 |
+
.badge-important[href] {
|
5671 |
+
background-color: #953b39;
|
5672 |
+
}
|
5673 |
+
|
5674 |
+
.label-warning,
|
5675 |
+
.badge-warning {
|
5676 |
+
background-color: #f89406;
|
5677 |
+
}
|
5678 |
+
|
5679 |
+
.label-warning[href],
|
5680 |
+
.badge-warning[href] {
|
5681 |
+
background-color: #c67605;
|
5682 |
+
}
|
5683 |
+
|
5684 |
+
.label-success,
|
5685 |
+
.badge-success {
|
5686 |
+
background-color: #468847;
|
5687 |
+
}
|
5688 |
+
|
5689 |
+
.label-success[href],
|
5690 |
+
.badge-success[href] {
|
5691 |
+
background-color: #356635;
|
5692 |
+
}
|
5693 |
+
|
5694 |
+
.label-info,
|
5695 |
+
.badge-info {
|
5696 |
+
background-color: #3a87ad;
|
5697 |
+
}
|
5698 |
+
|
5699 |
+
.label-info[href],
|
5700 |
+
.badge-info[href] {
|
5701 |
+
background-color: #2d6987;
|
5702 |
+
}
|
5703 |
+
|
5704 |
+
.label-inverse,
|
5705 |
+
.badge-inverse {
|
5706 |
+
background-color: #333333;
|
5707 |
+
}
|
5708 |
+
|
5709 |
+
.label-inverse[href],
|
5710 |
+
.badge-inverse[href] {
|
5711 |
+
background-color: #1a1a1a;
|
5712 |
+
}
|
5713 |
+
|
5714 |
+
.btn .label,
|
5715 |
+
.btn .badge {
|
5716 |
+
position: relative;
|
5717 |
+
top: -1px;
|
5718 |
+
}
|
5719 |
+
|
5720 |
+
.btn-mini .label,
|
5721 |
+
.btn-mini .badge {
|
5722 |
+
top: 0;
|
5723 |
+
}
|
5724 |
+
|
5725 |
+
@-webkit-keyframes progress-bar-stripes {
|
5726 |
+
from {
|
5727 |
+
background-position: 40px 0;
|
5728 |
+
}
|
5729 |
+
to {
|
5730 |
+
background-position: 0 0;
|
5731 |
+
}
|
5732 |
+
}
|
5733 |
+
|
5734 |
+
@-moz-keyframes progress-bar-stripes {
|
5735 |
+
from {
|
5736 |
+
background-position: 40px 0;
|
5737 |
+
}
|
5738 |
+
to {
|
5739 |
+
background-position: 0 0;
|
5740 |
+
}
|
5741 |
+
}
|
5742 |
+
|
5743 |
+
@-ms-keyframes progress-bar-stripes {
|
5744 |
+
from {
|
5745 |
+
background-position: 40px 0;
|
5746 |
+
}
|
5747 |
+
to {
|
5748 |
+
background-position: 0 0;
|
5749 |
+
}
|
5750 |
+
}
|
5751 |
+
|
5752 |
+
@-o-keyframes progress-bar-stripes {
|
5753 |
+
from {
|
5754 |
+
background-position: 0 0;
|
5755 |
+
}
|
5756 |
+
to {
|
5757 |
+
background-position: 40px 0;
|
5758 |
+
}
|
5759 |
+
}
|
5760 |
+
|
5761 |
+
@keyframes progress-bar-stripes {
|
5762 |
+
from {
|
5763 |
+
background-position: 40px 0;
|
5764 |
+
}
|
5765 |
+
to {
|
5766 |
+
background-position: 0 0;
|
5767 |
+
}
|
5768 |
+
}
|
5769 |
+
|
5770 |
+
.progress {
|
5771 |
+
height: 20px;
|
5772 |
+
margin-bottom: 20px;
|
5773 |
+
overflow: hidden;
|
5774 |
+
background-color: #f7f7f7;
|
5775 |
+
background-image: -moz-linear-gradient(top, #f5f5f5, #f9f9f9);
|
5776 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9));
|
5777 |
+
background-image: -webkit-linear-gradient(top, #f5f5f5, #f9f9f9);
|
5778 |
+
background-image: -o-linear-gradient(top, #f5f5f5, #f9f9f9);
|
5779 |
+
background-image: linear-gradient(to bottom, #f5f5f5, #f9f9f9);
|
5780 |
+
background-repeat: repeat-x;
|
5781 |
+
-webkit-border-radius: 4px;
|
5782 |
+
-moz-border-radius: 4px;
|
5783 |
+
border-radius: 4px;
|
5784 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0);
|
5785 |
+
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
5786 |
+
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
5787 |
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
5788 |
+
}
|
5789 |
+
|
5790 |
+
.progress .bar {
|
5791 |
+
float: left;
|
5792 |
+
width: 0;
|
5793 |
+
height: 100%;
|
5794 |
+
font-size: 12px;
|
5795 |
+
color: #ffffff;
|
5796 |
+
text-align: center;
|
5797 |
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
5798 |
+
background-color: #0e90d2;
|
5799 |
+
background-image: -moz-linear-gradient(top, #149bdf, #0480be);
|
5800 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be));
|
5801 |
+
background-image: -webkit-linear-gradient(top, #149bdf, #0480be);
|
5802 |
+
background-image: -o-linear-gradient(top, #149bdf, #0480be);
|
5803 |
+
background-image: linear-gradient(to bottom, #149bdf, #0480be);
|
5804 |
+
background-repeat: repeat-x;
|
5805 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0);
|
5806 |
+
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
5807 |
+
-moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
5808 |
+
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
5809 |
+
-webkit-box-sizing: border-box;
|
5810 |
+
-moz-box-sizing: border-box;
|
5811 |
+
box-sizing: border-box;
|
5812 |
+
-webkit-transition: width 0.6s ease;
|
5813 |
+
-moz-transition: width 0.6s ease;
|
5814 |
+
-o-transition: width 0.6s ease;
|
5815 |
+
transition: width 0.6s ease;
|
5816 |
+
}
|
5817 |
+
|
5818 |
+
.progress .bar + .bar {
|
5819 |
+
-webkit-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
5820 |
+
-moz-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
5821 |
+
box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
5822 |
+
}
|
5823 |
+
|
5824 |
+
.progress-striped .bar {
|
5825 |
+
background-color: #149bdf;
|
5826 |
+
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
|
5827 |
+
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5828 |
+
background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5829 |
+
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5830 |
+
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5831 |
+
-webkit-background-size: 40px 40px;
|
5832 |
+
-moz-background-size: 40px 40px;
|
5833 |
+
-o-background-size: 40px 40px;
|
5834 |
+
background-size: 40px 40px;
|
5835 |
+
}
|
5836 |
+
|
5837 |
+
.progress.active .bar {
|
5838 |
+
-webkit-animation: progress-bar-stripes 2s linear infinite;
|
5839 |
+
-moz-animation: progress-bar-stripes 2s linear infinite;
|
5840 |
+
-ms-animation: progress-bar-stripes 2s linear infinite;
|
5841 |
+
-o-animation: progress-bar-stripes 2s linear infinite;
|
5842 |
+
animation: progress-bar-stripes 2s linear infinite;
|
5843 |
+
}
|
5844 |
+
|
5845 |
+
.progress-danger .bar,
|
5846 |
+
.progress .bar-danger {
|
5847 |
+
background-color: #dd514c;
|
5848 |
+
background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);
|
5849 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35));
|
5850 |
+
background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);
|
5851 |
+
background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);
|
5852 |
+
background-image: linear-gradient(to bottom, #ee5f5b, #c43c35);
|
5853 |
+
background-repeat: repeat-x;
|
5854 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffc43c35', GradientType=0);
|
5855 |
+
}
|
5856 |
+
|
5857 |
+
.progress-danger.progress-striped .bar,
|
5858 |
+
.progress-striped .bar-danger {
|
5859 |
+
background-color: #ee5f5b;
|
5860 |
+
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
|
5861 |
+
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5862 |
+
background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5863 |
+
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5864 |
+
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5865 |
+
}
|
5866 |
+
|
5867 |
+
.progress-success .bar,
|
5868 |
+
.progress .bar-success {
|
5869 |
+
background-color: #5eb95e;
|
5870 |
+
background-image: -moz-linear-gradient(top, #62c462, #57a957);
|
5871 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957));
|
5872 |
+
background-image: -webkit-linear-gradient(top, #62c462, #57a957);
|
5873 |
+
background-image: -o-linear-gradient(top, #62c462, #57a957);
|
5874 |
+
background-image: linear-gradient(to bottom, #62c462, #57a957);
|
5875 |
+
background-repeat: repeat-x;
|
5876 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff57a957', GradientType=0);
|
5877 |
+
}
|
5878 |
+
|
5879 |
+
.progress-success.progress-striped .bar,
|
5880 |
+
.progress-striped .bar-success {
|
5881 |
+
background-color: #62c462;
|
5882 |
+
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
|
5883 |
+
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5884 |
+
background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5885 |
+
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5886 |
+
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5887 |
+
}
|
5888 |
+
|
5889 |
+
.progress-info .bar,
|
5890 |
+
.progress .bar-info {
|
5891 |
+
background-color: #4bb1cf;
|
5892 |
+
background-image: -moz-linear-gradient(top, #5bc0de, #339bb9);
|
5893 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#339bb9));
|
5894 |
+
background-image: -webkit-linear-gradient(top, #5bc0de, #339bb9);
|
5895 |
+
background-image: -o-linear-gradient(top, #5bc0de, #339bb9);
|
5896 |
+
background-image: linear-gradient(to bottom, #5bc0de, #339bb9);
|
5897 |
+
background-repeat: repeat-x;
|
5898 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff339bb9', GradientType=0);
|
5899 |
+
}
|
5900 |
+
|
5901 |
+
.progress-info.progress-striped .bar,
|
5902 |
+
.progress-striped .bar-info {
|
5903 |
+
background-color: #5bc0de;
|
5904 |
+
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
|
5905 |
+
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5906 |
+
background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5907 |
+
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5908 |
+
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5909 |
+
}
|
5910 |
+
|
5911 |
+
.progress-warning .bar,
|
5912 |
+
.progress .bar-warning {
|
5913 |
+
background-color: #faa732;
|
5914 |
+
background-image: -moz-linear-gradient(top, #fbb450, #f89406);
|
5915 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
|
5916 |
+
background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
|
5917 |
+
background-image: -o-linear-gradient(top, #fbb450, #f89406);
|
5918 |
+
background-image: linear-gradient(to bottom, #fbb450, #f89406);
|
5919 |
+
background-repeat: repeat-x;
|
5920 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);
|
5921 |
+
}
|
5922 |
+
|
5923 |
+
.progress-warning.progress-striped .bar,
|
5924 |
+
.progress-striped .bar-warning {
|
5925 |
+
background-color: #fbb450;
|
5926 |
+
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
|
5927 |
+
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5928 |
+
background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5929 |
+
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5930 |
+
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
5931 |
+
}
|
5932 |
+
|
5933 |
+
.accordion {
|
5934 |
+
margin-bottom: 20px;
|
5935 |
+
}
|
5936 |
+
|
5937 |
+
.accordion-group {
|
5938 |
+
margin-bottom: 2px;
|
5939 |
+
border: 1px solid #e5e5e5;
|
5940 |
+
-webkit-border-radius: 4px;
|
5941 |
+
-moz-border-radius: 4px;
|
5942 |
+
border-radius: 4px;
|
5943 |
+
}
|
5944 |
+
|
5945 |
+
.accordion-heading {
|
5946 |
+
border-bottom: 0;
|
5947 |
+
}
|
5948 |
+
|
5949 |
+
.accordion-heading .accordion-toggle {
|
5950 |
+
display: block;
|
5951 |
+
padding: 8px 15px;
|
5952 |
+
}
|
5953 |
+
|
5954 |
+
.accordion-toggle {
|
5955 |
+
cursor: pointer;
|
5956 |
+
}
|
5957 |
+
|
5958 |
+
.accordion-inner {
|
5959 |
+
padding: 9px 15px;
|
5960 |
+
border-top: 1px solid #e5e5e5;
|
5961 |
+
}
|
5962 |
+
|
5963 |
+
.carousel {
|
5964 |
+
position: relative;
|
5965 |
+
margin-bottom: 20px;
|
5966 |
+
line-height: 1;
|
5967 |
+
}
|
5968 |
+
|
5969 |
+
.carousel-inner {
|
5970 |
+
position: relative;
|
5971 |
+
width: 100%;
|
5972 |
+
overflow: hidden;
|
5973 |
+
}
|
5974 |
+
|
5975 |
+
.carousel-inner > .item {
|
5976 |
+
position: relative;
|
5977 |
+
display: none;
|
5978 |
+
-webkit-transition: 0.6s ease-in-out left;
|
5979 |
+
-moz-transition: 0.6s ease-in-out left;
|
5980 |
+
-o-transition: 0.6s ease-in-out left;
|
5981 |
+
transition: 0.6s ease-in-out left;
|
5982 |
+
}
|
5983 |
+
|
5984 |
+
.carousel-inner > .item > img,
|
5985 |
+
.carousel-inner > .item > a > img {
|
5986 |
+
display: block;
|
5987 |
+
line-height: 1;
|
5988 |
+
}
|
5989 |
+
|
5990 |
+
.carousel-inner > .active,
|
5991 |
+
.carousel-inner > .next,
|
5992 |
+
.carousel-inner > .prev {
|
5993 |
+
display: block;
|
5994 |
+
}
|
5995 |
+
|
5996 |
+
.carousel-inner > .active {
|
5997 |
+
left: 0;
|
5998 |
+
}
|
5999 |
+
|
6000 |
+
.carousel-inner > .next,
|
6001 |
+
.carousel-inner > .prev {
|
6002 |
+
position: absolute;
|
6003 |
+
top: 0;
|
6004 |
+
width: 100%;
|
6005 |
+
}
|
6006 |
+
|
6007 |
+
.carousel-inner > .next {
|
6008 |
+
left: 100%;
|
6009 |
+
}
|
6010 |
+
|
6011 |
+
.carousel-inner > .prev {
|
6012 |
+
left: -100%;
|
6013 |
+
}
|
6014 |
+
|
6015 |
+
.carousel-inner > .next.left,
|
6016 |
+
.carousel-inner > .prev.right {
|
6017 |
+
left: 0;
|
6018 |
+
}
|
6019 |
+
|
6020 |
+
.carousel-inner > .active.left {
|
6021 |
+
left: -100%;
|
6022 |
+
}
|
6023 |
+
|
6024 |
+
.carousel-inner > .active.right {
|
6025 |
+
left: 100%;
|
6026 |
+
}
|
6027 |
+
|
6028 |
+
.carousel-control {
|
6029 |
+
position: absolute;
|
6030 |
+
top: 40%;
|
6031 |
+
left: 15px;
|
6032 |
+
width: 40px;
|
6033 |
+
height: 40px;
|
6034 |
+
margin-top: -20px;
|
6035 |
+
font-size: 60px;
|
6036 |
+
font-weight: 100;
|
6037 |
+
line-height: 30px;
|
6038 |
+
color: #ffffff;
|
6039 |
+
text-align: center;
|
6040 |
+
background: #222222;
|
6041 |
+
border: 3px solid #ffffff;
|
6042 |
+
-webkit-border-radius: 23px;
|
6043 |
+
-moz-border-radius: 23px;
|
6044 |
+
border-radius: 23px;
|
6045 |
+
opacity: 0.5;
|
6046 |
+
filter: alpha(opacity=50);
|
6047 |
+
}
|
6048 |
+
|
6049 |
+
.carousel-control.right {
|
6050 |
+
right: 15px;
|
6051 |
+
left: auto;
|
6052 |
+
}
|
6053 |
+
|
6054 |
+
.carousel-control:hover,
|
6055 |
+
.carousel-control:focus {
|
6056 |
+
color: #ffffff;
|
6057 |
+
text-decoration: none;
|
6058 |
+
opacity: 0.9;
|
6059 |
+
filter: alpha(opacity=90);
|
6060 |
+
}
|
6061 |
+
|
6062 |
+
.carousel-indicators {
|
6063 |
+
position: absolute;
|
6064 |
+
top: 15px;
|
6065 |
+
right: 15px;
|
6066 |
+
z-index: 5;
|
6067 |
+
margin: 0;
|
6068 |
+
list-style: none;
|
6069 |
+
}
|
6070 |
+
|
6071 |
+
.carousel-indicators li {
|
6072 |
+
display: block;
|
6073 |
+
float: left;
|
6074 |
+
width: 10px;
|
6075 |
+
height: 10px;
|
6076 |
+
margin-left: 5px;
|
6077 |
+
text-indent: -999px;
|
6078 |
+
background-color: #ccc;
|
6079 |
+
background-color: rgba(255, 255, 255, 0.25);
|
6080 |
+
border-radius: 5px;
|
6081 |
+
}
|
6082 |
+
|
6083 |
+
.carousel-indicators .active {
|
6084 |
+
background-color: #fff;
|
6085 |
+
}
|
6086 |
+
|
6087 |
+
.carousel-caption {
|
6088 |
+
position: absolute;
|
6089 |
+
right: 0;
|
6090 |
+
bottom: 0;
|
6091 |
+
left: 0;
|
6092 |
+
padding: 15px;
|
6093 |
+
background: #333333;
|
6094 |
+
background: rgba(0, 0, 0, 0.75);
|
6095 |
+
}
|
6096 |
+
|
6097 |
+
.carousel-caption h4,
|
6098 |
+
.carousel-caption p {
|
6099 |
+
line-height: 20px;
|
6100 |
+
color: #ffffff;
|
6101 |
+
}
|
6102 |
+
|
6103 |
+
.carousel-caption h4 {
|
6104 |
+
margin: 0 0 5px;
|
6105 |
+
}
|
6106 |
+
|
6107 |
+
.carousel-caption p {
|
6108 |
+
margin-bottom: 0;
|
6109 |
+
}
|
6110 |
+
|
6111 |
+
.hero-unit {
|
6112 |
+
padding: 60px;
|
6113 |
+
margin-bottom: 30px;
|
6114 |
+
font-size: 18px;
|
6115 |
+
font-weight: 200;
|
6116 |
+
line-height: 30px;
|
6117 |
+
color: inherit;
|
6118 |
+
background-color: #eeeeee;
|
6119 |
+
-webkit-border-radius: 6px;
|
6120 |
+
-moz-border-radius: 6px;
|
6121 |
+
border-radius: 6px;
|
6122 |
+
}
|
6123 |
+
|
6124 |
+
.hero-unit h1 {
|
6125 |
+
margin-bottom: 0;
|
6126 |
+
font-size: 60px;
|
6127 |
+
line-height: 1;
|
6128 |
+
letter-spacing: -1px;
|
6129 |
+
color: inherit;
|
6130 |
+
}
|
6131 |
+
|
6132 |
+
.hero-unit li {
|
6133 |
+
line-height: 30px;
|
6134 |
+
}
|
6135 |
+
|
6136 |
+
.pull-right {
|
6137 |
+
float: right;
|
6138 |
+
}
|
6139 |
+
|
6140 |
+
.pull-left {
|
6141 |
+
float: left;
|
6142 |
+
}
|
6143 |
+
|
6144 |
+
.hide {
|
6145 |
+
display: none;
|
6146 |
+
}
|
6147 |
+
|
6148 |
+
.show {
|
6149 |
+
display: block;
|
6150 |
+
}
|
6151 |
+
|
6152 |
+
.invisible {
|
6153 |
+
visibility: hidden;
|
6154 |
+
}
|
6155 |
+
|
6156 |
+
.affix {
|
6157 |
+
position: fixed;
|
6158 |
+
}
|
assets/css/bootstrap.min.css
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Bootstrap v2.3.1
|
3 |
+
*
|
4 |
+
* Copyright 2012 Twitter, Inc
|
5 |
+
* Licensed under the Apache License v2.0
|
6 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7 |
+
*
|
8 |
+
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
9 |
+
*/.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}a:hover,a:active{outline:0}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{width:auto\9;height:auto;max-width:100%;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic}#map_canvas img,.google-maps img{max-width:none}button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle}button,input{*overflow:visible;line-height:normal}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}button,html input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}label,select,button,input[type="button"],input[type="reset"],input[type="submit"],input[type="radio"],input[type="checkbox"]{cursor:pointer}input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none}textarea{overflow:auto;vertical-align:top}@media print{*{color:#000!important;text-shadow:none!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}}body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#333;background-color:#fff}a{color:#08c;text-decoration:none}a:hover,a:focus{color:#005580;text-decoration:underline}.img-rounded{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.img-polaroid{padding:4px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 3px rgba(0,0,0,0.1);box-shadow:0 1px 3px rgba(0,0,0,0.1)}.img-circle{-webkit-border-radius:500px;-moz-border-radius:500px;border-radius:500px}.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:20px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px}.span12{width:940px}.span11{width:860px}.span10{width:780px}.span9{width:700px}.span8{width:620px}.span7{width:540px}.span6{width:460px}.span5{width:380px}.span4{width:300px}.span3{width:220px}.span2{width:140px}.span1{width:60px}.offset12{margin-left:980px}.offset11{margin-left:900px}.offset10{margin-left:820px}.offset9{margin-left:740px}.offset8{margin-left:660px}.offset7{margin-left:580px}.offset6{margin-left:500px}.offset5{margin-left:420px}.offset4{margin-left:340px}.offset3{margin-left:260px}.offset2{margin-left:180px}.offset1{margin-left:100px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.127659574468085%;*margin-left:2.074468085106383%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .controls-row [class*="span"]+[class*="span"]{margin-left:2.127659574468085%}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.48936170212765%;*width:91.43617021276594%}.row-fluid .span10{width:82.97872340425532%;*width:82.92553191489361%}.row-fluid .span9{width:74.46808510638297%;*width:74.41489361702126%}.row-fluid .span8{width:65.95744680851064%;*width:65.90425531914893%}.row-fluid .span7{width:57.44680851063829%;*width:57.39361702127659%}.row-fluid .span6{width:48.93617021276595%;*width:48.88297872340425%}.row-fluid .span5{width:40.42553191489362%;*width:40.37234042553192%}.row-fluid .span4{width:31.914893617021278%;*width:31.861702127659576%}.row-fluid .span3{width:23.404255319148934%;*width:23.351063829787233%}.row-fluid .span2{width:14.893617021276595%;*width:14.840425531914894%}.row-fluid .span1{width:6.382978723404255%;*width:6.329787234042553%}.row-fluid .offset12{margin-left:104.25531914893617%;*margin-left:104.14893617021275%}.row-fluid .offset12:first-child{margin-left:102.12765957446808%;*margin-left:102.02127659574467%}.row-fluid .offset11{margin-left:95.74468085106382%;*margin-left:95.6382978723404%}.row-fluid .offset11:first-child{margin-left:93.61702127659574%;*margin-left:93.51063829787232%}.row-fluid .offset10{margin-left:87.23404255319149%;*margin-left:87.12765957446807%}.row-fluid .offset10:first-child{margin-left:85.1063829787234%;*margin-left:84.99999999999999%}.row-fluid .offset9{margin-left:78.72340425531914%;*margin-left:78.61702127659572%}.row-fluid .offset9:first-child{margin-left:76.59574468085106%;*margin-left:76.48936170212764%}.row-fluid .offset8{margin-left:70.2127659574468%;*margin-left:70.10638297872339%}.row-fluid .offset8:first-child{margin-left:68.08510638297872%;*margin-left:67.9787234042553%}.row-fluid .offset7{margin-left:61.70212765957446%;*margin-left:61.59574468085106%}.row-fluid .offset7:first-child{margin-left:59.574468085106375%;*margin-left:59.46808510638297%}.row-fluid .offset6{margin-left:53.191489361702125%;*margin-left:53.085106382978715%}.row-fluid .offset6:first-child{margin-left:51.063829787234035%;*margin-left:50.95744680851063%}.row-fluid .offset5{margin-left:44.68085106382979%;*margin-left:44.57446808510638%}.row-fluid .offset5:first-child{margin-left:42.5531914893617%;*margin-left:42.4468085106383%}.row-fluid .offset4{margin-left:36.170212765957444%;*margin-left:36.06382978723405%}.row-fluid .offset4:first-child{margin-left:34.04255319148936%;*margin-left:33.93617021276596%}.row-fluid .offset3{margin-left:27.659574468085104%;*margin-left:27.5531914893617%}.row-fluid .offset3:first-child{margin-left:25.53191489361702%;*margin-left:25.425531914893618%}.row-fluid .offset2{margin-left:19.148936170212764%;*margin-left:19.04255319148936%}.row-fluid .offset2:first-child{margin-left:17.02127659574468%;*margin-left:16.914893617021278%}.row-fluid .offset1{margin-left:10.638297872340425%;*margin-left:10.53191489361702%}.row-fluid .offset1:first-child{margin-left:8.51063829787234%;*margin-left:8.404255319148938%}[class*="span"].hide,.row-fluid [class*="span"].hide{display:none}[class*="span"].pull-right,.row-fluid [class*="span"].pull-right{float:right}.container{margin-right:auto;margin-left:auto;*zoom:1}.container:before,.container:after{display:table;line-height:0;content:""}.container:after{clear:both}.container-fluid{padding-right:20px;padding-left:20px;*zoom:1}.container-fluid:before,.container-fluid:after{display:table;line-height:0;content:""}.container-fluid:after{clear:both}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:21px;font-weight:200;line-height:30px}small{font-size:85%}strong{font-weight:bold}em{font-style:italic}cite{font-style:normal}.muted{color:#999}a.muted:hover,a.muted:focus{color:#808080}.text-warning{color:#c09853}a.text-warning:hover,a.text-warning:focus{color:#a47e3c}.text-error{color:#b94a48}a.text-error:hover,a.text-error:focus{color:#953b39}.text-info{color:#3a87ad}a.text-info:hover,a.text-info:focus{color:#2d6987}.text-success{color:#468847}a.text-success:hover,a.text-success:focus{color:#356635}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}h1,h2,h3,h4,h5,h6{margin:10px 0;font-family:inherit;font-weight:bold;line-height:20px;color:inherit;text-rendering:optimizelegibility}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{font-weight:normal;line-height:1;color:#999}h1,h2,h3{line-height:40px}h1{font-size:38.5px}h2{font-size:31.5px}h3{font-size:24.5px}h4{font-size:17.5px}h5{font-size:14px}h6{font-size:11.9px}h1 small{font-size:24.5px}h2 small{font-size:17.5px}h3 small{font-size:14px}h4 small{font-size:14px}.page-header{padding-bottom:9px;margin:20px 0 30px;border-bottom:1px solid #eee}ul,ol{padding:0;margin:0 0 10px 25px}ul ul,ul ol,ol ol,ol ul{margin-bottom:0}li{line-height:20px}ul.unstyled,ol.unstyled{margin-left:0;list-style:none}ul.inline,ol.inline{margin-left:0;list-style:none}ul.inline>li,ol.inline>li{display:inline-block;*display:inline;padding-right:5px;padding-left:5px;*zoom:1}dl{margin-bottom:20px}dt,dd{line-height:20px}dt{font-weight:bold}dd{margin-left:10px}.dl-horizontal{*zoom:1}.dl-horizontal:before,.dl-horizontal:after{display:table;line-height:0;content:""}.dl-horizontal:after{clear:both}.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}hr{margin:20px 0;border:0;border-top:1px solid #eee;border-bottom:1px solid #fff}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #999}abbr.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:0 0 0 15px;margin:0 0 20px;border-left:5px solid #eee}blockquote p{margin-bottom:0;font-size:17.5px;font-weight:300;line-height:1.25}blockquote small{display:block;line-height:20px;color:#999}blockquote small:before{content:'\2014 \00A0'}blockquote.pull-right{float:right;padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0}blockquote.pull-right p,blockquote.pull-right small{text-align:right}blockquote.pull-right small:before{content:''}blockquote.pull-right small:after{content:'\00A0 \2014'}q:before,q:after,blockquote:before,blockquote:after{content:""}address{display:block;margin-bottom:20px;font-style:normal;line-height:20px}code,pre{padding:0 3px 2px;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px;color:#333;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}code{padding:2px 4px;color:#d14;white-space:nowrap;background-color:#f7f7f9;border:1px solid #e1e1e8}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:20px;word-break:break-all;word-wrap:break-word;white-space:pre;white-space:pre-wrap;background-color:#f5f5f5;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.15);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}pre.prettyprint{margin-bottom:20px}pre code{padding:0;color:inherit;white-space:pre;white-space:pre-wrap;background-color:transparent;border:0}.pre-scrollable{max-height:340px;overflow-y:scroll}form{margin:0 0 20px}fieldset{padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:40px;color:#333;border:0;border-bottom:1px solid #e5e5e5}legend small{font-size:15px;color:#999}label,input,button,select,textarea{font-size:14px;font-weight:normal;line-height:20px}input,button,select,textarea{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}label{display:block;margin-bottom:5px}select,textarea,input[type="text"],input[type="password"],input[type="datetime"],input[type="datetime-local"],input[type="date"],input[type="month"],input[type="time"],input[type="week"],input[type="number"],input[type="email"],input[type="url"],input[type="search"],input[type="tel"],input[type="color"],.uneditable-input{display:inline-block;height:20px;padding:4px 6px;margin-bottom:10px;font-size:14px;line-height:20px;color:#555;vertical-align:middle;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}input,textarea,.uneditable-input{width:206px}textarea{height:auto}textarea,input[type="text"],input[type="password"],input[type="datetime"],input[type="datetime-local"],input[type="date"],input[type="month"],input[type="time"],input[type="week"],input[type="number"],input[type="email"],input[type="url"],input[type="search"],input[type="tel"],input[type="color"],.uneditable-input{background-color:#fff;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border linear .2s,box-shadow linear .2s;-moz-transition:border linear .2s,box-shadow linear .2s;-o-transition:border linear .2s,box-shadow linear .2s;transition:border linear .2s,box-shadow linear .2s}textarea:focus,input[type="text"]:focus,input[type="password"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="date"]:focus,input[type="month"]:focus,input[type="time"]:focus,input[type="week"]:focus,input[type="number"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="search"]:focus,input[type="tel"]:focus,input[type="color"]:focus,.uneditable-input:focus{border-color:rgba(82,168,236,0.8);outline:0;outline:thin dotted \9;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6)}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;*margin-top:0;line-height:normal}input[type="file"],input[type="image"],input[type="submit"],input[type="reset"],input[type="button"],input[type="radio"],input[type="checkbox"]{width:auto}select,input[type="file"]{height:30px;*margin-top:4px;line-height:30px}select{width:220px;background-color:#fff;border:1px solid #ccc}select[multiple],select[size]{height:auto}select:focus,input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.uneditable-input,.uneditable-textarea{color:#999;cursor:not-allowed;background-color:#fcfcfc;border-color:#ccc;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);box-shadow:inset 0 1px 2px rgba(0,0,0,0.025)}.uneditable-input{overflow:hidden;white-space:nowrap}.uneditable-textarea{width:auto;height:auto}input:-moz-placeholder,textarea:-moz-placeholder{color:#999}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#999}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#999}.radio,.checkbox{min-height:20px;padding-left:20px}.radio input[type="radio"],.checkbox input[type="checkbox"]{float:left;margin-left:-20px}.controls>.radio:first-child,.controls>.checkbox:first-child{padding-top:5px}.radio.inline,.checkbox.inline{display:inline-block;padding-top:5px;margin-bottom:0;vertical-align:middle}.radio.inline+.radio.inline,.checkbox.inline+.checkbox.inline{margin-left:10px}.input-mini{width:60px}.input-small{width:90px}.input-medium{width:150px}.input-large{width:210px}.input-xlarge{width:270px}.input-xxlarge{width:530px}input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input[class*="span"],.row-fluid input[class*="span"],.row-fluid select[class*="span"],.row-fluid textarea[class*="span"],.row-fluid .uneditable-input[class*="span"]{float:none;margin-left:0}.input-append input[class*="span"],.input-append .uneditable-input[class*="span"],.input-prepend input[class*="span"],.input-prepend .uneditable-input[class*="span"],.row-fluid input[class*="span"],.row-fluid select[class*="span"],.row-fluid textarea[class*="span"],.row-fluid .uneditable-input[class*="span"],.row-fluid .input-prepend [class*="span"],.row-fluid .input-append [class*="span"]{display:inline-block}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:20px}input.span12,textarea.span12,.uneditable-input.span12{width:926px}input.span11,textarea.span11,.uneditable-input.span11{width:846px}input.span10,textarea.span10,.uneditable-input.span10{width:766px}input.span9,textarea.span9,.uneditable-input.span9{width:686px}input.span8,textarea.span8,.uneditable-input.span8{width:606px}input.span7,textarea.span7,.uneditable-input.span7{width:526px}input.span6,textarea.span6,.uneditable-input.span6{width:446px}input.span5,textarea.span5,.uneditable-input.span5{width:366px}input.span4,textarea.span4,.uneditable-input.span4{width:286px}input.span3,textarea.span3,.uneditable-input.span3{width:206px}input.span2,textarea.span2,.uneditable-input.span2{width:126px}input.span1,textarea.span1,.uneditable-input.span1{width:46px}.controls-row{*zoom:1}.controls-row:before,.controls-row:after{display:table;line-height:0;content:""}.controls-row:after{clear:both}.controls-row [class*="span"],.row-fluid .controls-row [class*="span"]{float:left}.controls-row .checkbox[class*="span"],.controls-row .radio[class*="span"]{padding-top:5px}input[disabled],select[disabled],textarea[disabled],input[readonly],select[readonly],textarea[readonly]{cursor:not-allowed;background-color:#eee}input[type="radio"][disabled],input[type="checkbox"][disabled],input[type="radio"][readonly],input[type="checkbox"][readonly]{background-color:transparent}.control-group.warning .control-label,.control-group.warning .help-block,.control-group.warning .help-inline{color:#c09853}.control-group.warning .checkbox,.control-group.warning .radio,.control-group.warning input,.control-group.warning select,.control-group.warning textarea{color:#c09853}.control-group.warning input,.control-group.warning select,.control-group.warning textarea{border-color:#c09853;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.warning input:focus,.control-group.warning select:focus,.control-group.warning textarea:focus{border-color:#a47e3c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e}.control-group.warning .input-prepend .add-on,.control-group.warning .input-append .add-on{color:#c09853;background-color:#fcf8e3;border-color:#c09853}.control-group.error .control-label,.control-group.error .help-block,.control-group.error .help-inline{color:#b94a48}.control-group.error .checkbox,.control-group.error .radio,.control-group.error input,.control-group.error select,.control-group.error textarea{color:#b94a48}.control-group.error input,.control-group.error select,.control-group.error textarea{border-color:#b94a48;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.error input:focus,.control-group.error select:focus,.control-group.error textarea:focus{border-color:#953b39;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392}.control-group.error .input-prepend .add-on,.control-group.error .input-append .add-on{color:#b94a48;background-color:#f2dede;border-color:#b94a48}.control-group.success .control-label,.control-group.success .help-block,.control-group.success .help-inline{color:#468847}.control-group.success .checkbox,.control-group.success .radio,.control-group.success input,.control-group.success select,.control-group.success textarea{color:#468847}.control-group.success input,.control-group.success select,.control-group.success textarea{border-color:#468847;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.success input:focus,.control-group.success select:focus,.control-group.success textarea:focus{border-color:#356635;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b}.control-group.success .input-prepend .add-on,.control-group.success .input-append .add-on{color:#468847;background-color:#dff0d8;border-color:#468847}.control-group.info .control-label,.control-group.info .help-block,.control-group.info .help-inline{color:#3a87ad}.control-group.info .checkbox,.control-group.info .radio,.control-group.info input,.control-group.info select,.control-group.info textarea{color:#3a87ad}.control-group.info input,.control-group.info select,.control-group.info textarea{border-color:#3a87ad;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.info input:focus,.control-group.info select:focus,.control-group.info textarea:focus{border-color:#2d6987;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7ab5d3;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7ab5d3;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7ab5d3}.control-group.info .input-prepend .add-on,.control-group.info .input-append .add-on{color:#3a87ad;background-color:#d9edf7;border-color:#3a87ad}input:focus:invalid,textarea:focus:invalid,select:focus:invalid{color:#b94a48;border-color:#ee5f5b}input:focus:invalid:focus,textarea:focus:invalid:focus,select:focus:invalid:focus{border-color:#e9322d;-webkit-box-shadow:0 0 6px #f8b9b7;-moz-box-shadow:0 0 6px #f8b9b7;box-shadow:0 0 6px #f8b9b7}.form-actions{padding:19px 20px 20px;margin-top:20px;margin-bottom:20px;background-color:#f5f5f5;border-top:1px solid #e5e5e5;*zoom:1}.form-actions:before,.form-actions:after{display:table;line-height:0;content:""}.form-actions:after{clear:both}.help-block,.help-inline{color:#595959}.help-block{display:block;margin-bottom:10px}.help-inline{display:inline-block;*display:inline;padding-left:5px;vertical-align:middle;*zoom:1}.input-append,.input-prepend{display:inline-block;margin-bottom:10px;font-size:0;white-space:nowrap;vertical-align:middle}.input-append input,.input-prepend input,.input-append select,.input-prepend select,.input-append .uneditable-input,.input-prepend .uneditable-input,.input-append .dropdown-menu,.input-prepend .dropdown-menu,.input-append .popover,.input-prepend .popover{font-size:14px}.input-append input,.input-prepend input,.input-append select,.input-prepend select,.input-append .uneditable-input,.input-prepend .uneditable-input{position:relative;margin-bottom:0;*margin-left:0;vertical-align:top;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.input-append input:focus,.input-prepend input:focus,.input-append select:focus,.input-prepend select:focus,.input-append .uneditable-input:focus,.input-prepend .uneditable-input:focus{z-index:2}.input-append .add-on,.input-prepend .add-on{display:inline-block;width:auto;height:20px;min-width:16px;padding:4px 5px;font-size:14px;font-weight:normal;line-height:20px;text-align:center;text-shadow:0 1px 0 #fff;background-color:#eee;border:1px solid #ccc}.input-append .add-on,.input-prepend .add-on,.input-append .btn,.input-prepend .btn,.input-append .btn-group>.dropdown-toggle,.input-prepend .btn-group>.dropdown-toggle{vertical-align:top;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.input-append .active,.input-prepend .active{background-color:#a9dba9;border-color:#46a546}.input-prepend .add-on,.input-prepend .btn{margin-right:-1px}.input-prepend .add-on:first-child,.input-prepend .btn:first-child{-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.input-append input,.input-append select,.input-append .uneditable-input{-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.input-append input+.btn-group .btn:last-child,.input-append select+.btn-group .btn:last-child,.input-append .uneditable-input+.btn-group .btn:last-child{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.input-append .add-on,.input-append .btn,.input-append .btn-group{margin-left:-1px}.input-append .add-on:last-child,.input-append .btn:last-child,.input-append .btn-group:last-child>.dropdown-toggle{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.input-prepend.input-append input,.input-prepend.input-append select,.input-prepend.input-append .uneditable-input{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.input-prepend.input-append input+.btn-group .btn,.input-prepend.input-append select+.btn-group .btn,.input-prepend.input-append .uneditable-input+.btn-group .btn{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.input-prepend.input-append .add-on:first-child,.input-prepend.input-append .btn:first-child{margin-right:-1px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.input-prepend.input-append .add-on:last-child,.input-prepend.input-append .btn:last-child{margin-left:-1px;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.input-prepend.input-append .btn-group:first-child{margin-left:0}input.search-query{padding-right:14px;padding-right:4px \9;padding-left:14px;padding-left:4px \9;margin-bottom:0;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px}.form-search .input-append .search-query,.form-search .input-prepend .search-query{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.form-search .input-append .search-query{-webkit-border-radius:14px 0 0 14px;-moz-border-radius:14px 0 0 14px;border-radius:14px 0 0 14px}.form-search .input-append .btn{-webkit-border-radius:0 14px 14px 0;-moz-border-radius:0 14px 14px 0;border-radius:0 14px 14px 0}.form-search .input-prepend .search-query{-webkit-border-radius:0 14px 14px 0;-moz-border-radius:0 14px 14px 0;border-radius:0 14px 14px 0}.form-search .input-prepend .btn{-webkit-border-radius:14px 0 0 14px;-moz-border-radius:14px 0 0 14px;border-radius:14px 0 0 14px}.form-search input,.form-inline input,.form-horizontal input,.form-search textarea,.form-inline textarea,.form-horizontal textarea,.form-search select,.form-inline select,.form-horizontal select,.form-search .help-inline,.form-inline .help-inline,.form-horizontal .help-inline,.form-search .uneditable-input,.form-inline .uneditable-input,.form-horizontal .uneditable-input,.form-search .input-prepend,.form-inline .input-prepend,.form-horizontal .input-prepend,.form-search .input-append,.form-inline .input-append,.form-horizontal .input-append{display:inline-block;*display:inline;margin-bottom:0;vertical-align:middle;*zoom:1}.form-search .hide,.form-inline .hide,.form-horizontal .hide{display:none}.form-search label,.form-inline label,.form-search .btn-group,.form-inline .btn-group{display:inline-block}.form-search .input-append,.form-inline .input-append,.form-search .input-prepend,.form-inline .input-prepend{margin-bottom:0}.form-search .radio,.form-search .checkbox,.form-inline .radio,.form-inline .checkbox{padding-left:0;margin-bottom:0;vertical-align:middle}.form-search .radio input[type="radio"],.form-search .checkbox input[type="checkbox"],.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{float:left;margin-right:3px;margin-left:0}.control-group{margin-bottom:10px}legend+.control-group{margin-top:20px;-webkit-margin-top-collapse:separate}.form-horizontal .control-group{margin-bottom:20px;*zoom:1}.form-horizontal .control-group:before,.form-horizontal .control-group:after{display:table;line-height:0;content:""}.form-horizontal .control-group:after{clear:both}.form-horizontal .control-label{float:left;width:160px;padding-top:5px;text-align:right}.form-horizontal .controls{*display:inline-block;*padding-left:20px;margin-left:180px;*margin-left:0}.form-horizontal .controls:first-child{*padding-left:180px}.form-horizontal .help-block{margin-bottom:0}.form-horizontal input+.help-block,.form-horizontal select+.help-block,.form-horizontal textarea+.help-block,.form-horizontal .uneditable-input+.help-block,.form-horizontal .input-prepend+.help-block,.form-horizontal .input-append+.help-block{margin-top:10px}.form-horizontal .form-actions{padding-left:180px}table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0}.table{width:100%;margin-bottom:20px}.table th,.table td{padding:8px;line-height:20px;text-align:left;vertical-align:top;border-top:1px solid #ddd}.table th{font-weight:bold}.table thead th{vertical-align:bottom}.table caption+thead tr:first-child th,.table caption+thead tr:first-child td,.table colgroup+thead tr:first-child th,.table colgroup+thead tr:first-child td,.table thead:first-child tr:first-child th,.table thead:first-child tr:first-child td{border-top:0}.table tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed th,.table-condensed td{padding:4px 5px}.table-bordered{border:1px solid #ddd;border-collapse:separate;*border-collapse:collapse;border-left:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.table-bordered th,.table-bordered td{border-left:1px solid #ddd}.table-bordered caption+thead tr:first-child th,.table-bordered caption+tbody tr:first-child th,.table-bordered caption+tbody tr:first-child td,.table-bordered colgroup+thead tr:first-child th,.table-bordered colgroup+tbody tr:first-child th,.table-bordered colgroup+tbody tr:first-child td,.table-bordered thead:first-child tr:first-child th,.table-bordered tbody:first-child tr:first-child th,.table-bordered tbody:first-child tr:first-child td{border-top:0}.table-bordered thead:first-child tr:first-child>th:first-child,.table-bordered tbody:first-child tr:first-child>td:first-child,.table-bordered tbody:first-child tr:first-child>th:first-child{-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topleft:4px}.table-bordered thead:first-child tr:first-child>th:last-child,.table-bordered tbody:first-child tr:first-child>td:last-child,.table-bordered tbody:first-child tr:first-child>th:last-child{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-topright:4px}.table-bordered thead:last-child tr:last-child>th:first-child,.table-bordered tbody:last-child tr:last-child>td:first-child,.table-bordered tbody:last-child tr:last-child>th:first-child,.table-bordered tfoot:last-child tr:last-child>td:first-child,.table-bordered tfoot:last-child tr:last-child>th:first-child{-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px}.table-bordered thead:last-child tr:last-child>th:last-child,.table-bordered tbody:last-child tr:last-child>td:last-child,.table-bordered tbody:last-child tr:last-child>th:last-child,.table-bordered tfoot:last-child tr:last-child>td:last-child,.table-bordered tfoot:last-child tr:last-child>th:last-child{-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px}.table-bordered tfoot+tbody:last-child tr:last-child td:first-child{-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;-moz-border-radius-bottomleft:0}.table-bordered tfoot+tbody:last-child tr:last-child td:last-child{-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomright:0}.table-bordered caption+thead tr:first-child th:first-child,.table-bordered caption+tbody tr:first-child td:first-child,.table-bordered colgroup+thead tr:first-child th:first-child,.table-bordered colgroup+tbody tr:first-child td:first-child{-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topleft:4px}.table-bordered caption+thead tr:first-child th:last-child,.table-bordered caption+tbody tr:first-child td:last-child,.table-bordered colgroup+thead tr:first-child th:last-child,.table-bordered colgroup+tbody tr:first-child td:last-child{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-topright:4px}.table-striped tbody>tr:nth-child(odd)>td,.table-striped tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover tbody tr:hover>td,.table-hover tbody tr:hover>th{background-color:#f5f5f5}table td[class*="span"],table th[class*="span"],.row-fluid table td[class*="span"],.row-fluid table th[class*="span"]{display:table-cell;float:none;margin-left:0}.table td.span1,.table th.span1{float:none;width:44px;margin-left:0}.table td.span2,.table th.span2{float:none;width:124px;margin-left:0}.table td.span3,.table th.span3{float:none;width:204px;margin-left:0}.table td.span4,.table th.span4{float:none;width:284px;margin-left:0}.table td.span5,.table th.span5{float:none;width:364px;margin-left:0}.table td.span6,.table th.span6{float:none;width:444px;margin-left:0}.table td.span7,.table th.span7{float:none;width:524px;margin-left:0}.table td.span8,.table th.span8{float:none;width:604px;margin-left:0}.table td.span9,.table th.span9{float:none;width:684px;margin-left:0}.table td.span10,.table th.span10{float:none;width:764px;margin-left:0}.table td.span11,.table th.span11{float:none;width:844px;margin-left:0}.table td.span12,.table th.span12{float:none;width:924px;margin-left:0}.table tbody tr.success>td{background-color:#dff0d8}.table tbody tr.error>td{background-color:#f2dede}.table tbody tr.warning>td{background-color:#fcf8e3}.table tbody tr.info>td{background-color:#d9edf7}.table-hover tbody tr.success:hover>td{background-color:#d0e9c6}.table-hover tbody tr.error:hover>td{background-color:#ebcccc}.table-hover tbody tr.warning:hover>td{background-color:#faf2cc}.table-hover tbody tr.info:hover>td{background-color:#c4e3f3}[class^="icon-"],[class*=" icon-"]{display:inline-block;width:14px;height:14px;margin-top:1px;*margin-right:.3em;line-height:14px;vertical-align:text-top;background-image:url("../img/glyphicons-halflings.png");background-position:14px 14px;background-repeat:no-repeat}.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:focus>[class^="icon-"],.dropdown-menu>li>a:hover>[class*=" icon-"],.dropdown-menu>li>a:focus>[class*=" icon-"],.dropdown-menu>.active>a>[class^="icon-"],.dropdown-menu>.active>a>[class*=" icon-"],.dropdown-submenu:hover>a>[class^="icon-"],.dropdown-submenu:focus>a>[class^="icon-"],.dropdown-submenu:hover>a>[class*=" icon-"],.dropdown-submenu:focus>a>[class*=" icon-"]{background-image:url("../img/glyphicons-halflings-white.png")}.icon-glass{background-position:0 0}.icon-music{background-position:-24px 0}.icon-search{background-position:-48px 0}.icon-envelope{background-position:-72px 0}.icon-heart{background-position:-96px 0}.icon-star{background-position:-120px 0}.icon-star-empty{background-position:-144px 0}.icon-user{background-position:-168px 0}.icon-film{background-position:-192px 0}.icon-th-large{background-position:-216px 0}.icon-th{background-position:-240px 0}.icon-th-list{background-position:-264px 0}.icon-ok{background-position:-288px 0}.icon-remove{background-position:-312px 0}.icon-zoom-in{background-position:-336px 0}.icon-zoom-out{background-position:-360px 0}.icon-off{background-position:-384px 0}.icon-signal{background-position:-408px 0}.icon-cog{background-position:-432px 0}.icon-trash{background-position:-456px 0}.icon-home{background-position:0 -24px}.icon-file{background-position:-24px -24px}.icon-time{background-position:-48px -24px}.icon-road{background-position:-72px -24px}.icon-download-alt{background-position:-96px -24px}.icon-download{background-position:-120px -24px}.icon-upload{background-position:-144px -24px}.icon-inbox{background-position:-168px -24px}.icon-play-circle{background-position:-192px -24px}.icon-repeat{background-position:-216px -24px}.icon-refresh{background-position:-240px -24px}.icon-list-alt{background-position:-264px -24px}.icon-lock{background-position:-287px -24px}.icon-flag{background-position:-312px -24px}.icon-headphones{background-position:-336px -24px}.icon-volume-off{background-position:-360px -24px}.icon-volume-down{background-position:-384px -24px}.icon-volume-up{background-position:-408px -24px}.icon-qrcode{background-position:-432px -24px}.icon-barcode{background-position:-456px -24px}.icon-tag{background-position:0 -48px}.icon-tags{background-position:-25px -48px}.icon-book{background-position:-48px -48px}.icon-bookmark{background-position:-72px -48px}.icon-print{background-position:-96px -48px}.icon-camera{background-position:-120px -48px}.icon-font{background-position:-144px -48px}.icon-bold{background-position:-167px -48px}.icon-italic{background-position:-192px -48px}.icon-text-height{background-position:-216px -48px}.icon-text-width{background-position:-240px -48px}.icon-align-left{background-position:-264px -48px}.icon-align-center{background-position:-288px -48px}.icon-align-right{background-position:-312px -48px}.icon-align-justify{background-position:-336px -48px}.icon-list{background-position:-360px -48px}.icon-indent-left{background-position:-384px -48px}.icon-indent-right{background-position:-408px -48px}.icon-facetime-video{background-position:-432px -48px}.icon-picture{background-position:-456px -48px}.icon-pencil{background-position:0 -72px}.icon-map-marker{background-position:-24px -72px}.icon-adjust{background-position:-48px -72px}.icon-tint{background-position:-72px -72px}.icon-edit{background-position:-96px -72px}.icon-share{background-position:-120px -72px}.icon-check{background-position:-144px -72px}.icon-move{background-position:-168px -72px}.icon-step-backward{background-position:-192px -72px}.icon-fast-backward{background-position:-216px -72px}.icon-backward{background-position:-240px -72px}.icon-play{background-position:-264px -72px}.icon-pause{background-position:-288px -72px}.icon-stop{background-position:-312px -72px}.icon-forward{background-position:-336px -72px}.icon-fast-forward{background-position:-360px -72px}.icon-step-forward{background-position:-384px -72px}.icon-eject{background-position:-408px -72px}.icon-chevron-left{background-position:-432px -72px}.icon-chevron-right{background-position:-456px -72px}.icon-plus-sign{background-position:0 -96px}.icon-minus-sign{background-position:-24px -96px}.icon-remove-sign{background-position:-48px -96px}.icon-ok-sign{background-position:-72px -96px}.icon-question-sign{background-position:-96px -96px}.icon-info-sign{background-position:-120px -96px}.icon-screenshot{background-position:-144px -96px}.icon-remove-circle{background-position:-168px -96px}.icon-ok-circle{background-position:-192px -96px}.icon-ban-circle{background-position:-216px -96px}.icon-arrow-left{background-position:-240px -96px}.icon-arrow-right{background-position:-264px -96px}.icon-arrow-up{background-position:-289px -96px}.icon-arrow-down{background-position:-312px -96px}.icon-share-alt{background-position:-336px -96px}.icon-resize-full{background-position:-360px -96px}.icon-resize-small{background-position:-384px -96px}.icon-plus{background-position:-408px -96px}.icon-minus{background-position:-433px -96px}.icon-asterisk{background-position:-456px -96px}.icon-exclamation-sign{background-position:0 -120px}.icon-gift{background-position:-24px -120px}.icon-leaf{background-position:-48px -120px}.icon-fire{background-position:-72px -120px}.icon-eye-open{background-position:-96px -120px}.icon-eye-close{background-position:-120px -120px}.icon-warning-sign{background-position:-144px -120px}.icon-plane{background-position:-168px -120px}.icon-calendar{background-position:-192px -120px}.icon-random{width:16px;background-position:-216px -120px}.icon-comment{background-position:-240px -120px}.icon-magnet{background-position:-264px -120px}.icon-chevron-up{background-position:-288px -120px}.icon-chevron-down{background-position:-313px -119px}.icon-retweet{background-position:-336px -120px}.icon-shopping-cart{background-position:-360px -120px}.icon-folder-close{width:16px;background-position:-384px -120px}.icon-folder-open{width:16px;background-position:-408px -120px}.icon-resize-vertical{background-position:-432px -119px}.icon-resize-horizontal{background-position:-456px -118px}.icon-hdd{background-position:0 -144px}.icon-bullhorn{background-position:-24px -144px}.icon-bell{background-position:-48px -144px}.icon-certificate{background-position:-72px -144px}.icon-thumbs-up{background-position:-96px -144px}.icon-thumbs-down{background-position:-120px -144px}.icon-hand-right{background-position:-144px -144px}.icon-hand-left{background-position:-168px -144px}.icon-hand-up{background-position:-192px -144px}.icon-hand-down{background-position:-216px -144px}.icon-circle-arrow-right{background-position:-240px -144px}.icon-circle-arrow-left{background-position:-264px -144px}.icon-circle-arrow-up{background-position:-288px -144px}.icon-circle-arrow-down{background-position:-312px -144px}.icon-globe{background-position:-336px -144px}.icon-wrench{background-position:-360px -144px}.icon-tasks{background-position:-384px -144px}.icon-filter{background-position:-408px -144px}.icon-briefcase{background-position:-432px -144px}.icon-fullscreen{background-position:-456px -144px}.dropup,.dropdown{position:relative}.dropdown-toggle{*margin-bottom:-3px}.dropdown-toggle:active,.open .dropdown-toggle{outline:0}.caret{display:inline-block;width:0;height:0;vertical-align:top;border-top:4px solid #000;border-right:4px solid transparent;border-left:4px solid transparent;content:""}.dropdown .caret{margin-top:8px;margin-left:2px}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);*border-right-width:2px;*border-bottom-width:2px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{*width:100%;height:1px;margin:9px 1px;*margin:-5px 0 5px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #fff}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:20px;color:#333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus,.dropdown-submenu:hover>a,.dropdown-submenu:focus>a{color:#fff;text-decoration:none;background-color:#0081c2;background-image:-moz-linear-gradient(top,#08c,#0077b3);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#0077b3));background-image:-webkit-linear-gradient(top,#08c,#0077b3);background-image:-o-linear-gradient(top,#08c,#0077b3);background-image:linear-gradient(to bottom,#08c,#0077b3);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0077b3',GradientType=0)}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;background-color:#0081c2;background-image:-moz-linear-gradient(top,#08c,#0077b3);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#0077b3));background-image:-webkit-linear-gradient(top,#08c,#0077b3);background-image:-o-linear-gradient(top,#08c,#0077b3);background-image:linear-gradient(to bottom,#08c,#0077b3);background-repeat:repeat-x;outline:0;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0077b3',GradientType=0)}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#999}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;cursor:default;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open{*z-index:1000}.open>.dropdown-menu{display:block}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid #000;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}.dropdown-submenu{position:relative}.dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:-6px;margin-left:-1px;-webkit-border-radius:0 6px 6px 6px;-moz-border-radius:0 6px 6px 6px;border-radius:0 6px 6px 6px}.dropdown-submenu:hover>.dropdown-menu{display:block}.dropup .dropdown-submenu>.dropdown-menu{top:auto;bottom:0;margin-top:0;margin-bottom:-2px;-webkit-border-radius:5px 5px 5px 0;-moz-border-radius:5px 5px 5px 0;border-radius:5px 5px 5px 0}.dropdown-submenu>a:after{display:block;float:right;width:0;height:0;margin-top:5px;margin-right:-10px;border-color:transparent;border-left-color:#ccc;border-style:solid;border-width:5px 0 5px 5px;content:" "}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown-submenu.pull-left{float:none}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px}.dropdown .dropdown-menu .nav-header{padding-right:20px;padding-left:20px}.typeahead{z-index:1051;margin-top:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,0.15)}.well-large{padding:24px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.well-small{padding:9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.fade{opacity:0;-webkit-transition:opacity .15s linear;-moz-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;-moz-transition:height .35s ease;-o-transition:height .35s ease;transition:height .35s ease}.collapse.in{height:auto}.close{float:right;font-size:20px;font-weight:bold;line-height:20px;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.4;filter:alpha(opacity=40)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.btn{display:inline-block;*display:inline;padding:4px 12px;margin-bottom:0;*margin-left:.3em;font-size:14px;line-height:20px;color:#333;text-align:center;text-shadow:0 1px 1px rgba(255,255,255,0.75);vertical-align:middle;cursor:pointer;background-color:#f5f5f5;*background-color:#e6e6e6;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;border:1px solid #ccc;*border:0;border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);*zoom:1;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05)}.btn:hover,.btn:focus,.btn:active,.btn.active,.btn.disabled,.btn[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.btn:active,.btn.active{background-color:#ccc \9}.btn:first-child{*margin-left:0}.btn:hover,.btn:focus{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05)}.btn.disabled,.btn[disabled]{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-large{padding:11px 19px;font-size:17.5px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.btn-large [class^="icon-"],.btn-large [class*=" icon-"]{margin-top:4px}.btn-small{padding:2px 10px;font-size:11.9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-small [class^="icon-"],.btn-small [class*=" icon-"]{margin-top:0}.btn-mini [class^="icon-"],.btn-mini [class*=" icon-"]{margin-top:-1px}.btn-mini{padding:0 6px;font-size:10.5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-block{display:block;width:100%;padding-right:0;padding-left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.btn-primary.active,.btn-warning.active,.btn-danger.active,.btn-success.active,.btn-info.active,.btn-inverse.active{color:rgba(255,255,255,0.75)}.btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#006dcc;*background-color:#04c;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0044cc',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.btn-primary.disabled,.btn-primary[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.btn-primary:active,.btn-primary.active{background-color:#039 \9}.btn-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#faa732;*background-color:#f89406;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450',endColorstr='#fff89406',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-warning:hover,.btn-warning:focus,.btn-warning:active,.btn-warning.active,.btn-warning.disabled,.btn-warning[disabled]{color:#fff;background-color:#f89406;*background-color:#df8505}.btn-warning:active,.btn-warning.active{background-color:#c67605 \9}.btn-danger{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#da4f49;*background-color:#bd362f;background-image:-moz-linear-gradient(top,#ee5f5b,#bd362f);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#bd362f));background-image:-webkit-linear-gradient(top,#ee5f5b,#bd362f);background-image:-o-linear-gradient(top,#ee5f5b,#bd362f);background-image:linear-gradient(to bottom,#ee5f5b,#bd362f);background-repeat:repeat-x;border-color:#bd362f #bd362f #802420;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b',endColorstr='#ffbd362f',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-danger:hover,.btn-danger:focus,.btn-danger:active,.btn-danger.active,.btn-danger.disabled,.btn-danger[disabled]{color:#fff;background-color:#bd362f;*background-color:#a9302a}.btn-danger:active,.btn-danger.active{background-color:#942a25 \9}.btn-success{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#5bb75b;*background-color:#51a351;background-image:-moz-linear-gradient(top,#62c462,#51a351);background-image:-webkit-gradient(linear,0 0,0 100%,from(#62c462),to(#51a351));background-image:-webkit-linear-gradient(top,#62c462,#51a351);background-image:-o-linear-gradient(top,#62c462,#51a351);background-image:linear-gradient(to bottom,#62c462,#51a351);background-repeat:repeat-x;border-color:#51a351 #51a351 #387038;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462',endColorstr='#ff51a351',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-success:hover,.btn-success:focus,.btn-success:active,.btn-success.active,.btn-success.disabled,.btn-success[disabled]{color:#fff;background-color:#51a351;*background-color:#499249}.btn-success:active,.btn-success.active{background-color:#408140 \9}.btn-info{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#49afcd;*background-color:#2f96b4;background-image:-moz-linear-gradient(top,#5bc0de,#2f96b4);background-image:-webkit-gradient(linear,0 0,0 100%,from(#5bc0de),to(#2f96b4));background-image:-webkit-linear-gradient(top,#5bc0de,#2f96b4);background-image:-o-linear-gradient(top,#5bc0de,#2f96b4);background-image:linear-gradient(to bottom,#5bc0de,#2f96b4);background-repeat:repeat-x;border-color:#2f96b4 #2f96b4 #1f6377;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de',endColorstr='#ff2f96b4',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-info:hover,.btn-info:focus,.btn-info:active,.btn-info.active,.btn-info.disabled,.btn-info[disabled]{color:#fff;background-color:#2f96b4;*background-color:#2a85a0}.btn-info:active,.btn-info.active{background-color:#24748c \9}.btn-inverse{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#363636;*background-color:#222;background-image:-moz-linear-gradient(top,#444,#222);background-image:-webkit-gradient(linear,0 0,0 100%,from(#444),to(#222));background-image:-webkit-linear-gradient(top,#444,#222);background-image:-o-linear-gradient(top,#444,#222);background-image:linear-gradient(to bottom,#444,#222);background-repeat:repeat-x;border-color:#222 #222 #000;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444',endColorstr='#ff222222',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-inverse:hover,.btn-inverse:focus,.btn-inverse:active,.btn-inverse.active,.btn-inverse.disabled,.btn-inverse[disabled]{color:#fff;background-color:#222;*background-color:#151515}.btn-inverse:active,.btn-inverse.active{background-color:#080808 \9}button.btn,input[type="submit"].btn{*padding-top:3px;*padding-bottom:3px}button.btn::-moz-focus-inner,input[type="submit"].btn::-moz-focus-inner{padding:0;border:0}button.btn.btn-large,input[type="submit"].btn.btn-large{*padding-top:7px;*padding-bottom:7px}button.btn.btn-small,input[type="submit"].btn.btn-small{*padding-top:3px;*padding-bottom:3px}button.btn.btn-mini,input[type="submit"].btn.btn-mini{*padding-top:1px;*padding-bottom:1px}.btn-link,.btn-link:active,.btn-link[disabled]{background-color:transparent;background-image:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-link{color:#08c;cursor:pointer;border-color:transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.btn-link:hover,.btn-link:focus{color:#005580;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,.btn-link[disabled]:focus{color:#333;text-decoration:none}.btn-group{position:relative;display:inline-block;*display:inline;*margin-left:.3em;font-size:0;white-space:nowrap;vertical-align:middle;*zoom:1}.btn-group:first-child{*margin-left:0}.btn-group+.btn-group{margin-left:5px}.btn-toolbar{margin-top:10px;margin-bottom:10px;font-size:0}.btn-toolbar>.btn+.btn,.btn-toolbar>.btn-group+.btn,.btn-toolbar>.btn+.btn-group{margin-left:5px}.btn-group>.btn{position:relative;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.btn-group>.btn+.btn{margin-left:-1px}.btn-group>.btn,.btn-group>.dropdown-menu,.btn-group>.popover{font-size:14px}.btn-group>.btn-mini{font-size:10.5px}.btn-group>.btn-small{font-size:11.9px}.btn-group>.btn-large{font-size:17.5px}.btn-group>.btn:first-child{margin-left:0;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-bottomleft:4px;-moz-border-radius-topleft:4px}.btn-group>.btn:last-child,.btn-group>.dropdown-toggle{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-bottomright:4px}.btn-group>.btn.large:first-child{margin-left:0;-webkit-border-bottom-left-radius:6px;border-bottom-left-radius:6px;-webkit-border-top-left-radius:6px;border-top-left-radius:6px;-moz-border-radius-bottomleft:6px;-moz-border-radius-topleft:6px}.btn-group>.btn.large:last-child,.btn-group>.large.dropdown-toggle{-webkit-border-top-right-radius:6px;border-top-right-radius:6px;-webkit-border-bottom-right-radius:6px;border-bottom-right-radius:6px;-moz-border-radius-topright:6px;-moz-border-radius-bottomright:6px}.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active{z-index:2}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{*padding-top:5px;padding-right:8px;*padding-bottom:5px;padding-left:8px;-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,0.125),inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,0.125),inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 1px 0 0 rgba(255,255,255,0.125),inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05)}.btn-group>.btn-mini+.dropdown-toggle{*padding-top:2px;padding-right:5px;*padding-bottom:2px;padding-left:5px}.btn-group>.btn-small+.dropdown-toggle{*padding-top:5px;*padding-bottom:4px}.btn-group>.btn-large+.dropdown-toggle{*padding-top:7px;padding-right:12px;*padding-bottom:7px;padding-left:12px}.btn-group.open .dropdown-toggle{background-image:none;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05)}.btn-group.open .btn.dropdown-toggle{background-color:#e6e6e6}.btn-group.open .btn-primary.dropdown-toggle{background-color:#04c}.btn-group.open .btn-warning.dropdown-toggle{background-color:#f89406}.btn-group.open .btn-danger.dropdown-toggle{background-color:#bd362f}.btn-group.open .btn-success.dropdown-toggle{background-color:#51a351}.btn-group.open .btn-info.dropdown-toggle{background-color:#2f96b4}.btn-group.open .btn-inverse.dropdown-toggle{background-color:#222}.btn .caret{margin-top:8px;margin-left:0}.btn-large .caret{margin-top:6px}.btn-large .caret{border-top-width:5px;border-right-width:5px;border-left-width:5px}.btn-mini .caret,.btn-small .caret{margin-top:8px}.dropup .btn-large .caret{border-bottom-width:5px}.btn-primary .caret,.btn-warning .caret,.btn-danger .caret,.btn-info .caret,.btn-success .caret,.btn-inverse .caret{border-top-color:#fff;border-bottom-color:#fff}.btn-group-vertical{display:inline-block;*display:inline;*zoom:1}.btn-group-vertical>.btn{display:block;float:none;max-width:100%;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.btn-group-vertical>.btn+.btn{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:first-child{-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.btn-group-vertical>.btn:last-child{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.btn-group-vertical>.btn-large:first-child{-webkit-border-radius:6px 6px 0 0;-moz-border-radius:6px 6px 0 0;border-radius:6px 6px 0 0}.btn-group-vertical>.btn-large:last-child{-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px}.alert{padding:8px 35px 8px 14px;margin-bottom:20px;text-shadow:0 1px 0 rgba(255,255,255,0.5);background-color:#fcf8e3;border:1px solid #fbeed5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.alert,.alert h4{color:#c09853}.alert h4{margin:0}.alert .close{position:relative;top:-2px;right:-21px;line-height:20px}.alert-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.alert-success h4{color:#468847}.alert-danger,.alert-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.alert-danger h4,.alert-error h4{color:#b94a48}.alert-info{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.alert-info h4{color:#3a87ad}.alert-block{padding-top:14px;padding-bottom:14px}.alert-block>p,.alert-block>ul{margin-bottom:0}.alert-block p+p{margin-top:5px}.nav{margin-bottom:20px;margin-left:0;list-style:none}.nav>li>a{display:block}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eee}.nav>li>a>img{max-width:none}.nav>.pull-right{float:right}.nav-header{display:block;padding:3px 15px;font-size:11px;font-weight:bold;line-height:20px;color:#999;text-shadow:0 1px 0 rgba(255,255,255,0.5);text-transform:uppercase}.nav li+.nav-header{margin-top:9px}.nav-list{padding-right:15px;padding-left:15px;margin-bottom:0}.nav-list>li>a,.nav-list .nav-header{margin-right:-15px;margin-left:-15px;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.nav-list>li>a{padding:3px 15px}.nav-list>.active>a,.nav-list>.active>a:hover,.nav-list>.active>a:focus{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.2);background-color:#08c}.nav-list [class^="icon-"],.nav-list [class*=" icon-"]{margin-right:2px}.nav-list .divider{*width:100%;height:1px;margin:9px 1px;*margin:-5px 0 5px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #fff}.nav-tabs,.nav-pills{*zoom:1}.nav-tabs:before,.nav-pills:before,.nav-tabs:after,.nav-pills:after{display:table;line-height:0;content:""}.nav-tabs:after,.nav-pills:after{clear:both}.nav-tabs>li,.nav-pills>li{float:left}.nav-tabs>li>a,.nav-pills>li>a{padding-right:12px;padding-left:12px;margin-right:2px;line-height:14px}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{margin-bottom:-1px}.nav-tabs>li>a{padding-top:8px;padding-bottom:8px;line-height:20px;border:1px solid transparent;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover,.nav-tabs>li>a:focus{border-color:#eee #eee #ddd}.nav-tabs>.active>a,.nav-tabs>.active>a:hover,.nav-tabs>.active>a:focus{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-pills>li>a{padding-top:8px;padding-bottom:8px;margin-top:2px;margin-bottom:2px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.nav-pills>.active>a,.nav-pills>.active>a:hover,.nav-pills>.active>a:focus{color:#fff;background-color:#08c}.nav-stacked>li{float:none}.nav-stacked>li>a{margin-right:0}.nav-tabs.nav-stacked{border-bottom:0}.nav-tabs.nav-stacked>li>a{border:1px solid #ddd;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.nav-tabs.nav-stacked>li:first-child>a{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-topleft:4px}.nav-tabs.nav-stacked>li:last-child>a{-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomright:4px;-moz-border-radius-bottomleft:4px}.nav-tabs.nav-stacked>li>a:hover,.nav-tabs.nav-stacked>li>a:focus{z-index:2;border-color:#ddd}.nav-pills.nav-stacked>li>a{margin-bottom:3px}.nav-pills.nav-stacked>li:last-child>a{margin-bottom:1px}.nav-tabs .dropdown-menu{-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px}.nav-pills .dropdown-menu{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.nav .dropdown-toggle .caret{margin-top:6px;border-top-color:#08c;border-bottom-color:#08c}.nav .dropdown-toggle:hover .caret,.nav .dropdown-toggle:focus .caret{border-top-color:#005580;border-bottom-color:#005580}.nav-tabs .dropdown-toggle .caret{margin-top:8px}.nav .active .dropdown-toggle .caret{border-top-color:#fff;border-bottom-color:#fff}.nav-tabs .active .dropdown-toggle .caret{border-top-color:#555;border-bottom-color:#555}.nav>.dropdown.active>a:hover,.nav>.dropdown.active>a:focus{cursor:pointer}.nav-tabs .open .dropdown-toggle,.nav-pills .open .dropdown-toggle,.nav>li.dropdown.open.active>a:hover,.nav>li.dropdown.open.active>a:focus{color:#fff;background-color:#999;border-color:#999}.nav li.dropdown.open .caret,.nav li.dropdown.open.active .caret,.nav li.dropdown.open a:hover .caret,.nav li.dropdown.open a:focus .caret{border-top-color:#fff;border-bottom-color:#fff;opacity:1;filter:alpha(opacity=100)}.tabs-stacked .open>a:hover,.tabs-stacked .open>a:focus{border-color:#999}.tabbable{*zoom:1}.tabbable:before,.tabbable:after{display:table;line-height:0;content:""}.tabbable:after{clear:both}.tab-content{overflow:auto}.tabs-below>.nav-tabs,.tabs-right>.nav-tabs,.tabs-left>.nav-tabs{border-bottom:0}.tab-content>.tab-pane,.pill-content>.pill-pane{display:none}.tab-content>.active,.pill-content>.active{display:block}.tabs-below>.nav-tabs{border-top:1px solid #ddd}.tabs-below>.nav-tabs>li{margin-top:-1px;margin-bottom:0}.tabs-below>.nav-tabs>li>a{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.tabs-below>.nav-tabs>li>a:hover,.tabs-below>.nav-tabs>li>a:focus{border-top-color:#ddd;border-bottom-color:transparent}.tabs-below>.nav-tabs>.active>a,.tabs-below>.nav-tabs>.active>a:hover,.tabs-below>.nav-tabs>.active>a:focus{border-color:transparent #ddd #ddd #ddd}.tabs-left>.nav-tabs>li,.tabs-right>.nav-tabs>li{float:none}.tabs-left>.nav-tabs>li>a,.tabs-right>.nav-tabs>li>a{min-width:74px;margin-right:0;margin-bottom:3px}.tabs-left>.nav-tabs{float:left;margin-right:19px;border-right:1px solid #ddd}.tabs-left>.nav-tabs>li>a{margin-right:-1px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.tabs-left>.nav-tabs>li>a:hover,.tabs-left>.nav-tabs>li>a:focus{border-color:#eee #ddd #eee #eee}.tabs-left>.nav-tabs .active>a,.tabs-left>.nav-tabs .active>a:hover,.tabs-left>.nav-tabs .active>a:focus{border-color:#ddd transparent #ddd #ddd;*border-right-color:#fff}.tabs-right>.nav-tabs{float:right;margin-left:19px;border-left:1px solid #ddd}.tabs-right>.nav-tabs>li>a{margin-left:-1px;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.tabs-right>.nav-tabs>li>a:hover,.tabs-right>.nav-tabs>li>a:focus{border-color:#eee #eee #eee #ddd}.tabs-right>.nav-tabs .active>a,.tabs-right>.nav-tabs .active>a:hover,.tabs-right>.nav-tabs .active>a:focus{border-color:#ddd #ddd #ddd transparent;*border-left-color:#fff}.nav>.disabled>a{color:#999}.nav>.disabled>a:hover,.nav>.disabled>a:focus{text-decoration:none;cursor:default;background-color:transparent}.navbar{*position:relative;*z-index:2;margin-bottom:20px;overflow:visible}.navbar-inner{min-height:40px;padding-right:20px;padding-left:20px;background-color:#fafafa;background-image:-moz-linear-gradient(top,#fff,#f2f2f2);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#f2f2f2));background-image:-webkit-linear-gradient(top,#fff,#f2f2f2);background-image:-o-linear-gradient(top,#fff,#f2f2f2);background-image:linear-gradient(to bottom,#fff,#f2f2f2);background-repeat:repeat-x;border:1px solid #d4d4d4;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#fff2f2f2',GradientType=0);*zoom:1;-webkit-box-shadow:0 1px 4px rgba(0,0,0,0.065);-moz-box-shadow:0 1px 4px rgba(0,0,0,0.065);box-shadow:0 1px 4px rgba(0,0,0,0.065)}.navbar-inner:before,.navbar-inner:after{display:table;line-height:0;content:""}.navbar-inner:after{clear:both}.navbar .container{width:auto}.nav-collapse.collapse{height:auto;overflow:visible}.navbar .brand{display:block;float:left;padding:10px 20px 10px;margin-left:-20px;font-size:20px;font-weight:200;color:#777;text-shadow:0 1px 0 #fff}.navbar .brand:hover,.navbar .brand:focus{text-decoration:none}.navbar-text{margin-bottom:0;line-height:40px;color:#777}.navbar-link{color:#777}.navbar-link:hover,.navbar-link:focus{color:#333}.navbar .divider-vertical{height:40px;margin:0 9px;border-right:1px solid #fff;border-left:1px solid #f2f2f2}.navbar .btn,.navbar .btn-group{margin-top:5px}.navbar .btn-group .btn,.navbar .input-prepend .btn,.navbar .input-append .btn,.navbar .input-prepend .btn-group,.navbar .input-append .btn-group{margin-top:0}.navbar-form{margin-bottom:0;*zoom:1}.navbar-form:before,.navbar-form:after{display:table;line-height:0;content:""}.navbar-form:after{clear:both}.navbar-form input,.navbar-form select,.navbar-form .radio,.navbar-form .checkbox{margin-top:5px}.navbar-form input,.navbar-form select,.navbar-form .btn{display:inline-block;margin-bottom:0}.navbar-form input[type="image"],.navbar-form input[type="checkbox"],.navbar-form input[type="radio"]{margin-top:3px}.navbar-form .input-append,.navbar-form .input-prepend{margin-top:5px;white-space:nowrap}.navbar-form .input-append input,.navbar-form .input-prepend input{margin-top:0}.navbar-search{position:relative;float:left;margin-top:5px;margin-bottom:0}.navbar-search .search-query{padding:4px 14px;margin-bottom:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;font-weight:normal;line-height:1;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px}.navbar-static-top{position:static;margin-bottom:0}.navbar-static-top .navbar-inner{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030;margin-bottom:0}.navbar-fixed-top .navbar-inner,.navbar-static-top .navbar-inner{border-width:0 0 1px}.navbar-fixed-bottom .navbar-inner{border-width:1px 0 0}.navbar-fixed-top .navbar-inner,.navbar-fixed-bottom .navbar-inner{padding-right:0;padding-left:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px}.navbar-fixed-top{top:0}.navbar-fixed-top .navbar-inner,.navbar-static-top .navbar-inner{-webkit-box-shadow:0 1px 10px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 10px rgba(0,0,0,0.1);box-shadow:0 1px 10px rgba(0,0,0,0.1)}.navbar-fixed-bottom{bottom:0}.navbar-fixed-bottom .navbar-inner{-webkit-box-shadow:0 -1px 10px rgba(0,0,0,0.1);-moz-box-shadow:0 -1px 10px rgba(0,0,0,0.1);box-shadow:0 -1px 10px rgba(0,0,0,0.1)}.navbar .nav{position:relative;left:0;display:block;float:left;margin:0 10px 0 0}.navbar .nav.pull-right{float:right;margin-right:0}.navbar .nav>li{float:left}.navbar .nav>li>a{float:none;padding:10px 15px 10px;color:#777;text-decoration:none;text-shadow:0 1px 0 #fff}.navbar .nav .dropdown-toggle .caret{margin-top:8px}.navbar .nav>li>a:focus,.navbar .nav>li>a:hover{color:#333;text-decoration:none;background-color:transparent}.navbar .nav>.active>a,.navbar .nav>.active>a:hover,.navbar .nav>.active>a:focus{color:#555;text-decoration:none;background-color:#e5e5e5;-webkit-box-shadow:inset 0 3px 8px rgba(0,0,0,0.125);-moz-box-shadow:inset 0 3px 8px rgba(0,0,0,0.125);box-shadow:inset 0 3px 8px rgba(0,0,0,0.125)}.navbar .btn-navbar{display:none;float:right;padding:7px 10px;margin-right:5px;margin-left:5px;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#ededed;*background-color:#e5e5e5;background-image:-moz-linear-gradient(top,#f2f2f2,#e5e5e5);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f2f2f2),to(#e5e5e5));background-image:-webkit-linear-gradient(top,#f2f2f2,#e5e5e5);background-image:-o-linear-gradient(top,#f2f2f2,#e5e5e5);background-image:linear-gradient(to bottom,#f2f2f2,#e5e5e5);background-repeat:repeat-x;border-color:#e5e5e5 #e5e5e5 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2f2f2',endColorstr='#ffe5e5e5',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.075);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.075);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.075)}.navbar .btn-navbar:hover,.navbar .btn-navbar:focus,.navbar .btn-navbar:active,.navbar .btn-navbar.active,.navbar .btn-navbar.disabled,.navbar .btn-navbar[disabled]{color:#fff;background-color:#e5e5e5;*background-color:#d9d9d9}.navbar .btn-navbar:active,.navbar .btn-navbar.active{background-color:#ccc \9}.navbar .btn-navbar .icon-bar{display:block;width:18px;height:2px;background-color:#f5f5f5;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,0.25);-moz-box-shadow:0 1px 0 rgba(0,0,0,0.25);box-shadow:0 1px 0 rgba(0,0,0,0.25)}.btn-navbar .icon-bar+.icon-bar{margin-top:3px}.navbar .nav>li>.dropdown-menu:before{position:absolute;top:-7px;left:9px;display:inline-block;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-left:7px solid transparent;border-bottom-color:rgba(0,0,0,0.2);content:''}.navbar .nav>li>.dropdown-menu:after{position:absolute;top:-6px;left:10px;display:inline-block;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent;content:''}.navbar-fixed-bottom .nav>li>.dropdown-menu:before{top:auto;bottom:-7px;border-top:7px solid #ccc;border-bottom:0;border-top-color:rgba(0,0,0,0.2)}.navbar-fixed-bottom .nav>li>.dropdown-menu:after{top:auto;bottom:-6px;border-top:6px solid #fff;border-bottom:0}.navbar .nav li.dropdown>a:hover .caret,.navbar .nav li.dropdown>a:focus .caret{border-top-color:#333;border-bottom-color:#333}.navbar .nav li.dropdown.open>.dropdown-toggle,.navbar .nav li.dropdown.active>.dropdown-toggle,.navbar .nav li.dropdown.open.active>.dropdown-toggle{color:#555;background-color:#e5e5e5}.navbar .nav li.dropdown>.dropdown-toggle .caret{border-top-color:#777;border-bottom-color:#777}.navbar .nav li.dropdown.open>.dropdown-toggle .caret,.navbar .nav li.dropdown.active>.dropdown-toggle .caret,.navbar .nav li.dropdown.open.active>.dropdown-toggle .caret{border-top-color:#555;border-bottom-color:#555}.navbar .pull-right>li>.dropdown-menu,.navbar .nav>li>.dropdown-menu.pull-right{right:0;left:auto}.navbar .pull-right>li>.dropdown-menu:before,.navbar .nav>li>.dropdown-menu.pull-right:before{right:12px;left:auto}.navbar .pull-right>li>.dropdown-menu:after,.navbar .nav>li>.dropdown-menu.pull-right:after{right:13px;left:auto}.navbar .pull-right>li>.dropdown-menu .dropdown-menu,.navbar .nav>li>.dropdown-menu.pull-right .dropdown-menu{right:100%;left:auto;margin-right:-1px;margin-left:0;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px}.navbar-inverse .navbar-inner{background-color:#1b1b1b;background-image:-moz-linear-gradient(top,#222,#111);background-image:-webkit-gradient(linear,0 0,0 100%,from(#222),to(#111));background-image:-webkit-linear-gradient(top,#222,#111);background-image:-o-linear-gradient(top,#222,#111);background-image:linear-gradient(to bottom,#222,#111);background-repeat:repeat-x;border-color:#252525;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff222222',endColorstr='#ff111111',GradientType=0)}.navbar-inverse .brand,.navbar-inverse .nav>li>a{color:#999;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.navbar-inverse .brand:hover,.navbar-inverse .nav>li>a:hover,.navbar-inverse .brand:focus,.navbar-inverse .nav>li>a:focus{color:#fff}.navbar-inverse .brand{color:#999}.navbar-inverse .navbar-text{color:#999}.navbar-inverse .nav>li>a:focus,.navbar-inverse .nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .nav .active>a,.navbar-inverse .nav .active>a:hover,.navbar-inverse .nav .active>a:focus{color:#fff;background-color:#111}.navbar-inverse .navbar-link{color:#999}.navbar-inverse .navbar-link:hover,.navbar-inverse .navbar-link:focus{color:#fff}.navbar-inverse .divider-vertical{border-right-color:#222;border-left-color:#111}.navbar-inverse .nav li.dropdown.open>.dropdown-toggle,.navbar-inverse .nav li.dropdown.active>.dropdown-toggle,.navbar-inverse .nav li.dropdown.open.active>.dropdown-toggle{color:#fff;background-color:#111}.navbar-inverse .nav li.dropdown>a:hover .caret,.navbar-inverse .nav li.dropdown>a:focus .caret{border-top-color:#fff;border-bottom-color:#fff}.navbar-inverse .nav li.dropdown>.dropdown-toggle .caret{border-top-color:#999;border-bottom-color:#999}.navbar-inverse .nav li.dropdown.open>.dropdown-toggle .caret,.navbar-inverse .nav li.dropdown.active>.dropdown-toggle .caret,.navbar-inverse .nav li.dropdown.open.active>.dropdown-toggle .caret{border-top-color:#fff;border-bottom-color:#fff}.navbar-inverse .navbar-search .search-query{color:#fff;background-color:#515151;border-color:#111;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1),0 1px 0 rgba(255,255,255,0.15);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1),0 1px 0 rgba(255,255,255,0.15);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1),0 1px 0 rgba(255,255,255,0.15);-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.navbar-inverse .navbar-search .search-query:-moz-placeholder{color:#ccc}.navbar-inverse .navbar-search .search-query:-ms-input-placeholder{color:#ccc}.navbar-inverse .navbar-search .search-query::-webkit-input-placeholder{color:#ccc}.navbar-inverse .navbar-search .search-query:focus,.navbar-inverse .navbar-search .search-query.focused{padding:5px 15px;color:#333;text-shadow:0 1px 0 #fff;background-color:#fff;border:0;outline:0;-webkit-box-shadow:0 0 3px rgba(0,0,0,0.15);-moz-box-shadow:0 0 3px rgba(0,0,0,0.15);box-shadow:0 0 3px rgba(0,0,0,0.15)}.navbar-inverse .btn-navbar{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#0e0e0e;*background-color:#040404;background-image:-moz-linear-gradient(top,#151515,#040404);background-image:-webkit-gradient(linear,0 0,0 100%,from(#151515),to(#040404));background-image:-webkit-linear-gradient(top,#151515,#040404);background-image:-o-linear-gradient(top,#151515,#040404);background-image:linear-gradient(to bottom,#151515,#040404);background-repeat:repeat-x;border-color:#040404 #040404 #000;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff151515',endColorstr='#ff040404',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.navbar-inverse .btn-navbar:hover,.navbar-inverse .btn-navbar:focus,.navbar-inverse .btn-navbar:active,.navbar-inverse .btn-navbar.active,.navbar-inverse .btn-navbar.disabled,.navbar-inverse .btn-navbar[disabled]{color:#fff;background-color:#040404;*background-color:#000}.navbar-inverse .btn-navbar:active,.navbar-inverse .btn-navbar.active{background-color:#000 \9}.breadcrumb{padding:8px 15px;margin:0 0 20px;list-style:none;background-color:#f5f5f5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.breadcrumb>li{display:inline-block;*display:inline;text-shadow:0 1px 0 #fff;*zoom:1}.breadcrumb>li>.divider{padding:0 5px;color:#ccc}.breadcrumb>.active{color:#999}.pagination{margin:20px 0}.pagination ul{display:inline-block;*display:inline;margin-bottom:0;margin-left:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;*zoom:1;-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.05);box-shadow:0 1px 2px rgba(0,0,0,0.05)}.pagination ul>li{display:inline}.pagination ul>li>a,.pagination ul>li>span{float:left;padding:4px 12px;line-height:20px;text-decoration:none;background-color:#fff;border:1px solid #ddd;border-left-width:0}.pagination ul>li>a:hover,.pagination ul>li>a:focus,.pagination ul>.active>a,.pagination ul>.active>span{background-color:#f5f5f5}.pagination ul>.active>a,.pagination ul>.active>span{color:#999;cursor:default}.pagination ul>.disabled>span,.pagination ul>.disabled>a,.pagination ul>.disabled>a:hover,.pagination ul>.disabled>a:focus{color:#999;cursor:default;background-color:transparent}.pagination ul>li:first-child>a,.pagination ul>li:first-child>span{border-left-width:1px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-bottomleft:4px;-moz-border-radius-topleft:4px}.pagination ul>li:last-child>a,.pagination ul>li:last-child>span{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-bottomright:4px}.pagination-centered{text-align:center}.pagination-right{text-align:right}.pagination-large ul>li>a,.pagination-large ul>li>span{padding:11px 19px;font-size:17.5px}.pagination-large ul>li:first-child>a,.pagination-large ul>li:first-child>span{-webkit-border-bottom-left-radius:6px;border-bottom-left-radius:6px;-webkit-border-top-left-radius:6px;border-top-left-radius:6px;-moz-border-radius-bottomleft:6px;-moz-border-radius-topleft:6px}.pagination-large ul>li:last-child>a,.pagination-large ul>li:last-child>span{-webkit-border-top-right-radius:6px;border-top-right-radius:6px;-webkit-border-bottom-right-radius:6px;border-bottom-right-radius:6px;-moz-border-radius-topright:6px;-moz-border-radius-bottomright:6px}.pagination-mini ul>li:first-child>a,.pagination-small ul>li:first-child>a,.pagination-mini ul>li:first-child>span,.pagination-small ul>li:first-child>span{-webkit-border-bottom-left-radius:3px;border-bottom-left-radius:3px;-webkit-border-top-left-radius:3px;border-top-left-radius:3px;-moz-border-radius-bottomleft:3px;-moz-border-radius-topleft:3px}.pagination-mini ul>li:last-child>a,.pagination-small ul>li:last-child>a,.pagination-mini ul>li:last-child>span,.pagination-small ul>li:last-child>span{-webkit-border-top-right-radius:3px;border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-bottom-right-radius:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px}.pagination-small ul>li>a,.pagination-small ul>li>span{padding:2px 10px;font-size:11.9px}.pagination-mini ul>li>a,.pagination-mini ul>li>span{padding:0 6px;font-size:10.5px}.pager{margin:20px 0;text-align:center;list-style:none;*zoom:1}.pager:before,.pager:after{display:table;line-height:0;content:""}.pager:after{clear:both}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#f5f5f5}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#999;cursor:default;background-color:#fff}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop,.modal-backdrop.fade.in{opacity:.8;filter:alpha(opacity=80)}.modal{position:fixed;top:10%;left:50%;z-index:1050;width:560px;margin-left:-280px;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,0.3);*border:1px solid #999;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;outline:0;-webkit-box-shadow:0 3px 7px rgba(0,0,0,0.3);-moz-box-shadow:0 3px 7px rgba(0,0,0,0.3);box-shadow:0 3px 7px rgba(0,0,0,0.3);-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box}.modal.fade{top:-25%;-webkit-transition:opacity .3s linear,top .3s ease-out;-moz-transition:opacity .3s linear,top .3s ease-out;-o-transition:opacity .3s linear,top .3s ease-out;transition:opacity .3s linear,top .3s ease-out}.modal.fade.in{top:10%}.modal-header{padding:9px 15px;border-bottom:1px solid #eee}.modal-header .close{margin-top:2px}.modal-header h3{margin:0;line-height:30px}.modal-body{position:relative;max-height:400px;padding:15px;overflow-y:auto}.modal-form{margin-bottom:0}.modal-footer{padding:14px 15px 15px;margin-bottom:0;text-align:right;background-color:#f5f5f5;border-top:1px solid #ddd;-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px;*zoom:1;-webkit-box-shadow:inset 0 1px 0 #fff;-moz-box-shadow:inset 0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff}.modal-footer:before,.modal-footer:after{display:table;line-height:0;content:""}.modal-footer:after{clear:both}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.tooltip{position:absolute;z-index:1030;display:block;font-size:11px;line-height:1.4;opacity:0;filter:alpha(opacity=0);visibility:visible}.tooltip.in{opacity:.8;filter:alpha(opacity=80)}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-top-color:#000;border-width:5px 5px 0}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-right-color:#000;border-width:5px 5px 5px 0}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-left-color:#000;border-width:5px 0 5px 5px}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-bottom-color:#000;border-width:0 5px 5px}.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;white-space:normal;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;font-weight:normal;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.popover-title:empty{display:none}.popover-content{padding:9px 14px}.popover .arrow,.popover .arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover .arrow{border-width:11px}.popover .arrow:after{border-width:10px;content:""}.popover.top .arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,0.25);border-bottom-width:0}.popover.top .arrow:after{bottom:1px;margin-left:-10px;border-top-color:#fff;border-bottom-width:0}.popover.right .arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,0.25);border-left-width:0}.popover.right .arrow:after{bottom:-10px;left:1px;border-right-color:#fff;border-left-width:0}.popover.bottom .arrow{top:-11px;left:50%;margin-left:-11px;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,0.25);border-top-width:0}.popover.bottom .arrow:after{top:1px;margin-left:-10px;border-bottom-color:#fff;border-top-width:0}.popover.left .arrow{top:50%;right:-11px;margin-top:-11px;border-left-color:#999;border-left-color:rgba(0,0,0,0.25);border-right-width:0}.popover.left .arrow:after{right:1px;bottom:-10px;border-left-color:#fff;border-right-width:0}.thumbnails{margin-left:-20px;list-style:none;*zoom:1}.thumbnails:before,.thumbnails:after{display:table;line-height:0;content:""}.thumbnails:after{clear:both}.row-fluid .thumbnails{margin-left:0}.thumbnails>li{float:left;margin-bottom:20px;margin-left:20px}.thumbnail{display:block;padding:4px;line-height:20px;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.055);-moz-box-shadow:0 1px 3px rgba(0,0,0,0.055);box-shadow:0 1px 3px rgba(0,0,0,0.055);-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}a.thumbnail:hover,a.thumbnail:focus{border-color:#08c;-webkit-box-shadow:0 1px 4px rgba(0,105,214,0.25);-moz-box-shadow:0 1px 4px rgba(0,105,214,0.25);box-shadow:0 1px 4px rgba(0,105,214,0.25)}.thumbnail>img{display:block;max-width:100%;margin-right:auto;margin-left:auto}.thumbnail .caption{padding:9px;color:#555}.media,.media-body{overflow:hidden;*overflow:visible;zoom:1}.media,.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-object{display:block}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{margin-left:0;list-style:none}.label,.badge{display:inline-block;padding:2px 4px;font-size:11.844px;font-weight:bold;line-height:14px;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);white-space:nowrap;vertical-align:baseline;background-color:#999}.label{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.badge{padding-right:9px;padding-left:9px;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px}.label:empty,.badge:empty{display:none}a.label:hover,a.label:focus,a.badge:hover,a.badge:focus{color:#fff;text-decoration:none;cursor:pointer}.label-important,.badge-important{background-color:#b94a48}.label-important[href],.badge-important[href]{background-color:#953b39}.label-warning,.badge-warning{background-color:#f89406}.label-warning[href],.badge-warning[href]{background-color:#c67605}.label-success,.badge-success{background-color:#468847}.label-success[href],.badge-success[href]{background-color:#356635}.label-info,.badge-info{background-color:#3a87ad}.label-info[href],.badge-info[href]{background-color:#2d6987}.label-inverse,.badge-inverse{background-color:#333}.label-inverse[href],.badge-inverse[href]{background-color:#1a1a1a}.btn .label,.btn .badge{position:relative;top:-1px}.btn-mini .label,.btn-mini .badge{top:0}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-moz-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-ms-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:0 0}to{background-position:40px 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f7f7f7;background-image:-moz-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f5f5f5),to(#f9f9f9));background-image:-webkit-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:-o-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:linear-gradient(to bottom,#f5f5f5,#f9f9f9);background-repeat:repeat-x;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5',endColorstr='#fff9f9f9',GradientType=0);-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.progress .bar{float:left;width:0;height:100%;font-size:12px;color:#fff;text-align:center;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#0e90d2;background-image:-moz-linear-gradient(top,#149bdf,#0480be);background-image:-webkit-gradient(linear,0 0,0 100%,from(#149bdf),to(#0480be));background-image:-webkit-linear-gradient(top,#149bdf,#0480be);background-image:-o-linear-gradient(top,#149bdf,#0480be);background-image:linear-gradient(to bottom,#149bdf,#0480be);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf',endColorstr='#ff0480be',GradientType=0);-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-moz-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:width .6s ease;-moz-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress .bar+.bar{-webkit-box-shadow:inset 1px 0 0 rgba(0,0,0,0.15),inset 0 -1px 0 rgba(0,0,0,0.15);-moz-box-shadow:inset 1px 0 0 rgba(0,0,0,0.15),inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 1px 0 0 rgba(0,0,0,0.15),inset 0 -1px 0 rgba(0,0,0,0.15)}.progress-striped .bar{background-color:#149bdf;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;-moz-background-size:40px 40px;-o-background-size:40px 40px;background-size:40px 40px}.progress.active .bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-moz-animation:progress-bar-stripes 2s linear infinite;-ms-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-danger .bar,.progress .bar-danger{background-color:#dd514c;background-image:-moz-linear-gradient(top,#ee5f5b,#c43c35);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#c43c35));background-image:-webkit-linear-gradient(top,#ee5f5b,#c43c35);background-image:-o-linear-gradient(top,#ee5f5b,#c43c35);background-image:linear-gradient(to bottom,#ee5f5b,#c43c35);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b',endColorstr='#ffc43c35',GradientType=0)}.progress-danger.progress-striped .bar,.progress-striped .bar-danger{background-color:#ee5f5b;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-success .bar,.progress .bar-success{background-color:#5eb95e;background-image:-moz-linear-gradient(top,#62c462,#57a957);background-image:-webkit-gradient(linear,0 0,0 100%,from(#62c462),to(#57a957));background-image:-webkit-linear-gradient(top,#62c462,#57a957);background-image:-o-linear-gradient(top,#62c462,#57a957);background-image:linear-gradient(to bottom,#62c462,#57a957);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462',endColorstr='#ff57a957',GradientType=0)}.progress-success.progress-striped .bar,.progress-striped .bar-success{background-color:#62c462;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-info .bar,.progress .bar-info{background-color:#4bb1cf;background-image:-moz-linear-gradient(top,#5bc0de,#339bb9);background-image:-webkit-gradient(linear,0 0,0 100%,from(#5bc0de),to(#339bb9));background-image:-webkit-linear-gradient(top,#5bc0de,#339bb9);background-image:-o-linear-gradient(top,#5bc0de,#339bb9);background-image:linear-gradient(to bottom,#5bc0de,#339bb9);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de',endColorstr='#ff339bb9',GradientType=0)}.progress-info.progress-striped .bar,.progress-striped .bar-info{background-color:#5bc0de;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-warning .bar,.progress .bar-warning{background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450',endColorstr='#fff89406',GradientType=0)}.progress-warning.progress-striped .bar,.progress-striped .bar-warning{background-color:#fbb450;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.accordion{margin-bottom:20px}.accordion-group{margin-bottom:2px;border:1px solid #e5e5e5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.accordion-heading{border-bottom:0}.accordion-heading .accordion-toggle{display:block;padding:8px 15px}.accordion-toggle{cursor:pointer}.accordion-inner{padding:9px 15px;border-top:1px solid #e5e5e5}.carousel{position:relative;margin-bottom:20px;line-height:1}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-moz-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:block;line-height:1}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:40%;left:15px;width:40px;height:40px;margin-top:-20px;font-size:60px;font-weight:100;line-height:30px;color:#fff;text-align:center;background:#222;border:3px solid #fff;-webkit-border-radius:23px;-moz-border-radius:23px;border-radius:23px;opacity:.5;filter:alpha(opacity=50)}.carousel-control.right{right:15px;left:auto}.carousel-control:hover,.carousel-control:focus{color:#fff;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.carousel-indicators{position:absolute;top:15px;right:15px;z-index:5;margin:0;list-style:none}.carousel-indicators li{display:block;float:left;width:10px;height:10px;margin-left:5px;text-indent:-999px;background-color:#ccc;background-color:rgba(255,255,255,0.25);border-radius:5px}.carousel-indicators .active{background-color:#fff}.carousel-caption{position:absolute;right:0;bottom:0;left:0;padding:15px;background:#333;background:rgba(0,0,0,0.75)}.carousel-caption h4,.carousel-caption p{line-height:20px;color:#fff}.carousel-caption h4{margin:0 0 5px}.carousel-caption p{margin-bottom:0}.hero-unit{padding:60px;margin-bottom:30px;font-size:18px;font-weight:200;line-height:30px;color:inherit;background-color:#eee;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.hero-unit h1{margin-bottom:0;font-size:60px;line-height:1;letter-spacing:-1px;color:inherit}.hero-unit li{line-height:30px}.pull-right{float:right}.pull-left{float:left}.hide{display:none}.show{display:block}.invisible{visibility:hidden}.affix{position:fixed}
|
{spritegen_default → assets/css}/index.html
RENAMED
File without changes
|
assets/css/main.css
ADDED
@@ -0,0 +1,249 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
body {
|
2 |
+
background: transparent;
|
3 |
+
}
|
4 |
+
|
5 |
+
fieldset {
|
6 |
+
border: 1px solid #d8d8d8;
|
7 |
+
margin: 5px;
|
8 |
+
padding: 10px;
|
9 |
+
color: #666666;
|
10 |
+
line-height: 3em;
|
11 |
+
font-size: 12px;
|
12 |
+
float:left;
|
13 |
+
}
|
14 |
+
|
15 |
+
legend {
|
16 |
+
border: none;
|
17 |
+
width: auto;
|
18 |
+
font-weight: bold;
|
19 |
+
padding: 0px 10px;
|
20 |
+
color: #007bb6;
|
21 |
+
margin-bottom: 0;
|
22 |
+
}
|
23 |
+
|
24 |
+
.check {
|
25 |
+
position: relative;
|
26 |
+
top:-4px;
|
27 |
+
}
|
28 |
+
.btn {
|
29 |
+
margin-left:20px;
|
30 |
+
}
|
31 |
+
|
32 |
+
.helper {
|
33 |
+
display: block;
|
34 |
+
margin-left: 20px;
|
35 |
+
font-size: 12px;
|
36 |
+
line-height: 14pt;
|
37 |
+
text-indent: -17px;
|
38 |
+
}
|
39 |
+
|
40 |
+
.label {
|
41 |
+
margin-right:20px;
|
42 |
+
}
|
43 |
+
|
44 |
+
h3 {
|
45 |
+
clear:both;
|
46 |
+
}
|
47 |
+
|
48 |
+
.clear {
|
49 |
+
clear:both
|
50 |
+
}
|
51 |
+
|
52 |
+
#iframe_container, iframe {
|
53 |
+
width:100%;
|
54 |
+
height: 550px;
|
55 |
+
}
|
56 |
+
|
57 |
+
#shortcode_container, #shortcode {
|
58 |
+
cursor: inherit;
|
59 |
+
width: 100%;
|
60 |
+
text-align: center;
|
61 |
+
background: white;
|
62 |
+
height: 30px;
|
63 |
+
}
|
64 |
+
|
65 |
+
#shortcode_container {
|
66 |
+
border-top: 3px solid #ccc;
|
67 |
+
}
|
68 |
+
|
69 |
+
#shortcode {
|
70 |
+
font-family: monospace;
|
71 |
+
}
|
72 |
+
|
73 |
+
.reveal-modal {
|
74 |
+
width: 670px;
|
75 |
+
height: 600px;
|
76 |
+
margin-left: -335px;
|
77 |
+
position: fixed;
|
78 |
+
/* display: none; */
|
79 |
+
}
|
80 |
+
|
81 |
+
#editing_modal {
|
82 |
+
padding: 0;
|
83 |
+
}
|
84 |
+
|
85 |
+
.wp-submenu-wrap ul {
|
86 |
+
margin: 0;
|
87 |
+
}
|
88 |
+
|
89 |
+
/* OOCSS Styles */
|
90 |
+
|
91 |
+
.line,.lastUnit{overflow:hidden; *overflow:visible;*zoom:1;}
|
92 |
+
.unit{float:left;}
|
93 |
+
.unitRight{float:right;}
|
94 |
+
.size1of1{float:none;}
|
95 |
+
.size1of2{width:50%;}
|
96 |
+
.size1of3{width:33.33333%;}
|
97 |
+
.size2of3{width:66.66666%;}
|
98 |
+
.size1of4{width:25%;}
|
99 |
+
.size3of4{width:75%;}
|
100 |
+
.size1of5{width:20%;}
|
101 |
+
.size2of5{width:40%;}
|
102 |
+
.size3of5{width:60%;}
|
103 |
+
.size4of5{width:80%;}
|
104 |
+
.lastUnit{float:none;width:auto;_position:relative;_left:-3px;_margin-right:-3px;}
|
105 |
+
|
106 |
+
/**
|
107 |
+
* Spacing classes
|
108 |
+
* Should be used to modify the default spacing between objects (not between nodes of the same object)
|
109 |
+
* Please use judiciously. You want to be using defaults most of the time, these are exceptions!
|
110 |
+
* <type><location><size>
|
111 |
+
*/
|
112 |
+
/* ====== Default spacing ====== */
|
113 |
+
h1, h2, h3, h4, h5, h6, ul, ol,dl, p,blockquote, .media {margin:10px;}
|
114 |
+
h1, h2, h3, h4, h5, h6,img{padding-bottom:0px;}
|
115 |
+
pre{margin: 10px;}
|
116 |
+
table h1,table h2,table h3, table h4, table h5, table h6, table p, table ul, table ol, table dl{padding:0;}
|
117 |
+
|
118 |
+
/* spacing helpers
|
119 |
+
p,m = padding,margin
|
120 |
+
a,t,r,b,l,h,v = all,top,right,bottom,left,horizontal,vertical
|
121 |
+
s,m,l,n = small(5px),medium(10px),large(20px),none(0px)
|
122 |
+
*/
|
123 |
+
|
124 |
+
.ptn,.pvn,.pan{padding-top:0px !important}
|
125 |
+
.pts,.pvs,.pas{padding-top:5px !important}
|
126 |
+
.ptm,.pvm,.pam{padding-top:10px !important}
|
127 |
+
.ptl,.pvl,.pal{padding-top:20px !important}
|
128 |
+
.prn,.phn,.pan{padding-right:0px !important}
|
129 |
+
.prs,.phs,.pas{padding-right:5px !important}
|
130 |
+
.prm,.phm,.pam{padding-right:10px !important}
|
131 |
+
.prl,.phl,.pal{padding-right:20px !important}
|
132 |
+
.pbn,.pvn,.pan{padding-bottom:0px !important}
|
133 |
+
.pbs,.pvs,.pas{padding-bottom:5px !important}
|
134 |
+
.pbm,.pvm,.pam{padding-bottom:10px !important}
|
135 |
+
.pbl,.pvl,.pal{padding-bottom:20px !important}
|
136 |
+
.pln,.phn,.pan{padding-left:0px !important}
|
137 |
+
.pls,.phs,.pas{padding-left:5px !important}
|
138 |
+
.plm,.phm,.pam{padding-left:10px !important}
|
139 |
+
.pll,.phl,.pal{padding-left:20px !important}
|
140 |
+
.mtn,.mvn,.man{margin-top:0px !important}
|
141 |
+
.mts,.mvs,.mas{margin-top:5px !important}
|
142 |
+
.mtm,.mvm,.mam{margin-top:10px !important}
|
143 |
+
.mtl,.mvl,.mal{margin-top:20px !important}
|
144 |
+
.mrn,.mhn,.man{margin-right:0px !important}
|
145 |
+
.mrs,.mhs,.mas{margin-right:5px !important}
|
146 |
+
.mrm,.mhm,.mam{margin-right:10px !important}
|
147 |
+
.mrl,.mhl,.mal{margin-right:20px !important}
|
148 |
+
.mbn,.mvn,.man{margin-bottom:0px !important}
|
149 |
+
.mbs,.mvs,.mas{margin-bottom:5px !important}
|
150 |
+
.mbm,.mvm,.mam{margin-bottom:10px !important}
|
151 |
+
.mbl,.mvl,.mal{margin-bottom:20px !important}
|
152 |
+
.mln,.mhn,.man{margin-left:0px !important}
|
153 |
+
.mls,.mhs,.mas{margin-left:5px !important}
|
154 |
+
.mlm,.mhm,.mam{margin-left:10px !important}
|
155 |
+
.mll,.mhl,.mal{margin-left:20px !important}
|
156 |
+
.mra,.mha{margin-right:auto !important}
|
157 |
+
.mla,.mha{margin-left:auto !important}
|
158 |
+
|
159 |
+
/* body { */
|
160 |
+
/* background: rgba(0,0,0, 0.3); */
|
161 |
+
/* font-family: 'Open Sans', sans-serif; */
|
162 |
+
/* margin: 0; */
|
163 |
+
/* padding: 0; */
|
164 |
+
/* height: 100%; */
|
165 |
+
/* min-height: 100%; */
|
166 |
+
/* } */
|
167 |
+
|
168 |
+
.blocking-modal{
|
169 |
+
font-family: 'Open Sans', sans-serif;
|
170 |
+
top:150px;
|
171 |
+
background: white;
|
172 |
+
width: 680px;
|
173 |
+
overflow: hidden;
|
174 |
+
text-align: center;
|
175 |
+
color: #414042;
|
176 |
+
font-size: 14px;
|
177 |
+
line-height: 16pt;
|
178 |
+
box-shadow: 0px 0px 52px rgba(0,0,0,0.32);
|
179 |
+
padding: 0;
|
180 |
+
height: 560px;
|
181 |
+
}
|
182 |
+
|
183 |
+
.blocking-modal .content{
|
184 |
+
|
185 |
+
}
|
186 |
+
|
187 |
+
h4 {
|
188 |
+
background: #424142;
|
189 |
+
color: #e6e6e6;
|
190 |
+
font-size: 30px;
|
191 |
+
line-height: 60px;
|
192 |
+
height: auto;
|
193 |
+
font-weight: 300;
|
194 |
+
margin: 0;
|
195 |
+
}
|
196 |
+
|
197 |
+
.blocking-modal a {
|
198 |
+
color: #2ba9e1;
|
199 |
+
font-weight: bold;
|
200 |
+
text-decoration: none;
|
201 |
+
}
|
202 |
+
|
203 |
+
.blocking-modal a:hover {
|
204 |
+
border-bottom: 1px dashed;
|
205 |
+
color: #0988be;
|
206 |
+
}
|
207 |
+
|
208 |
+
|
209 |
+
.blocking-modal h2 {
|
210 |
+
font-size: 28px;
|
211 |
+
font-weight: normal;
|
212 |
+
}
|
213 |
+
|
214 |
+
.blocking-modal p {
|
215 |
+
margin: 10px;
|
216 |
+
font-size: 14px;
|
217 |
+
line-height: 21px;
|
218 |
+
}
|
219 |
+
|
220 |
+
.blocking-modal img {
|
221 |
+
width: 150px;
|
222 |
+
height: 150px;
|
223 |
+
}
|
224 |
+
|
225 |
+
.blocking-modal .btn_main {
|
226 |
+
cursor: pointer;
|
227 |
+
display: inline-block;
|
228 |
+
background: #31986E;
|
229 |
+
color: white;
|
230 |
+
text-transform: uppercase;
|
231 |
+
text-decoration: none;
|
232 |
+
padding: 20px 40px;
|
233 |
+
font-size: 14px;
|
234 |
+
}
|
235 |
+
|
236 |
+
.blocking-modal .btn_main:hover {
|
237 |
+
background: #28cc8b;
|
238 |
+
color: white;
|
239 |
+
border: none;
|
240 |
+
}
|
241 |
+
|
242 |
+
.blocking-modal .small {
|
243 |
+
font-size: 12px;
|
244 |
+
color: #888888;
|
245 |
+
}
|
246 |
+
|
247 |
+
input[type='text'] {
|
248 |
+
width: 272px;
|
249 |
+
}
|
{css/reveal → assets/css}/modal-gloss.png
RENAMED
File without changes
|
{css/reveal → assets/css}/reveal.css
RENAMED
@@ -2,7 +2,7 @@
|
|
2 |
Reveal Modals
|
3 |
-------------------------------------------------- */
|
4 |
|
5 |
-
.reveal-modal-bg {
|
6 |
position: fixed;
|
7 |
height: 100%;
|
8 |
width: 100%;
|
@@ -12,17 +12,16 @@
|
|
12 |
display: none;
|
13 |
top: 0;
|
14 |
left: 0;
|
15 |
-
|
16 |
|
17 |
.reveal-modal {
|
18 |
visibility: hidden;
|
19 |
top: 100px;
|
20 |
left: 50%;
|
21 |
margin-left: -300px;
|
22 |
-
|
23 |
background: #eee url(modal-gloss.png) no-repeat -200px -80px;
|
24 |
-
|
25 |
-
position:fixed;
|
26 |
z-index: 101;
|
27 |
padding: 30px 40px 34px;
|
28 |
-moz-border-radius: 5px;
|
@@ -31,22 +30,8 @@
|
|
31 |
-moz-box-shadow: 0 0 10px rgba(0,0,0,.4);
|
32 |
-webkit-box-shadow: 0 0 10px rgba(0,0,0,.4);
|
33 |
-box-shadow: 0 0 10px rgba(0,0,0,.4);
|
34 |
-
|
35 |
-
|
36 |
-
.reveal-modal-iframe {
|
37 |
-
border:10px solid rgba(82,82,82,0.7);
|
38 |
-
background:white;
|
39 |
-
-moz-box-shadow:3px 3px 10px #777;
|
40 |
-
-webkit-box-shadow:3px 3px 10px #777;
|
41 |
-
-webkit-border-radius:5px;
|
42 |
-
-moz-border-radius:5px;
|
43 |
-
border-radius:5px;
|
44 |
-
padding: 0 0 0 0;
|
45 |
-
}
|
46 |
-
.reveal-modal-iframe iframe{
|
47 |
-
border:0;
|
48 |
-
}
|
49 |
-
|
50 |
.reveal-modal.small { width: 200px; margin-left: -140px;}
|
51 |
.reveal-modal.medium { width: 400px; margin-left: -240px;}
|
52 |
.reveal-modal.large { width: 600px; margin-left: -340px;}
|
@@ -62,7 +47,7 @@
|
|
62 |
text-shadow: 0 -1px 1px rbga(0,0,0,.6);
|
63 |
font-weight: bold;
|
64 |
cursor: pointer;
|
65 |
-
|
66 |
/*
|
67 |
|
68 |
NOTES
|
2 |
Reveal Modals
|
3 |
-------------------------------------------------- */
|
4 |
|
5 |
+
.reveal-modal-bg {
|
6 |
position: fixed;
|
7 |
height: 100%;
|
8 |
width: 100%;
|
12 |
display: none;
|
13 |
top: 0;
|
14 |
left: 0;
|
15 |
+
}
|
16 |
|
17 |
.reveal-modal {
|
18 |
visibility: hidden;
|
19 |
top: 100px;
|
20 |
left: 50%;
|
21 |
margin-left: -300px;
|
22 |
+
width: 520px;
|
23 |
background: #eee url(modal-gloss.png) no-repeat -200px -80px;
|
24 |
+
position: absolute;
|
|
|
25 |
z-index: 101;
|
26 |
padding: 30px 40px 34px;
|
27 |
-moz-border-radius: 5px;
|
30 |
-moz-box-shadow: 0 0 10px rgba(0,0,0,.4);
|
31 |
-webkit-box-shadow: 0 0 10px rgba(0,0,0,.4);
|
32 |
-box-shadow: 0 0 10px rgba(0,0,0,.4);
|
33 |
+
}
|
34 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
.reveal-modal.small { width: 200px; margin-left: -140px;}
|
36 |
.reveal-modal.medium { width: 400px; margin-left: -240px;}
|
37 |
.reveal-modal.large { width: 600px; margin-left: -340px;}
|
47 |
text-shadow: 0 -1px 1px rbga(0,0,0,.6);
|
48 |
font-weight: bold;
|
49 |
cursor: pointer;
|
50 |
+
}
|
51 |
/*
|
52 |
|
53 |
NOTES
|
assets/img/analytics@2x.png
ADDED
Binary file
|
assets/img/check.png
ADDED
Binary file
|
assets/img/glyphicons-halflings-white.png
ADDED
Binary file
|
assets/img/glyphicons-halflings.png
ADDED
Binary file
|
assets/img/index.html
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<html>
|
2 |
+
<head>
|
3 |
+
<meta http-equiv="refresh" content="0; url=http://www.shareaholic.com">
|
4 |
+
</head>
|
5 |
+
<body>
|
6 |
+
Redirecting you now...
|
7 |
+
</body>
|
8 |
+
</html>
|
assets/img/related_content@2x.png
ADDED
Binary file
|
images/shareaholic-220.png → assets/img/shareaholic-logo.png
RENAMED
File without changes
|
{images → assets/img}/shareaholic_16x16.png
RENAMED
File without changes
|
assets/img/sharebuttons@2x.png
ADDED
Binary file
|
assets/img/wpdirectory/banner-772x250.jpg
ADDED
Binary file
|
assets/img/wpdirectory/index.html
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<html>
|
2 |
+
<head>
|
3 |
+
<meta http-equiv="refresh" content="0; url=http://www.shareaholic.com">
|
4 |
+
</head>
|
5 |
+
<body>
|
6 |
+
Redirecting you now...
|
7 |
+
</body>
|
8 |
+
</html>
|
assets/index.html
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<html>
|
2 |
+
<head>
|
3 |
+
<meta http-equiv="refresh" content="0; url=http://www.shareaholic.com">
|
4 |
+
</head>
|
5 |
+
<body>
|
6 |
+
Redirecting you now...
|
7 |
+
</body>
|
8 |
+
</html>
|
{js/bootstrap → assets/js}/bootstrap.js
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
/* ===================================================
|
2 |
-
* bootstrap-transition.js v2.
|
3 |
* http://twitter.github.com/bootstrap/javascript.html#transitions
|
4 |
* ===================================================
|
5 |
* Copyright 2012 Twitter, Inc.
|
@@ -17,43 +17,50 @@
|
|
17 |
* limitations under the License.
|
18 |
* ========================================================== */
|
19 |
|
20 |
-
!function( $ ) {
|
21 |
|
22 |
-
|
|
|
|
|
|
|
23 |
|
24 |
-
|
|
|
25 |
|
26 |
-
|
27 |
-
* ======================================================= */
|
28 |
|
29 |
$.support.transition = (function () {
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
|
|
|
|
43 |
}
|
44 |
-
|
45 |
-
|
|
|
|
|
|
|
|
|
46 |
}
|
|
|
47 |
})()
|
48 |
|
49 |
})
|
50 |
-
|
51 |
-
}( window.jQuery )
|
52 |
|
53 |
-
|
54 |
-
* bootstrap-
|
55 |
-
* http://twitter.github.com/bootstrap/javascript.html#
|
56 |
-
*
|
57 |
* Copyright 2012 Twitter, Inc.
|
58 |
*
|
59 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -67,201 +74,565 @@
|
|
67 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
68 |
* See the License for the specific language governing permissions and
|
69 |
* limitations under the License.
|
70 |
-
*
|
71 |
|
72 |
|
73 |
-
!function(
|
74 |
|
75 |
-
"use strict"
|
76 |
|
77 |
-
|
|
|
78 |
* ====================== */
|
79 |
|
80 |
-
var
|
81 |
-
|
82 |
-
|
83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
}
|
85 |
|
86 |
-
Modal.prototype = {
|
87 |
|
88 |
-
|
|
|
89 |
|
90 |
-
|
91 |
-
return this[!this.isShown ? 'show' : 'hide']()
|
92 |
-
}
|
93 |
|
94 |
-
|
95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
-
|
98 |
|
99 |
-
$('body').addClass('modal-open')
|
100 |
|
101 |
-
|
102 |
-
|
103 |
|
104 |
-
|
105 |
-
|
106 |
-
|
|
|
107 |
|
108 |
-
!that.$element.parent().length && that.$element.appendTo(document.body) //don't move modals dom position
|
109 |
|
110 |
-
|
111 |
-
|
112 |
|
113 |
-
|
114 |
-
|
115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
|
117 |
-
that.$element.addClass('in')
|
118 |
|
119 |
-
|
120 |
-
|
121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
})
|
124 |
}
|
125 |
|
126 |
-
|
127 |
-
|
|
|
128 |
|
129 |
-
|
|
|
130 |
|
131 |
-
|
132 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
|
134 |
-
|
|
|
|
|
|
|
135 |
|
136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
|
138 |
-
|
139 |
-
.trigger('hide')
|
140 |
-
.removeClass('in')
|
141 |
|
142 |
-
|
143 |
-
|
144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
}
|
146 |
|
|
|
|
|
|
|
|
|
|
|
147 |
}
|
148 |
|
149 |
|
150 |
-
/*
|
151 |
-
*
|
152 |
|
153 |
-
|
154 |
-
var that = this
|
155 |
-
, timeout = setTimeout(function () {
|
156 |
-
that.$element.off($.support.transition.end)
|
157 |
-
hideModal.call(that)
|
158 |
-
}, 500)
|
159 |
|
160 |
-
|
161 |
-
|
162 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
})
|
164 |
}
|
165 |
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
|
|
|
|
|
|
170 |
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
}
|
173 |
|
174 |
-
|
175 |
-
|
176 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
|
178 |
-
|
179 |
-
var doAnimate = $.support.transition && animate
|
180 |
|
181 |
-
|
182 |
-
|
|
|
183 |
|
184 |
-
if (
|
185 |
-
|
|
|
|
|
|
|
186 |
}
|
187 |
|
188 |
-
|
|
|
|
|
|
|
189 |
|
190 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
|
192 |
-
|
193 |
-
|
194 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
|
196 |
-
|
197 |
-
this
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
|
199 |
-
|
200 |
-
|
201 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
|
203 |
-
|
204 |
-
|
205 |
}
|
206 |
-
}
|
207 |
|
208 |
-
function removeBackdrop() {
|
209 |
-
this.$backdrop.remove()
|
210 |
-
this.$backdrop = null
|
211 |
}
|
212 |
|
213 |
-
function escape() {
|
214 |
-
var that = this
|
215 |
-
if (this.isShown && this.options.keyboard) {
|
216 |
-
$(document).on('keyup.dismiss.modal', function ( e ) {
|
217 |
-
e.which == 27 && that.hide()
|
218 |
-
})
|
219 |
-
} else if (!this.isShown) {
|
220 |
-
$(document).off('keyup.dismiss.modal')
|
221 |
-
}
|
222 |
-
}
|
223 |
|
|
|
|
|
224 |
|
225 |
-
|
226 |
-
* ======================= */
|
227 |
|
228 |
-
$.fn.
|
229 |
return this.each(function () {
|
230 |
var $this = $(this)
|
231 |
-
, data = $this.data('
|
232 |
-
, options = typeof option == 'object' && option
|
233 |
-
if (!data) $this.data('
|
234 |
if (typeof option == 'string') data[option]()
|
235 |
-
else data.show()
|
236 |
})
|
237 |
}
|
238 |
|
239 |
-
$.fn.
|
240 |
-
|
241 |
-
, keyboard: true
|
242 |
}
|
243 |
|
244 |
-
$.fn.
|
245 |
|
246 |
|
247 |
-
/*
|
248 |
-
*
|
249 |
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
, option = $target.data('modal') ? 'toggle' : $.extend({}, $target.data(), $this.data())
|
255 |
|
256 |
-
e.preventDefault()
|
257 |
-
$target.modal(option)
|
258 |
-
})
|
259 |
-
})
|
260 |
|
261 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
262 |
|
263 |
-
|
264 |
-
* bootstrap-dropdown.js v2.
|
265 |
* http://twitter.github.com/bootstrap/javascript.html#dropdowns
|
266 |
* ============================================================
|
267 |
* Copyright 2012 Twitter, Inc.
|
@@ -280,15 +651,16 @@
|
|
280 |
* ============================================================ */
|
281 |
|
282 |
|
283 |
-
!function(
|
|
|
|
|
284 |
|
285 |
-
"use strict"
|
286 |
|
287 |
/* DROPDOWN CLASS DEFINITION
|
288 |
* ========================= */
|
289 |
|
290 |
-
var toggle = '[data-toggle=
|
291 |
-
, Dropdown = function (
|
292 |
var $el = $(element).on('click.dropdown.data-api', this.toggle)
|
293 |
$('html').on('click.dropdown.data-api', function () {
|
294 |
$el.parent().removeClass('open')
|
@@ -299,39 +671,100 @@
|
|
299 |
|
300 |
constructor: Dropdown
|
301 |
|
302 |
-
, toggle: function (
|
303 |
var $this = $(this)
|
304 |
-
, selector = $this.attr('data-target')
|
305 |
, $parent
|
306 |
, isActive
|
307 |
|
308 |
-
if (
|
309 |
-
selector = $this.attr('href')
|
310 |
-
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
311 |
-
}
|
312 |
|
313 |
-
$parent = $
|
314 |
-
$parent.length || ($parent = $this.parent())
|
315 |
|
316 |
isActive = $parent.hasClass('open')
|
317 |
|
318 |
clearMenus()
|
319 |
-
|
|
|
|
|
|
|
|
|
|
|
320 |
|
321 |
return false
|
322 |
}
|
323 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
324 |
}
|
325 |
|
326 |
function clearMenus() {
|
327 |
-
$(toggle).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
}
|
329 |
|
330 |
|
331 |
/* DROPDOWN PLUGIN DEFINITION
|
332 |
* ========================== */
|
333 |
|
334 |
-
$.fn.dropdown
|
|
|
|
|
335 |
return this.each(function () {
|
336 |
var $this = $(this)
|
337 |
, data = $this.data('dropdown')
|
@@ -343,20 +776,30 @@
|
|
343 |
$.fn.dropdown.Constructor = Dropdown
|
344 |
|
345 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
346 |
/* APPLY TO STANDARD DROPDOWN ELEMENTS
|
347 |
* =================================== */
|
348 |
|
349 |
-
$(
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
|
356 |
-
|
357 |
-
|
358 |
-
*
|
359 |
-
*
|
|
|
360 |
* Copyright 2012 Twitter, Inc.
|
361 |
*
|
362 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -370,248 +813,238 @@
|
|
370 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
371 |
* See the License for the specific language governing permissions and
|
372 |
* limitations under the License.
|
373 |
-
*
|
374 |
-
|
375 |
-
!function ( $ ) {
|
376 |
|
377 |
-
"use strict"
|
378 |
|
379 |
-
|
380 |
-
* ========================== */
|
381 |
|
382 |
-
|
383 |
-
var process = $.proxy(this.process, this)
|
384 |
-
, $element = $(element).is('body') ? $(window) : $(element)
|
385 |
-
, href
|
386 |
-
this.options = $.extend({}, $.fn.scrollspy.defaults, options)
|
387 |
-
this.$scrollElement = $element.on('scroll.scroll.data-api', process)
|
388 |
-
this.selector = (this.options.target
|
389 |
-
|| ((href = $(element).attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
390 |
-
|| '') + ' .nav li > a'
|
391 |
-
this.$body = $('body').on('click.scroll.data-api', this.selector, process)
|
392 |
-
this.refresh()
|
393 |
-
this.process()
|
394 |
-
}
|
395 |
|
396 |
-
ScrollSpy.prototype = {
|
397 |
|
398 |
-
|
|
|
399 |
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
})
|
407 |
|
408 |
-
|
409 |
-
return $(id).position().top
|
410 |
-
})
|
411 |
-
}
|
412 |
|
413 |
-
|
414 |
-
var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
|
415 |
-
, offsets = this.offsets
|
416 |
-
, targets = this.targets
|
417 |
-
, activeTarget = this.activeTarget
|
418 |
-
, i
|
419 |
|
420 |
-
|
421 |
-
|
422 |
-
&& scrollTop >= offsets[i]
|
423 |
-
&& (!offsets[i + 1] || scrollTop <= offsets[i + 1])
|
424 |
-
&& this.activate( targets[i] )
|
425 |
-
}
|
426 |
}
|
427 |
|
428 |
-
,
|
429 |
-
var
|
430 |
-
|
431 |
-
this.activeTarget = target
|
432 |
-
|
433 |
-
this.$body
|
434 |
-
.find(this.selector).parent('.active')
|
435 |
-
.removeClass('active')
|
436 |
|
437 |
-
|
438 |
-
.find(this.selector + '[href="' + target + '"]')
|
439 |
-
.parent('li')
|
440 |
-
.addClass('active')
|
441 |
|
442 |
-
if (
|
443 |
-
active.closest('li.dropdown').addClass('active')
|
444 |
-
}
|
445 |
-
}
|
446 |
|
447 |
-
|
448 |
|
|
|
449 |
|
450 |
-
|
451 |
-
|
452 |
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
, data = $this.data('scrollspy')
|
457 |
-
, options = typeof option == 'object' && option
|
458 |
-
if (!data) $this.data('scrollspy', (data = new ScrollSpy(this, options)))
|
459 |
-
if (typeof option == 'string') data[option]()
|
460 |
-
})
|
461 |
-
}
|
462 |
|
463 |
-
|
464 |
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
|
|
|
|
|
|
|
469 |
|
470 |
-
|
471 |
-
* ================== */
|
472 |
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
$spy.scrollspy($spy.data())
|
477 |
-
})
|
478 |
-
})
|
479 |
|
480 |
-
}
|
|
|
481 |
|
482 |
-
|
483 |
-
|
484 |
-
* http://twitter.github.com/bootstrap/javascript.html#tabs
|
485 |
-
* ========================================================
|
486 |
-
* Copyright 2012 Twitter, Inc.
|
487 |
-
*
|
488 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
489 |
-
* you may not use this file except in compliance with the License.
|
490 |
-
* You may obtain a copy of the License at
|
491 |
-
*
|
492 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
493 |
-
*
|
494 |
-
* Unless required by applicable law or agreed to in writing, software
|
495 |
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
496 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
497 |
-
* See the License for the specific language governing permissions and
|
498 |
-
* limitations under the License.
|
499 |
-
* ======================================================== */
|
500 |
|
|
|
501 |
|
502 |
-
|
503 |
|
504 |
-
|
505 |
|
506 |
-
|
507 |
-
* ==================== */
|
508 |
|
509 |
-
|
510 |
-
this.element = $(element)
|
511 |
-
}
|
512 |
|
513 |
-
|
514 |
|
515 |
-
|
516 |
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
, selector = $this.attr('data-target')
|
521 |
-
, previous
|
522 |
-
, $target
|
523 |
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
}
|
528 |
|
529 |
-
|
530 |
-
|
531 |
-
|
|
|
|
|
|
|
|
|
|
|
532 |
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
537 |
|
538 |
-
|
|
|
|
|
|
|
|
|
|
|
539 |
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
type: 'shown'
|
544 |
-
, relatedTarget: previous
|
545 |
})
|
546 |
-
}
|
547 |
-
}
|
548 |
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
|
|
|
|
|
|
554 |
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
.removeClass('active')
|
560 |
|
561 |
-
|
|
|
|
|
562 |
|
563 |
-
if (
|
564 |
-
|
565 |
-
element.addClass('in')
|
566 |
-
} else {
|
567 |
-
element.removeClass('fade')
|
568 |
-
}
|
569 |
|
570 |
-
|
571 |
-
|
572 |
-
}
|
573 |
|
574 |
-
|
575 |
-
|
|
|
|
|
|
|
576 |
|
577 |
-
|
578 |
-
$active.one($.support.transition.end, next) :
|
579 |
-
next()
|
580 |
|
581 |
-
|
582 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
583 |
}
|
584 |
|
585 |
|
586 |
-
/*
|
587 |
-
*
|
588 |
|
589 |
-
$.fn.
|
|
|
|
|
590 |
return this.each(function () {
|
591 |
var $this = $(this)
|
592 |
-
, data = $this.data('
|
593 |
-
|
|
|
594 |
if (typeof option == 'string') data[option]()
|
|
|
595 |
})
|
596 |
}
|
597 |
|
598 |
-
$.fn.
|
|
|
|
|
|
|
|
|
599 |
|
|
|
600 |
|
601 |
-
/* TAB DATA-API
|
602 |
-
* ============ */
|
603 |
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
610 |
|
611 |
-
|
|
|
|
|
|
|
|
|
|
|
612 |
|
|
|
613 |
/* ===========================================================
|
614 |
-
* bootstrap-tooltip.js v2.
|
615 |
* http://twitter.github.com/bootstrap/javascript.html#tooltips
|
616 |
* Inspired by the original jQuery.tipsy by Jason Frame
|
617 |
* ===========================================================
|
@@ -630,14 +1063,16 @@
|
|
630 |
* limitations under the License.
|
631 |
* ========================================================== */
|
632 |
|
633 |
-
!function( $ ) {
|
634 |
|
635 |
-
|
|
|
|
|
|
|
636 |
|
637 |
/* TOOLTIP PUBLIC CLASS DEFINITION
|
638 |
* =============================== */
|
639 |
|
640 |
-
var Tooltip = function (
|
641 |
this.init('tooltip', element, options)
|
642 |
}
|
643 |
|
@@ -645,20 +1080,30 @@
|
|
645 |
|
646 |
constructor: Tooltip
|
647 |
|
648 |
-
, init: function (
|
649 |
var eventIn
|
650 |
, eventOut
|
|
|
|
|
|
|
651 |
|
652 |
this.type = type
|
653 |
this.$element = $(element)
|
654 |
this.options = this.getOptions(options)
|
655 |
this.enabled = true
|
656 |
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
662 |
}
|
663 |
|
664 |
this.options.selector ?
|
@@ -666,8 +1111,8 @@
|
|
666 |
this.fixTitle()
|
667 |
}
|
668 |
|
669 |
-
, getOptions: function (
|
670 |
-
options = $.extend({}, $.fn[this.type].defaults,
|
671 |
|
672 |
if (options.delay && typeof options.delay == 'number') {
|
673 |
options.delay = {
|
@@ -679,46 +1124,50 @@
|
|
679 |
return options
|
680 |
}
|
681 |
|
682 |
-
, enter: function (
|
683 |
-
var
|
|
|
|
|
684 |
|
685 |
-
|
686 |
-
|
687 |
-
}
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
|
|
|
|
|
|
695 |
}
|
696 |
|
697 |
-
, leave: function (
|
698 |
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
|
699 |
|
700 |
-
if (
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
}
|
708 |
-
}, self.options.delay.hide)
|
709 |
-
}
|
710 |
}
|
711 |
|
712 |
, show: function () {
|
713 |
var $tip
|
714 |
-
, inside
|
715 |
, pos
|
716 |
, actualWidth
|
717 |
, actualHeight
|
718 |
, placement
|
719 |
, tp
|
|
|
720 |
|
721 |
if (this.hasContent() && this.enabled) {
|
|
|
|
|
722 |
$tip = this.tip()
|
723 |
this.setContent()
|
724 |
|
@@ -730,19 +1179,18 @@
|
|
730 |
this.options.placement.call(this, $tip[0], this.$element[0]) :
|
731 |
this.options.placement
|
732 |
|
733 |
-
inside = /in/.test(placement)
|
734 |
-
|
735 |
$tip
|
736 |
-
.
|
737 |
.css({ top: 0, left: 0, display: 'block' })
|
738 |
-
.appendTo(inside ? this.$element : document.body)
|
739 |
|
740 |
-
|
|
|
|
|
741 |
|
742 |
actualWidth = $tip[0].offsetWidth
|
743 |
actualHeight = $tip[0].offsetHeight
|
744 |
|
745 |
-
switch (
|
746 |
case 'bottom':
|
747 |
tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}
|
748 |
break
|
@@ -757,45 +1205,100 @@
|
|
757 |
break
|
758 |
}
|
759 |
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
764 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
765 |
}
|
766 |
|
767 |
, setContent: function () {
|
768 |
var $tip = this.tip()
|
769 |
-
|
|
|
|
|
770 |
$tip.removeClass('fade in top bottom left right')
|
771 |
}
|
772 |
|
773 |
, hide: function () {
|
774 |
var that = this
|
775 |
, $tip = this.tip()
|
|
|
|
|
|
|
|
|
776 |
|
777 |
$tip.removeClass('in')
|
778 |
|
779 |
function removeWithAnimation() {
|
780 |
var timeout = setTimeout(function () {
|
781 |
-
$tip.off($.support.transition.end).
|
782 |
}, 500)
|
783 |
|
784 |
$tip.one($.support.transition.end, function () {
|
785 |
clearTimeout(timeout)
|
786 |
-
$tip.
|
787 |
})
|
788 |
}
|
789 |
|
790 |
$.support.transition && this.$tip.hasClass('fade') ?
|
791 |
removeWithAnimation() :
|
792 |
-
$tip.
|
|
|
|
|
|
|
|
|
793 |
}
|
794 |
|
795 |
, fixTitle: function () {
|
796 |
var $e = this.$element
|
797 |
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
|
798 |
-
$e.attr('data-original-title', $e.attr('title') || '').
|
799 |
}
|
800 |
}
|
801 |
|
@@ -803,11 +1306,12 @@
|
|
803 |
return this.getTitle()
|
804 |
}
|
805 |
|
806 |
-
, getPosition: function (
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
|
|
811 |
}
|
812 |
|
813 |
, getTitle: function () {
|
@@ -818,8 +1322,6 @@
|
|
818 |
title = $e.attr('data-original-title')
|
819 |
|| (typeof o.title == 'function' ? o.title.call($e[0]) : o.title)
|
820 |
|
821 |
-
title = title.toString().replace(/(^\s*|\s*$)/, "")
|
822 |
-
|
823 |
return title
|
824 |
}
|
825 |
|
@@ -827,6 +1329,10 @@
|
|
827 |
return this.$tip = this.$tip || $(this.options.template)
|
828 |
}
|
829 |
|
|
|
|
|
|
|
|
|
830 |
, validate: function () {
|
831 |
if (!this.$element[0].parentNode) {
|
832 |
this.hide()
|
@@ -841,238 +1347,67 @@
|
|
841 |
|
842 |
, disable: function () {
|
843 |
this.enabled = false
|
844 |
-
}
|
845 |
-
|
846 |
-
, toggleEnabled: function () {
|
847 |
-
this.enabled = !this.enabled
|
848 |
-
}
|
849 |
-
|
850 |
-
, toggle: function () {
|
851 |
-
this[this.tip().hasClass('in') ? 'hide' : 'show']()
|
852 |
-
}
|
853 |
-
|
854 |
-
}
|
855 |
-
|
856 |
-
|
857 |
-
/* TOOLTIP PLUGIN DEFINITION
|
858 |
-
* ========================= */
|
859 |
-
|
860 |
-
$.fn.tooltip = function ( option ) {
|
861 |
-
return this.each(function () {
|
862 |
-
var $this = $(this)
|
863 |
-
, data = $this.data('tooltip')
|
864 |
-
, options = typeof option == 'object' && option
|
865 |
-
if (!data) $this.data('tooltip', (data = new Tooltip(this, options)))
|
866 |
-
if (typeof option == 'string') data[option]()
|
867 |
-
})
|
868 |
-
}
|
869 |
-
|
870 |
-
$.fn.tooltip.Constructor = Tooltip
|
871 |
-
|
872 |
-
$.fn.tooltip.defaults = {
|
873 |
-
animation: true
|
874 |
-
, delay: 0
|
875 |
-
, selector: false
|
876 |
-
, placement: 'top'
|
877 |
-
, trigger: 'hover'
|
878 |
-
, title: ''
|
879 |
-
, template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
|
880 |
-
}
|
881 |
-
|
882 |
-
}( window.jQuery )
|
883 |
-
|
884 |
-
/* ===========================================================
|
885 |
-
* bootstrap-popover.js v2.0.0
|
886 |
-
* http://twitter.github.com/bootstrap/javascript.html#popovers
|
887 |
-
* ===========================================================
|
888 |
-
* Copyright 2012 Twitter, Inc.
|
889 |
-
*
|
890 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
891 |
-
* you may not use this file except in compliance with the License.
|
892 |
-
* You may obtain a copy of the License at
|
893 |
-
*
|
894 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
895 |
-
*
|
896 |
-
* Unless required by applicable law or agreed to in writing, software
|
897 |
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
898 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
899 |
-
* See the License for the specific language governing permissions and
|
900 |
-
* limitations under the License.
|
901 |
-
* =========================================================== */
|
902 |
-
|
903 |
-
|
904 |
-
!function( $ ) {
|
905 |
-
|
906 |
-
"use strict"
|
907 |
-
|
908 |
-
var Popover = function ( element, options ) {
|
909 |
-
this.init('popover', element, options)
|
910 |
-
}
|
911 |
-
|
912 |
-
/* NOTE: POPOVER EXTENDS BOOTSTRAP-TOOLTIP.js
|
913 |
-
========================================== */
|
914 |
-
|
915 |
-
Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype, {
|
916 |
-
|
917 |
-
constructor: Popover
|
918 |
-
|
919 |
-
, setContent: function () {
|
920 |
-
var $tip = this.tip()
|
921 |
-
, title = this.getTitle()
|
922 |
-
, content = this.getContent()
|
923 |
-
|
924 |
-
$tip.find('.popover-title')[ $.type(title) == 'object' ? 'append' : 'html' ](title)
|
925 |
-
$tip.find('.popover-content > *')[ $.type(content) == 'object' ? 'append' : 'html' ](content)
|
926 |
-
|
927 |
-
$tip.removeClass('fade top bottom left right in')
|
928 |
-
}
|
929 |
-
|
930 |
-
, hasContent: function () {
|
931 |
-
return this.getTitle() || this.getContent()
|
932 |
-
}
|
933 |
-
|
934 |
-
, getContent: function () {
|
935 |
-
var content
|
936 |
-
, $e = this.$element
|
937 |
-
, o = this.options
|
938 |
-
|
939 |
-
content = $e.attr('data-content')
|
940 |
-
|| (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
|
941 |
-
|
942 |
-
content = content.toString().replace(/(^\s*|\s*$)/, "")
|
943 |
-
|
944 |
-
return content
|
945 |
-
}
|
946 |
-
|
947 |
-
, tip: function() {
|
948 |
-
if (!this.$tip) {
|
949 |
-
this.$tip = $(this.options.template)
|
950 |
-
}
|
951 |
-
return this.$tip
|
952 |
-
}
|
953 |
-
|
954 |
-
})
|
955 |
-
|
956 |
-
|
957 |
-
/* POPOVER PLUGIN DEFINITION
|
958 |
-
* ======================= */
|
959 |
-
|
960 |
-
$.fn.popover = function ( option ) {
|
961 |
-
return this.each(function () {
|
962 |
-
var $this = $(this)
|
963 |
-
, data = $this.data('popover')
|
964 |
-
, options = typeof option == 'object' && option
|
965 |
-
if (!data) $this.data('popover', (data = new Popover(this, options)))
|
966 |
-
if (typeof option == 'string') data[option]()
|
967 |
-
})
|
968 |
-
}
|
969 |
-
|
970 |
-
$.fn.popover.Constructor = Popover
|
971 |
-
|
972 |
-
$.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, {
|
973 |
-
placement: 'right'
|
974 |
-
, content: ''
|
975 |
-
, template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'
|
976 |
-
})
|
977 |
-
|
978 |
-
}( window.jQuery )
|
979 |
-
|
980 |
-
/* ==========================================================
|
981 |
-
* bootstrap-alert.js v2.0.0
|
982 |
-
* http://twitter.github.com/bootstrap/javascript.html#alerts
|
983 |
-
* ==========================================================
|
984 |
-
* Copyright 2012 Twitter, Inc.
|
985 |
-
*
|
986 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
987 |
-
* you may not use this file except in compliance with the License.
|
988 |
-
* You may obtain a copy of the License at
|
989 |
-
*
|
990 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
991 |
-
*
|
992 |
-
* Unless required by applicable law or agreed to in writing, software
|
993 |
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
994 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
995 |
-
* See the License for the specific language governing permissions and
|
996 |
-
* limitations under the License.
|
997 |
-
* ========================================================== */
|
998 |
-
|
999 |
-
|
1000 |
-
!function( $ ){
|
1001 |
-
|
1002 |
-
"use strict"
|
1003 |
-
|
1004 |
-
/* ALERT CLASS DEFINITION
|
1005 |
-
* ====================== */
|
1006 |
-
|
1007 |
-
var dismiss = '[data-dismiss="alert"]'
|
1008 |
-
, Alert = function ( el ) {
|
1009 |
-
$(el).on('click', dismiss, this.close)
|
1010 |
-
}
|
1011 |
-
|
1012 |
-
Alert.prototype = {
|
1013 |
-
|
1014 |
-
constructor: Alert
|
1015 |
-
|
1016 |
-
, close: function ( e ) {
|
1017 |
-
var $this = $(this)
|
1018 |
-
, selector = $this.attr('data-target')
|
1019 |
-
, $parent
|
1020 |
-
|
1021 |
-
if (!selector) {
|
1022 |
-
selector = $this.attr('href')
|
1023 |
-
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
1024 |
-
}
|
1025 |
-
|
1026 |
-
$parent = $(selector)
|
1027 |
-
$parent.trigger('close')
|
1028 |
-
|
1029 |
-
e && e.preventDefault()
|
1030 |
-
|
1031 |
-
$parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())
|
1032 |
|
1033 |
-
|
|
|
|
|
1034 |
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
|
1040 |
-
|
1041 |
-
|
1042 |
-
removeElement()
|
1043 |
}
|
1044 |
|
1045 |
}
|
1046 |
|
1047 |
|
1048 |
-
/*
|
1049 |
-
*
|
1050 |
|
1051 |
-
$.fn.
|
|
|
|
|
1052 |
return this.each(function () {
|
1053 |
var $this = $(this)
|
1054 |
-
, data = $this.data('
|
1055 |
-
|
1056 |
-
if (
|
|
|
1057 |
})
|
1058 |
}
|
1059 |
|
1060 |
-
$.fn.
|
1061 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1062 |
|
1063 |
-
/* ALERT DATA-API
|
1064 |
-
* ============== */
|
1065 |
|
1066 |
-
|
1067 |
-
|
1068 |
-
})
|
1069 |
|
1070 |
-
|
|
|
|
|
|
|
1071 |
|
1072 |
-
|
1073 |
-
|
1074 |
-
*
|
1075 |
-
*
|
|
|
1076 |
* Copyright 2012 Twitter, Inc.
|
1077 |
*
|
1078 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1086,91 +1421,106 @@
|
|
1086 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
1087 |
* See the License for the specific language governing permissions and
|
1088 |
* limitations under the License.
|
1089 |
-
*
|
1090 |
|
1091 |
-
!function( $ ){
|
1092 |
|
1093 |
-
|
1094 |
|
1095 |
-
|
1096 |
-
* ============================== */
|
1097 |
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
|
|
|
|
|
|
1101 |
}
|
1102 |
|
1103 |
-
Button.prototype = {
|
1104 |
|
1105 |
-
|
|
|
1106 |
|
1107 |
-
|
1108 |
-
var d = 'disabled'
|
1109 |
-
, $el = this.$element
|
1110 |
-
, data = $el.data()
|
1111 |
-
, val = $el.is('input') ? 'val' : 'html'
|
1112 |
|
1113 |
-
|
1114 |
-
data.resetText || $el.data('resetText', $el[val]())
|
1115 |
|
1116 |
-
|
|
|
|
|
|
|
1117 |
|
1118 |
-
|
1119 |
-
|
1120 |
-
state == 'loadingText' ?
|
1121 |
-
$el.addClass(d).attr(d, d) :
|
1122 |
-
$el.removeClass(d).removeAttr(d)
|
1123 |
-
}, 0)
|
1124 |
-
}
|
1125 |
|
1126 |
-
|
1127 |
-
|
1128 |
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1132 |
|
1133 |
-
|
|
|
|
|
1134 |
}
|
|
|
|
|
1135 |
|
1136 |
-
|
|
|
|
|
1137 |
|
|
|
1138 |
|
1139 |
-
/* BUTTON PLUGIN DEFINITION
|
1140 |
-
* ======================== */
|
1141 |
|
1142 |
-
|
|
|
|
|
|
|
|
|
|
|
1143 |
return this.each(function () {
|
1144 |
var $this = $(this)
|
1145 |
-
, data = $this.data('
|
1146 |
, options = typeof option == 'object' && option
|
1147 |
-
if (!data) $this.data('
|
1148 |
-
if (option == '
|
1149 |
-
else if (option) data.setState(option)
|
1150 |
})
|
1151 |
}
|
1152 |
|
1153 |
-
$.fn.
|
1154 |
-
loadingText: 'loading...'
|
1155 |
-
}
|
1156 |
-
|
1157 |
-
$.fn.button.Constructor = Button
|
1158 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1159 |
|
1160 |
-
/* BUTTON DATA-API
|
1161 |
-
* =============== */
|
1162 |
|
1163 |
-
|
1164 |
-
|
1165 |
-
$(e.target).button('toggle')
|
1166 |
-
})
|
1167 |
-
})
|
1168 |
|
1169 |
-
|
|
|
|
|
|
|
1170 |
|
|
|
1171 |
/* =============================================================
|
1172 |
-
* bootstrap-
|
1173 |
-
* http://twitter.github.com/bootstrap/javascript.html#
|
1174 |
* =============================================================
|
1175 |
* Copyright 2012 Twitter, Inc.
|
1176 |
*
|
@@ -1185,130 +1535,154 @@
|
|
1185 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
1186 |
* See the License for the specific language governing permissions and
|
1187 |
* limitations under the License.
|
1188 |
-
*
|
1189 |
|
1190 |
-
!function( $ ){
|
1191 |
|
1192 |
-
|
1193 |
|
1194 |
-
|
1195 |
-
this.$element = $(element)
|
1196 |
-
this.options = $.extend({}, $.fn.collapse.defaults, options)
|
1197 |
|
1198 |
-
if (this.options["parent"]) {
|
1199 |
-
this.$parent = $(this.options["parent"])
|
1200 |
-
}
|
1201 |
|
1202 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1203 |
}
|
1204 |
|
1205 |
-
|
1206 |
|
1207 |
-
|
1208 |
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
}
|
1213 |
|
1214 |
-
|
1215 |
-
|
1216 |
-
, scroll = $.camelCase(['scroll', dimension].join('-'))
|
1217 |
-
, actives = this.$parent && this.$parent.find('.in')
|
1218 |
-
, hasData
|
1219 |
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1224 |
}
|
1225 |
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
|
|
|
|
|
|
|
|
|
|
1229 |
|
1230 |
-
|
|
|
|
|
|
|
1231 |
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
|
|
1238 |
|
1239 |
-
|
1240 |
-
|
|
|
1241 |
|
1242 |
-
|
1243 |
-
.removeClass('collapse')
|
1244 |
-
[dimension](size || 'auto')
|
1245 |
-
[0].offsetWidth
|
1246 |
|
1247 |
-
|
1248 |
-
|
|
|
1249 |
|
1250 |
-
|
1251 |
-
|
1252 |
-
|
1253 |
-
if (startEvent == 'show') that.reset()
|
1254 |
-
that.$element.trigger(completeEvent)
|
1255 |
-
}
|
1256 |
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
1260 |
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
}
|
1265 |
|
1266 |
-
|
1267 |
-
|
1268 |
-
}
|
1269 |
|
1270 |
}
|
1271 |
|
1272 |
-
/* COLLAPSIBLE PLUGIN DEFINITION
|
1273 |
-
* ============================== */
|
1274 |
|
1275 |
-
|
|
|
|
|
|
|
|
|
|
|
1276 |
return this.each(function () {
|
1277 |
var $this = $(this)
|
1278 |
-
, data = $this.data('
|
1279 |
, options = typeof option == 'object' && option
|
1280 |
-
if (!data) $this.data('
|
1281 |
if (typeof option == 'string') data[option]()
|
1282 |
})
|
1283 |
}
|
1284 |
|
1285 |
-
$.fn.
|
1286 |
-
|
|
|
|
|
1287 |
}
|
1288 |
|
1289 |
-
$.fn.collapse.Constructor = Collapse
|
1290 |
|
|
|
|
|
1291 |
|
1292 |
-
|
1293 |
-
|
|
|
|
|
1294 |
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
$(
|
1303 |
})
|
1304 |
})
|
1305 |
|
1306 |
-
}(
|
1307 |
-
|
1308 |
-
|
1309 |
-
*
|
1310 |
-
* http://twitter.github.com/bootstrap/javascript.html#carousel
|
1311 |
-
* ==========================================================
|
1312 |
* Copyright 2012 Twitter, Inc.
|
1313 |
*
|
1314 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1322,146 +1696,134 @@
|
|
1322 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
1323 |
* See the License for the specific language governing permissions and
|
1324 |
* limitations under the License.
|
1325 |
-
*
|
1326 |
|
1327 |
|
1328 |
-
!function(
|
1329 |
|
1330 |
-
"use strict"
|
1331 |
|
1332 |
-
/* CAROUSEL CLASS DEFINITION
|
1333 |
-
* ========================= */
|
1334 |
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
-
|
|
|
1339 |
}
|
1340 |
|
1341 |
-
|
1342 |
|
1343 |
-
|
1344 |
-
this.interval = setInterval($.proxy(this.next, this), this.options.interval)
|
1345 |
-
return this
|
1346 |
-
}
|
1347 |
|
1348 |
-
,
|
1349 |
-
var $
|
1350 |
-
,
|
1351 |
-
,
|
1352 |
-
,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1353 |
|
1354 |
-
|
1355 |
|
1356 |
-
|
1357 |
-
|
1358 |
-
|
1359 |
-
})
|
1360 |
-
}
|
1361 |
|
1362 |
-
|
1363 |
-
return this.pause().cycle()
|
1364 |
-
}
|
1365 |
|
1366 |
-
|
1367 |
-
}
|
1368 |
|
1369 |
-
|
1370 |
-
clearInterval(this.interval)
|
1371 |
-
return this
|
1372 |
-
}
|
1373 |
|
1374 |
-
|
1375 |
-
|
1376 |
-
|
|
|
|
|
|
|
|
|
1377 |
}
|
1378 |
|
1379 |
-
,
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
|
|
1383 |
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
, fallback = type == 'next' ? 'first' : 'last'
|
1390 |
-
, that = this
|
1391 |
|
1392 |
-
|
1393 |
|
1394 |
-
|
|
|
|
|
|
|
|
|
|
|
1395 |
|
1396 |
-
|
|
|
|
|
1397 |
|
1398 |
-
|
1399 |
-
this.$element.trigger('slide')
|
1400 |
-
$active.removeClass('active')
|
1401 |
-
$next.addClass('active')
|
1402 |
-
this.sliding = false
|
1403 |
-
this.$element.trigger('slid')
|
1404 |
-
} else {
|
1405 |
-
$next.addClass(type)
|
1406 |
-
$next[0].offsetWidth // force reflow
|
1407 |
-
$active.addClass(direction)
|
1408 |
-
$next.addClass(direction)
|
1409 |
-
this.$element.trigger('slide')
|
1410 |
-
this.$element.one($.support.transition.end, function () {
|
1411 |
-
$next.removeClass([type, direction].join(' ')).addClass('active')
|
1412 |
-
$active.removeClass(['active', direction].join(' '))
|
1413 |
-
that.sliding = false
|
1414 |
-
setTimeout(function () { that.$element.trigger('slid') }, 0)
|
1415 |
-
})
|
1416 |
}
|
1417 |
|
1418 |
-
|
|
|
|
|
1419 |
|
1420 |
-
|
1421 |
}
|
1422 |
-
|
1423 |
}
|
1424 |
|
1425 |
|
1426 |
-
/*
|
1427 |
-
*
|
1428 |
|
1429 |
-
$.fn.
|
|
|
|
|
1430 |
return this.each(function () {
|
1431 |
var $this = $(this)
|
1432 |
-
, data = $this.data('
|
1433 |
-
|
1434 |
-
if (
|
1435 |
-
if (typeof option == 'number') data.to(option)
|
1436 |
-
else if (typeof option == 'string' || (option = options.slide)) data[option]()
|
1437 |
-
else data.cycle()
|
1438 |
})
|
1439 |
}
|
1440 |
|
1441 |
-
$.fn.
|
1442 |
-
interval: 5000
|
1443 |
-
}
|
1444 |
|
1445 |
-
$.fn.carousel.Constructor = Carousel
|
1446 |
|
|
|
|
|
1447 |
|
1448 |
-
|
1449 |
-
|
|
|
|
|
1450 |
|
1451 |
-
$(function () {
|
1452 |
-
$('body').on('click.carousel.data-api', '[data-slide]', function ( e ) {
|
1453 |
-
var $this = $(this), href
|
1454 |
-
, $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
1455 |
-
, options = !$target.data('modal') && $.extend({}, $target.data(), $this.data())
|
1456 |
-
$target.carousel(options)
|
1457 |
-
e.preventDefault()
|
1458 |
-
})
|
1459 |
-
})
|
1460 |
|
1461 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1462 |
|
1463 |
-
|
1464 |
-
* bootstrap-typeahead.js v2.
|
1465 |
* http://twitter.github.com/bootstrap/javascript.html#typeahead
|
1466 |
* =============================================================
|
1467 |
* Copyright 2012 Twitter, Inc.
|
@@ -1479,18 +1841,24 @@
|
|
1479 |
* limitations under the License.
|
1480 |
* ============================================================ */
|
1481 |
|
1482 |
-
!function( $ ){
|
1483 |
|
1484 |
-
|
|
|
|
|
1485 |
|
1486 |
-
|
|
|
|
|
|
|
|
|
1487 |
this.$element = $(element)
|
1488 |
this.options = $.extend({}, $.fn.typeahead.defaults, options)
|
1489 |
this.matcher = this.options.matcher || this.matcher
|
1490 |
this.sorter = this.options.sorter || this.sorter
|
1491 |
this.highlighter = this.options.highlighter || this.highlighter
|
1492 |
-
this
|
1493 |
this.source = this.options.source
|
|
|
1494 |
this.shown = false
|
1495 |
this.listen()
|
1496 |
}
|
@@ -1501,21 +1869,29 @@
|
|
1501 |
|
1502 |
, select: function () {
|
1503 |
var val = this.$menu.find('.active').attr('data-value')
|
1504 |
-
this.$element
|
|
|
|
|
1505 |
return this.hide()
|
1506 |
}
|
1507 |
|
|
|
|
|
|
|
|
|
1508 |
, show: function () {
|
1509 |
-
var pos = $.extend({}, this.$element.
|
1510 |
height: this.$element[0].offsetHeight
|
1511 |
})
|
1512 |
|
1513 |
-
this.$menu
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
|
|
|
|
|
|
1517 |
|
1518 |
-
this.$menu.show()
|
1519 |
this.shown = true
|
1520 |
return this
|
1521 |
}
|
@@ -1527,18 +1903,24 @@
|
|
1527 |
}
|
1528 |
|
1529 |
, lookup: function (event) {
|
1530 |
-
var
|
1531 |
-
, items
|
1532 |
-
, q
|
1533 |
|
1534 |
this.query = this.$element.val()
|
1535 |
|
1536 |
-
if (!this.query) {
|
1537 |
return this.shown ? this.hide() : this
|
1538 |
}
|
1539 |
|
1540 |
-
items = $.
|
1541 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1542 |
})
|
1543 |
|
1544 |
items = this.sorter(items)
|
@@ -1570,7 +1952,8 @@
|
|
1570 |
}
|
1571 |
|
1572 |
, highlighter: function (item) {
|
1573 |
-
|
|
|
1574 |
return '<strong>' + match + '</strong>'
|
1575 |
})
|
1576 |
}
|
@@ -1613,26 +1996,71 @@
|
|
1613 |
|
1614 |
, listen: function () {
|
1615 |
this.$element
|
|
|
1616 |
.on('blur', $.proxy(this.blur, this))
|
1617 |
.on('keypress', $.proxy(this.keypress, this))
|
1618 |
.on('keyup', $.proxy(this.keyup, this))
|
1619 |
|
1620 |
-
if (
|
1621 |
-
this.$element.on('keydown', $.proxy(this.
|
1622 |
}
|
1623 |
|
1624 |
this.$menu
|
1625 |
.on('click', $.proxy(this.click, this))
|
1626 |
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
|
|
|
1627 |
}
|
1628 |
|
1629 |
-
,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1630 |
e.stopPropagation()
|
1631 |
-
|
1632 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1633 |
switch(e.keyCode) {
|
1634 |
case 40: // down arrow
|
1635 |
case 38: // up arrow
|
|
|
|
|
|
|
1636 |
break
|
1637 |
|
1638 |
case 9: // tab
|
@@ -1642,6 +2070,7 @@
|
|
1642 |
break
|
1643 |
|
1644 |
case 27: // escape
|
|
|
1645 |
this.hide()
|
1646 |
break
|
1647 |
|
@@ -1649,56 +2078,46 @@
|
|
1649 |
this.lookup()
|
1650 |
}
|
1651 |
|
1652 |
-
}
|
1653 |
-
|
1654 |
-
, keypress: function (e) {
|
1655 |
e.stopPropagation()
|
1656 |
-
|
1657 |
-
|
1658 |
-
switch(e.keyCode) {
|
1659 |
-
case 9: // tab
|
1660 |
-
case 13: // enter
|
1661 |
-
case 27: // escape
|
1662 |
-
e.preventDefault()
|
1663 |
-
break
|
1664 |
-
|
1665 |
-
case 38: // up arrow
|
1666 |
-
e.preventDefault()
|
1667 |
-
this.prev()
|
1668 |
-
break
|
1669 |
|
1670 |
-
|
1671 |
-
|
1672 |
-
this.next()
|
1673 |
-
break
|
1674 |
-
}
|
1675 |
}
|
1676 |
|
1677 |
, blur: function (e) {
|
1678 |
-
|
1679 |
-
|
1680 |
-
e.preventDefault()
|
1681 |
-
setTimeout(function () { that.hide() }, 150)
|
1682 |
}
|
1683 |
|
1684 |
, click: function (e) {
|
1685 |
e.stopPropagation()
|
1686 |
e.preventDefault()
|
1687 |
this.select()
|
|
|
1688 |
}
|
1689 |
|
1690 |
, mouseenter: function (e) {
|
|
|
1691 |
this.$menu.find('.active').removeClass('active')
|
1692 |
$(e.currentTarget).addClass('active')
|
1693 |
}
|
1694 |
|
|
|
|
|
|
|
|
|
|
|
1695 |
}
|
1696 |
|
1697 |
|
1698 |
/* TYPEAHEAD PLUGIN DEFINITION
|
1699 |
* =========================== */
|
1700 |
|
1701 |
-
$.fn.typeahead
|
|
|
|
|
1702 |
return this.each(function () {
|
1703 |
var $this = $(this)
|
1704 |
, data = $this.data('typeahead')
|
@@ -1713,21 +2132,145 @@
|
|
1713 |
, items: 8
|
1714 |
, menu: '<ul class="typeahead dropdown-menu"></ul>'
|
1715 |
, item: '<li><a href="#"></a></li>'
|
|
|
1716 |
}
|
1717 |
|
1718 |
$.fn.typeahead.Constructor = Typeahead
|
1719 |
|
1720 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1721 |
/* TYPEAHEAD DATA-API
|
1722 |
* ================== */
|
1723 |
|
1724 |
-
$(function () {
|
1725 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1726 |
var $this = $(this)
|
1727 |
-
|
1728 |
-
|
1729 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1730 |
})
|
1731 |
})
|
1732 |
|
1733 |
-
|
|
1 |
/* ===================================================
|
2 |
+
* bootstrap-transition.js v2.3.1
|
3 |
* http://twitter.github.com/bootstrap/javascript.html#transitions
|
4 |
* ===================================================
|
5 |
* Copyright 2012 Twitter, Inc.
|
17 |
* limitations under the License.
|
18 |
* ========================================================== */
|
19 |
|
|
|
20 |
|
21 |
+
!function ($) {
|
22 |
+
|
23 |
+
"use strict"; // jshint ;_;
|
24 |
+
|
25 |
|
26 |
+
/* CSS TRANSITION SUPPORT (http://www.modernizr.com/)
|
27 |
+
* ======================================================= */
|
28 |
|
29 |
+
$(function () {
|
|
|
30 |
|
31 |
$.support.transition = (function () {
|
32 |
+
|
33 |
+
var transitionEnd = (function () {
|
34 |
+
|
35 |
+
var el = document.createElement('bootstrap')
|
36 |
+
, transEndEventNames = {
|
37 |
+
'WebkitTransition' : 'webkitTransitionEnd'
|
38 |
+
, 'MozTransition' : 'transitionend'
|
39 |
+
, 'OTransition' : 'oTransitionEnd otransitionend'
|
40 |
+
, 'transition' : 'transitionend'
|
41 |
+
}
|
42 |
+
, name
|
43 |
+
|
44 |
+
for (name in transEndEventNames){
|
45 |
+
if (el.style[name] !== undefined) {
|
46 |
+
return transEndEventNames[name]
|
47 |
}
|
48 |
+
}
|
49 |
+
|
50 |
+
}())
|
51 |
+
|
52 |
+
return transitionEnd && {
|
53 |
+
end: transitionEnd
|
54 |
}
|
55 |
+
|
56 |
})()
|
57 |
|
58 |
})
|
|
|
|
|
59 |
|
60 |
+
}(window.jQuery);/* ==========================================================
|
61 |
+
* bootstrap-alert.js v2.3.1
|
62 |
+
* http://twitter.github.com/bootstrap/javascript.html#alerts
|
63 |
+
* ==========================================================
|
64 |
* Copyright 2012 Twitter, Inc.
|
65 |
*
|
66 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
74 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
75 |
* See the License for the specific language governing permissions and
|
76 |
* limitations under the License.
|
77 |
+
* ========================================================== */
|
78 |
|
79 |
|
80 |
+
!function ($) {
|
81 |
|
82 |
+
"use strict"; // jshint ;_;
|
83 |
|
84 |
+
|
85 |
+
/* ALERT CLASS DEFINITION
|
86 |
* ====================== */
|
87 |
|
88 |
+
var dismiss = '[data-dismiss="alert"]'
|
89 |
+
, Alert = function (el) {
|
90 |
+
$(el).on('click', dismiss, this.close)
|
91 |
+
}
|
92 |
+
|
93 |
+
Alert.prototype.close = function (e) {
|
94 |
+
var $this = $(this)
|
95 |
+
, selector = $this.attr('data-target')
|
96 |
+
, $parent
|
97 |
+
|
98 |
+
if (!selector) {
|
99 |
+
selector = $this.attr('href')
|
100 |
+
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
101 |
+
}
|
102 |
+
|
103 |
+
$parent = $(selector)
|
104 |
+
|
105 |
+
e && e.preventDefault()
|
106 |
+
|
107 |
+
$parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())
|
108 |
+
|
109 |
+
$parent.trigger(e = $.Event('close'))
|
110 |
+
|
111 |
+
if (e.isDefaultPrevented()) return
|
112 |
+
|
113 |
+
$parent.removeClass('in')
|
114 |
+
|
115 |
+
function removeElement() {
|
116 |
+
$parent
|
117 |
+
.trigger('closed')
|
118 |
+
.remove()
|
119 |
+
}
|
120 |
+
|
121 |
+
$.support.transition && $parent.hasClass('fade') ?
|
122 |
+
$parent.on($.support.transition.end, removeElement) :
|
123 |
+
removeElement()
|
124 |
}
|
125 |
|
|
|
126 |
|
127 |
+
/* ALERT PLUGIN DEFINITION
|
128 |
+
* ======================= */
|
129 |
|
130 |
+
var old = $.fn.alert
|
|
|
|
|
131 |
|
132 |
+
$.fn.alert = function (option) {
|
133 |
+
return this.each(function () {
|
134 |
+
var $this = $(this)
|
135 |
+
, data = $this.data('alert')
|
136 |
+
if (!data) $this.data('alert', (data = new Alert(this)))
|
137 |
+
if (typeof option == 'string') data[option].call($this)
|
138 |
+
})
|
139 |
+
}
|
140 |
|
141 |
+
$.fn.alert.Constructor = Alert
|
142 |
|
|
|
143 |
|
144 |
+
/* ALERT NO CONFLICT
|
145 |
+
* ================= */
|
146 |
|
147 |
+
$.fn.alert.noConflict = function () {
|
148 |
+
$.fn.alert = old
|
149 |
+
return this
|
150 |
+
}
|
151 |
|
|
|
152 |
|
153 |
+
/* ALERT DATA-API
|
154 |
+
* ============== */
|
155 |
|
156 |
+
$(document).on('click.alert.data-api', dismiss, Alert.prototype.close)
|
157 |
+
|
158 |
+
}(window.jQuery);/* ============================================================
|
159 |
+
* bootstrap-button.js v2.3.1
|
160 |
+
* http://twitter.github.com/bootstrap/javascript.html#buttons
|
161 |
+
* ============================================================
|
162 |
+
* Copyright 2012 Twitter, Inc.
|
163 |
+
*
|
164 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
165 |
+
* you may not use this file except in compliance with the License.
|
166 |
+
* You may obtain a copy of the License at
|
167 |
+
*
|
168 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
169 |
+
*
|
170 |
+
* Unless required by applicable law or agreed to in writing, software
|
171 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
172 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
173 |
+
* See the License for the specific language governing permissions and
|
174 |
+
* limitations under the License.
|
175 |
+
* ============================================================ */
|
176 |
|
|
|
177 |
|
178 |
+
!function ($) {
|
179 |
+
|
180 |
+
"use strict"; // jshint ;_;
|
181 |
+
|
182 |
+
|
183 |
+
/* BUTTON PUBLIC CLASS DEFINITION
|
184 |
+
* ============================== */
|
185 |
+
|
186 |
+
var Button = function (element, options) {
|
187 |
+
this.$element = $(element)
|
188 |
+
this.options = $.extend({}, $.fn.button.defaults, options)
|
189 |
+
}
|
190 |
+
|
191 |
+
Button.prototype.setState = function (state) {
|
192 |
+
var d = 'disabled'
|
193 |
+
, $el = this.$element
|
194 |
+
, data = $el.data()
|
195 |
+
, val = $el.is('input') ? 'val' : 'html'
|
196 |
+
|
197 |
+
state = state + 'Text'
|
198 |
+
data.resetText || $el.data('resetText', $el[val]())
|
199 |
+
|
200 |
+
$el[val](data[state] || this.options[state])
|
201 |
+
|
202 |
+
// push to event loop to allow forms to submit
|
203 |
+
setTimeout(function () {
|
204 |
+
state == 'loadingText' ?
|
205 |
+
$el.addClass(d).attr(d, d) :
|
206 |
+
$el.removeClass(d).removeAttr(d)
|
207 |
+
}, 0)
|
208 |
+
}
|
209 |
+
|
210 |
+
Button.prototype.toggle = function () {
|
211 |
+
var $parent = this.$element.closest('[data-toggle="buttons-radio"]')
|
212 |
+
|
213 |
+
$parent && $parent
|
214 |
+
.find('.active')
|
215 |
+
.removeClass('active')
|
216 |
+
|
217 |
+
this.$element.toggleClass('active')
|
218 |
+
}
|
219 |
+
|
220 |
+
|
221 |
+
/* BUTTON PLUGIN DEFINITION
|
222 |
+
* ======================== */
|
223 |
+
|
224 |
+
var old = $.fn.button
|
225 |
+
|
226 |
+
$.fn.button = function (option) {
|
227 |
+
return this.each(function () {
|
228 |
+
var $this = $(this)
|
229 |
+
, data = $this.data('button')
|
230 |
+
, options = typeof option == 'object' && option
|
231 |
+
if (!data) $this.data('button', (data = new Button(this, options)))
|
232 |
+
if (option == 'toggle') data.toggle()
|
233 |
+
else if (option) data.setState(option)
|
234 |
+
})
|
235 |
+
}
|
236 |
+
|
237 |
+
$.fn.button.defaults = {
|
238 |
+
loadingText: 'loading...'
|
239 |
+
}
|
240 |
+
|
241 |
+
$.fn.button.Constructor = Button
|
242 |
+
|
243 |
+
|
244 |
+
/* BUTTON NO CONFLICT
|
245 |
+
* ================== */
|
246 |
+
|
247 |
+
$.fn.button.noConflict = function () {
|
248 |
+
$.fn.button = old
|
249 |
+
return this
|
250 |
+
}
|
251 |
+
|
252 |
+
|
253 |
+
/* BUTTON DATA-API
|
254 |
+
* =============== */
|
255 |
+
|
256 |
+
$(document).on('click.button.data-api', '[data-toggle^=button]', function (e) {
|
257 |
+
var $btn = $(e.target)
|
258 |
+
if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
|
259 |
+
$btn.button('toggle')
|
260 |
+
})
|
261 |
+
|
262 |
+
}(window.jQuery);/* ==========================================================
|
263 |
+
* bootstrap-carousel.js v2.3.1
|
264 |
+
* http://twitter.github.com/bootstrap/javascript.html#carousel
|
265 |
+
* ==========================================================
|
266 |
+
* Copyright 2012 Twitter, Inc.
|
267 |
+
*
|
268 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
269 |
+
* you may not use this file except in compliance with the License.
|
270 |
+
* You may obtain a copy of the License at
|
271 |
+
*
|
272 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
273 |
+
*
|
274 |
+
* Unless required by applicable law or agreed to in writing, software
|
275 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
276 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
277 |
+
* See the License for the specific language governing permissions and
|
278 |
+
* limitations under the License.
|
279 |
+
* ========================================================== */
|
280 |
+
|
281 |
+
|
282 |
+
!function ($) {
|
283 |
+
|
284 |
+
"use strict"; // jshint ;_;
|
285 |
+
|
286 |
+
|
287 |
+
/* CAROUSEL CLASS DEFINITION
|
288 |
+
* ========================= */
|
289 |
+
|
290 |
+
var Carousel = function (element, options) {
|
291 |
+
this.$element = $(element)
|
292 |
+
this.$indicators = this.$element.find('.carousel-indicators')
|
293 |
+
this.options = options
|
294 |
+
this.options.pause == 'hover' && this.$element
|
295 |
+
.on('mouseenter', $.proxy(this.pause, this))
|
296 |
+
.on('mouseleave', $.proxy(this.cycle, this))
|
297 |
+
}
|
298 |
+
|
299 |
+
Carousel.prototype = {
|
300 |
+
|
301 |
+
cycle: function (e) {
|
302 |
+
if (!e) this.paused = false
|
303 |
+
if (this.interval) clearInterval(this.interval);
|
304 |
+
this.options.interval
|
305 |
+
&& !this.paused
|
306 |
+
&& (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
|
307 |
+
return this
|
308 |
+
}
|
309 |
|
310 |
+
, getActiveIndex: function () {
|
311 |
+
this.$active = this.$element.find('.item.active')
|
312 |
+
this.$items = this.$active.parent().children()
|
313 |
+
return this.$items.index(this.$active)
|
314 |
+
}
|
315 |
+
|
316 |
+
, to: function (pos) {
|
317 |
+
var activeIndex = this.getActiveIndex()
|
318 |
+
, that = this
|
319 |
+
|
320 |
+
if (pos > (this.$items.length - 1) || pos < 0) return
|
321 |
+
|
322 |
+
if (this.sliding) {
|
323 |
+
return this.$element.one('slid', function () {
|
324 |
+
that.to(pos)
|
325 |
})
|
326 |
}
|
327 |
|
328 |
+
if (activeIndex == pos) {
|
329 |
+
return this.pause().cycle()
|
330 |
+
}
|
331 |
|
332 |
+
return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))
|
333 |
+
}
|
334 |
|
335 |
+
, pause: function (e) {
|
336 |
+
if (!e) this.paused = true
|
337 |
+
if (this.$element.find('.next, .prev').length && $.support.transition.end) {
|
338 |
+
this.$element.trigger($.support.transition.end)
|
339 |
+
this.cycle(true)
|
340 |
+
}
|
341 |
+
clearInterval(this.interval)
|
342 |
+
this.interval = null
|
343 |
+
return this
|
344 |
+
}
|
345 |
+
|
346 |
+
, next: function () {
|
347 |
+
if (this.sliding) return
|
348 |
+
return this.slide('next')
|
349 |
+
}
|
350 |
|
351 |
+
, prev: function () {
|
352 |
+
if (this.sliding) return
|
353 |
+
return this.slide('prev')
|
354 |
+
}
|
355 |
|
356 |
+
, slide: function (type, next) {
|
357 |
+
var $active = this.$element.find('.item.active')
|
358 |
+
, $next = next || $active[type]()
|
359 |
+
, isCycling = this.interval
|
360 |
+
, direction = type == 'next' ? 'left' : 'right'
|
361 |
+
, fallback = type == 'next' ? 'first' : 'last'
|
362 |
+
, that = this
|
363 |
+
, e
|
364 |
|
365 |
+
this.sliding = true
|
|
|
|
|
366 |
|
367 |
+
isCycling && this.pause()
|
368 |
+
|
369 |
+
$next = $next.length ? $next : this.$element.find('.item')[fallback]()
|
370 |
+
|
371 |
+
e = $.Event('slide', {
|
372 |
+
relatedTarget: $next[0]
|
373 |
+
, direction: direction
|
374 |
+
})
|
375 |
+
|
376 |
+
if ($next.hasClass('active')) return
|
377 |
+
|
378 |
+
if (this.$indicators.length) {
|
379 |
+
this.$indicators.find('.active').removeClass('active')
|
380 |
+
this.$element.one('slid', function () {
|
381 |
+
var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])
|
382 |
+
$nextIndicator && $nextIndicator.addClass('active')
|
383 |
+
})
|
384 |
+
}
|
385 |
+
|
386 |
+
if ($.support.transition && this.$element.hasClass('slide')) {
|
387 |
+
this.$element.trigger(e)
|
388 |
+
if (e.isDefaultPrevented()) return
|
389 |
+
$next.addClass(type)
|
390 |
+
$next[0].offsetWidth // force reflow
|
391 |
+
$active.addClass(direction)
|
392 |
+
$next.addClass(direction)
|
393 |
+
this.$element.one($.support.transition.end, function () {
|
394 |
+
$next.removeClass([type, direction].join(' ')).addClass('active')
|
395 |
+
$active.removeClass(['active', direction].join(' '))
|
396 |
+
that.sliding = false
|
397 |
+
setTimeout(function () { that.$element.trigger('slid') }, 0)
|
398 |
+
})
|
399 |
+
} else {
|
400 |
+
this.$element.trigger(e)
|
401 |
+
if (e.isDefaultPrevented()) return
|
402 |
+
$active.removeClass('active')
|
403 |
+
$next.addClass('active')
|
404 |
+
this.sliding = false
|
405 |
+
this.$element.trigger('slid')
|
406 |
}
|
407 |
|
408 |
+
isCycling && this.cycle()
|
409 |
+
|
410 |
+
return this
|
411 |
+
}
|
412 |
+
|
413 |
}
|
414 |
|
415 |
|
416 |
+
/* CAROUSEL PLUGIN DEFINITION
|
417 |
+
* ========================== */
|
418 |
|
419 |
+
var old = $.fn.carousel
|
|
|
|
|
|
|
|
|
|
|
420 |
|
421 |
+
$.fn.carousel = function (option) {
|
422 |
+
return this.each(function () {
|
423 |
+
var $this = $(this)
|
424 |
+
, data = $this.data('carousel')
|
425 |
+
, options = $.extend({}, $.fn.carousel.defaults, typeof option == 'object' && option)
|
426 |
+
, action = typeof option == 'string' ? option : options.slide
|
427 |
+
if (!data) $this.data('carousel', (data = new Carousel(this, options)))
|
428 |
+
if (typeof option == 'number') data.to(option)
|
429 |
+
else if (action) data[action]()
|
430 |
+
else if (options.interval) data.pause().cycle()
|
431 |
})
|
432 |
}
|
433 |
|
434 |
+
$.fn.carousel.defaults = {
|
435 |
+
interval: 5000
|
436 |
+
, pause: 'hover'
|
437 |
+
}
|
438 |
+
|
439 |
+
$.fn.carousel.Constructor = Carousel
|
440 |
+
|
441 |
|
442 |
+
/* CAROUSEL NO CONFLICT
|
443 |
+
* ==================== */
|
444 |
+
|
445 |
+
$.fn.carousel.noConflict = function () {
|
446 |
+
$.fn.carousel = old
|
447 |
+
return this
|
448 |
+
}
|
449 |
+
|
450 |
+
/* CAROUSEL DATA-API
|
451 |
+
* ================= */
|
452 |
+
|
453 |
+
$(document).on('click.carousel.data-api', '[data-slide], [data-slide-to]', function (e) {
|
454 |
+
var $this = $(this), href
|
455 |
+
, $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
456 |
+
, options = $.extend({}, $target.data(), $this.data())
|
457 |
+
, slideIndex
|
458 |
+
|
459 |
+
$target.carousel(options)
|
460 |
+
|
461 |
+
if (slideIndex = $this.attr('data-slide-to')) {
|
462 |
+
$target.data('carousel').pause().to(slideIndex).cycle()
|
463 |
+
}
|
464 |
+
|
465 |
+
e.preventDefault()
|
466 |
+
})
|
467 |
+
|
468 |
+
}(window.jQuery);/* =============================================================
|
469 |
+
* bootstrap-collapse.js v2.3.1
|
470 |
+
* http://twitter.github.com/bootstrap/javascript.html#collapse
|
471 |
+
* =============================================================
|
472 |
+
* Copyright 2012 Twitter, Inc.
|
473 |
+
*
|
474 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
475 |
+
* you may not use this file except in compliance with the License.
|
476 |
+
* You may obtain a copy of the License at
|
477 |
+
*
|
478 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
479 |
+
*
|
480 |
+
* Unless required by applicable law or agreed to in writing, software
|
481 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
482 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
483 |
+
* See the License for the specific language governing permissions and
|
484 |
+
* limitations under the License.
|
485 |
+
* ============================================================ */
|
486 |
+
|
487 |
+
|
488 |
+
!function ($) {
|
489 |
+
|
490 |
+
"use strict"; // jshint ;_;
|
491 |
+
|
492 |
+
|
493 |
+
/* COLLAPSE PUBLIC CLASS DEFINITION
|
494 |
+
* ================================ */
|
495 |
+
|
496 |
+
var Collapse = function (element, options) {
|
497 |
+
this.$element = $(element)
|
498 |
+
this.options = $.extend({}, $.fn.collapse.defaults, options)
|
499 |
+
|
500 |
+
if (this.options.parent) {
|
501 |
+
this.$parent = $(this.options.parent)
|
502 |
+
}
|
503 |
+
|
504 |
+
this.options.toggle && this.toggle()
|
505 |
}
|
506 |
|
507 |
+
Collapse.prototype = {
|
508 |
+
|
509 |
+
constructor: Collapse
|
510 |
+
|
511 |
+
, dimension: function () {
|
512 |
+
var hasWidth = this.$element.hasClass('width')
|
513 |
+
return hasWidth ? 'width' : 'height'
|
514 |
+
}
|
515 |
+
|
516 |
+
, show: function () {
|
517 |
+
var dimension
|
518 |
+
, scroll
|
519 |
+
, actives
|
520 |
+
, hasData
|
521 |
|
522 |
+
if (this.transitioning || this.$element.hasClass('in')) return
|
|
|
523 |
|
524 |
+
dimension = this.dimension()
|
525 |
+
scroll = $.camelCase(['scroll', dimension].join('-'))
|
526 |
+
actives = this.$parent && this.$parent.find('> .accordion-group > .in')
|
527 |
|
528 |
+
if (actives && actives.length) {
|
529 |
+
hasData = actives.data('collapse')
|
530 |
+
if (hasData && hasData.transitioning) return
|
531 |
+
actives.collapse('hide')
|
532 |
+
hasData || actives.data('collapse', null)
|
533 |
}
|
534 |
|
535 |
+
this.$element[dimension](0)
|
536 |
+
this.transition('addClass', $.Event('show'), 'shown')
|
537 |
+
$.support.transition && this.$element[dimension](this.$element[0][scroll])
|
538 |
+
}
|
539 |
|
540 |
+
, hide: function () {
|
541 |
+
var dimension
|
542 |
+
if (this.transitioning || !this.$element.hasClass('in')) return
|
543 |
+
dimension = this.dimension()
|
544 |
+
this.reset(this.$element[dimension]())
|
545 |
+
this.transition('removeClass', $.Event('hide'), 'hidden')
|
546 |
+
this.$element[dimension](0)
|
547 |
+
}
|
548 |
|
549 |
+
, reset: function (size) {
|
550 |
+
var dimension = this.dimension()
|
551 |
+
|
552 |
+
this.$element
|
553 |
+
.removeClass('collapse')
|
554 |
+
[dimension](size || 'auto')
|
555 |
+
[0].offsetWidth
|
556 |
+
|
557 |
+
this.$element[size !== null ? 'addClass' : 'removeClass']('collapse')
|
558 |
+
|
559 |
+
return this
|
560 |
+
}
|
561 |
|
562 |
+
, transition: function (method, startEvent, completeEvent) {
|
563 |
+
var that = this
|
564 |
+
, complete = function () {
|
565 |
+
if (startEvent.type == 'show') that.reset()
|
566 |
+
that.transitioning = 0
|
567 |
+
that.$element.trigger(completeEvent)
|
568 |
+
}
|
569 |
+
|
570 |
+
this.$element.trigger(startEvent)
|
571 |
|
572 |
+
if (startEvent.isDefaultPrevented()) return
|
573 |
+
|
574 |
+
this.transitioning = 1
|
575 |
+
|
576 |
+
this.$element[method]('in')
|
577 |
+
|
578 |
+
$.support.transition && this.$element.hasClass('collapse') ?
|
579 |
+
this.$element.one($.support.transition.end, complete) :
|
580 |
+
complete()
|
581 |
+
}
|
582 |
|
583 |
+
, toggle: function () {
|
584 |
+
this[this.$element.hasClass('in') ? 'hide' : 'show']()
|
585 |
}
|
|
|
586 |
|
|
|
|
|
|
|
587 |
}
|
588 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
589 |
|
590 |
+
/* COLLAPSE PLUGIN DEFINITION
|
591 |
+
* ========================== */
|
592 |
|
593 |
+
var old = $.fn.collapse
|
|
|
594 |
|
595 |
+
$.fn.collapse = function (option) {
|
596 |
return this.each(function () {
|
597 |
var $this = $(this)
|
598 |
+
, data = $this.data('collapse')
|
599 |
+
, options = $.extend({}, $.fn.collapse.defaults, $this.data(), typeof option == 'object' && option)
|
600 |
+
if (!data) $this.data('collapse', (data = new Collapse(this, options)))
|
601 |
if (typeof option == 'string') data[option]()
|
|
|
602 |
})
|
603 |
}
|
604 |
|
605 |
+
$.fn.collapse.defaults = {
|
606 |
+
toggle: true
|
|
|
607 |
}
|
608 |
|
609 |
+
$.fn.collapse.Constructor = Collapse
|
610 |
|
611 |
|
612 |
+
/* COLLAPSE NO CONFLICT
|
613 |
+
* ==================== */
|
614 |
|
615 |
+
$.fn.collapse.noConflict = function () {
|
616 |
+
$.fn.collapse = old
|
617 |
+
return this
|
618 |
+
}
|
|
|
619 |
|
|
|
|
|
|
|
|
|
620 |
|
621 |
+
/* COLLAPSE DATA-API
|
622 |
+
* ================= */
|
623 |
+
|
624 |
+
$(document).on('click.collapse.data-api', '[data-toggle=collapse]', function (e) {
|
625 |
+
var $this = $(this), href
|
626 |
+
, target = $this.attr('data-target')
|
627 |
+
|| e.preventDefault()
|
628 |
+
|| (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
|
629 |
+
, option = $(target).data('collapse') ? 'toggle' : $this.data()
|
630 |
+
$this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
|
631 |
+
$(target).collapse(option)
|
632 |
+
})
|
633 |
|
634 |
+
}(window.jQuery);/* ============================================================
|
635 |
+
* bootstrap-dropdown.js v2.3.1
|
636 |
* http://twitter.github.com/bootstrap/javascript.html#dropdowns
|
637 |
* ============================================================
|
638 |
* Copyright 2012 Twitter, Inc.
|
651 |
* ============================================================ */
|
652 |
|
653 |
|
654 |
+
!function ($) {
|
655 |
+
|
656 |
+
"use strict"; // jshint ;_;
|
657 |
|
|
|
658 |
|
659 |
/* DROPDOWN CLASS DEFINITION
|
660 |
* ========================= */
|
661 |
|
662 |
+
var toggle = '[data-toggle=dropdown]'
|
663 |
+
, Dropdown = function (element) {
|
664 |
var $el = $(element).on('click.dropdown.data-api', this.toggle)
|
665 |
$('html').on('click.dropdown.data-api', function () {
|
666 |
$el.parent().removeClass('open')
|
671 |
|
672 |
constructor: Dropdown
|
673 |
|
674 |
+
, toggle: function (e) {
|
675 |
var $this = $(this)
|
|
|
676 |
, $parent
|
677 |
, isActive
|
678 |
|
679 |
+
if ($this.is('.disabled, :disabled')) return
|
|
|
|
|
|
|
680 |
|
681 |
+
$parent = getParent($this)
|
|
|
682 |
|
683 |
isActive = $parent.hasClass('open')
|
684 |
|
685 |
clearMenus()
|
686 |
+
|
687 |
+
if (!isActive) {
|
688 |
+
$parent.toggleClass('open')
|
689 |
+
}
|
690 |
+
|
691 |
+
$this.focus()
|
692 |
|
693 |
return false
|
694 |
}
|
695 |
|
696 |
+
, keydown: function (e) {
|
697 |
+
var $this
|
698 |
+
, $items
|
699 |
+
, $active
|
700 |
+
, $parent
|
701 |
+
, isActive
|
702 |
+
, index
|
703 |
+
|
704 |
+
if (!/(38|40|27)/.test(e.keyCode)) return
|
705 |
+
|
706 |
+
$this = $(this)
|
707 |
+
|
708 |
+
e.preventDefault()
|
709 |
+
e.stopPropagation()
|
710 |
+
|
711 |
+
if ($this.is('.disabled, :disabled')) return
|
712 |
+
|
713 |
+
$parent = getParent($this)
|
714 |
+
|
715 |
+
isActive = $parent.hasClass('open')
|
716 |
+
|
717 |
+
if (!isActive || (isActive && e.keyCode == 27)) {
|
718 |
+
if (e.which == 27) $parent.find(toggle).focus()
|
719 |
+
return $this.click()
|
720 |
+
}
|
721 |
+
|
722 |
+
$items = $('[role=menu] li:not(.divider):visible a', $parent)
|
723 |
+
|
724 |
+
if (!$items.length) return
|
725 |
+
|
726 |
+
index = $items.index($items.filter(':focus'))
|
727 |
+
|
728 |
+
if (e.keyCode == 38 && index > 0) index-- // up
|
729 |
+
if (e.keyCode == 40 && index < $items.length - 1) index++ // down
|
730 |
+
if (!~index) index = 0
|
731 |
+
|
732 |
+
$items
|
733 |
+
.eq(index)
|
734 |
+
.focus()
|
735 |
+
}
|
736 |
+
|
737 |
}
|
738 |
|
739 |
function clearMenus() {
|
740 |
+
$(toggle).each(function () {
|
741 |
+
getParent($(this)).removeClass('open')
|
742 |
+
})
|
743 |
+
}
|
744 |
+
|
745 |
+
function getParent($this) {
|
746 |
+
var selector = $this.attr('data-target')
|
747 |
+
, $parent
|
748 |
+
|
749 |
+
if (!selector) {
|
750 |
+
selector = $this.attr('href')
|
751 |
+
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
752 |
+
}
|
753 |
+
|
754 |
+
$parent = selector && $(selector)
|
755 |
+
|
756 |
+
if (!$parent || !$parent.length) $parent = $this.parent()
|
757 |
+
|
758 |
+
return $parent
|
759 |
}
|
760 |
|
761 |
|
762 |
/* DROPDOWN PLUGIN DEFINITION
|
763 |
* ========================== */
|
764 |
|
765 |
+
var old = $.fn.dropdown
|
766 |
+
|
767 |
+
$.fn.dropdown = function (option) {
|
768 |
return this.each(function () {
|
769 |
var $this = $(this)
|
770 |
, data = $this.data('dropdown')
|
776 |
$.fn.dropdown.Constructor = Dropdown
|
777 |
|
778 |
|
779 |
+
/* DROPDOWN NO CONFLICT
|
780 |
+
* ==================== */
|
781 |
+
|
782 |
+
$.fn.dropdown.noConflict = function () {
|
783 |
+
$.fn.dropdown = old
|
784 |
+
return this
|
785 |
+
}
|
786 |
+
|
787 |
+
|
788 |
/* APPLY TO STANDARD DROPDOWN ELEMENTS
|
789 |
* =================================== */
|
790 |
|
791 |
+
$(document)
|
792 |
+
.on('click.dropdown.data-api', clearMenus)
|
793 |
+
.on('click.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
|
794 |
+
.on('click.dropdown-menu', function (e) { e.stopPropagation() })
|
795 |
+
.on('click.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
|
796 |
+
.on('keydown.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
|
797 |
|
798 |
+
}(window.jQuery);
|
799 |
+
/* =========================================================
|
800 |
+
* bootstrap-modal.js v2.3.1
|
801 |
+
* http://twitter.github.com/bootstrap/javascript.html#modals
|
802 |
+
* =========================================================
|
803 |
* Copyright 2012 Twitter, Inc.
|
804 |
*
|
805 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
813 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
814 |
* See the License for the specific language governing permissions and
|
815 |
* limitations under the License.
|
816 |
+
* ========================================================= */
|
|
|
|
|
817 |
|
|
|
818 |
|
819 |
+
!function ($) {
|
|
|
820 |
|
821 |
+
"use strict"; // jshint ;_;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
822 |
|
|
|
823 |
|
824 |
+
/* MODAL CLASS DEFINITION
|
825 |
+
* ====================== */
|
826 |
|
827 |
+
var Modal = function (element, options) {
|
828 |
+
this.options = options
|
829 |
+
this.$element = $(element)
|
830 |
+
.delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this))
|
831 |
+
this.options.remote && this.$element.find('.modal-body').load(this.options.remote)
|
832 |
+
}
|
|
|
833 |
|
834 |
+
Modal.prototype = {
|
|
|
|
|
|
|
835 |
|
836 |
+
constructor: Modal
|
|
|
|
|
|
|
|
|
|
|
837 |
|
838 |
+
, toggle: function () {
|
839 |
+
return this[!this.isShown ? 'show' : 'hide']()
|
|
|
|
|
|
|
|
|
840 |
}
|
841 |
|
842 |
+
, show: function () {
|
843 |
+
var that = this
|
844 |
+
, e = $.Event('show')
|
|
|
|
|
|
|
|
|
|
|
845 |
|
846 |
+
this.$element.trigger(e)
|
|
|
|
|
|
|
847 |
|
848 |
+
if (this.isShown || e.isDefaultPrevented()) return
|
|
|
|
|
|
|
849 |
|
850 |
+
this.isShown = true
|
851 |
|
852 |
+
this.escape()
|
853 |
|
854 |
+
this.backdrop(function () {
|
855 |
+
var transition = $.support.transition && that.$element.hasClass('fade')
|
856 |
|
857 |
+
if (!that.$element.parent().length) {
|
858 |
+
that.$element.appendTo(document.body) //don't move modals dom position
|
859 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
860 |
|
861 |
+
that.$element.show()
|
862 |
|
863 |
+
if (transition) {
|
864 |
+
that.$element[0].offsetWidth // force reflow
|
865 |
+
}
|
866 |
|
867 |
+
that.$element
|
868 |
+
.addClass('in')
|
869 |
+
.attr('aria-hidden', false)
|
870 |
|
871 |
+
that.enforceFocus()
|
|
|
872 |
|
873 |
+
transition ?
|
874 |
+
that.$element.one($.support.transition.end, function () { that.$element.focus().trigger('shown') }) :
|
875 |
+
that.$element.focus().trigger('shown')
|
|
|
|
|
|
|
876 |
|
877 |
+
})
|
878 |
+
}
|
879 |
|
880 |
+
, hide: function (e) {
|
881 |
+
e && e.preventDefault()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
882 |
|
883 |
+
var that = this
|
884 |
|
885 |
+
e = $.Event('hide')
|
886 |
|
887 |
+
this.$element.trigger(e)
|
888 |
|
889 |
+
if (!this.isShown || e.isDefaultPrevented()) return
|
|
|
890 |
|
891 |
+
this.isShown = false
|
|
|
|
|
892 |
|
893 |
+
this.escape()
|
894 |
|
895 |
+
$(document).off('focusin.modal')
|
896 |
|
897 |
+
this.$element
|
898 |
+
.removeClass('in')
|
899 |
+
.attr('aria-hidden', true)
|
|
|
|
|
|
|
900 |
|
901 |
+
$.support.transition && this.$element.hasClass('fade') ?
|
902 |
+
this.hideWithTransition() :
|
903 |
+
this.hideModal()
|
904 |
}
|
905 |
|
906 |
+
, enforceFocus: function () {
|
907 |
+
var that = this
|
908 |
+
$(document).on('focusin.modal', function (e) {
|
909 |
+
if (that.$element[0] !== e.target && !that.$element.has(e.target).length) {
|
910 |
+
that.$element.focus()
|
911 |
+
}
|
912 |
+
})
|
913 |
+
}
|
914 |
|
915 |
+
, escape: function () {
|
916 |
+
var that = this
|
917 |
+
if (this.isShown && this.options.keyboard) {
|
918 |
+
this.$element.on('keyup.dismiss.modal', function ( e ) {
|
919 |
+
e.which == 27 && that.hide()
|
920 |
+
})
|
921 |
+
} else if (!this.isShown) {
|
922 |
+
this.$element.off('keyup.dismiss.modal')
|
923 |
+
}
|
924 |
+
}
|
925 |
|
926 |
+
, hideWithTransition: function () {
|
927 |
+
var that = this
|
928 |
+
, timeout = setTimeout(function () {
|
929 |
+
that.$element.off($.support.transition.end)
|
930 |
+
that.hideModal()
|
931 |
+
}, 500)
|
932 |
|
933 |
+
this.$element.one($.support.transition.end, function () {
|
934 |
+
clearTimeout(timeout)
|
935 |
+
that.hideModal()
|
|
|
|
|
936 |
})
|
937 |
+
}
|
|
|
938 |
|
939 |
+
, hideModal: function () {
|
940 |
+
var that = this
|
941 |
+
this.$element.hide()
|
942 |
+
this.backdrop(function () {
|
943 |
+
that.removeBackdrop()
|
944 |
+
that.$element.trigger('hidden')
|
945 |
+
})
|
946 |
+
}
|
947 |
|
948 |
+
, removeBackdrop: function () {
|
949 |
+
this.$backdrop && this.$backdrop.remove()
|
950 |
+
this.$backdrop = null
|
951 |
+
}
|
|
|
952 |
|
953 |
+
, backdrop: function (callback) {
|
954 |
+
var that = this
|
955 |
+
, animate = this.$element.hasClass('fade') ? 'fade' : ''
|
956 |
|
957 |
+
if (this.isShown && this.options.backdrop) {
|
958 |
+
var doAnimate = $.support.transition && animate
|
|
|
|
|
|
|
|
|
959 |
|
960 |
+
this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
|
961 |
+
.appendTo(document.body)
|
|
|
962 |
|
963 |
+
this.$backdrop.click(
|
964 |
+
this.options.backdrop == 'static' ?
|
965 |
+
$.proxy(this.$element[0].focus, this.$element[0])
|
966 |
+
: $.proxy(this.hide, this)
|
967 |
+
)
|
968 |
|
969 |
+
if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
|
|
|
|
|
970 |
|
971 |
+
this.$backdrop.addClass('in')
|
972 |
+
|
973 |
+
if (!callback) return
|
974 |
+
|
975 |
+
doAnimate ?
|
976 |
+
this.$backdrop.one($.support.transition.end, callback) :
|
977 |
+
callback()
|
978 |
+
|
979 |
+
} else if (!this.isShown && this.$backdrop) {
|
980 |
+
this.$backdrop.removeClass('in')
|
981 |
+
|
982 |
+
$.support.transition && this.$element.hasClass('fade')?
|
983 |
+
this.$backdrop.one($.support.transition.end, callback) :
|
984 |
+
callback()
|
985 |
+
|
986 |
+
} else if (callback) {
|
987 |
+
callback()
|
988 |
+
}
|
989 |
+
}
|
990 |
}
|
991 |
|
992 |
|
993 |
+
/* MODAL PLUGIN DEFINITION
|
994 |
+
* ======================= */
|
995 |
|
996 |
+
var old = $.fn.modal
|
997 |
+
|
998 |
+
$.fn.modal = function (option) {
|
999 |
return this.each(function () {
|
1000 |
var $this = $(this)
|
1001 |
+
, data = $this.data('modal')
|
1002 |
+
, options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option)
|
1003 |
+
if (!data) $this.data('modal', (data = new Modal(this, options)))
|
1004 |
if (typeof option == 'string') data[option]()
|
1005 |
+
else if (options.show) data.show()
|
1006 |
})
|
1007 |
}
|
1008 |
|
1009 |
+
$.fn.modal.defaults = {
|
1010 |
+
backdrop: true
|
1011 |
+
, keyboard: true
|
1012 |
+
, show: true
|
1013 |
+
}
|
1014 |
|
1015 |
+
$.fn.modal.Constructor = Modal
|
1016 |
|
|
|
|
|
1017 |
|
1018 |
+
/* MODAL NO CONFLICT
|
1019 |
+
* ================= */
|
1020 |
+
|
1021 |
+
$.fn.modal.noConflict = function () {
|
1022 |
+
$.fn.modal = old
|
1023 |
+
return this
|
1024 |
+
}
|
1025 |
+
|
1026 |
+
|
1027 |
+
/* MODAL DATA-API
|
1028 |
+
* ============== */
|
1029 |
+
|
1030 |
+
$(document).on('click.modal.data-api', '[data-toggle="modal"]', function (e) {
|
1031 |
+
var $this = $(this)
|
1032 |
+
, href = $this.attr('href')
|
1033 |
+
, $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) //strip for ie7
|
1034 |
+
, option = $target.data('modal') ? 'toggle' : $.extend({ remote:!/#/.test(href) && href }, $target.data(), $this.data())
|
1035 |
+
|
1036 |
+
e.preventDefault()
|
1037 |
|
1038 |
+
$target
|
1039 |
+
.modal(option)
|
1040 |
+
.one('hide', function () {
|
1041 |
+
$this.focus()
|
1042 |
+
})
|
1043 |
+
})
|
1044 |
|
1045 |
+
}(window.jQuery);
|
1046 |
/* ===========================================================
|
1047 |
+
* bootstrap-tooltip.js v2.3.1
|
1048 |
* http://twitter.github.com/bootstrap/javascript.html#tooltips
|
1049 |
* Inspired by the original jQuery.tipsy by Jason Frame
|
1050 |
* ===========================================================
|
1063 |
* limitations under the License.
|
1064 |
* ========================================================== */
|
1065 |
|
|
|
1066 |
|
1067 |
+
!function ($) {
|
1068 |
+
|
1069 |
+
"use strict"; // jshint ;_;
|
1070 |
+
|
1071 |
|
1072 |
/* TOOLTIP PUBLIC CLASS DEFINITION
|
1073 |
* =============================== */
|
1074 |
|
1075 |
+
var Tooltip = function (element, options) {
|
1076 |
this.init('tooltip', element, options)
|
1077 |
}
|
1078 |
|
1080 |
|
1081 |
constructor: Tooltip
|
1082 |
|
1083 |
+
, init: function (type, element, options) {
|
1084 |
var eventIn
|
1085 |
, eventOut
|
1086 |
+
, triggers
|
1087 |
+
, trigger
|
1088 |
+
, i
|
1089 |
|
1090 |
this.type = type
|
1091 |
this.$element = $(element)
|
1092 |
this.options = this.getOptions(options)
|
1093 |
this.enabled = true
|
1094 |
|
1095 |
+
triggers = this.options.trigger.split(' ')
|
1096 |
+
|
1097 |
+
for (i = triggers.length; i--;) {
|
1098 |
+
trigger = triggers[i]
|
1099 |
+
if (trigger == 'click') {
|
1100 |
+
this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
|
1101 |
+
} else if (trigger != 'manual') {
|
1102 |
+
eventIn = trigger == 'hover' ? 'mouseenter' : 'focus'
|
1103 |
+
eventOut = trigger == 'hover' ? 'mouseleave' : 'blur'
|
1104 |
+
this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
|
1105 |
+
this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
|
1106 |
+
}
|
1107 |
}
|
1108 |
|
1109 |
this.options.selector ?
|
1111 |
this.fixTitle()
|
1112 |
}
|
1113 |
|
1114 |
+
, getOptions: function (options) {
|
1115 |
+
options = $.extend({}, $.fn[this.type].defaults, this.$element.data(), options)
|
1116 |
|
1117 |
if (options.delay && typeof options.delay == 'number') {
|
1118 |
options.delay = {
|
1124 |
return options
|
1125 |
}
|
1126 |
|
1127 |
+
, enter: function (e) {
|
1128 |
+
var defaults = $.fn[this.type].defaults
|
1129 |
+
, options = {}
|
1130 |
+
, self
|
1131 |
|
1132 |
+
this._options && $.each(this._options, function (key, value) {
|
1133 |
+
if (defaults[key] != value) options[key] = value
|
1134 |
+
}, this)
|
1135 |
+
|
1136 |
+
self = $(e.currentTarget)[this.type](options).data(this.type)
|
1137 |
+
|
1138 |
+
if (!self.options.delay || !self.options.delay.show) return self.show()
|
1139 |
+
|
1140 |
+
clearTimeout(this.timeout)
|
1141 |
+
self.hoverState = 'in'
|
1142 |
+
this.timeout = setTimeout(function() {
|
1143 |
+
if (self.hoverState == 'in') self.show()
|
1144 |
+
}, self.options.delay.show)
|
1145 |
}
|
1146 |
|
1147 |
+
, leave: function (e) {
|
1148 |
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
|
1149 |
|
1150 |
+
if (this.timeout) clearTimeout(this.timeout)
|
1151 |
+
if (!self.options.delay || !self.options.delay.hide) return self.hide()
|
1152 |
+
|
1153 |
+
self.hoverState = 'out'
|
1154 |
+
this.timeout = setTimeout(function() {
|
1155 |
+
if (self.hoverState == 'out') self.hide()
|
1156 |
+
}, self.options.delay.hide)
|
|
|
|
|
|
|
1157 |
}
|
1158 |
|
1159 |
, show: function () {
|
1160 |
var $tip
|
|
|
1161 |
, pos
|
1162 |
, actualWidth
|
1163 |
, actualHeight
|
1164 |
, placement
|
1165 |
, tp
|
1166 |
+
, e = $.Event('show')
|
1167 |
|
1168 |
if (this.hasContent() && this.enabled) {
|
1169 |
+
this.$element.trigger(e)
|
1170 |
+
if (e.isDefaultPrevented()) return
|
1171 |
$tip = this.tip()
|
1172 |
this.setContent()
|
1173 |
|
1179 |
this.options.placement.call(this, $tip[0], this.$element[0]) :
|
1180 |
this.options.placement
|
1181 |
|
|
|
|
|
1182 |
$tip
|
1183 |
+
.detach()
|
1184 |
.css({ top: 0, left: 0, display: 'block' })
|
|
|
1185 |
|
1186 |
+
this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
|
1187 |
+
|
1188 |
+
pos = this.getPosition()
|
1189 |
|
1190 |
actualWidth = $tip[0].offsetWidth
|
1191 |
actualHeight = $tip[0].offsetHeight
|
1192 |
|
1193 |
+
switch (placement) {
|
1194 |
case 'bottom':
|
1195 |
tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}
|
1196 |
break
|
1205 |
break
|
1206 |
}
|
1207 |
|
1208 |
+
this.applyPlacement(tp, placement)
|
1209 |
+
this.$element.trigger('shown')
|
1210 |
+
}
|
1211 |
+
}
|
1212 |
+
|
1213 |
+
, applyPlacement: function(offset, placement){
|
1214 |
+
var $tip = this.tip()
|
1215 |
+
, width = $tip[0].offsetWidth
|
1216 |
+
, height = $tip[0].offsetHeight
|
1217 |
+
, actualWidth
|
1218 |
+
, actualHeight
|
1219 |
+
, delta
|
1220 |
+
, replace
|
1221 |
+
|
1222 |
+
$tip
|
1223 |
+
.offset(offset)
|
1224 |
+
.addClass(placement)
|
1225 |
+
.addClass('in')
|
1226 |
+
|
1227 |
+
actualWidth = $tip[0].offsetWidth
|
1228 |
+
actualHeight = $tip[0].offsetHeight
|
1229 |
+
|
1230 |
+
if (placement == 'top' && actualHeight != height) {
|
1231 |
+
offset.top = offset.top + height - actualHeight
|
1232 |
+
replace = true
|
1233 |
+
}
|
1234 |
+
|
1235 |
+
if (placement == 'bottom' || placement == 'top') {
|
1236 |
+
delta = 0
|
1237 |
+
|
1238 |
+
if (offset.left < 0){
|
1239 |
+
delta = offset.left * -2
|
1240 |
+
offset.left = 0
|
1241 |
+
$tip.offset(offset)
|
1242 |
+
actualWidth = $tip[0].offsetWidth
|
1243 |
+
actualHeight = $tip[0].offsetHeight
|
1244 |
+
}
|
1245 |
+
|
1246 |
+
this.replaceArrow(delta - width + actualWidth, actualWidth, 'left')
|
1247 |
+
} else {
|
1248 |
+
this.replaceArrow(actualHeight - height, actualHeight, 'top')
|
1249 |
}
|
1250 |
+
|
1251 |
+
if (replace) $tip.offset(offset)
|
1252 |
+
}
|
1253 |
+
|
1254 |
+
, replaceArrow: function(delta, dimension, position){
|
1255 |
+
this
|
1256 |
+
.arrow()
|
1257 |
+
.css(position, delta ? (50 * (1 - delta / dimension) + "%") : '')
|
1258 |
}
|
1259 |
|
1260 |
, setContent: function () {
|
1261 |
var $tip = this.tip()
|
1262 |
+
, title = this.getTitle()
|
1263 |
+
|
1264 |
+
$tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
|
1265 |
$tip.removeClass('fade in top bottom left right')
|
1266 |
}
|
1267 |
|
1268 |
, hide: function () {
|
1269 |
var that = this
|
1270 |
, $tip = this.tip()
|
1271 |
+
, e = $.Event('hide')
|
1272 |
+
|
1273 |
+
this.$element.trigger(e)
|
1274 |
+
if (e.isDefaultPrevented()) return
|
1275 |
|
1276 |
$tip.removeClass('in')
|
1277 |
|
1278 |
function removeWithAnimation() {
|
1279 |
var timeout = setTimeout(function () {
|
1280 |
+
$tip.off($.support.transition.end).detach()
|
1281 |
}, 500)
|
1282 |
|
1283 |
$tip.one($.support.transition.end, function () {
|
1284 |
clearTimeout(timeout)
|
1285 |
+
$tip.detach()
|
1286 |
})
|
1287 |
}
|
1288 |
|
1289 |
$.support.transition && this.$tip.hasClass('fade') ?
|
1290 |
removeWithAnimation() :
|
1291 |
+
$tip.detach()
|
1292 |
+
|
1293 |
+
this.$element.trigger('hidden')
|
1294 |
+
|
1295 |
+
return this
|
1296 |
}
|
1297 |
|
1298 |
, fixTitle: function () {
|
1299 |
var $e = this.$element
|
1300 |
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
|
1301 |
+
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
|
1302 |
}
|
1303 |
}
|
1304 |
|
1306 |
return this.getTitle()
|
1307 |
}
|
1308 |
|
1309 |
+
, getPosition: function () {
|
1310 |
+
var el = this.$element[0]
|
1311 |
+
return $.extend({}, (typeof el.getBoundingClientRect == 'function') ? el.getBoundingClientRect() : {
|
1312 |
+
width: el.offsetWidth
|
1313 |
+
, height: el.offsetHeight
|
1314 |
+
}, this.$element.offset())
|
1315 |
}
|
1316 |
|
1317 |
, getTitle: function () {
|
1322 |
title = $e.attr('data-original-title')
|
1323 |
|| (typeof o.title == 'function' ? o.title.call($e[0]) : o.title)
|
1324 |
|
|
|
|
|
1325 |
return title
|
1326 |
}
|
1327 |
|
1329 |
return this.$tip = this.$tip || $(this.options.template)
|
1330 |
}
|
1331 |
|
1332 |
+
, arrow: function(){
|
1333 |
+
return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")
|
1334 |
+
}
|
1335 |
+
|
1336 |
, validate: function () {
|
1337 |
if (!this.$element[0].parentNode) {
|
1338 |
this.hide()
|
1347 |
|
1348 |
, disable: function () {
|
1349 |
this.enabled = false
|
1350 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1351 |
|
1352 |
+
, toggleEnabled: function () {
|
1353 |
+
this.enabled = !this.enabled
|
1354 |
+
}
|
1355 |
|
1356 |
+
, toggle: function (e) {
|
1357 |
+
var self = e ? $(e.currentTarget)[this.type](this._options).data(this.type) : this
|
1358 |
+
self.tip().hasClass('in') ? self.hide() : self.show()
|
1359 |
+
}
|
1360 |
|
1361 |
+
, destroy: function () {
|
1362 |
+
this.hide().$element.off('.' + this.type).removeData(this.type)
|
|
|
1363 |
}
|
1364 |
|
1365 |
}
|
1366 |
|
1367 |
|
1368 |
+
/* TOOLTIP PLUGIN DEFINITION
|
1369 |
+
* ========================= */
|
1370 |
|
1371 |
+
var old = $.fn.tooltip
|
1372 |
+
|
1373 |
+
$.fn.tooltip = function ( option ) {
|
1374 |
return this.each(function () {
|
1375 |
var $this = $(this)
|
1376 |
+
, data = $this.data('tooltip')
|
1377 |
+
, options = typeof option == 'object' && option
|
1378 |
+
if (!data) $this.data('tooltip', (data = new Tooltip(this, options)))
|
1379 |
+
if (typeof option == 'string') data[option]()
|
1380 |
})
|
1381 |
}
|
1382 |
|
1383 |
+
$.fn.tooltip.Constructor = Tooltip
|
1384 |
|
1385 |
+
$.fn.tooltip.defaults = {
|
1386 |
+
animation: true
|
1387 |
+
, placement: 'top'
|
1388 |
+
, selector: false
|
1389 |
+
, template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
|
1390 |
+
, trigger: 'hover focus'
|
1391 |
+
, title: ''
|
1392 |
+
, delay: 0
|
1393 |
+
, html: false
|
1394 |
+
, container: false
|
1395 |
+
}
|
1396 |
|
|
|
|
|
1397 |
|
1398 |
+
/* TOOLTIP NO CONFLICT
|
1399 |
+
* =================== */
|
|
|
1400 |
|
1401 |
+
$.fn.tooltip.noConflict = function () {
|
1402 |
+
$.fn.tooltip = old
|
1403 |
+
return this
|
1404 |
+
}
|
1405 |
|
1406 |
+
}(window.jQuery);
|
1407 |
+
/* ===========================================================
|
1408 |
+
* bootstrap-popover.js v2.3.1
|
1409 |
+
* http://twitter.github.com/bootstrap/javascript.html#popovers
|
1410 |
+
* ===========================================================
|
1411 |
* Copyright 2012 Twitter, Inc.
|
1412 |
*
|
1413 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
1421 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
1422 |
* See the License for the specific language governing permissions and
|
1423 |
* limitations under the License.
|
1424 |
+
* =========================================================== */
|
1425 |
|
|
|
1426 |
|
1427 |
+
!function ($) {
|
1428 |
|
1429 |
+
"use strict"; // jshint ;_;
|
|
|
1430 |
|
1431 |
+
|
1432 |
+
/* POPOVER PUBLIC CLASS DEFINITION
|
1433 |
+
* =============================== */
|
1434 |
+
|
1435 |
+
var Popover = function (element, options) {
|
1436 |
+
this.init('popover', element, options)
|
1437 |
}
|
1438 |
|
|
|
1439 |
|
1440 |
+
/* NOTE: POPOVER EXTENDS BOOTSTRAP-TOOLTIP.js
|
1441 |
+
========================================== */
|
1442 |
|
1443 |
+
Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype, {
|
|
|
|
|
|
|
|
|
1444 |
|
1445 |
+
constructor: Popover
|
|
|
1446 |
|
1447 |
+
, setContent: function () {
|
1448 |
+
var $tip = this.tip()
|
1449 |
+
, title = this.getTitle()
|
1450 |
+
, content = this.getContent()
|
1451 |
|
1452 |
+
$tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
|
1453 |
+
$tip.find('.popover-content')[this.options.html ? 'html' : 'text'](content)
|
|
|
|
|
|
|
|
|
|
|
1454 |
|
1455 |
+
$tip.removeClass('fade top bottom left right in')
|
1456 |
+
}
|
1457 |
|
1458 |
+
, hasContent: function () {
|
1459 |
+
return this.getTitle() || this.getContent()
|
1460 |
+
}
|
1461 |
+
|
1462 |
+
, getContent: function () {
|
1463 |
+
var content
|
1464 |
+
, $e = this.$element
|
1465 |
+
, o = this.options
|
1466 |
+
|
1467 |
+
content = (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
|
1468 |
+
|| $e.attr('data-content')
|
1469 |
+
|
1470 |
+
return content
|
1471 |
+
}
|
1472 |
|
1473 |
+
, tip: function () {
|
1474 |
+
if (!this.$tip) {
|
1475 |
+
this.$tip = $(this.options.template)
|
1476 |
}
|
1477 |
+
return this.$tip
|
1478 |
+
}
|
1479 |
|
1480 |
+
, destroy: function () {
|
1481 |
+
this.hide().$element.off('.' + this.type).removeData(this.type)
|
1482 |
+
}
|
1483 |
|
1484 |
+
})
|
1485 |
|
|
|
|
|
1486 |
|
1487 |
+
/* POPOVER PLUGIN DEFINITION
|
1488 |
+
* ======================= */
|
1489 |
+
|
1490 |
+
var old = $.fn.popover
|
1491 |
+
|
1492 |
+
$.fn.popover = function (option) {
|
1493 |
return this.each(function () {
|
1494 |
var $this = $(this)
|
1495 |
+
, data = $this.data('popover')
|
1496 |
, options = typeof option == 'object' && option
|
1497 |
+
if (!data) $this.data('popover', (data = new Popover(this, options)))
|
1498 |
+
if (typeof option == 'string') data[option]()
|
|
|
1499 |
})
|
1500 |
}
|
1501 |
|
1502 |
+
$.fn.popover.Constructor = Popover
|
|
|
|
|
|
|
|
|
1503 |
|
1504 |
+
$.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, {
|
1505 |
+
placement: 'right'
|
1506 |
+
, trigger: 'click'
|
1507 |
+
, content: ''
|
1508 |
+
, template: '<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
|
1509 |
+
})
|
1510 |
|
|
|
|
|
1511 |
|
1512 |
+
/* POPOVER NO CONFLICT
|
1513 |
+
* =================== */
|
|
|
|
|
|
|
1514 |
|
1515 |
+
$.fn.popover.noConflict = function () {
|
1516 |
+
$.fn.popover = old
|
1517 |
+
return this
|
1518 |
+
}
|
1519 |
|
1520 |
+
}(window.jQuery);
|
1521 |
/* =============================================================
|
1522 |
+
* bootstrap-scrollspy.js v2.3.1
|
1523 |
+
* http://twitter.github.com/bootstrap/javascript.html#scrollspy
|
1524 |
* =============================================================
|
1525 |
* Copyright 2012 Twitter, Inc.
|
1526 |
*
|
1535 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
1536 |
* See the License for the specific language governing permissions and
|
1537 |
* limitations under the License.
|
1538 |
+
* ============================================================== */
|
1539 |
|
|
|
1540 |
|
1541 |
+
!function ($) {
|
1542 |
|
1543 |
+
"use strict"; // jshint ;_;
|
|
|
|
|
1544 |
|
|
|
|
|
|
|
1545 |
|
1546 |
+
/* SCROLLSPY CLASS DEFINITION
|
1547 |
+
* ========================== */
|
1548 |
+
|
1549 |
+
function ScrollSpy(element, options) {
|
1550 |
+
var process = $.proxy(this.process, this)
|
1551 |
+
, $element = $(element).is('body') ? $(window) : $(element)
|
1552 |
+
, href
|
1553 |
+
this.options = $.extend({}, $.fn.scrollspy.defaults, options)
|
1554 |
+
this.$scrollElement = $element.on('scroll.scroll-spy.data-api', process)
|
1555 |
+
this.selector = (this.options.target
|
1556 |
+
|| ((href = $(element).attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
1557 |
+
|| '') + ' .nav li > a'
|
1558 |
+
this.$body = $('body')
|
1559 |
+
this.refresh()
|
1560 |
+
this.process()
|
1561 |
}
|
1562 |
|
1563 |
+
ScrollSpy.prototype = {
|
1564 |
|
1565 |
+
constructor: ScrollSpy
|
1566 |
|
1567 |
+
, refresh: function () {
|
1568 |
+
var self = this
|
1569 |
+
, $targets
|
|
|
1570 |
|
1571 |
+
this.offsets = $([])
|
1572 |
+
this.targets = $([])
|
|
|
|
|
|
|
1573 |
|
1574 |
+
$targets = this.$body
|
1575 |
+
.find(this.selector)
|
1576 |
+
.map(function () {
|
1577 |
+
var $el = $(this)
|
1578 |
+
, href = $el.data('target') || $el.attr('href')
|
1579 |
+
, $href = /^#\w/.test(href) && $(href)
|
1580 |
+
return ( $href
|
1581 |
+
&& $href.length
|
1582 |
+
&& [[ $href.position().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href ]] ) || null
|
1583 |
+
})
|
1584 |
+
.sort(function (a, b) { return a[0] - b[0] })
|
1585 |
+
.each(function () {
|
1586 |
+
self.offsets.push(this[0])
|
1587 |
+
self.targets.push(this[1])
|
1588 |
+
})
|
1589 |
}
|
1590 |
|
1591 |
+
, process: function () {
|
1592 |
+
var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
|
1593 |
+
, scrollHeight = this.$scrollElement[0].scrollHeight || this.$body[0].scrollHeight
|
1594 |
+
, maxScroll = scrollHeight - this.$scrollElement.height()
|
1595 |
+
, offsets = this.offsets
|
1596 |
+
, targets = this.targets
|
1597 |
+
, activeTarget = this.activeTarget
|
1598 |
+
, i
|
1599 |
|
1600 |
+
if (scrollTop >= maxScroll) {
|
1601 |
+
return activeTarget != (i = targets.last()[0])
|
1602 |
+
&& this.activate ( i )
|
1603 |
+
}
|
1604 |
|
1605 |
+
for (i = offsets.length; i--;) {
|
1606 |
+
activeTarget != targets[i]
|
1607 |
+
&& scrollTop >= offsets[i]
|
1608 |
+
&& (!offsets[i + 1] || scrollTop <= offsets[i + 1])
|
1609 |
+
&& this.activate( targets[i] )
|
1610 |
+
}
|
1611 |
+
}
|
1612 |
|
1613 |
+
, activate: function (target) {
|
1614 |
+
var active
|
1615 |
+
, selector
|
1616 |
|
1617 |
+
this.activeTarget = target
|
|
|
|
|
|
|
1618 |
|
1619 |
+
$(this.selector)
|
1620 |
+
.parent('.active')
|
1621 |
+
.removeClass('active')
|
1622 |
|
1623 |
+
selector = this.selector
|
1624 |
+
+ '[data-target="' + target + '"],'
|
1625 |
+
+ this.selector + '[href="' + target + '"]'
|
|
|
|
|
|
|
1626 |
|
1627 |
+
active = $(selector)
|
1628 |
+
.parent('li')
|
1629 |
+
.addClass('active')
|
1630 |
|
1631 |
+
if (active.parent('.dropdown-menu').length) {
|
1632 |
+
active = active.closest('li.dropdown').addClass('active')
|
1633 |
+
}
|
|
|
1634 |
|
1635 |
+
active.trigger('activate')
|
1636 |
+
}
|
|
|
1637 |
|
1638 |
}
|
1639 |
|
|
|
|
|
1640 |
|
1641 |
+
/* SCROLLSPY PLUGIN DEFINITION
|
1642 |
+
* =========================== */
|
1643 |
+
|
1644 |
+
var old = $.fn.scrollspy
|
1645 |
+
|
1646 |
+
$.fn.scrollspy = function (option) {
|
1647 |
return this.each(function () {
|
1648 |
var $this = $(this)
|
1649 |
+
, data = $this.data('scrollspy')
|
1650 |
, options = typeof option == 'object' && option
|
1651 |
+
if (!data) $this.data('scrollspy', (data = new ScrollSpy(this, options)))
|
1652 |
if (typeof option == 'string') data[option]()
|
1653 |
})
|
1654 |
}
|
1655 |
|
1656 |
+
$.fn.scrollspy.Constructor = ScrollSpy
|
1657 |
+
|
1658 |
+
$.fn.scrollspy.defaults = {
|
1659 |
+
offset: 10
|
1660 |
}
|
1661 |
|
|
|
1662 |
|
1663 |
+
/* SCROLLSPY NO CONFLICT
|
1664 |
+
* ===================== */
|
1665 |
|
1666 |
+
$.fn.scrollspy.noConflict = function () {
|
1667 |
+
$.fn.scrollspy = old
|
1668 |
+
return this
|
1669 |
+
}
|
1670 |
|
1671 |
+
|
1672 |
+
/* SCROLLSPY DATA-API
|
1673 |
+
* ================== */
|
1674 |
+
|
1675 |
+
$(window).on('load', function () {
|
1676 |
+
$('[data-spy="scroll"]').each(function () {
|
1677 |
+
var $spy = $(this)
|
1678 |
+
$spy.scrollspy($spy.data())
|
1679 |
})
|
1680 |
})
|
1681 |
|
1682 |
+
}(window.jQuery);/* ========================================================
|
1683 |
+
* bootstrap-tab.js v2.3.1
|
1684 |
+
* http://twitter.github.com/bootstrap/javascript.html#tabs
|
1685 |
+
* ========================================================
|
|
|
|
|
1686 |
* Copyright 2012 Twitter, Inc.
|
1687 |
*
|
1688 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
1696 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
1697 |
* See the License for the specific language governing permissions and
|
1698 |
* limitations under the License.
|
1699 |
+
* ======================================================== */
|
1700 |
|
1701 |
|
1702 |
+
!function ($) {
|
1703 |
|
1704 |
+
"use strict"; // jshint ;_;
|
1705 |
|
|
|
|
|
1706 |
|
1707 |
+
/* TAB CLASS DEFINITION
|
1708 |
+
* ==================== */
|
1709 |
+
|
1710 |
+
var Tab = function (element) {
|
1711 |
+
this.element = $(element)
|
1712 |
}
|
1713 |
|
1714 |
+
Tab.prototype = {
|
1715 |
|
1716 |
+
constructor: Tab
|
|
|
|
|
|
|
1717 |
|
1718 |
+
, show: function () {
|
1719 |
+
var $this = this.element
|
1720 |
+
, $ul = $this.closest('ul:not(.dropdown-menu)')
|
1721 |
+
, selector = $this.attr('data-target')
|
1722 |
+
, previous
|
1723 |
+
, $target
|
1724 |
+
, e
|
1725 |
+
|
1726 |
+
if (!selector) {
|
1727 |
+
selector = $this.attr('href')
|
1728 |
+
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
1729 |
+
}
|
1730 |
+
|
1731 |
+
if ( $this.parent('li').hasClass('active') ) return
|
1732 |
|
1733 |
+
previous = $ul.find('.active:last a')[0]
|
1734 |
|
1735 |
+
e = $.Event('show', {
|
1736 |
+
relatedTarget: previous
|
1737 |
+
})
|
|
|
|
|
1738 |
|
1739 |
+
$this.trigger(e)
|
|
|
|
|
1740 |
|
1741 |
+
if (e.isDefaultPrevented()) return
|
|
|
1742 |
|
1743 |
+
$target = $(selector)
|
|
|
|
|
|
|
1744 |
|
1745 |
+
this.activate($this.parent('li'), $ul)
|
1746 |
+
this.activate($target, $target.parent(), function () {
|
1747 |
+
$this.trigger({
|
1748 |
+
type: 'shown'
|
1749 |
+
, relatedTarget: previous
|
1750 |
+
})
|
1751 |
+
})
|
1752 |
}
|
1753 |
|
1754 |
+
, activate: function ( element, container, callback) {
|
1755 |
+
var $active = container.find('> .active')
|
1756 |
+
, transition = callback
|
1757 |
+
&& $.support.transition
|
1758 |
+
&& $active.hasClass('fade')
|
1759 |
|
1760 |
+
function next() {
|
1761 |
+
$active
|
1762 |
+
.removeClass('active')
|
1763 |
+
.find('> .dropdown-menu > .active')
|
1764 |
+
.removeClass('active')
|
|
|
|
|
1765 |
|
1766 |
+
element.addClass('active')
|
1767 |
|
1768 |
+
if (transition) {
|
1769 |
+
element[0].offsetWidth // reflow for transition
|
1770 |
+
element.addClass('in')
|
1771 |
+
} else {
|
1772 |
+
element.removeClass('fade')
|
1773 |
+
}
|
1774 |
|
1775 |
+
if ( element.parent('.dropdown-menu') ) {
|
1776 |
+
element.closest('li.dropdown').addClass('active')
|
1777 |
+
}
|
1778 |
|
1779 |
+
callback && callback()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1780 |
}
|
1781 |
|
1782 |
+
transition ?
|
1783 |
+
$active.one($.support.transition.end, next) :
|
1784 |
+
next()
|
1785 |
|
1786 |
+
$active.removeClass('in')
|
1787 |
}
|
|
|
1788 |
}
|
1789 |
|
1790 |
|
1791 |
+
/* TAB PLUGIN DEFINITION
|
1792 |
+
* ===================== */
|
1793 |
|
1794 |
+
var old = $.fn.tab
|
1795 |
+
|
1796 |
+
$.fn.tab = function ( option ) {
|
1797 |
return this.each(function () {
|
1798 |
var $this = $(this)
|
1799 |
+
, data = $this.data('tab')
|
1800 |
+
if (!data) $this.data('tab', (data = new Tab(this)))
|
1801 |
+
if (typeof option == 'string') data[option]()
|
|
|
|
|
|
|
1802 |
})
|
1803 |
}
|
1804 |
|
1805 |
+
$.fn.tab.Constructor = Tab
|
|
|
|
|
1806 |
|
|
|
1807 |
|
1808 |
+
/* TAB NO CONFLICT
|
1809 |
+
* =============== */
|
1810 |
|
1811 |
+
$.fn.tab.noConflict = function () {
|
1812 |
+
$.fn.tab = old
|
1813 |
+
return this
|
1814 |
+
}
|
1815 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1816 |
|
1817 |
+
/* TAB DATA-API
|
1818 |
+
* ============ */
|
1819 |
+
|
1820 |
+
$(document).on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
|
1821 |
+
e.preventDefault()
|
1822 |
+
$(this).tab('show')
|
1823 |
+
})
|
1824 |
|
1825 |
+
}(window.jQuery);/* =============================================================
|
1826 |
+
* bootstrap-typeahead.js v2.3.1
|
1827 |
* http://twitter.github.com/bootstrap/javascript.html#typeahead
|
1828 |
* =============================================================
|
1829 |
* Copyright 2012 Twitter, Inc.
|
1841 |
* limitations under the License.
|
1842 |
* ============================================================ */
|
1843 |
|
|
|
1844 |
|
1845 |
+
!function($){
|
1846 |
+
|
1847 |
+
"use strict"; // jshint ;_;
|
1848 |
|
1849 |
+
|
1850 |
+
/* TYPEAHEAD PUBLIC CLASS DEFINITION
|
1851 |
+
* ================================= */
|
1852 |
+
|
1853 |
+
var Typeahead = function (element, options) {
|
1854 |
this.$element = $(element)
|
1855 |
this.options = $.extend({}, $.fn.typeahead.defaults, options)
|
1856 |
this.matcher = this.options.matcher || this.matcher
|
1857 |
this.sorter = this.options.sorter || this.sorter
|
1858 |
this.highlighter = this.options.highlighter || this.highlighter
|
1859 |
+
this.updater = this.options.updater || this.updater
|
1860 |
this.source = this.options.source
|
1861 |
+
this.$menu = $(this.options.menu)
|
1862 |
this.shown = false
|
1863 |
this.listen()
|
1864 |
}
|
1869 |
|
1870 |
, select: function () {
|
1871 |
var val = this.$menu.find('.active').attr('data-value')
|
1872 |
+
this.$element
|
1873 |
+
.val(this.updater(val))
|
1874 |
+
.change()
|
1875 |
return this.hide()
|
1876 |
}
|
1877 |
|
1878 |
+
, updater: function (item) {
|
1879 |
+
return item
|
1880 |
+
}
|
1881 |
+
|
1882 |
, show: function () {
|
1883 |
+
var pos = $.extend({}, this.$element.position(), {
|
1884 |
height: this.$element[0].offsetHeight
|
1885 |
})
|
1886 |
|
1887 |
+
this.$menu
|
1888 |
+
.insertAfter(this.$element)
|
1889 |
+
.css({
|
1890 |
+
top: pos.top + pos.height
|
1891 |
+
, left: pos.left
|
1892 |
+
})
|
1893 |
+
.show()
|
1894 |
|
|
|
1895 |
this.shown = true
|
1896 |
return this
|
1897 |
}
|
1903 |
}
|
1904 |
|
1905 |
, lookup: function (event) {
|
1906 |
+
var items
|
|
|
|
|
1907 |
|
1908 |
this.query = this.$element.val()
|
1909 |
|
1910 |
+
if (!this.query || this.query.length < this.options.minLength) {
|
1911 |
return this.shown ? this.hide() : this
|
1912 |
}
|
1913 |
|
1914 |
+
items = $.isFunction(this.source) ? this.source(this.query, $.proxy(this.process, this)) : this.source
|
1915 |
+
|
1916 |
+
return items ? this.process(items) : this
|
1917 |
+
}
|
1918 |
+
|
1919 |
+
, process: function (items) {
|
1920 |
+
var that = this
|
1921 |
+
|
1922 |
+
items = $.grep(items, function (item) {
|
1923 |
+
return that.matcher(item)
|
1924 |
})
|
1925 |
|
1926 |
items = this.sorter(items)
|
1952 |
}
|
1953 |
|
1954 |
, highlighter: function (item) {
|
1955 |
+
var query = this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&')
|
1956 |
+
return item.replace(new RegExp('(' + query + ')', 'ig'), function ($1, match) {
|
1957 |
return '<strong>' + match + '</strong>'
|
1958 |
})
|
1959 |
}
|
1996 |
|
1997 |
, listen: function () {
|
1998 |
this.$element
|
1999 |
+
.on('focus', $.proxy(this.focus, this))
|
2000 |
.on('blur', $.proxy(this.blur, this))
|
2001 |
.on('keypress', $.proxy(this.keypress, this))
|
2002 |
.on('keyup', $.proxy(this.keyup, this))
|
2003 |
|
2004 |
+
if (this.eventSupported('keydown')) {
|
2005 |
+
this.$element.on('keydown', $.proxy(this.keydown, this))
|
2006 |
}
|
2007 |
|
2008 |
this.$menu
|
2009 |
.on('click', $.proxy(this.click, this))
|
2010 |
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
|
2011 |
+
.on('mouseleave', 'li', $.proxy(this.mouseleave, this))
|
2012 |
}
|
2013 |
|
2014 |
+
, eventSupported: function(eventName) {
|
2015 |
+
var isSupported = eventName in this.$element
|
2016 |
+
if (!isSupported) {
|
2017 |
+
this.$element.setAttribute(eventName, 'return;')
|
2018 |
+
isSupported = typeof this.$element[eventName] === 'function'
|
2019 |
+
}
|
2020 |
+
return isSupported
|
2021 |
+
}
|
2022 |
+
|
2023 |
+
, move: function (e) {
|
2024 |
+
if (!this.shown) return
|
2025 |
+
|
2026 |
+
switch(e.keyCode) {
|
2027 |
+
case 9: // tab
|
2028 |
+
case 13: // enter
|
2029 |
+
case 27: // escape
|
2030 |
+
e.preventDefault()
|
2031 |
+
break
|
2032 |
+
|
2033 |
+
case 38: // up arrow
|
2034 |
+
e.preventDefault()
|
2035 |
+
this.prev()
|
2036 |
+
break
|
2037 |
+
|
2038 |
+
case 40: // down arrow
|
2039 |
+
e.preventDefault()
|
2040 |
+
this.next()
|
2041 |
+
break
|
2042 |
+
}
|
2043 |
+
|
2044 |
e.stopPropagation()
|
2045 |
+
}
|
2046 |
|
2047 |
+
, keydown: function (e) {
|
2048 |
+
this.suppressKeyPressRepeat = ~$.inArray(e.keyCode, [40,38,9,13,27])
|
2049 |
+
this.move(e)
|
2050 |
+
}
|
2051 |
+
|
2052 |
+
, keypress: function (e) {
|
2053 |
+
if (this.suppressKeyPressRepeat) return
|
2054 |
+
this.move(e)
|
2055 |
+
}
|
2056 |
+
|
2057 |
+
, keyup: function (e) {
|
2058 |
switch(e.keyCode) {
|
2059 |
case 40: // down arrow
|
2060 |
case 38: // up arrow
|
2061 |
+
case 16: // shift
|
2062 |
+
case 17: // ctrl
|
2063 |
+
case 18: // alt
|
2064 |
break
|
2065 |
|
2066 |
case 9: // tab
|
2070 |
break
|
2071 |
|
2072 |
case 27: // escape
|
2073 |
+
if (!this.shown) return
|
2074 |
this.hide()
|
2075 |
break
|
2076 |
|
2078 |
this.lookup()
|
2079 |
}
|
2080 |
|
|
|
|
|
|
|
2081 |
e.stopPropagation()
|
2082 |
+
e.preventDefault()
|
2083 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2084 |
|
2085 |
+
, focus: function (e) {
|
2086 |
+
this.focused = true
|
|
|
|
|
|
|
2087 |
}
|
2088 |
|
2089 |
, blur: function (e) {
|
2090 |
+
this.focused = false
|
2091 |
+
if (!this.mousedover && this.shown) this.hide()
|
|
|
|
|
2092 |
}
|
2093 |
|
2094 |
, click: function (e) {
|
2095 |
e.stopPropagation()
|
2096 |
e.preventDefault()
|
2097 |
this.select()
|
2098 |
+
this.$element.focus()
|
2099 |
}
|
2100 |
|
2101 |
, mouseenter: function (e) {
|
2102 |
+
this.mousedover = true
|
2103 |
this.$menu.find('.active').removeClass('active')
|
2104 |
$(e.currentTarget).addClass('active')
|
2105 |
}
|
2106 |
|
2107 |
+
, mouseleave: function (e) {
|
2108 |
+
this.mousedover = false
|
2109 |
+
if (!this.focused && this.shown) this.hide()
|
2110 |
+
}
|
2111 |
+
|
2112 |
}
|
2113 |
|
2114 |
|
2115 |
/* TYPEAHEAD PLUGIN DEFINITION
|
2116 |
* =========================== */
|
2117 |
|
2118 |
+
var old = $.fn.typeahead
|
2119 |
+
|
2120 |
+
$.fn.typeahead = function (option) {
|
2121 |
return this.each(function () {
|
2122 |
var $this = $(this)
|
2123 |
, data = $this.data('typeahead')
|
2132 |
, items: 8
|
2133 |
, menu: '<ul class="typeahead dropdown-menu"></ul>'
|
2134 |
, item: '<li><a href="#"></a></li>'
|
2135 |
+
, minLength: 1
|
2136 |
}
|
2137 |
|
2138 |
$.fn.typeahead.Constructor = Typeahead
|
2139 |
|
2140 |
|
2141 |
+
/* TYPEAHEAD NO CONFLICT
|
2142 |
+
* =================== */
|
2143 |
+
|
2144 |
+
$.fn.typeahead.noConflict = function () {
|
2145 |
+
$.fn.typeahead = old
|
2146 |
+
return this
|
2147 |
+
}
|
2148 |
+
|
2149 |
+
|
2150 |
/* TYPEAHEAD DATA-API
|
2151 |
* ================== */
|
2152 |
|
2153 |
+
$(document).on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
|
2154 |
+
var $this = $(this)
|
2155 |
+
if ($this.data('typeahead')) return
|
2156 |
+
$this.typeahead($this.data())
|
2157 |
+
})
|
2158 |
+
|
2159 |
+
}(window.jQuery);
|
2160 |
+
/* ==========================================================
|
2161 |
+
* bootstrap-affix.js v2.3.1
|
2162 |
+
* http://twitter.github.com/bootstrap/javascript.html#affix
|
2163 |
+
* ==========================================================
|
2164 |
+
* Copyright 2012 Twitter, Inc.
|
2165 |
+
*
|
2166 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
2167 |
+
* you may not use this file except in compliance with the License.
|
2168 |
+
* You may obtain a copy of the License at
|
2169 |
+
*
|
2170 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
2171 |
+
*
|
2172 |
+
* Unless required by applicable law or agreed to in writing, software
|
2173 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
2174 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
2175 |
+
* See the License for the specific language governing permissions and
|
2176 |
+
* limitations under the License.
|
2177 |
+
* ========================================================== */
|
2178 |
+
|
2179 |
+
|
2180 |
+
!function ($) {
|
2181 |
+
|
2182 |
+
"use strict"; // jshint ;_;
|
2183 |
+
|
2184 |
+
|
2185 |
+
/* AFFIX CLASS DEFINITION
|
2186 |
+
* ====================== */
|
2187 |
+
|
2188 |
+
var Affix = function (element, options) {
|
2189 |
+
this.options = $.extend({}, $.fn.affix.defaults, options)
|
2190 |
+
this.$window = $(window)
|
2191 |
+
.on('scroll.affix.data-api', $.proxy(this.checkPosition, this))
|
2192 |
+
.on('click.affix.data-api', $.proxy(function () { setTimeout($.proxy(this.checkPosition, this), 1) }, this))
|
2193 |
+
this.$element = $(element)
|
2194 |
+
this.checkPosition()
|
2195 |
+
}
|
2196 |
+
|
2197 |
+
Affix.prototype.checkPosition = function () {
|
2198 |
+
if (!this.$element.is(':visible')) return
|
2199 |
+
|
2200 |
+
var scrollHeight = $(document).height()
|
2201 |
+
, scrollTop = this.$window.scrollTop()
|
2202 |
+
, position = this.$element.offset()
|
2203 |
+
, offset = this.options.offset
|
2204 |
+
, offsetBottom = offset.bottom
|
2205 |
+
, offsetTop = offset.top
|
2206 |
+
, reset = 'affix affix-top affix-bottom'
|
2207 |
+
, affix
|
2208 |
+
|
2209 |
+
if (typeof offset != 'object') offsetBottom = offsetTop = offset
|
2210 |
+
if (typeof offsetTop == 'function') offsetTop = offset.top()
|
2211 |
+
if (typeof offsetBottom == 'function') offsetBottom = offset.bottom()
|
2212 |
+
|
2213 |
+
affix = this.unpin != null && (scrollTop + this.unpin <= position.top) ?
|
2214 |
+
false : offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ?
|
2215 |
+
'bottom' : offsetTop != null && scrollTop <= offsetTop ?
|
2216 |
+
'top' : false
|
2217 |
+
|
2218 |
+
if (this.affixed === affix) return
|
2219 |
+
|
2220 |
+
this.affixed = affix
|
2221 |
+
this.unpin = affix == 'bottom' ? position.top - scrollTop : null
|
2222 |
+
|
2223 |
+
this.$element.removeClass(reset).addClass('affix' + (affix ? '-' + affix : ''))
|
2224 |
+
}
|
2225 |
+
|
2226 |
+
|
2227 |
+
/* AFFIX PLUGIN DEFINITION
|
2228 |
+
* ======================= */
|
2229 |
+
|
2230 |
+
var old = $.fn.affix
|
2231 |
+
|
2232 |
+
$.fn.affix = function (option) {
|
2233 |
+
return this.each(function () {
|
2234 |
var $this = $(this)
|
2235 |
+
, data = $this.data('affix')
|
2236 |
+
, options = typeof option == 'object' && option
|
2237 |
+
if (!data) $this.data('affix', (data = new Affix(this, options)))
|
2238 |
+
if (typeof option == 'string') data[option]()
|
2239 |
+
})
|
2240 |
+
}
|
2241 |
+
|
2242 |
+
$.fn.affix.Constructor = Affix
|
2243 |
+
|
2244 |
+
$.fn.affix.defaults = {
|
2245 |
+
offset: 0
|
2246 |
+
}
|
2247 |
+
|
2248 |
+
|
2249 |
+
/* AFFIX NO CONFLICT
|
2250 |
+
* ================= */
|
2251 |
+
|
2252 |
+
$.fn.affix.noConflict = function () {
|
2253 |
+
$.fn.affix = old
|
2254 |
+
return this
|
2255 |
+
}
|
2256 |
+
|
2257 |
+
|
2258 |
+
/* AFFIX DATA-API
|
2259 |
+
* ============== */
|
2260 |
+
|
2261 |
+
$(window).on('load', function () {
|
2262 |
+
$('[data-spy="affix"]').each(function () {
|
2263 |
+
var $spy = $(this)
|
2264 |
+
, data = $spy.data()
|
2265 |
+
|
2266 |
+
data.offset = data.offset || {}
|
2267 |
+
|
2268 |
+
data.offsetBottom && (data.offset.bottom = data.offsetBottom)
|
2269 |
+
data.offsetTop && (data.offset.top = data.offsetTop)
|
2270 |
+
|
2271 |
+
$spy.affix(data)
|
2272 |
})
|
2273 |
})
|
2274 |
|
2275 |
+
|
2276 |
+
}(window.jQuery);
|
assets/js/bootstrap.min.js
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Bootstrap.js by @fat & @mdo
|
3 |
+
* Copyright 2012 Twitter, Inc.
|
4 |
+
* http://www.apache.org/licenses/LICENSE-2.0.txt
|
5 |
+
*/
|
6 |
+
!function(e){"use strict";e(function(){e.support.transition=function(){var e=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(e.style[n]!==undefined)return t[n]}();return e&&{end:e}}()})}(window.jQuery),!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed").remove()}var n=e(this),r=n.attr("data-target"),i;r||(r=n.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=e(r),t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=e.Event("close"));if(t.isDefaultPrevented())return;i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.on(e.support.transition.end,s):s()};var r=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("alert");i||r.data("alert",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.alert.data-api",t,n.prototype.close)}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.button.defaults,n)};t.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.data(),i=n.is("input")?"val":"html";e+="Text",r.resetText||n.data("resetText",n[i]()),n[i](r[e]||this.options[e]),setTimeout(function(){e=="loadingText"?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons-radio"]');e&&e.find(".active").removeClass("active"),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("button"),s=typeof n=="object"&&n;i||r.data("button",i=new t(this,s)),n=="toggle"?i.toggle():n&&i.setState(n)})},e.fn.button.defaults={loadingText:"loading..."},e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle")})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.options.pause=="hover"&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.prototype={cycle:function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},getActiveIndex:function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(t){var n=this.getActiveIndex(),r=this;if(t>this.$items.length-1||t<0)return;return this.sliding?this.$element.one("slid",function(){r.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",e(this.$items[t]))},pause:function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition.end&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(t,n){var r=this.$element.find(".item.active"),i=n||r[t](),s=this.interval,o=t=="next"?"left":"right",u=t=="next"?"first":"last",a=this,f;this.sliding=!0,s&&this.pause(),i=i.length?i:this.$element.find(".item")[u](),f=e.Event("slide",{relatedTarget:i[0],direction:o});if(i.hasClass("active"))return;this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var t=e(a.$indicators.children()[a.getActiveIndex()]);t&&t.addClass("active")}));if(e.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(f);if(f.isDefaultPrevented())return;i.addClass(t),i[0].offsetWidth,r.addClass(o),i.addClass(o),this.$element.one(e.support.transition.end,function(){i.removeClass([t,o].join(" ")).addClass("active"),r.removeClass(["active",o].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger("slid")},0)})}else{this.$element.trigger(f);if(f.isDefaultPrevented())return;r.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return s&&this.cycle(),this}};var n=e.fn.carousel;e.fn.carousel=function(n){return this.each(function(){var r=e(this),i=r.data("carousel"),s=e.extend({},e.fn.carousel.defaults,typeof n=="object"&&n),o=typeof n=="string"?n:s.slide;i||r.data("carousel",i=new t(this,s)),typeof n=="number"?i.to(n):o?i[o]():s.interval&&i.pause().cycle()})},e.fn.carousel.defaults={interval:5e3,pause:"hover"},e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this},e(document).on("click.carousel.data-api","[data-slide], [data-slide-to]",function(t){var n=e(this),r,i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")),s=e.extend({},i.data(),n.data()),o;i.carousel(s),(o=n.attr("data-slide-to"))&&i.data("carousel").pause().to(o).cycle(),t.preventDefault()})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.collapse.defaults,n),this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};t.prototype={constructor:t,dimension:function(){var e=this.$element.hasClass("width");return e?"width":"height"},show:function(){var t,n,r,i;if(this.transitioning||this.$element.hasClass("in"))return;t=this.dimension(),n=e.camelCase(["scroll",t].join("-")),r=this.$parent&&this.$parent.find("> .accordion-group > .in");if(r&&r.length){i=r.data("collapse");if(i&&i.transitioning)return;r.collapse("hide"),i||r.data("collapse",null)}this.$element[t](0),this.transition("addClass",e.Event("show"),"shown"),e.support.transition&&this.$element[t](this.$element[0][n])},hide:function(){var t;if(this.transitioning||!this.$element.hasClass("in"))return;t=this.dimension(),this.reset(this.$element[t]()),this.transition("removeClass",e.Event("hide"),"hidden"),this.$element[t](0)},reset:function(e){var t=this.dimension();return this.$element.removeClass("collapse")[t](e||"auto")[0].offsetWidth,this.$element[e!==null?"addClass":"removeClass"]("collapse"),this},transition:function(t,n,r){var i=this,s=function(){n.type=="show"&&i.reset(),i.transitioning=0,i.$element.trigger(r)};this.$element.trigger(n);if(n.isDefaultPrevented())return;this.transitioning=1,this.$element[t]("in"),e.support.transition&&this.$element.hasClass("collapse")?this.$element.one(e.support.transition.end,s):s()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var n=e.fn.collapse;e.fn.collapse=function(n){return this.each(function(){var r=e(this),i=r.data("collapse"),s=e.extend({},e.fn.collapse.defaults,r.data(),typeof n=="object"&&n);i||r.data("collapse",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.collapse.defaults={toggle:!0},e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=n,this},e(document).on("click.collapse.data-api","[data-toggle=collapse]",function(t){var n=e(this),r,i=n.attr("data-target")||t.preventDefault()||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""),s=e(i).data("collapse")?"toggle":n.data();n[e(i).hasClass("in")?"addClass":"removeClass"]("collapsed"),e(i).collapse(s)})}(window.jQuery),!function(e){"use strict";function r(){e(t).each(function(){i(e(this)).removeClass("open")})}function i(t){var n=t.attr("data-target"),r;n||(n=t.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")),r=n&&e(n);if(!r||!r.length)r=t.parent();return r}var t="[data-toggle=dropdown]",n=function(t){var n=e(t).on("click.dropdown.data-api",this.toggle);e("html").on("click.dropdown.data-api",function(){n.parent().removeClass("open")})};n.prototype={constructor:n,toggle:function(t){var n=e(this),s,o;if(n.is(".disabled, :disabled"))return;return s=i(n),o=s.hasClass("open"),r(),o||s.toggleClass("open"),n.focus(),!1},keydown:function(n){var r,s,o,u,a,f;if(!/(38|40|27)/.test(n.keyCode))return;r=e(this),n.preventDefault(),n.stopPropagation();if(r.is(".disabled, :disabled"))return;u=i(r),a=u.hasClass("open");if(!a||a&&n.keyCode==27)return n.which==27&&u.find(t).focus(),r.click();s=e("[role=menu] li:not(.divider):visible a",u);if(!s.length)return;f=s.index(s.filter(":focus")),n.keyCode==38&&f>0&&f--,n.keyCode==40&&f<s.length-1&&f++,~f||(f=0),s.eq(f).focus()}};var s=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var r=e(this),i=r.data("dropdown");i||r.data("dropdown",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.dropdown.Constructor=n,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=s,this},e(document).on("click.dropdown.data-api",r).on("click.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.dropdown-menu",function(e){e.stopPropagation()}).on("click.dropdown.data-api",t,n.prototype.toggle).on("keydown.dropdown.data-api",t+", [role=menu]",n.prototype.keydown)}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.options=n,this.$element=e(t).delegate('[data-dismiss="modal"]',"click.dismiss.modal",e.proxy(this.hide,this)),this.options.remote&&this.$element.find(".modal-body").load(this.options.remote)};t.prototype={constructor:t,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var t=this,n=e.Event("show");this.$element.trigger(n);if(this.isShown||n.isDefaultPrevented())return;this.isShown=!0,this.escape(),this.backdrop(function(){var n=e.support.transition&&t.$element.hasClass("fade");t.$element.parent().length||t.$element.appendTo(document.body),t.$element.show(),n&&t.$element[0].offsetWidth,t.$element.addClass("in").attr("aria-hidden",!1),t.enforceFocus(),n?t.$element.one(e.support.transition.end,function(){t.$element.focus().trigger("shown")}):t.$element.focus().trigger("shown")})},hide:function(t){t&&t.preventDefault();var n=this;t=e.Event("hide"),this.$element.trigger(t);if(!this.isShown||t.isDefaultPrevented())return;this.isShown=!1,this.escape(),e(document).off("focusin.modal"),this.$element.removeClass("in").attr("aria-hidden",!0),e.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal()},enforceFocus:function(){var t=this;e(document).on("focusin.modal",function(e){t.$element[0]!==e.target&&!t.$element.has(e.target).length&&t.$element.focus()})},escape:function(){var e=this;this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.modal",function(t){t.which==27&&e.hide()}):this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var t=this,n=setTimeout(function(){t.$element.off(e.support.transition.end),t.hideModal()},500);this.$element.one(e.support.transition.end,function(){clearTimeout(n),t.hideModal()})},hideModal:function(){var e=this;this.$element.hide(),this.backdrop(function(){e.removeBackdrop(),e.$element.trigger("hidden")})},removeBackdrop:function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},backdrop:function(t){var n=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=e.support.transition&&r;this.$backdrop=e('<div class="modal-backdrop '+r+'" />').appendTo(document.body),this.$backdrop.click(this.options.backdrop=="static"?e.proxy(this.$element[0].focus,this.$element[0]):e.proxy(this.hide,this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in");if(!t)return;i?this.$backdrop.one(e.support.transition.end,t):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,t):t()):t&&t()}};var n=e.fn.modal;e.fn.modal=function(n){return this.each(function(){var r=e(this),i=r.data("modal"),s=e.extend({},e.fn.modal.defaults,r.data(),typeof n=="object"&&n);i||r.data("modal",i=new t(this,s)),typeof n=="string"?i[n]():s.show&&i.show()})},e.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),r=n.attr("href"),i=e(n.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),s=i.data("modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},i.data(),n.data());t.preventDefault(),i.modal(s).one("hide",function(){n.focus()})})}(window.jQuery),!function(e){"use strict";var t=function(e,t){this.init("tooltip",e,t)};t.prototype={constructor:t,init:function(t,n,r){var i,s,o,u,a;this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.enabled=!0,o=this.options.trigger.split(" ");for(a=o.length;a--;)u=o[a],u=="click"?this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this)):u!="manual"&&(i=u=="hover"?"mouseenter":"focus",s=u=="hover"?"mouseleave":"blur",this.$element.on(i+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.leave,this)));this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){return t=e.extend({},e.fn[this.type].defaults,this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var n=e.fn[this.type].defaults,r={},i;this._options&&e.each(this._options,function(e,t){n[e]!=t&&(r[e]=t)},this),i=e(t.currentTarget)[this.type](r).data(this.type);if(!i.options.delay||!i.options.delay.show)return i.show();clearTimeout(this.timeout),i.hoverState="in",this.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)},leave:function(t){var n=e(t.currentTarget)[this.type](this._options).data(this.type);this.timeout&&clearTimeout(this.timeout);if(!n.options.delay||!n.options.delay.hide)return n.hide();n.hoverState="out",this.timeout=setTimeout(function(){n.hoverState=="out"&&n.hide()},n.options.delay.hide)},show:function(){var t,n,r,i,s,o,u=e.Event("show");if(this.hasContent()&&this.enabled){this.$element.trigger(u);if(u.isDefaultPrevented())return;t=this.tip(),this.setContent(),this.options.animation&&t.addClass("fade"),s=typeof this.options.placement=="function"?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,t.detach().css({top:0,left:0,display:"block"}),this.options.container?t.appendTo(this.options.container):t.insertAfter(this.$element),n=this.getPosition(),r=t[0].offsetWidth,i=t[0].offsetHeight;switch(s){case"bottom":o={top:n.top+n.height,left:n.left+n.width/2-r/2};break;case"top":o={top:n.top-i,left:n.left+n.width/2-r/2};break;case"left":o={top:n.top+n.height/2-i/2,left:n.left-r};break;case"right":o={top:n.top+n.height/2-i/2,left:n.left+n.width}}this.applyPlacement(o,s),this.$element.trigger("shown")}},applyPlacement:function(e,t){var n=this.tip(),r=n[0].offsetWidth,i=n[0].offsetHeight,s,o,u,a;n.offset(e).addClass(t).addClass("in"),s=n[0].offsetWidth,o=n[0].offsetHeight,t=="top"&&o!=i&&(e.top=e.top+i-o,a=!0),t=="bottom"||t=="top"?(u=0,e.left<0&&(u=e.left*-2,e.left=0,n.offset(e),s=n[0].offsetWidth,o=n[0].offsetHeight),this.replaceArrow(u-r+s,s,"left")):this.replaceArrow(o-i,o,"top"),a&&n.offset(e)},replaceArrow:function(e,t,n){this.arrow().css(n,e?50*(1-e/t)+"%":"")},setContent:function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},hide:function(){function i(){var t=setTimeout(function(){n.off(e.support.transition.end).detach()},500);n.one(e.support.transition.end,function(){clearTimeout(t),n.detach()})}var t=this,n=this.tip(),r=e.Event("hide");this.$element.trigger(r);if(r.isDefaultPrevented())return;return n.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?i():n.detach(),this.$element.trigger("hidden"),this},fixTitle:function(){var e=this.$element;(e.attr("title")||typeof e.attr("data-original-title")!="string")&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},hasContent:function(){return this.getTitle()},getPosition:function(){var t=this.$element[0];return e.extend({},typeof t.getBoundingClientRect=="function"?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},getTitle:function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title),e},tip:function(){return this.$tip=this.$tip||e(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(t){var n=t?e(t.currentTarget)[this.type](this._options).data(this.type):this;n.tip().hasClass("in")?n.hide():n.show()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var r=e(this),i=r.data("tooltip"),s=typeof n=="object"&&n;i||r.data("tooltip",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.tooltip.Constructor=t,e.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,this}}(window.jQuery),!function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype,{constructor:t,setContent:function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content")[this.options.html?"html":"text"](n),e.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var e,t=this.$element,n=this.options;return e=(typeof n.content=="function"?n.content.call(t[0]):n.content)||t.attr("data-content"),e},tip:function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});var n=e.fn.popover;e.fn.popover=function(n){return this.each(function(){var r=e(this),i=r.data("popover"),s=typeof n=="object"&&n;i||r.data("popover",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.popover.Constructor=t,e.fn.popover.defaults=e.extend({},e.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(window.jQuery),!function(e){"use strict";function t(t,n){var r=e.proxy(this.process,this),i=e(t).is("body")?e(window):e(t),s;this.options=e.extend({},e.fn.scrollspy.defaults,n),this.$scrollElement=i.on("scroll.scroll-spy.data-api",r),this.selector=(this.options.target||(s=e(t).attr("href"))&&s.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=e("body"),this.refresh(),this.process()}t.prototype={constructor:t,refresh:function(){var t=this,n;this.offsets=e([]),this.targets=e([]),n=this.$body.find(this.selector).map(function(){var n=e(this),r=n.data("target")||n.attr("href"),i=/^#\w/.test(r)&&e(r);return i&&i.length&&[[i.position().top+(!e.isWindow(t.$scrollElement.get(0))&&t.$scrollElement.scrollTop()),r]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},process:function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,n=t-this.$scrollElement.height(),r=this.offsets,i=this.targets,s=this.activeTarget,o;if(e>=n)return s!=(o=i.last()[0])&&this.activate(o);for(o=r.length;o--;)s!=i[o]&&e>=r[o]&&(!r[o+1]||e<=r[o+1])&&this.activate(i[o])},activate:function(t){var n,r;this.activeTarget=t,e(this.selector).parent(".active").removeClass("active"),r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(r).parent("li").addClass("active"),n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate")}};var n=e.fn.scrollspy;e.fn.scrollspy=function(n){return this.each(function(){var r=e(this),i=r.data("scrollspy"),s=typeof n=="object"&&n;i||r.data("scrollspy",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.scrollspy.Constructor=t,e.fn.scrollspy.defaults={offset:10},e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=n,this},e(window).on("load",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);t.scrollspy(t.data())})})}(window.jQuery),!function(e){"use strict";var t=function(t){this.element=e(t)};t.prototype={constructor:t,show:function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),r=t.attr("data-target"),i,s,o;r||(r=t.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));if(t.parent("li").hasClass("active"))return;i=n.find(".active:last a")[0],o=e.Event("show",{relatedTarget:i}),t.trigger(o);if(o.isDefaultPrevented())return;s=e(r),this.activate(t.parent("li"),n),this.activate(s,s.parent(),function(){t.trigger({type:"shown",relatedTarget:i})})},activate:function(t,n,r){function o(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),r&&r()}var i=n.find("> .active"),s=r&&e.support.transition&&i.hasClass("fade");s?i.one(e.support.transition.end,o):o(),i.removeClass("in")}};var n=e.fn.tab;e.fn.tab=function(n){return this.each(function(){var r=e(this),i=r.data("tab");i||r.data("tab",i=new t(this)),typeof n=="string"&&i[n]()})},e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=n,this},e(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),e(this).tab("show")})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.typeahead.defaults,n),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.source=this.options.source,this.$menu=e(this.options.menu),this.shown=!1,this.listen()};t.prototype={constructor:t,select:function(){var e=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(e)).change(),this.hide()},updater:function(e){return e},show:function(){var t=e.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});return this.$menu.insertAfter(this.$element).css({top:t.top+t.height,left:t.left}).show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(t){var n;return this.query=this.$element.val(),!this.query||this.query.length<this.options.minLength?this.shown?this.hide():this:(n=e.isFunction(this.source)?this.source(this.query,e.proxy(this.process,this)):this.source,n?this.process(n):this)},process:function(t){var n=this;return t=e.grep(t,function(e){return n.matcher(e)}),t=this.sorter(t),t.length?this.render(t.slice(0,this.options.items)).show():this.shown?this.hide():this},matcher:function(e){return~e.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(e){var t=[],n=[],r=[],i;while(i=e.shift())i.toLowerCase().indexOf(this.query.toLowerCase())?~i.indexOf(this.query)?n.push(i):r.push(i):t.push(i);return t.concat(n,r)},highlighter:function(e){var t=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return e.replace(new RegExp("("+t+")","ig"),function(e,t){return"<strong>"+t+"</strong>"})},render:function(t){var n=this;return t=e(t).map(function(t,r){return t=e(n.options.item).attr("data-value",r),t.find("a").html(n.highlighter(r)),t[0]}),t.first().addClass("active"),this.$menu.html(t),this},next:function(t){var n=this.$menu.find(".active").removeClass("active"),r=n.next();r.length||(r=e(this.$menu.find("li")[0])),r.addClass("active")},prev:function(e){var t=this.$menu.find(".active").removeClass("active"),n=t.prev();n.length||(n=this.$menu.find("li").last()),n.addClass("active")},listen:function(){this.$element.on("focus",e.proxy(this.focus,this)).on("blur",e.proxy(this.blur,this)).on("keypress",e.proxy(this.keypress,this)).on("keyup",e.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",e.proxy(this.keydown,this)),this.$menu.on("click",e.proxy(this.click,this)).on("mouseenter","li",e.proxy(this.mouseenter,this)).on("mouseleave","li",e.proxy(this.mouseleave,this))},eventSupported:function(e){var t=e in this.$element;return t||(this.$element.setAttribute(e,"return;"),t=typeof this.$element[e]=="function"),t},move:function(e){if(!this.shown)return;switch(e.keyCode){case 9:case 13:case 27:e.preventDefault();break;case 38:e.preventDefault(),this.prev();break;case 40:e.preventDefault(),this.next()}e.stopPropagation()},keydown:function(t){this.suppressKeyPressRepeat=~e.inArray(t.keyCode,[40,38,9,13,27]),this.move(t)},keypress:function(e){if(this.suppressKeyPressRepeat)return;this.move(e)},keyup:function(e){switch(e.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}e.stopPropagation(),e.preventDefault()},focus:function(e){this.focused=!0},blur:function(e){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(e){e.stopPropagation(),e.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(t){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),e(t.currentTarget).addClass("active")},mouseleave:function(e){this.mousedover=!1,!this.focused&&this.shown&&this.hide()}};var n=e.fn.typeahead;e.fn.typeahead=function(n){return this.each(function(){var r=e(this),i=r.data("typeahead"),s=typeof n=="object"&&n;i||r.data("typeahead",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"></ul>',item:'<li><a href="#"></a></li>',minLength:1},e.fn.typeahead.Constructor=t,e.fn.typeahead.noConflict=function(){return e.fn.typeahead=n,this},e(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(t){var n=e(this);if(n.data("typeahead"))return;n.typeahead(n.data())})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.options=e.extend({},e.fn.affix.defaults,n),this.$window=e(window).on("scroll.affix.data-api",e.proxy(this.checkPosition,this)).on("click.affix.data-api",e.proxy(function(){setTimeout(e.proxy(this.checkPosition,this),1)},this)),this.$element=e(t),this.checkPosition()};t.prototype.checkPosition=function(){if(!this.$element.is(":visible"))return;var t=e(document).height(),n=this.$window.scrollTop(),r=this.$element.offset(),i=this.options.offset,s=i.bottom,o=i.top,u="affix affix-top affix-bottom",a;typeof i!="object"&&(s=o=i),typeof o=="function"&&(o=i.top()),typeof s=="function"&&(s=i.bottom()),a=this.unpin!=null&&n+this.unpin<=r.top?!1:s!=null&&r.top+this.$element.height()>=t-s?"bottom":o!=null&&n<=o?"top":!1;if(this.affixed===a)return;this.affixed=a,this.unpin=a=="bottom"?r.top-n:null,this.$element.removeClass(u).addClass("affix"+(a?"-"+a:""))};var n=e.fn.affix;e.fn.affix=function(n){return this.each(function(){var r=e(this),i=r.data("affix"),s=typeof n=="object"&&n;i||r.data("affix",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.affix.Constructor=t,e.fn.affix.defaults={offset:0},e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),n=t.data();n.offset=n.offset||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),t.affix(n)})})}(window.jQuery);
|
assets/js/index.html
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<html>
|
2 |
+
<head>
|
3 |
+
<meta http-equiv="refresh" content="0; url=http://www.shareaholic.com">
|
4 |
+
</head>
|
5 |
+
<body>
|
6 |
+
Redirecting you now...
|
7 |
+
</body>
|
8 |
+
</html>
|
assets/js/jquery-1.4.4.min.js
ADDED
@@ -0,0 +1,167 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* jQuery JavaScript Library v1.4.4
|
3 |
+
* http://jquery.com/
|
4 |
+
*
|
5 |
+
* Copyright 2010, John Resig
|
6 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
7 |
+
* http://jquery.org/license
|
8 |
+
*
|
9 |
+
* Includes Sizzle.js
|
10 |
+
* http://sizzlejs.com/
|
11 |
+
* Copyright 2010, The Dojo Foundation
|
12 |
+
* Released under the MIT, BSD, and GPL Licenses.
|
13 |
+
*
|
14 |
+
* Date: Thu Nov 11 19:04:53 2010 -0500
|
15 |
+
*/
|
16 |
+
(function(E,B){function ka(a,b,d){if(d===B&&a.nodeType===1){d=a.getAttribute("data-"+b);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):Ja.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=B}return d}function U(){return false}function ca(){return true}function la(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ka(a){var b,d,e,f,h,l,k,o,x,r,A,C=[];f=[];h=c.data(this,this.nodeType?"events":"__events__");if(typeof h==="function")h=
|
17 |
+
h.events;if(!(a.liveFired===this||!h||!h.live||a.button&&a.type==="click")){if(a.namespace)A=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var J=h.live.slice(0);for(k=0;k<J.length;k++){h=J[k];h.origType.replace(X,"")===a.type?f.push(h.selector):J.splice(k--,1)}f=c(a.target).closest(f,a.currentTarget);o=0;for(x=f.length;o<x;o++){r=f[o];for(k=0;k<J.length;k++){h=J[k];if(r.selector===h.selector&&(!A||A.test(h.namespace))){l=r.elem;e=null;if(h.preType==="mouseenter"||
|
18 |
+
h.preType==="mouseleave"){a.type=h.preType;e=c(a.relatedTarget).closest(h.selector)[0]}if(!e||e!==l)C.push({elem:l,handleObj:h,level:r.level})}}}o=0;for(x=C.length;o<x;o++){f=C[o];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;A=f.handleObj.origHandler.apply(f.elem,arguments);if(A===false||a.isPropagationStopped()){d=f.level;if(A===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function Y(a,b){return(a&&a!=="*"?a+".":"")+b.replace(La,
|
19 |
+
"`").replace(Ma,"&")}function ma(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Na.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function na(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this,
|
20 |
+
e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var l in e[h])c.event.add(this,h,e[h][l],e[h][l].data)}}})}function Oa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?Pa:Qa,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a,
|
21 |
+
"margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function da(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||Ra.test(a)?e(a,h):da(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?e(a,""):c.each(b,function(f,h){da(a+"["+f+"]",h,d,e)});else e(a,b)}function S(a,b){var d={};c.each(pa.concat.apply([],pa.slice(0,b)),function(){d[this]=a});return d}function qa(a){if(!ea[a]){var b=c("<"+
|
22 |
+
a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";ea[a]=d}return ea[a]}function fa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var t=E.document,c=function(){function a(){if(!b.isReady){try{t.documentElement.doScroll("left")}catch(j){setTimeout(a,1);return}b.ready()}}var b=function(j,s){return new b.fn.init(j,s)},d=E.jQuery,e=E.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,l=/\S/,k=/^\s+/,o=/\s+$/,x=/\W/,r=/\d/,A=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,
|
23 |
+
C=/^[\],:{}\s]*$/,J=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,w=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I=/(?:^|:|,)(?:\s*\[)+/g,L=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,m=navigator.userAgent,p=false,q=[],u,y=Object.prototype.toString,F=Object.prototype.hasOwnProperty,M=Array.prototype.push,N=Array.prototype.slice,O=String.prototype.trim,D=Array.prototype.indexOf,R={};b.fn=b.prototype={init:function(j,
|
24 |
+
s){var v,z,H;if(!j)return this;if(j.nodeType){this.context=this[0]=j;this.length=1;return this}if(j==="body"&&!s&&t.body){this.context=t;this[0]=t.body;this.selector="body";this.length=1;return this}if(typeof j==="string")if((v=h.exec(j))&&(v[1]||!s))if(v[1]){H=s?s.ownerDocument||s:t;if(z=A.exec(j))if(b.isPlainObject(s)){j=[t.createElement(z[1])];b.fn.attr.call(j,s,true)}else j=[H.createElement(z[1])];else{z=b.buildFragment([v[1]],[H]);j=(z.cacheable?z.fragment.cloneNode(true):z.fragment).childNodes}return b.merge(this,
|
25 |
+
j)}else{if((z=t.getElementById(v[2]))&&z.parentNode){if(z.id!==v[2])return f.find(j);this.length=1;this[0]=z}this.context=t;this.selector=j;return this}else if(!s&&!x.test(j)){this.selector=j;this.context=t;j=t.getElementsByTagName(j);return b.merge(this,j)}else return!s||s.jquery?(s||f).find(j):b(s).find(j);else if(b.isFunction(j))return f.ready(j);if(j.selector!==B){this.selector=j.selector;this.context=j.context}return b.makeArray(j,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},
|
26 |
+
toArray:function(){return N.call(this,0)},get:function(j){return j==null?this.toArray():j<0?this.slice(j)[0]:this[j]},pushStack:function(j,s,v){var z=b();b.isArray(j)?M.apply(z,j):b.merge(z,j);z.prevObject=this;z.context=this.context;if(s==="find")z.selector=this.selector+(this.selector?" ":"")+v;else if(s)z.selector=this.selector+"."+s+"("+v+")";return z},each:function(j,s){return b.each(this,j,s)},ready:function(j){b.bindReady();if(b.isReady)j.call(t,b);else q&&q.push(j);return this},eq:function(j){return j===
|
27 |
+
-1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false;
|
28 |
+
if(typeof G==="boolean"){ga=G;G=arguments[1]||{};K=2}if(typeof G!=="object"&&!b.isFunction(G))G={};if(Q===K){G=this;--K}for(;K<Q;K++)if((j=arguments[K])!=null)for(s in j){v=G[s];z=j[s];if(G!==z)if(ga&&z&&(b.isPlainObject(z)||(H=b.isArray(z)))){if(H){H=false;v=v&&b.isArray(v)?v:[]}else v=v&&b.isPlainObject(v)?v:{};G[s]=b.extend(ga,v,z)}else if(z!==B)G[s]=z}return G};b.extend({noConflict:function(j){E.$=e;if(j)E.jQuery=d;return b},isReady:false,readyWait:1,ready:function(j){j===true&&b.readyWait--;
|
29 |
+
if(!b.readyWait||j!==true&&!b.isReady){if(!t.body)return setTimeout(b.ready,1);b.isReady=true;if(!(j!==true&&--b.readyWait>0))if(q){var s=0,v=q;for(q=null;j=v[s++];)j.call(t,b);b.fn.trigger&&b(t).trigger("ready").unbind("ready")}}},bindReady:function(){if(!p){p=true;if(t.readyState==="complete")return setTimeout(b.ready,1);if(t.addEventListener){t.addEventListener("DOMContentLoaded",u,false);E.addEventListener("load",b.ready,false)}else if(t.attachEvent){t.attachEvent("onreadystatechange",u);E.attachEvent("onload",
|
30 |
+
b.ready);var j=false;try{j=E.frameElement==null}catch(s){}t.documentElement.doScroll&&j&&a()}}},isFunction:function(j){return b.type(j)==="function"},isArray:Array.isArray||function(j){return b.type(j)==="array"},isWindow:function(j){return j&&typeof j==="object"&&"setInterval"in j},isNaN:function(j){return j==null||!r.test(j)||isNaN(j)},type:function(j){return j==null?String(j):R[y.call(j)]||"object"},isPlainObject:function(j){if(!j||b.type(j)!=="object"||j.nodeType||b.isWindow(j))return false;if(j.constructor&&
|
31 |
+
!F.call(j,"constructor")&&!F.call(j.constructor.prototype,"isPrototypeOf"))return false;for(var s in j);return s===B||F.call(j,s)},isEmptyObject:function(j){for(var s in j)return false;return true},error:function(j){throw j;},parseJSON:function(j){if(typeof j!=="string"||!j)return null;j=b.trim(j);if(C.test(j.replace(J,"@").replace(w,"]").replace(I,"")))return E.JSON&&E.JSON.parse?E.JSON.parse(j):(new Function("return "+j))();else b.error("Invalid JSON: "+j)},noop:function(){},globalEval:function(j){if(j&&
|
32 |
+
l.test(j)){var s=t.getElementsByTagName("head")[0]||t.documentElement,v=t.createElement("script");v.type="text/javascript";if(b.support.scriptEval)v.appendChild(t.createTextNode(j));else v.text=j;s.insertBefore(v,s.firstChild);s.removeChild(v)}},nodeName:function(j,s){return j.nodeName&&j.nodeName.toUpperCase()===s.toUpperCase()},each:function(j,s,v){var z,H=0,G=j.length,K=G===B||b.isFunction(j);if(v)if(K)for(z in j){if(s.apply(j[z],v)===false)break}else for(;H<G;){if(s.apply(j[H++],v)===false)break}else if(K)for(z in j){if(s.call(j[z],
|
33 |
+
z,j[z])===false)break}else for(v=j[0];H<G&&s.call(v,H,v)!==false;v=j[++H]);return j},trim:O?function(j){return j==null?"":O.call(j)}:function(j){return j==null?"":j.toString().replace(k,"").replace(o,"")},makeArray:function(j,s){var v=s||[];if(j!=null){var z=b.type(j);j.length==null||z==="string"||z==="function"||z==="regexp"||b.isWindow(j)?M.call(v,j):b.merge(v,j)}return v},inArray:function(j,s){if(s.indexOf)return s.indexOf(j);for(var v=0,z=s.length;v<z;v++)if(s[v]===j)return v;return-1},merge:function(j,
|
34 |
+
s){var v=j.length,z=0;if(typeof s.length==="number")for(var H=s.length;z<H;z++)j[v++]=s[z];else for(;s[z]!==B;)j[v++]=s[z++];j.length=v;return j},grep:function(j,s,v){var z=[],H;v=!!v;for(var G=0,K=j.length;G<K;G++){H=!!s(j[G],G);v!==H&&z.push(j[G])}return z},map:function(j,s,v){for(var z=[],H,G=0,K=j.length;G<K;G++){H=s(j[G],G,v);if(H!=null)z[z.length]=H}return z.concat.apply([],z)},guid:1,proxy:function(j,s,v){if(arguments.length===2)if(typeof s==="string"){v=j;j=v[s];s=B}else if(s&&!b.isFunction(s)){v=
|
35 |
+
s;s=B}if(!s&&j)s=function(){return j.apply(v||this,arguments)};if(j)s.guid=j.guid=j.guid||s.guid||b.guid++;return s},access:function(j,s,v,z,H,G){var K=j.length;if(typeof s==="object"){for(var Q in s)b.access(j,Q,s[Q],z,H,v);return j}if(v!==B){z=!G&&z&&b.isFunction(v);for(Q=0;Q<K;Q++)H(j[Q],s,z?v.call(j[Q],Q,H(j[Q],s)):v,G);return j}return K?H(j[0],s):B},now:function(){return(new Date).getTime()},uaMatch:function(j){j=j.toLowerCase();j=L.exec(j)||g.exec(j)||i.exec(j)||j.indexOf("compatible")<0&&n.exec(j)||
|
36 |
+
[];return{browser:j[1]||"",version:j[2]||"0"}},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(j,s){R["[object "+s+"]"]=s.toLowerCase()});m=b.uaMatch(m);if(m.browser){b.browser[m.browser]=true;b.browser.version=m.version}if(b.browser.webkit)b.browser.safari=true;if(D)b.inArray=function(j,s){return D.call(s,j)};if(!/\s/.test("\u00a0")){k=/^[\s\xA0]+/;o=/[\s\xA0]+$/}f=b(t);if(t.addEventListener)u=function(){t.removeEventListener("DOMContentLoaded",u,
|
37 |
+
false);b.ready()};else if(t.attachEvent)u=function(){if(t.readyState==="complete"){t.detachEvent("onreadystatechange",u);b.ready()}};return E.jQuery=E.$=b}();(function(){c.support={};var a=t.documentElement,b=t.createElement("script"),d=t.createElement("div"),e="script"+c.now();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0],l=t.createElement("select"),
|
38 |
+
k=l.appendChild(t.createElement("option"));if(!(!f||!f.length||!h)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:k.selected,deleteExpando:true,optDisabled:false,checkClone:false,
|
39 |
+
scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};l.disabled=true;c.support.optDisabled=!k.disabled;b.type="text/javascript";try{b.appendChild(t.createTextNode("window."+e+"=1;"))}catch(o){}a.insertBefore(b,a.firstChild);if(E[e]){c.support.scriptEval=true;delete E[e]}try{delete b.test}catch(x){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function r(){c.support.noCloneEvent=
|
40 |
+
false;d.detachEvent("onclick",r)});d.cloneNode(true).fireEvent("onclick")}d=t.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=t.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var r=t.createElement("div");r.style.width=r.style.paddingLeft="1px";t.body.appendChild(r);c.boxModel=c.support.boxModel=r.offsetWidth===2;if("zoom"in r.style){r.style.display="inline";r.style.zoom=
|
41 |
+
1;c.support.inlineBlockNeedsLayout=r.offsetWidth===2;r.style.display="";r.innerHTML="<div style='width:4px;'></div>";c.support.shrinkWrapBlocks=r.offsetWidth!==2}r.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var A=r.getElementsByTagName("td");c.support.reliableHiddenOffsets=A[0].offsetHeight===0;A[0].style.display="";A[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&A[0].offsetHeight===0;r.innerHTML="";t.body.removeChild(r).style.display=
|
42 |
+
"none"});a=function(r){var A=t.createElement("div");r="on"+r;var C=r in A;if(!C){A.setAttribute(r,"return;");C=typeof A[r]==="function"}return C};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=h=null}})();var ra={},Ja=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,d){if(c.acceptData(a)){a=a==E?ra:a;var e=a.nodeType,f=e?a[c.expando]:null,h=
|
43 |
+
c.cache;if(!(e&&!f&&typeof b==="string"&&d===B)){if(e)f||(a[c.expando]=f=++c.uuid);else h=a;if(typeof b==="object")if(e)h[f]=c.extend(h[f],b);else c.extend(h,b);else if(e&&!h[f])h[f]={};a=e?h[f]:h;if(d!==B)a[b]=d;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(c.acceptData(a)){a=a==E?ra:a;var d=a.nodeType,e=d?a[c.expando]:a,f=c.cache,h=d?f[e]:e;if(b){if(h){delete h[b];d&&c.isEmptyObject(h)&&c.removeData(a)}}else if(d&&c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando);
|
44 |
+
else if(d)delete f[e];else for(var l in a)delete a[l]}},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){var d=null;if(typeof a==="undefined"){if(this.length){var e=this[0].attributes,f;d=c.data(this[0]);for(var h=0,l=e.length;h<l;h++){f=e[h].name;if(f.indexOf("data-")===0){f=f.substr(5);ka(this[0],f,d[f])}}}return d}else if(typeof a==="object")return this.each(function(){c.data(this,
|
45 |
+
a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(b===B){d=this.triggerHandler("getData"+k[1]+"!",[k[0]]);if(d===B&&this.length){d=c.data(this[0],a);d=ka(this[0],a,d)}return d===B&&k[1]?this.data(k[0]):d}else return this.each(function(){var o=c(this),x=[k[0],b];o.triggerHandler("setData"+k[1]+"!",x);c.data(this,a,b);o.triggerHandler("changeData"+k[1]+"!",x)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=
|
46 |
+
c.data(a,b);if(!d)return e||[];if(!e||c.isArray(d))e=c.data(a,b,c.makeArray(d));else e.push(d);return e}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift();if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===B)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,
|
47 |
+
a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var sa=/[\n\t]/g,ha=/\s+/,Sa=/\r/g,Ta=/^(?:href|src|style)$/,Ua=/^(?:button|input)$/i,Va=/^(?:button|input|object|select|textarea)$/i,Wa=/^a(?:rea)?$/i,ta=/^(?:radio|checkbox)$/i;c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",
|
48 |
+
colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(x){var r=c(this);r.addClass(a.call(this,x,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ha),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===
|
49 |
+
1)if(f.className){for(var h=" "+f.className+" ",l=f.className,k=0,o=b.length;k<o;k++)if(h.indexOf(" "+b[k]+" ")<0)l+=" "+b[k];f.className=c.trim(l)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(o){var x=c(this);x.removeClass(a.call(this,o,x.attr("class")))});if(a&&typeof a==="string"||a===B)for(var b=(a||"").split(ha),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1&&f.className)if(a){for(var h=(" "+f.className+" ").replace(sa," "),
|
50 |
+
l=0,k=b.length;l<k;l++)h=h.replace(" "+b[l]+" "," ");f.className=c.trim(h)}else f.className=""}return this},toggleClass:function(a,b){var d=typeof a,e=typeof b==="boolean";if(c.isFunction(a))return this.each(function(f){var h=c(this);h.toggleClass(a.call(this,f,h.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var f,h=0,l=c(this),k=b,o=a.split(ha);f=o[h++];){k=e?k:!l.hasClass(f);l[k?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,
|
51 |
+
"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(sa," ").indexOf(a)>-1)return true;return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex;d=[];var f=b.options;b=b.type==="select-one";
|
52 |
+
if(e<0)return null;var h=b?e:0;for(e=b?e+1:f.length;h<e;h++){var l=f[h];if(l.selected&&(c.support.optDisabled?!l.disabled:l.getAttribute("disabled")===null)&&(!l.parentNode.disabled||!c.nodeName(l.parentNode,"optgroup"))){a=c(l).val();if(b)return a;d.push(a)}}return d}if(ta.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Sa,"")}return B}var k=c.isFunction(a);return this.each(function(o){var x=c(this),r=a;if(this.nodeType===1){if(k)r=
|
53 |
+
a.call(this,o,x.val());if(r==null)r="";else if(typeof r==="number")r+="";else if(c.isArray(r))r=c.map(r,function(C){return C==null?"":C+""});if(c.isArray(r)&&ta.test(this.type))this.checked=c.inArray(x.val(),r)>=0;else if(c.nodeName(this,"select")){var A=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},
|
54 |
+
attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return B;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==B;b=e&&c.props[b]||b;var h=Ta.test(b);if((b in a||a[b]!==B)&&e&&!h){if(f){b==="type"&&Ua.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");if(d===null)a.nodeType===1&&a.removeAttribute(b);else a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&
|
55 |
+
b.specified?b.value:Va.test(a.nodeName)||Wa.test(a.nodeName)&&a.href?0:B;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return B;a=!c.support.hrefNormalized&&e&&h?a.getAttribute(b,2):a.getAttribute(b);return a===null?B:a}});var X=/\.(.*)$/,ia=/^(?:textarea|input|select)$/i,La=/\./g,Ma=/ /g,Xa=/[^\w\s.|`]/g,Ya=function(a){return a.replace(Xa,"\\$&")},ua={focusin:0,focusout:0};
|
56 |
+
c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==E&&!a.frameElement)a=E;if(d===false)d=U;else if(!d)return;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var l=a.nodeType?"events":"__events__",k=h[l],o=h.handle;if(typeof k==="function"){o=k.handle;k=k.events}else if(!k){a.nodeType||(h[l]=h=function(){});h.events=k={}}if(!o)h.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,
|
57 |
+
arguments):B};o.elem=a;b=b.split(" ");for(var x=0,r;l=b[x++];){h=f?c.extend({},f):{handler:d,data:e};if(l.indexOf(".")>-1){r=l.split(".");l=r.shift();h.namespace=r.slice(0).sort().join(".")}else{r=[];h.namespace=""}h.type=l;if(!h.guid)h.guid=d.guid;var A=k[l],C=c.event.special[l]||{};if(!A){A=k[l]=[];if(!C.setup||C.setup.call(a,e,r,o)===false)if(a.addEventListener)a.addEventListener(l,o,false);else a.attachEvent&&a.attachEvent("on"+l,o)}if(C.add){C.add.call(a,h);if(!h.handler.guid)h.handler.guid=
|
58 |
+
d.guid}A.push(h);c.event.global[l]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=U;var f,h,l=0,k,o,x,r,A,C,J=a.nodeType?"events":"__events__",w=c.data(a),I=w&&w[J];if(w&&I){if(typeof I==="function"){w=I;I=I.events}if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in I)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[l++];){r=f;k=f.indexOf(".")<0;o=[];if(!k){o=f.split(".");f=o.shift();x=RegExp("(^|\\.)"+
|
59 |
+
c.map(o.slice(0).sort(),Ya).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(A=I[f])if(d){r=c.event.special[f]||{};for(h=e||0;h<A.length;h++){C=A[h];if(d.guid===C.guid){if(k||x.test(C.namespace)){e==null&&A.splice(h--,1);r.remove&&r.remove.call(a,C)}if(e!=null)break}}if(A.length===0||e!=null&&A.length===1){if(!r.teardown||r.teardown.call(a,o)===false)c.removeEvent(a,f,w.handle);delete I[f]}}else for(h=0;h<A.length;h++){C=A[h];if(k||x.test(C.namespace)){c.event.remove(a,r,C.handler,h);A.splice(h--,1)}}}if(c.isEmptyObject(I)){if(b=
|
60 |
+
w.handle)b.elem=null;delete w.events;delete w.handle;if(typeof w==="function")c.removeData(a,J);else c.isEmptyObject(w)&&c.removeData(a)}}}}},trigger:function(a,b,d,e){var f=a.type||a;if(!e){a=typeof a==="object"?a[c.expando]?a:c.extend(c.Event(f),a):c.Event(f);if(f.indexOf("!")>=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===
|
61 |
+
8)return B;a.result=B;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=d.nodeType?c.data(d,"handle"):(c.data(d,"__events__")||{}).handle)&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false){a.result=false;a.preventDefault()}}catch(h){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){var l;e=a.target;var k=f.replace(X,""),o=c.nodeName(e,"a")&&k===
|
62 |
+
"click",x=c.event.special[k]||{};if((!x._default||x._default.call(d,a)===false)&&!o&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[k]){if(l=e["on"+k])e["on"+k]=null;c.event.triggered=true;e[k]()}}catch(r){}if(l)e["on"+k]=l;c.event.triggered=false}}},handle:function(a){var b,d,e,f;d=[];var h=c.makeArray(arguments);a=h[0]=c.event.fix(a||E.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();d=e.slice(0).sort();e=RegExp("(^|\\.)"+
|
63 |
+
d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?"events":"__events__");if(typeof f==="function")f=f.events;d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var l=d.length;f<l;f++){var k=d[f];if(b||e.test(k.namespace)){a.handler=k.handler;a.data=k.data;a.handleObj=k;k=k.handler.apply(this,h);if(k!==B){a.result=k;if(k===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
|
64 |
+
fix:function(a){if(a[c.expando])return a;var b=a;a=c.Event(b);for(var d=this.props.length,e;d;){e=this.props[--d];a[e]=b[e]}if(!a.target)a.target=a.srcElement||t;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=t.documentElement;d=t.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
|
65 |
+
d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(a.which==null&&(a.charCode!=null||a.keyCode!=null))a.which=a.charCode!=null?a.charCode:a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==B)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,Y(a.origType,a.selector),c.extend({},a,{handler:Ka,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,
|
66 |
+
Y(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.removeEvent=t.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=
|
67 |
+
c.now();this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ca;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=ca;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ca;this.stopPropagation()},isDefaultPrevented:U,isPropagationStopped:U,isImmediatePropagationStopped:U};
|
68 |
+
var va=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},wa=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?wa:va,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?wa:va)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!==
|
69 |
+
"form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length){a.liveFired=B;return la("submit",this,arguments)}});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13){a.liveFired=B;return la("submit",this,arguments)}})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var V,
|
70 |
+
xa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},Z=function(a,b){var d=a.target,e,f;if(!(!ia.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=xa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(e===B||f===e))if(e!=null||f){a.type="change";a.liveFired=
|
71 |
+
B;return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return Z.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return Z.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",xa(a))}},setup:function(){if(this.type===
|
72 |
+
"file")return false;for(var a in V)c.event.add(this,a+".specialChange",V[a]);return ia.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return ia.test(this.nodeName)}};V=c.event.special.change.filters;V.focus=V.beforeactivate}t.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.trigger(e,null,e.target)}c.event.special[b]={setup:function(){ua[b]++===0&&t.addEventListener(a,d,true)},teardown:function(){--ua[b]===
|
73 |
+
0&&t.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var h in d)this[b](h,e,d[h],f);return this}if(c.isFunction(e)||e===false){f=e;e=B}var l=b==="one"?c.proxy(f,function(o){c(this).unbind(o,l);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{h=0;for(var k=this.length;h<k;h++)c.event.add(this[h],d,l,e)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,
|
74 |
+
a[d]);else{d=0;for(var e=this.length;d<e;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,e){return this.live(b,d,e,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var d=c.Event(a);d.preventDefault();d.stopPropagation();c.event.trigger(d,b,this[0]);return d.result}},toggle:function(a){for(var b=arguments,d=
|
75 |
+
1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(e){var f=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,f+1);e.preventDefault();return b[f].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var ya={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,e,f,h){var l,k=0,o,x,r=h||this.selector;h=h?this:c(this.context);if(typeof d===
|
76 |
+
"object"&&!d.preventDefault){for(l in d)h[b](l,e,d[l],r);return this}if(c.isFunction(e)){f=e;e=B}for(d=(d||"").split(" ");(l=d[k++])!=null;){o=X.exec(l);x="";if(o){x=o[0];l=l.replace(X,"")}if(l==="hover")d.push("mouseenter"+x,"mouseleave"+x);else{o=l;if(l==="focus"||l==="blur"){d.push(ya[l]+x);l+=x}else l=(ya[l]||l)+x;if(b==="live"){x=0;for(var A=h.length;x<A;x++)c.event.add(h[x],"live."+Y(l,r),{data:e,selector:r,handler:f,origType:l,origHandler:f,preType:o})}else h.unbind("live."+Y(l,r),f)}}return this}});
|
77 |
+
c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){c.fn[b]=function(d,e){if(e==null){e=d;d=null}return arguments.length>0?this.bind(b,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});E.attachEvent&&!E.addEventListener&&c(E).bind("unload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});
|
78 |
+
(function(){function a(g,i,n,m,p,q){p=0;for(var u=m.length;p<u;p++){var y=m[p];if(y){var F=false;for(y=y[g];y;){if(y.sizcache===n){F=m[y.sizset];break}if(y.nodeType===1&&!q){y.sizcache=n;y.sizset=p}if(y.nodeName.toLowerCase()===i){F=y;break}y=y[g]}m[p]=F}}}function b(g,i,n,m,p,q){p=0;for(var u=m.length;p<u;p++){var y=m[p];if(y){var F=false;for(y=y[g];y;){if(y.sizcache===n){F=m[y.sizset];break}if(y.nodeType===1){if(!q){y.sizcache=n;y.sizset=p}if(typeof i!=="string"){if(y===i){F=true;break}}else if(k.filter(i,
|
79 |
+
[y]).length>0){F=y;break}}y=y[g]}m[p]=F}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,h=false,l=true;[0,0].sort(function(){l=false;return 0});var k=function(g,i,n,m){n=n||[];var p=i=i||t;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!g||typeof g!=="string")return n;var q,u,y,F,M,N=true,O=k.isXML(i),D=[],R=g;do{d.exec("");if(q=d.exec(R)){R=q[3];D.push(q[1]);if(q[2]){F=q[3];
|
80 |
+
break}}}while(q);if(D.length>1&&x.exec(g))if(D.length===2&&o.relative[D[0]])u=L(D[0]+D[1],i);else for(u=o.relative[D[0]]?[i]:k(D.shift(),i);D.length;){g=D.shift();if(o.relative[g])g+=D.shift();u=L(g,u)}else{if(!m&&D.length>1&&i.nodeType===9&&!O&&o.match.ID.test(D[0])&&!o.match.ID.test(D[D.length-1])){q=k.find(D.shift(),i,O);i=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]}if(i){q=m?{expr:D.pop(),set:C(m)}:k.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&i.parentNode?i.parentNode:i,O);u=q.expr?k.filter(q.expr,
|
81 |
+
q.set):q.set;if(D.length>0)y=C(u);else N=false;for(;D.length;){q=M=D.pop();if(o.relative[M])q=D.pop();else M="";if(q==null)q=i;o.relative[M](y,q,O)}}else y=[]}y||(y=u);y||k.error(M||g);if(f.call(y)==="[object Array]")if(N)if(i&&i.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&k.contains(i,y[g])))n.push(u[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&n.push(u[g]);else n.push.apply(n,y);else C(y,n);if(F){k(F,p,n,m);k.uniqueSort(n)}return n};k.uniqueSort=function(g){if(w){h=
|
82 |
+
l;g.sort(w);if(h)for(var i=1;i<g.length;i++)g[i]===g[i-1]&&g.splice(i--,1)}return g};k.matches=function(g,i){return k(g,null,null,i)};k.matchesSelector=function(g,i){return k(i,null,null,[g]).length>0};k.find=function(g,i,n){var m;if(!g)return[];for(var p=0,q=o.order.length;p<q;p++){var u,y=o.order[p];if(u=o.leftMatch[y].exec(g)){var F=u[1];u.splice(1,1);if(F.substr(F.length-1)!=="\\"){u[1]=(u[1]||"").replace(/\\/g,"");m=o.find[y](u,i,n);if(m!=null){g=g.replace(o.match[y],"");break}}}}m||(m=i.getElementsByTagName("*"));
|
83 |
+
return{set:m,expr:g}};k.filter=function(g,i,n,m){for(var p,q,u=g,y=[],F=i,M=i&&i[0]&&k.isXML(i[0]);g&&i.length;){for(var N in o.filter)if((p=o.leftMatch[N].exec(g))!=null&&p[2]){var O,D,R=o.filter[N];D=p[1];q=false;p.splice(1,1);if(D.substr(D.length-1)!=="\\"){if(F===y)y=[];if(o.preFilter[N])if(p=o.preFilter[N](p,F,n,y,m,M)){if(p===true)continue}else q=O=true;if(p)for(var j=0;(D=F[j])!=null;j++)if(D){O=R(D,p,j,F);var s=m^!!O;if(n&&O!=null)if(s)q=true;else F[j]=false;else if(s){y.push(D);q=true}}if(O!==
|
84 |
+
B){n||(F=y);g=g.replace(o.match[N],"");if(!q)return[];break}}}if(g===u)if(q==null)k.error(g);else break;u=g}return F};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var o=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,
|
85 |
+
POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},relative:{"+":function(g,i){var n=typeof i==="string",m=n&&!/\W/.test(i);n=n&&!m;if(m)i=i.toLowerCase();m=0;for(var p=g.length,q;m<p;m++)if(q=g[m]){for(;(q=q.previousSibling)&&q.nodeType!==1;);g[m]=n||q&&q.nodeName.toLowerCase()===
|
86 |
+
i?q||false:q===i}n&&k.filter(i,g,true)},">":function(g,i){var n,m=typeof i==="string",p=0,q=g.length;if(m&&!/\W/.test(i))for(i=i.toLowerCase();p<q;p++){if(n=g[p]){n=n.parentNode;g[p]=n.nodeName.toLowerCase()===i?n:false}}else{for(;p<q;p++)if(n=g[p])g[p]=m?n.parentNode:n.parentNode===i;m&&k.filter(i,g,true)}},"":function(g,i,n){var m,p=e++,q=b;if(typeof i==="string"&&!/\W/.test(i)){m=i=i.toLowerCase();q=a}q("parentNode",i,p,g,m,n)},"~":function(g,i,n){var m,p=e++,q=b;if(typeof i==="string"&&!/\W/.test(i)){m=
|
87 |
+
i=i.toLowerCase();q=a}q("previousSibling",i,p,g,m,n)}},find:{ID:function(g,i,n){if(typeof i.getElementById!=="undefined"&&!n)return(g=i.getElementById(g[1]))&&g.parentNode?[g]:[]},NAME:function(g,i){if(typeof i.getElementsByName!=="undefined"){for(var n=[],m=i.getElementsByName(g[1]),p=0,q=m.length;p<q;p++)m[p].getAttribute("name")===g[1]&&n.push(m[p]);return n.length===0?null:n}},TAG:function(g,i){return i.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,i,n,m,p,q){g=" "+g[1].replace(/\\/g,
|
88 |
+
"")+" ";if(q)return g;q=0;for(var u;(u=i[q])!=null;q++)if(u)if(p^(u.className&&(" "+u.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))n||m.push(u);else if(n)i[q]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=i[1]+(i[2]||1)-0;g[3]=i[3]-0}g[0]=e++;return g},ATTR:function(g,i,n,
|
89 |
+
m,p,q){i=g[1].replace(/\\/g,"");if(!q&&o.attrMap[i])g[1]=o.attrMap[i];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,i,n,m,p){if(g[1]==="not")if((d.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,i);else{g=k.filter(g[3],i,n,true^p);n||m.push.apply(m,g);return false}else if(o.match.POS.test(g[0])||o.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===
|
90 |
+
true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,i,n){return!!k(n[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===
|
91 |
+
g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,i){return i===0},last:function(g,i,n,m){return i===m.length-1},even:function(g,i){return i%2===0},odd:function(g,i){return i%2===1},lt:function(g,i,n){return i<n[3]-0},gt:function(g,i,n){return i>n[3]-0},nth:function(g,i,n){return n[3]-
|
92 |
+
0===i},eq:function(g,i,n){return n[3]-0===i}},filter:{PSEUDO:function(g,i,n,m){var p=i[1],q=o.filters[p];if(q)return q(g,n,i,m);else if(p==="contains")return(g.textContent||g.innerText||k.getText([g])||"").indexOf(i[3])>=0;else if(p==="not"){i=i[3];n=0;for(m=i.length;n<m;n++)if(i[n]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+p)},CHILD:function(g,i){var n=i[1],m=g;switch(n){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(n===
|
93 |
+
"first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":n=i[2];var p=i[3];if(n===1&&p===0)return true;var q=i[0],u=g.parentNode;if(u&&(u.sizcache!==q||!g.nodeIndex)){var y=0;for(m=u.firstChild;m;m=m.nextSibling)if(m.nodeType===1)m.nodeIndex=++y;u.sizcache=q}m=g.nodeIndex-p;return n===0?m===0:m%n===0&&m/n>=0}},ID:function(g,i){return g.nodeType===1&&g.getAttribute("id")===i},TAG:function(g,i){return i==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===
|
94 |
+
i},CLASS:function(g,i){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(i)>-1},ATTR:function(g,i){var n=i[1];n=o.attrHandle[n]?o.attrHandle[n](g):g[n]!=null?g[n]:g.getAttribute(n);var m=n+"",p=i[2],q=i[4];return n==null?p==="!=":p==="="?m===q:p==="*="?m.indexOf(q)>=0:p==="~="?(" "+m+" ").indexOf(q)>=0:!q?m&&n!==false:p==="!="?m!==q:p==="^="?m.indexOf(q)===0:p==="$="?m.substr(m.length-q.length)===q:p==="|="?m===q||m.substr(0,q.length+1)===q+"-":false},POS:function(g,i,n,m){var p=o.setFilters[i[2]];
|
95 |
+
if(p)return p(g,n,i,m)}}},x=o.match.POS,r=function(g,i){return"\\"+(i-0+1)},A;for(A in o.match){o.match[A]=RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source.replace(/\\(\d+)/g,r))}var C=function(g,i){g=Array.prototype.slice.call(g,0);if(i){i.push.apply(i,g);return i}return g};try{Array.prototype.slice.call(t.documentElement.childNodes,0)}catch(J){C=function(g,i){var n=0,m=i||[];if(f.call(g)==="[object Array]")Array.prototype.push.apply(m,
|
96 |
+
g);else if(typeof g.length==="number")for(var p=g.length;n<p;n++)m.push(g[n]);else for(;g[n];n++)m.push(g[n]);return m}}var w,I;if(t.documentElement.compareDocumentPosition)w=function(g,i){if(g===i){h=true;return 0}if(!g.compareDocumentPosition||!i.compareDocumentPosition)return g.compareDocumentPosition?-1:1;return g.compareDocumentPosition(i)&4?-1:1};else{w=function(g,i){var n,m,p=[],q=[];n=g.parentNode;m=i.parentNode;var u=n;if(g===i){h=true;return 0}else if(n===m)return I(g,i);else if(n){if(!m)return 1}else return-1;
|
97 |
+
for(;u;){p.unshift(u);u=u.parentNode}for(u=m;u;){q.unshift(u);u=u.parentNode}n=p.length;m=q.length;for(u=0;u<n&&u<m;u++)if(p[u]!==q[u])return I(p[u],q[u]);return u===n?I(g,q[u],-1):I(p[u],i,1)};I=function(g,i,n){if(g===i)return n;for(g=g.nextSibling;g;){if(g===i)return-1;g=g.nextSibling}return 1}}k.getText=function(g){for(var i="",n,m=0;g[m];m++){n=g[m];if(n.nodeType===3||n.nodeType===4)i+=n.nodeValue;else if(n.nodeType!==8)i+=k.getText(n.childNodes)}return i};(function(){var g=t.createElement("div"),
|
98 |
+
i="script"+(new Date).getTime(),n=t.documentElement;g.innerHTML="<a name='"+i+"'/>";n.insertBefore(g,n.firstChild);if(t.getElementById(i)){o.find.ID=function(m,p,q){if(typeof p.getElementById!=="undefined"&&!q)return(p=p.getElementById(m[1]))?p.id===m[1]||typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id").nodeValue===m[1]?[p]:B:[]};o.filter.ID=function(m,p){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&q&&q.nodeValue===p}}n.removeChild(g);
|
99 |
+
n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(i){return i.getAttribute("href",2)};g=null})();t.querySelectorAll&&
|
100 |
+
function(){var g=k,i=t.createElement("div");i.innerHTML="<p class='TEST'></p>";if(!(i.querySelectorAll&&i.querySelectorAll(".TEST").length===0)){k=function(m,p,q,u){p=p||t;m=m.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!u&&!k.isXML(p))if(p.nodeType===9)try{return C(p.querySelectorAll(m),q)}catch(y){}else if(p.nodeType===1&&p.nodeName.toLowerCase()!=="object"){var F=p.getAttribute("id"),M=F||"__sizzle__";F||p.setAttribute("id",M);try{return C(p.querySelectorAll("#"+M+" "+m),q)}catch(N){}finally{F||
|
101 |
+
p.removeAttribute("id")}}return g(m,p,q,u)};for(var n in g)k[n]=g[n];i=null}}();(function(){var g=t.documentElement,i=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,n=false;try{i.call(t.documentElement,"[test!='']:sizzle")}catch(m){n=true}if(i)k.matchesSelector=function(p,q){q=q.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(p))try{if(n||!o.match.PSEUDO.test(q)&&!/!=/.test(q))return i.call(p,q)}catch(u){}return k(q,null,null,[p]).length>0}})();(function(){var g=
|
102 |
+
t.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(i,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m)return n.getElementsByClassName(i[1])};g=null}}})();k.contains=t.documentElement.contains?function(g,i){return g!==i&&(g.contains?g.contains(i):true)}:t.documentElement.compareDocumentPosition?
|
103 |
+
function(g,i){return!!(g.compareDocumentPosition(i)&16)}:function(){return false};k.isXML=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false};var L=function(g,i){for(var n,m=[],p="",q=i.nodeType?[i]:i;n=o.match.PSEUDO.exec(g);){p+=n[0];g=g.replace(o.match.PSEUDO,"")}g=o.relative[g]?g+"*":g;n=0;for(var u=q.length;n<u;n++)k(g,q[n],m);return k.filter(p,m)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=k.getText;c.isXMLDoc=k.isXML;
|
104 |
+
c.contains=k.contains})();var Za=/Until$/,$a=/^(?:parents|prevUntil|prevAll)/,ab=/,/,Na=/^.[^:#\[\.,]*$/,bb=Array.prototype.slice,cb=c.expr.match.POS;c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,e=0,f=this.length;e<f;e++){d=b.length;c.find(a,this[e],b);if(e>0)for(var h=d;h<b.length;h++)for(var l=0;l<d;l++)if(b[l]===b[h]){b.splice(h--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++)if(c.contains(this,b[d]))return true})},
|
105 |
+
not:function(a){return this.pushStack(ma(this,a,false),"not",a)},filter:function(a){return this.pushStack(ma(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){var d=[],e,f,h=this[0];if(c.isArray(a)){var l,k={},o=1;if(h&&a.length){e=0;for(f=a.length;e<f;e++){l=a[e];k[l]||(k[l]=c.expr.match.POS.test(l)?c(l,b||this.context):l)}for(;h&&h.ownerDocument&&h!==b;){for(l in k){e=k[l];if(e.jquery?e.index(h)>-1:c(h).is(e))d.push({selector:l,elem:h,level:o})}h=
|
106 |
+
h.parentNode;o++}}return d}l=cb.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;e<f;e++)for(h=this[e];h;)if(l?l.index(h)>-1:c.find.matchesSelector(h,a)){d.push(h);break}else{h=h.parentNode;if(!h||!h.ownerDocument||h===b)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b||this.context):
|
107 |
+
c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,
|
108 |
+
2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,
|
109 |
+
b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Za.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1?c.unique(f):f;if((this.length>1||ab.test(e))&&$a.test(a))f=f.reverse();return this.pushStack(f,a,bb.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===B||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&
|
110 |
+
e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var za=/ jQuery\d+="(?:\d+|null)"/g,$=/^\s+/,Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ba=/<([\w:]+)/,db=/<tbody/i,eb=/<|&#?\w+;/,Ca=/<(?:script|object|embed|option|style)/i,Da=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/\=([^="'>\s]+\/)>/g,P={option:[1,
|
111 |
+
"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};P.optgroup=P.option;P.tbody=P.tfoot=P.colgroup=P.caption=P.thead;P.th=P.td;if(!c.support.htmlSerialize)P._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
|
112 |
+
c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==B)return this.empty().append((this[0]&&this[0].ownerDocument||t).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
|
113 |
+
wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
|
114 |
+
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
|
115 |
+
this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
|
116 |
+
return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(za,"").replace(fb,'="$1">').replace($,"")],e)[0]}else return this.cloneNode(true)});if(a===true){na(this,b);na(this.find("*"),b.find("*"))}return b},html:function(a){if(a===B)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(za,""):null;
|
117 |
+
else if(typeof a==="string"&&!Ca.test(a)&&(c.support.leadingWhitespace||!$.test(a))&&!P[(Ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Aa,"<$1></$2>");try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(e){this.empty().append(a)}}else c.isFunction(a)?this.each(function(f){var h=c(this);h.html(a.call(this,f,h.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=
|
118 |
+
c(this),e=d.html();d.replaceWith(a.call(this,b,e))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,h,l=a[0],k=[];if(!c.support.checkClone&&arguments.length===3&&typeof l==="string"&&Da.test(l))return this.each(function(){c(this).domManip(a,
|
119 |
+
b,d,true)});if(c.isFunction(l))return this.each(function(x){var r=c(this);a[0]=l.call(this,x,b?r.html():B);r.domManip(a,b,d)});if(this[0]){e=l&&l.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,k);h=e.fragment;if(f=h.childNodes.length===1?h=h.firstChild:h.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var o=this.length;f<o;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):
|
120 |
+
this[f]:this[f],f>0||e.cacheable||this.length>1?h.cloneNode(true):h)}k.length&&c.each(k,Oa)}return this}});c.buildFragment=function(a,b,d){var e,f,h;b=b&&b[0]?b[0].ownerDocument||b[0]:t;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===t&&!Ca.test(a[0])&&(c.support.checkClone||!Da.test(a[0]))){f=true;if(h=c.fragments[a[0]])if(h!==1)e=h}if(!e){e=b.createDocumentFragment();c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=h?e:1;return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append",
|
121 |
+
prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=0;for(var h=d.length;f<h;f++){var l=(f>0?this.clone(true):this).get();c(d[f])[b](l);e=e.concat(l)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||t;if(typeof b.createElement==="undefined")b=b.ownerDocument||
|
122 |
+
b[0]&&b[0].ownerDocument||t;for(var f=[],h=0,l;(l=a[h])!=null;h++){if(typeof l==="number")l+="";if(l){if(typeof l==="string"&&!eb.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Aa,"<$1></$2>");var k=(Ba.exec(l)||["",""])[1].toLowerCase(),o=P[k]||P._default,x=o[0],r=b.createElement("div");for(r.innerHTML=o[1]+l+o[2];x--;)r=r.lastChild;if(!c.support.tbody){x=db.test(l);k=k==="table"&&!x?r.firstChild&&r.firstChild.childNodes:o[1]==="<table>"&&!x?r.childNodes:[];for(o=k.length-
|
123 |
+
1;o>=0;--o)c.nodeName(k[o],"tbody")&&!k[o].childNodes.length&&k[o].parentNode.removeChild(k[o])}!c.support.leadingWhitespace&&$.test(l)&&r.insertBefore(b.createTextNode($.exec(l)[0]),r.firstChild);l=r.childNodes}if(l.nodeType)f.push(l);else f=c.merge(f,l)}}if(d)for(h=0;f[h];h++)if(e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript"))e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);else{f[h].nodeType===1&&f.splice.apply(f,[h+1,0].concat(c.makeArray(f[h].getElementsByTagName("script"))));
|
124 |
+
d.appendChild(f[h])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,h=c.support.deleteExpando,l=0,k;(k=a[l])!=null;l++)if(!(k.nodeName&&c.noData[k.nodeName.toLowerCase()]))if(d=k[c.expando]){if((b=e[d])&&b.events)for(var o in b.events)f[o]?c.event.remove(k,o):c.removeEvent(k,o,b.handle);if(h)delete k[c.expando];else k.removeAttribute&&k.removeAttribute(c.expando);delete e[d]}}});var Ea=/alpha\([^)]*\)/i,gb=/opacity=([^)]*)/,hb=/-([a-z])/ig,ib=/([A-Z])/g,Fa=/^-?\d+(?:px)?$/i,
|
125 |
+
jb=/^-?\d/,kb={position:"absolute",visibility:"hidden",display:"block"},Pa=["Left","Right"],Qa=["Top","Bottom"],W,Ga,aa,lb=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){if(arguments.length===2&&b===B)return this;return c.access(this,a,b,true,function(d,e,f){return f!==B?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=W(a,"opacity","opacity");return d===""?"1":d}else return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,
|
126 |
+
zoom:true,lineHeight:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,h=c.camelCase(b),l=a.style,k=c.cssHooks[h];b=c.cssProps[h]||h;if(d!==B){if(!(typeof d==="number"&&isNaN(d)||d==null)){if(typeof d==="number"&&!c.cssNumber[h])d+="px";if(!k||!("set"in k)||(d=k.set(a,d))!==B)try{l[b]=d}catch(o){}}}else{if(k&&"get"in k&&(f=k.get(a,false,e))!==B)return f;return l[b]}}},css:function(a,b,d){var e,f=c.camelCase(b),
|
127 |
+
h=c.cssHooks[f];b=c.cssProps[f]||f;if(h&&"get"in h&&(e=h.get(a,true,d))!==B)return e;else if(W)return W(a,b,f)},swap:function(a,b,d){var e={},f;for(f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=e[f]},camelCase:function(a){return a.replace(hb,lb)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var h;if(e){if(d.offsetWidth!==0)h=oa(d,b,f);else c.swap(d,kb,function(){h=oa(d,b,f)});if(h<=0){h=W(d,b,b);if(h==="0px"&&aa)h=aa(d,b,b);
|
128 |
+
if(h!=null)return h===""||h==="auto"?"0px":h}if(h<0||h==null){h=d.style[b];return h===""||h==="auto"?"0px":h}return typeof h==="string"?h:h+"px"}},set:function(d,e){if(Fa.test(e)){e=parseFloat(e);if(e>=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return gb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+b*100+")",f=
|
129 |
+
d.filter||"";d.filter=Ea.test(f)?f.replace(Ea,e):d.filter+" "+e}};if(t.defaultView&&t.defaultView.getComputedStyle)Ga=function(a,b,d){var e;d=d.replace(ib,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return B;if(b=b.getComputedStyle(a,null)){e=b.getPropertyValue(d);if(e===""&&!c.contains(a.ownerDocument.documentElement,a))e=c.style(a,d)}return e};if(t.documentElement.currentStyle)aa=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],h=a.style;if(!Fa.test(f)&&jb.test(f)){d=h.left;
|
130 |
+
e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=d;a.runtimeStyle.left=e}return f===""?"auto":f};W=Ga||aa;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var mb=c.now(),nb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
|
131 |
+
ob=/^(?:select|textarea)/i,pb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,qb=/^(?:GET|HEAD)$/,Ra=/\[\]$/,T=/\=\?(&|$)/,ja=/\?/,rb=/([?&])_=[^&]*/,sb=/^(\w+:)?\/\/([^\/?#]+)/,tb=/%20/g,ub=/#.*$/,Ha=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Ha)return Ha.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b===
|
132 |
+
"object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(l,k){if(k==="success"||k==="notmodified")h.html(f?c("<div>").append(l.responseText.replace(nb,"")).find(f):l.responseText);d&&h.each(d,[l.responseText,k,l])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&
|
133 |
+
!this.disabled&&(this.checked||ob.test(this.nodeName)||pb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(e){return{name:b.name,value:e}}):{name:b.name,value:d}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})},
|
134 |
+
getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new E.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",
|
135 |
+
script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a){var b=c.extend(true,{},c.ajaxSettings,a),d,e,f,h=b.type.toUpperCase(),l=qb.test(h);b.url=b.url.replace(ub,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processData&&typeof b.data!=="string")b.data=c.param(b.data,b.traditional);if(b.dataType==="jsonp"){if(h==="GET")T.test(b.url)||(b.url+=(ja.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||
|
136 |
+
!T.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType==="json"&&(b.data&&T.test(b.data)||T.test(b.url))){d=b.jsonpCallback||"jsonp"+mb++;if(b.data)b.data=(b.data+"").replace(T,"="+d+"$1");b.url=b.url.replace(T,"="+d+"$1");b.dataType="script";var k=E[d];E[d]=function(m){if(c.isFunction(k))k(m);else{E[d]=B;try{delete E[d]}catch(p){}}f=m;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);r&&r.removeChild(A)}}if(b.dataType==="script"&&b.cache===null)b.cache=
|
137 |
+
false;if(b.cache===false&&l){var o=c.now(),x=b.url.replace(rb,"$1_="+o);b.url=x+(x===b.url?(ja.test(b.url)?"&":"?")+"_="+o:"")}if(b.data&&l)b.url+=(ja.test(b.url)?"&":"?")+b.data;b.global&&c.active++===0&&c.event.trigger("ajaxStart");o=(o=sb.exec(b.url))&&(o[1]&&o[1].toLowerCase()!==location.protocol||o[2].toLowerCase()!==location.host);if(b.dataType==="script"&&h==="GET"&&o){var r=t.getElementsByTagName("head")[0]||t.documentElement,A=t.createElement("script");if(b.scriptCharset)A.charset=b.scriptCharset;
|
138 |
+
A.src=b.url;if(!d){var C=false;A.onload=A.onreadystatechange=function(){if(!C&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){C=true;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);A.onload=A.onreadystatechange=null;r&&A.parentNode&&r.removeChild(A)}}}r.insertBefore(A,r.firstChild);return B}var J=false,w=b.xhr();if(w){b.username?w.open(h,b.url,b.async,b.username,b.password):w.open(h,b.url,b.async);try{if(b.data!=null&&!l||a&&a.contentType)w.setRequestHeader("Content-Type",
|
139 |
+
b.contentType);if(b.ifModified){c.lastModified[b.url]&&w.setRequestHeader("If-Modified-Since",c.lastModified[b.url]);c.etag[b.url]&&w.setRequestHeader("If-None-Match",c.etag[b.url])}o||w.setRequestHeader("X-Requested-With","XMLHttpRequest");w.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*; q=0.01":b.accepts._default)}catch(I){}if(b.beforeSend&&b.beforeSend.call(b.context,w,b)===false){b.global&&c.active--===1&&c.event.trigger("ajaxStop");w.abort();return false}b.global&&
|
140 |
+
c.triggerGlobal(b,"ajaxSend",[w,b]);var L=w.onreadystatechange=function(m){if(!w||w.readyState===0||m==="abort"){J||c.handleComplete(b,w,e,f);J=true;if(w)w.onreadystatechange=c.noop}else if(!J&&w&&(w.readyState===4||m==="timeout")){J=true;w.onreadystatechange=c.noop;e=m==="timeout"?"timeout":!c.httpSuccess(w)?"error":b.ifModified&&c.httpNotModified(w,b.url)?"notmodified":"success";var p;if(e==="success")try{f=c.httpData(w,b.dataType,b)}catch(q){e="parsererror";p=q}if(e==="success"||e==="notmodified")d||
|
141 |
+
c.handleSuccess(b,w,e,f);else c.handleError(b,w,e,p);d||c.handleComplete(b,w,e,f);m==="timeout"&&w.abort();if(b.async)w=null}};try{var g=w.abort;w.abort=function(){w&&Function.prototype.call.call(g,w);L("abort")}}catch(i){}b.async&&b.timeout>0&&setTimeout(function(){w&&!J&&L("timeout")},b.timeout);try{w.send(l||b.data==null?null:b.data)}catch(n){c.handleError(b,w,null,n);c.handleComplete(b,w,e,f)}b.async||L();return w}},param:function(a,b){var d=[],e=function(h,l){l=c.isFunction(l)?l():l;d[d.length]=
|
142 |
+
encodeURIComponent(h)+"="+encodeURIComponent(l)};if(b===B)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var f in a)da(f,a[f],b,e);return d.join("&").replace(tb,"+")}});c.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);a.global&&c.triggerGlobal(a,"ajaxError",[b,a,e])},handleSuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);a.global&&c.triggerGlobal(a,"ajaxSuccess",
|
143 |
+
[b,a])},handleComplete:function(a,b,d){a.complete&&a.complete.call(a.context,b,d);a.global&&c.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&c.active--===1&&c.event.trigger("ajaxStop")},triggerGlobal:function(a,b,d){(a.context&&a.context.url==null?c(a.context):c.event).trigger(b,d)},httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),
|
144 |
+
e=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(e)c.etag[b]=e;return a.status===304},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&e.indexOf("javascript")>=0)c.globalEval(a);return a}});
|
145 |
+
if(E.ActiveXObject)c.ajaxSettings.xhr=function(){if(E.location.protocol!=="file:")try{return new E.XMLHttpRequest}catch(a){}try{return new E.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}};c.support.ajax=!!c.ajaxSettings.xhr();var ea={},vb=/^(?:toggle|show|hide)$/,wb=/^([+\-]=)?([\d+.\-]+)(.*)$/,ba,pa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(S("show",
|
146 |
+
3),a,b,d);else{d=0;for(var e=this.length;d<e;d++){a=this[d];b=a.style.display;if(!c.data(a,"olddisplay")&&b==="none")b=a.style.display="";b===""&&c.css(a,"display")==="none"&&c.data(a,"olddisplay",qa(a.nodeName))}for(d=0;d<e;d++){a=this[d];b=a.style.display;if(b===""||b==="none")a.style.display=c.data(a,"olddisplay")||""}return this}},hide:function(a,b,d){if(a||a===0)return this.animate(S("hide",3),a,b,d);else{a=0;for(b=this.length;a<b;a++){d=c.css(this[a],"display");d!=="none"&&c.data(this[a],"olddisplay",
|
147 |
+
d)}for(a=0;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||e?this.each(function(){var f=e?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(S("toggle",3),a,b,d);return this},fadeTo:function(a,b,d,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d,e)},animate:function(a,b,d,e){var f=c.speed(b,
|
148 |
+
d,e);if(c.isEmptyObject(a))return this.each(f.complete);return this[f.queue===false?"each":"queue"](function(){var h=c.extend({},f),l,k=this.nodeType===1,o=k&&c(this).is(":hidden"),x=this;for(l in a){var r=c.camelCase(l);if(l!==r){a[r]=a[l];delete a[l];l=r}if(a[l]==="hide"&&o||a[l]==="show"&&!o)return h.complete.call(this);if(k&&(l==="height"||l==="width")){h.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(c.css(this,"display")==="inline"&&c.css(this,"float")==="none")if(c.support.inlineBlockNeedsLayout)if(qa(this.nodeName)===
|
149 |
+
"inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}else this.style.display="inline-block"}if(c.isArray(a[l])){(h.specialEasing=h.specialEasing||{})[l]=a[l][1];a[l]=a[l][0]}}if(h.overflow!=null)this.style.overflow="hidden";h.curAnim=c.extend({},a);c.each(a,function(A,C){var J=new c.fx(x,h,A);if(vb.test(C))J[C==="toggle"?o?"show":"hide":C](a);else{var w=wb.exec(C),I=J.cur()||0;if(w){var L=parseFloat(w[2]),g=w[3]||"px";if(g!=="px"){c.style(x,A,(L||1)+g);I=(L||
|
150 |
+
1)/J.cur()*I;c.style(x,A,I+g)}if(w[1])L=(w[1]==="-="?-1:1)*L+I;J.custom(I,L,g)}else J.custom(I,C,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var e=d.length-1;e>=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:S("show",1),slideUp:S("hide",1),slideToggle:S("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b,
|
151 |
+
d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a*
|
152 |
+
Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a=parseFloat(c.css(this.elem,this.prop));return a&&a>-1E4?a:0},custom:function(a,b,d){function e(l){return f.step(l)}
|
153 |
+
var f=this,h=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ba)ba=setInterval(h.tick,h.interval)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;
|
154 |
+
this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var f=this.elem,h=this.options;c.each(["","X","Y"],function(k,o){f.style["overflow"+o]=h.overflow[k]})}this.options.hide&&c(this.elem).hide();if(this.options.hide||
|
155 |
+
this.options.show)for(var l in this.options.curAnim)c.style(this.elem,l,this.options.orig[l]);this.options.complete.call(this.elem)}return false}else{a=b-this.startTime;this.state=a/this.options.duration;b=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=
|
156 |
+
c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},interval:13,stop:function(){clearInterval(ba);ba=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===
|
157 |
+
b.elem}).length};var xb=/^t(?:able|d|h)$/i,Ia=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in t.documentElement?function(a){var b=this[0],d;if(a)return this.each(function(l){c.offset.setOffset(this,a,l)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,h=f.documentElement;if(!d||!c.contains(h,b))return d||{top:0,left:0};b=f.body;f=fa(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&
|
158 |
+
h.scrollTop||b.scrollTop)-(h.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&h.scrollLeft||b.scrollLeft)-(h.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(x){c.offset.setOffset(this,a,x)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d,e=b.offsetParent,f=b.ownerDocument,h=f.documentElement,l=f.body;d=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;
|
159 |
+
for(var k=b.offsetTop,o=b.offsetLeft;(b=b.parentNode)&&b!==l&&b!==h;){if(c.offset.supportsFixedPosition&&d.position==="fixed")break;d=f?f.getComputedStyle(b,null):b.currentStyle;k-=b.scrollTop;o-=b.scrollLeft;if(b===e){k+=b.offsetTop;o+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&xb.test(b.nodeName))){k+=parseFloat(d.borderTopWidth)||0;o+=parseFloat(d.borderLeftWidth)||0}e=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){k+=
|
160 |
+
parseFloat(d.borderTopWidth)||0;o+=parseFloat(d.borderLeftWidth)||0}d=d}if(d.position==="relative"||d.position==="static"){k+=l.offsetTop;o+=l.offsetLeft}if(c.offset.supportsFixedPosition&&d.position==="fixed"){k+=Math.max(h.scrollTop,l.scrollTop);o+=Math.max(h.scrollLeft,l.scrollLeft)}return{top:k,left:o}};c.offset={initialize:function(){var a=t.body,b=t.createElement("div"),d,e,f,h=parseFloat(c.css(a,"marginTop"))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",
|
161 |
+
height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=
|
162 |
+
f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.css(a,
|
163 |
+
"marginTop"))||0;d+=parseFloat(c.css(a,"marginLeft"))||0}return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.position="relative";var f=c(a),h=f.offset(),l=c.css(a,"top"),k=c.css(a,"left"),o=e==="absolute"&&c.inArray("auto",[l,k])>-1;e={};var x={};if(o)x=f.position();l=o?x.top:parseInt(l,10)||0;k=o?x.left:parseInt(k,10)||0;if(c.isFunction(b))b=b.call(a,d,h);if(b.top!=null)e.top=b.top-h.top+l;if(b.left!=null)e.left=b.left-h.left+k;"using"in b?b.using.call(a,
|
164 |
+
e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Ia.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||t.body;a&&!Ia.test(a.nodeName)&&
|
165 |
+
c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)return null;if(e!==B)return this.each(function(){if(h=fa(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=fa(f))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();
|
166 |
+
c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding")):null};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"margin":"border")):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(l){var k=c(this);k[d](e.call(this,l,k[d]()))});if(c.isWindow(f))return f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b];else if(f.nodeType===9)return Math.max(f.documentElement["client"+
|
167 |
+
b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(e===B){f=c.css(f,d);var h=parseFloat(f);return c.isNaN(h)?f:h}else return this.css(d,typeof e==="string"?e:e+"px")}})})(window);
|
{js/reveal → assets/js}/jquery.reveal.js
RENAMED
@@ -1,15 +1,12 @@
|
|
1 |
/*
|
2 |
* jQuery Reveal Plugin 1.0
|
|
|
3 |
* Copyright 2010, ZURB
|
4 |
* Free to use under the MIT license.
|
5 |
* http://www.opensource.org/licenses/mit-license.php
|
6 |
-
*
|
7 |
-
* Modified : Ankur Agarwal
|
8 |
-
*
|
9 |
-
* Added functionality to mention scrollheight in the config
|
10 |
-
*
|
11 |
*/
|
12 |
|
|
|
13 |
(function($) {
|
14 |
|
15 |
/*---------------------------
|
@@ -32,33 +29,28 @@
|
|
32 |
|
33 |
$.fn.reveal = function(options) {
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
, showevent: 'show' // event to listen on the modal container to trigger show
|
43 |
-
, shownevent: 'shown' // event to listen on the modal container after the modal box is shown
|
44 |
-
, hideevent: 'hide' // event to listen on the modal container to trigger hide
|
45 |
-
, hiddenevent: 'hidden' // event to listen on the modal container after the modal is hidden
|
46 |
-
//scrollHeight: <integer> This attribute if not passed will be calculated at the runtime and used
|
47 |
-
};
|
48 |
|
49 |
//Extend dem' options
|
50 |
-
var options = $.extend({}, defaults, options);
|
|
|
51 |
return this.each(function() {
|
52 |
|
53 |
/*---------------------------
|
54 |
Global Variables
|
55 |
----------------------------*/
|
56 |
var modal = $(this),
|
57 |
-
topMeasure
|
58 |
topOffset = modal.height() + topMeasure,
|
59 |
locked = false,
|
60 |
modalBG = $('.reveal-modal-bg');
|
61 |
-
|
62 |
/*---------------------------
|
63 |
Create Modal BG
|
64 |
----------------------------*/
|
@@ -70,49 +62,47 @@
|
|
70 |
Open & Close Animations
|
71 |
----------------------------*/
|
72 |
//Entrance Animations
|
73 |
-
modal.bind('reveal:open
|
|
|
74 |
$('.' + options.dismissmodalclass).unbind('click.modalEvent');
|
75 |
if(!locked) {
|
76 |
lockModal();
|
77 |
if(options.animation == "fadeAndPop") {
|
78 |
-
|
79 |
-
|
80 |
-
options.backdrop &&modalBG.fadeIn(options.animationspeed/2);
|
81 |
modal.delay(options.animationspeed/2).animate({
|
82 |
-
"top":
|
83 |
"opacity" : 1
|
84 |
-
}, options.animationspeed,
|
85 |
}
|
86 |
if(options.animation == "fade") {
|
87 |
modal.css({'opacity' : 0, 'visibility' : 'visible', 'top': $(document).scrollTop()+topMeasure});
|
88 |
modalBG.fadeIn(options.animationspeed/2);
|
89 |
modal.delay(options.animationspeed/2).animate({
|
90 |
"opacity" : 1
|
91 |
-
}, options.animationspeed,
|
92 |
}
|
93 |
if(options.animation == "none") {
|
94 |
modal.css({'visibility' : 'visible', 'top':$(document).scrollTop()+topMeasure});
|
95 |
modalBG.css({"display":"block"});
|
96 |
-
|
97 |
}
|
98 |
}
|
99 |
modal.unbind('reveal:open');
|
100 |
});
|
101 |
|
102 |
//Closing Animation
|
103 |
-
modal.bind('reveal:close
|
104 |
if(!locked) {
|
105 |
lockModal();
|
106 |
if(options.animation == "fadeAndPop") {
|
107 |
-
|
108 |
-
options.backdrop && modalBG.delay(options.animationspeed).fadeOut(options.animationspeed);
|
109 |
modal.animate({
|
110 |
-
"top":
|
111 |
"opacity" : 0
|
112 |
}, options.animationspeed/2, function() {
|
113 |
modal.css({'top':topMeasure, 'opacity' : 1, 'visibility' : 'hidden'});
|
114 |
-
|
115 |
-
|
116 |
});
|
117 |
}
|
118 |
if(options.animation == "fade") {
|
@@ -121,7 +111,7 @@
|
|
121 |
"opacity" : 0
|
122 |
}, options.animationspeed, function() {
|
123 |
modal.css({'opacity' : 1, 'visibility' : 'hidden', 'top' : topMeasure});
|
124 |
-
|
125 |
});
|
126 |
}
|
127 |
if(options.animation == "none") {
|
@@ -130,13 +120,13 @@
|
|
130 |
}
|
131 |
}
|
132 |
modal.unbind('reveal:close');
|
133 |
-
});
|
134 |
|
135 |
/*---------------------------
|
136 |
Open and add Closing Listeners
|
137 |
----------------------------*/
|
138 |
//Open Modal Immediately
|
139 |
-
|
140 |
|
141 |
//Close Modal Listeners
|
142 |
var closeButton = $('.' + options.dismissmodalclass).bind('click.modalEvent', function () {
|
@@ -146,21 +136,13 @@
|
|
146 |
if(options.closeonbackgroundclick) {
|
147 |
modalBG.css({"cursor":"pointer"})
|
148 |
modalBG.bind('click.modalEvent', function () {
|
149 |
-
modal.trigger(
|
150 |
});
|
151 |
}
|
152 |
$('body').keyup(function(e) {
|
153 |
if(e.which===27){ modal.trigger('reveal:close'); } // 27 is the keycode for the Escape key
|
154 |
});
|
155 |
|
156 |
-
function shown () {
|
157 |
-
modal.trigger(options.shownevent);
|
158 |
-
unlockModal();
|
159 |
-
}
|
160 |
-
function hidden () {
|
161 |
-
modal.trigger(options.hiddenevent);
|
162 |
-
unlockModal();
|
163 |
-
}
|
164 |
|
165 |
/*---------------------------
|
166 |
Animations Locks
|
@@ -174,4 +156,5 @@
|
|
174 |
|
175 |
});//each call
|
176 |
}//orbit plugin call
|
177 |
-
})(jQuery);
|
|
1 |
/*
|
2 |
* jQuery Reveal Plugin 1.0
|
3 |
+
* www.ZURB.com
|
4 |
* Copyright 2010, ZURB
|
5 |
* Free to use under the MIT license.
|
6 |
* http://www.opensource.org/licenses/mit-license.php
|
|
|
|
|
|
|
|
|
|
|
7 |
*/
|
8 |
|
9 |
+
|
10 |
(function($) {
|
11 |
|
12 |
/*---------------------------
|
29 |
|
30 |
$.fn.reveal = function(options) {
|
31 |
|
32 |
+
|
33 |
+
var defaults = {
|
34 |
+
animation: 'fadeAndPop', //fade, fadeAndPop, none
|
35 |
+
animationspeed: 300, //how fast animtions are
|
36 |
+
closeonbackgroundclick: true, //if you click background will modal close?
|
37 |
+
dismissmodalclass: 'close-reveal-modal' //the class of a button or element that will close an open modal
|
38 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
//Extend dem' options
|
41 |
+
var options = $.extend({}, defaults, options);
|
42 |
+
|
43 |
return this.each(function() {
|
44 |
|
45 |
/*---------------------------
|
46 |
Global Variables
|
47 |
----------------------------*/
|
48 |
var modal = $(this),
|
49 |
+
topMeasure = parseInt(modal.css('top')),
|
50 |
topOffset = modal.height() + topMeasure,
|
51 |
locked = false,
|
52 |
modalBG = $('.reveal-modal-bg');
|
53 |
+
|
54 |
/*---------------------------
|
55 |
Create Modal BG
|
56 |
----------------------------*/
|
62 |
Open & Close Animations
|
63 |
----------------------------*/
|
64 |
//Entrance Animations
|
65 |
+
modal.bind('reveal:open', function () {
|
66 |
+
modalBG.unbind('click.modalEvent');
|
67 |
$('.' + options.dismissmodalclass).unbind('click.modalEvent');
|
68 |
if(!locked) {
|
69 |
lockModal();
|
70 |
if(options.animation == "fadeAndPop") {
|
71 |
+
modal.css({'top': $(document).scrollTop()-topOffset, 'opacity' : 0, 'visibility' : 'visible'});
|
72 |
+
modalBG.fadeIn(options.animationspeed/2);
|
|
|
73 |
modal.delay(options.animationspeed/2).animate({
|
74 |
+
"top": $(document).scrollTop()+topMeasure + 'px',
|
75 |
"opacity" : 1
|
76 |
+
}, options.animationspeed,unlockModal());
|
77 |
}
|
78 |
if(options.animation == "fade") {
|
79 |
modal.css({'opacity' : 0, 'visibility' : 'visible', 'top': $(document).scrollTop()+topMeasure});
|
80 |
modalBG.fadeIn(options.animationspeed/2);
|
81 |
modal.delay(options.animationspeed/2).animate({
|
82 |
"opacity" : 1
|
83 |
+
}, options.animationspeed,unlockModal());
|
84 |
}
|
85 |
if(options.animation == "none") {
|
86 |
modal.css({'visibility' : 'visible', 'top':$(document).scrollTop()+topMeasure});
|
87 |
modalBG.css({"display":"block"});
|
88 |
+
unlockModal()
|
89 |
}
|
90 |
}
|
91 |
modal.unbind('reveal:open');
|
92 |
});
|
93 |
|
94 |
//Closing Animation
|
95 |
+
modal.bind('reveal:close', function () {
|
96 |
if(!locked) {
|
97 |
lockModal();
|
98 |
if(options.animation == "fadeAndPop") {
|
99 |
+
modalBG.delay(options.animationspeed).fadeOut(options.animationspeed);
|
|
|
100 |
modal.animate({
|
101 |
+
"top": $(document).scrollTop()-topOffset + 'px',
|
102 |
"opacity" : 0
|
103 |
}, options.animationspeed/2, function() {
|
104 |
modal.css({'top':topMeasure, 'opacity' : 1, 'visibility' : 'hidden'});
|
105 |
+
unlockModal();
|
|
|
106 |
});
|
107 |
}
|
108 |
if(options.animation == "fade") {
|
111 |
"opacity" : 0
|
112 |
}, options.animationspeed, function() {
|
113 |
modal.css({'opacity' : 1, 'visibility' : 'hidden', 'top' : topMeasure});
|
114 |
+
unlockModal();
|
115 |
});
|
116 |
}
|
117 |
if(options.animation == "none") {
|
120 |
}
|
121 |
}
|
122 |
modal.unbind('reveal:close');
|
123 |
+
});
|
124 |
|
125 |
/*---------------------------
|
126 |
Open and add Closing Listeners
|
127 |
----------------------------*/
|
128 |
//Open Modal Immediately
|
129 |
+
modal.trigger('reveal:open')
|
130 |
|
131 |
//Close Modal Listeners
|
132 |
var closeButton = $('.' + options.dismissmodalclass).bind('click.modalEvent', function () {
|
136 |
if(options.closeonbackgroundclick) {
|
137 |
modalBG.css({"cursor":"pointer"})
|
138 |
modalBG.bind('click.modalEvent', function () {
|
139 |
+
modal.trigger('reveal:close')
|
140 |
});
|
141 |
}
|
142 |
$('body').keyup(function(e) {
|
143 |
if(e.which===27){ modal.trigger('reveal:close'); } // 27 is the keycode for the Escape key
|
144 |
});
|
145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
|
147 |
/*---------------------------
|
148 |
Animations Locks
|
156 |
|
157 |
});//each call
|
158 |
}//orbit plugin call
|
159 |
+
})(jQuery);
|
160 |
+
|
assets/js/main.js
ADDED
@@ -0,0 +1,187 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
window.Shareaholic = window.Shareaholic || {};
|
2 |
+
window.shareaholic_debug = true;
|
3 |
+
|
4 |
+
Shareaholic.bind_button_clicks = function(click_object, off) {
|
5 |
+
if (off) {
|
6 |
+
$(click_object.selector).off('click.app_settings');
|
7 |
+
}
|
8 |
+
|
9 |
+
$(click_object.selector).off('click.app_settings').on('click.app_settings', function(e) {
|
10 |
+
e.preventDefault();
|
11 |
+
url = click_object.url(this);
|
12 |
+
$frame = $('<iframe>', { src: url }).appendTo('#iframe_container');
|
13 |
+
if (click_object.callback) {
|
14 |
+
click_object.callback(this);
|
15 |
+
}
|
16 |
+
$('#editing_modal').reveal({
|
17 |
+
topPosition: 50,
|
18 |
+
close: function() {
|
19 |
+
if (click_object.close) {
|
20 |
+
click_object.close(button);
|
21 |
+
}
|
22 |
+
$frame.remove();
|
23 |
+
}
|
24 |
+
});
|
25 |
+
});
|
26 |
+
}
|
27 |
+
|
28 |
+
Shareaholic.click_objects = {
|
29 |
+
'app_settings': {
|
30 |
+
selector: '#app_settings button',
|
31 |
+
url: function(button) {
|
32 |
+
id = $(button).data('location_id');
|
33 |
+
app = $(button).data('app')
|
34 |
+
url = first_part_of_url + $(button).data('href') + '?embedded=true&'
|
35 |
+
+ 'verification_key=' + verification_key;
|
36 |
+
url = url.replace(/{{id}}/, id);
|
37 |
+
return url;
|
38 |
+
},
|
39 |
+
callback: function(button) {
|
40 |
+
id = $(button).data('location_id');
|
41 |
+
app = $(button).data('app');
|
42 |
+
text = 'You can also this shortcode to place this {{app}} App anywhere.';
|
43 |
+
html = "<div id='shortcode_container'> \
|
44 |
+
<span id='shortcode_description'></span> \
|
45 |
+
<textarea id='shortcode' name='widget_div' onclick='select();' readonly='readonly'></textarea> \
|
46 |
+
</div>"
|
47 |
+
$(html).appendTo('.reveal-modal');
|
48 |
+
$('#shortcode_description').text(text.replace(/{{app}}/, Shareaholic.titlecase(app)));
|
49 |
+
$('#shortcode').text('[shareaholic app="' + app + '" id="' + id + '"]');
|
50 |
+
},
|
51 |
+
close: function(button) {
|
52 |
+
$('#shortcode_container').remove();
|
53 |
+
}
|
54 |
+
},
|
55 |
+
|
56 |
+
'general_settings': {
|
57 |
+
selector: '#general_settings',
|
58 |
+
url: function(button) {
|
59 |
+
return first_part_of_url + 'edit?embedded=true&'
|
60 |
+
+ 'verification_key=' + verification_key;
|
61 |
+
},
|
62 |
+
callback: function(button) {
|
63 |
+
$('#iframe_container').css('height', '100%');
|
64 |
+
$('#iframe_container iframe').css('height', '100%');
|
65 |
+
}
|
66 |
+
}
|
67 |
+
}
|
68 |
+
|
69 |
+
Shareaholic.Utils.PostMessage.receive('settings_saved', {
|
70 |
+
success: function(data) {
|
71 |
+
setTimeout(function(){
|
72 |
+
$('input[type="submit"]').click();
|
73 |
+
}, 100);
|
74 |
+
},
|
75 |
+
failure: function(data) {
|
76 |
+
console.log(data);
|
77 |
+
}
|
78 |
+
});
|
79 |
+
|
80 |
+
Shareaholic.titlecase = function(string) {
|
81 |
+
return string.charAt(0).toUpperCase() + string.replace(/_[a-z]/g, function(match) {
|
82 |
+
return match.toUpperCase().replace(/_/, ' ');
|
83 |
+
}).slice(1);
|
84 |
+
}
|
85 |
+
|
86 |
+
Shareaholic.disable_buttons = function() {
|
87 |
+
$('#app_settings button').each(function() {
|
88 |
+
if (!$(this).data('location_id')) {
|
89 |
+
$(this).attr('disabled', 'disabled');
|
90 |
+
} else {
|
91 |
+
$(this).removeAttr('disabled');
|
92 |
+
}
|
93 |
+
});
|
94 |
+
}
|
95 |
+
|
96 |
+
Shareaholic.create_new_location = function(_this) {
|
97 |
+
button = $(_this).siblings('button')
|
98 |
+
app = button.data('app')
|
99 |
+
location_id = button.data('location_id')
|
100 |
+
if (!!location_id) {
|
101 |
+
return;
|
102 |
+
}
|
103 |
+
|
104 |
+
data = {}
|
105 |
+
data['configuration_' + app + '_location'] = {
|
106 |
+
name: /.*\[(.*)\]/.exec($(_this).attr('name'))[1]
|
107 |
+
}
|
108 |
+
|
109 |
+
$.ajax({
|
110 |
+
url: first_part_of_url + app + '/locations.json',
|
111 |
+
type: 'POST',
|
112 |
+
data: data,
|
113 |
+
success: function(data, status, jqxhr) {
|
114 |
+
data['action'] = 'shareaholic_add_location';
|
115 |
+
button.data('location_id', data['location']['id']);
|
116 |
+
Shareaholic.disable_buttons();
|
117 |
+
Shareaholic.submit_to_admin(data, function(stuff) {
|
118 |
+
console.log(stuff);
|
119 |
+
});
|
120 |
+
},
|
121 |
+
failure: function(things) {
|
122 |
+
console.log(things);
|
123 |
+
},
|
124 |
+
xhrFields: {
|
125 |
+
withCredentials: true
|
126 |
+
}
|
127 |
+
});
|
128 |
+
}
|
129 |
+
|
130 |
+
Shareaholic.submit_to_admin = function(data, callback) {
|
131 |
+
$.ajax({
|
132 |
+
url: ajaxurl,
|
133 |
+
type: 'POST',
|
134 |
+
data: data,
|
135 |
+
success: function(response) {
|
136 |
+
try {
|
137 |
+
response = JSON.parse(response);
|
138 |
+
} catch (e) {
|
139 |
+
response = {};
|
140 |
+
}
|
141 |
+
callback(response);
|
142 |
+
},
|
143 |
+
failure: function(response) {
|
144 |
+
try {
|
145 |
+
response = JSON.parse(response);
|
146 |
+
} catch (e) {
|
147 |
+
response = {};
|
148 |
+
}
|
149 |
+
callback(response);
|
150 |
+
}
|
151 |
+
})
|
152 |
+
}
|
153 |
+
|
154 |
+
$(document).ready(function() {
|
155 |
+
|
156 |
+
Shareaholic.disable_buttons();
|
157 |
+
|
158 |
+
for (button in Shareaholic.click_objects) {
|
159 |
+
Shareaholic.bind_button_clicks(Shareaholic.click_objects[button]);
|
160 |
+
}
|
161 |
+
|
162 |
+
$('#terms_of_service_modal').reveal({
|
163 |
+
closeonbackgroundclick: false,
|
164 |
+
closeonescape: false,
|
165 |
+
topPosition: 100
|
166 |
+
});
|
167 |
+
|
168 |
+
$('#failed_to_create_api_key').reveal({
|
169 |
+
closeonbackgroundclick: false,
|
170 |
+
closeonescape: false
|
171 |
+
});
|
172 |
+
|
173 |
+
$('#get_started').on('click', function(e) {
|
174 |
+
e.preventDefault();
|
175 |
+
data = {action: 'shareaholic_accept_terms_of_service'};
|
176 |
+
// $('#terms_of_service_modal').trigger('reveal:close');
|
177 |
+
Shareaholic.submit_to_admin(data, function(){
|
178 |
+
location.reload();
|
179 |
+
});
|
180 |
+
})
|
181 |
+
|
182 |
+
$('form input[type=checkbox]').on('click', function() {
|
183 |
+
if($(this).is(':checked') && !$(this).data('location_id')) {
|
184 |
+
Shareaholic.create_new_location(this);
|
185 |
+
}
|
186 |
+
});
|
187 |
+
});
|
assets/js/main.min.js
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
window.Shareaholic=window.Shareaholic||{};window.shareaholic_debug=!0;Shareaholic.bind_button_clicks=function(a,b){b&&$(a.selector).off("click.app_settings");$(a.selector).off("click.app_settings").on("click.app_settings",function(b){b.preventDefault();url=a.url(this);$frame=$("<iframe>",{src:url}).appendTo("#iframe_container");a.callback&&a.callback(this);$("#editing_modal").reveal({topPosition:50,close:function(){a.close&&a.close(button);$frame.remove()}})})};
|
2 |
+
Shareaholic.click_objects={app_settings:{selector:"#app_settings button",url:function(a){id=$(a).data("location_id");app=$(a).data("app");url=first_part_of_url+$(a).data("href")+"?embedded=true&verification_key="+verification_key;return url=url.replace(/{{id}}/,id)},callback:function(a){id=$(a).data("location_id");app=$(a).data("app");text="You can also this shortcode to place this {{app}} App anywhere.";html="<div id='shortcode_container'> <span id='shortcode_description'></span> <textarea id='shortcode' name='widget_div' onclick='select();' readonly='readonly'></textarea> </div>";
|
3 |
+
$(html).appendTo(".reveal-modal");$("#shortcode_description").text(text.replace(/{{app}}/,Shareaholic.titlecase(app)));$("#shortcode").text('[shareaholic app="'+app+'" id="'+id+'"]')},close:function(a){$("#shortcode_container").remove()}},general_settings:{selector:"#general_settings",url:function(a){return first_part_of_url+"edit?embedded=true&verification_key="+verification_key},callback:function(a){$("#iframe_container").css("height","100%");$("#iframe_container iframe").css("height","100%")}}};
|
4 |
+
Shareaholic.Utils.PostMessage.receive("settings_saved",{success:function(a){setTimeout(function(){$('input[type="submit"]').click()},100)},failure:function(a){console.log(a)}});Shareaholic.titlecase=function(a){return a.charAt(0).toUpperCase()+a.replace(/_[a-z]/g,function(a){return a.toUpperCase().replace(/_/," ")}).slice(1)};Shareaholic.disable_buttons=function(){$("#app_settings button").each(function(){$(this).data("location_id")?$(this).removeAttr("disabled"):$(this).attr("disabled","disabled")})};
|
5 |
+
Shareaholic.create_new_location=function(a){button=$(a).siblings("button");app=button.data("app");location_id=button.data("location_id");location_id||(data={},data["configuration_"+app+"_location"]={name:/.*\[(.*)\]/.exec($(a).attr("name"))[1]},$.ajax({url:first_part_of_url+app+"/locations.json",type:"POST",data:data,success:function(a,d,c){a.action="shareaholic_add_location";button.data("location_id",a.location.id);Shareaholic.disable_buttons();Shareaholic.submit_to_admin(a,function(a){console.log(a)})},
|
6 |
+
failure:function(a){console.log(a)},xhrFields:{withCredentials:!0}}))};Shareaholic.submit_to_admin=function(a,b){$.ajax({url:ajaxurl,type:"POST",data:a,success:function(a){try{a=JSON.parse(a)}catch(c){a={}}b(a)},failure:function(a){try{a=JSON.parse(a)}catch(c){a={}}b(a)}})};
|
7 |
+
$(document).ready(function(){Shareaholic.disable_buttons();for(button in Shareaholic.click_objects)Shareaholic.bind_button_clicks(Shareaholic.click_objects[button]);$("#terms_of_service_modal").reveal({closeonbackgroundclick:!1,closeonescape:!1,topPosition:100});$("#failed_to_create_api_key").reveal({closeonbackgroundclick:!1,closeonescape:!1});$("#get_started").on("click",function(a){a.preventDefault();data={action:"shareaholic_accept_terms_of_service"};Shareaholic.submit_to_admin(data,function(){location.reload()})});
|
8 |
+
$("form input[type=checkbox]").on("click",function(){$(this).is(":checked")&&!$(this).data("location_id")&&Shareaholic.create_new_location(this)})});
|
screenshot-1.png → assets/screenshot-1.png
RENAMED
File without changes
|
screenshot-2.jpg → assets/screenshot-2.jpg
RENAMED
File without changes
|
screenshot-3.jpg → assets/screenshot-3.jpg
RENAMED
File without changes
|
screenshot-4.jpg → assets/screenshot-4.jpg
RENAMED
File without changes
|
screenshot-5.jpg → assets/screenshot-5.jpg
RENAMED
File without changes
|
screenshot-6.jpg → assets/screenshot-6.jpg
RENAMED
File without changes
|
screenshot-7.jpg → assets/screenshot-7.jpg
RENAMED
File without changes
|
screenshot-8.jpg → assets/screenshot-8.jpg
RENAMED
File without changes
|
css/admin-style.css
DELETED
@@ -1,692 +0,0 @@
|
|
1 |
-
/* General Styles */
|
2 |
-
.shrsblogo{text-indent:-100.0em;height:90px;background:url('../images/shrsb-logo.png') no-repeat 0 0;position:relative;top:25px;}
|
3 |
-
.sh-logo{text-indent:-100.0em;height:45px;width:220px;background:url('../images/shareaholic-220.png') no-repeat 0 0;top:25px;}
|
4 |
-
.shebang-info{cursor:pointer;left:5px;position:relative;top:3px;}
|
5 |
-
.dtags-info{cursor:pointer;left:5px;position:relative;top:3px;}
|
6 |
-
#info-manual,#clear-warning,#custom-warning,#custom-warning-a,#mobile-warn{display:none;}
|
7 |
-
#defaulttags{width:40%;}
|
8 |
-
ul#shrsb-sortables li div.padding{color:#555;}
|
9 |
-
ul#shrsb-sortables div.padding h1,ul#shrsb-sortables div.padding h2,ul#shrsb-sortables div.padding h3,ul#shrsb-sortables div.padding h4,ul#shrsb-sortables div.padding h5{color:#222;font-family:Corbel,Verdana,sans-serif;}
|
10 |
-
#tag-info{background:#b3d3ef none;border:1px solid #8ba2df;font-style:italic;line-height:20px;padding:10px;overflow:hidden;}
|
11 |
-
.dtags-close{color:#4f659f;font-style:normal;float:right;display:inline;text-decoration:none;cursor:pointer;}
|
12 |
-
#tweetconfig{width:100% !important;height:30px !important;}
|
13 |
-
#twitter-defaults,#genopts{margin:1px 0;}
|
14 |
-
#tweetinstructions{font-size:11px;}
|
15 |
-
#tweetcounter{margin-left:192px;font-size:9px;position:absolute;margin:0 !important;right:10px;}
|
16 |
-
#tweetcounter span{}
|
17 |
-
#tweetoutput{margin-top:15px;}
|
18 |
-
.footer{font-size:11px; color: #666666;}
|
19 |
-
.footer a{text-decoration:none; color: #21759B;}
|
20 |
-
.footer a:hover {text-decoration:underline;}
|
21 |
-
.grey_light{color: #CCC;}
|
22 |
-
.fs_c_lightgrey{color:#777777}
|
23 |
-
.shrsb_health_icon{height:16px;width:16px;}
|
24 |
-
/* End General Styles */
|
25 |
-
/*------------------------------------------------------------------------------------------*/
|
26 |
-
/* Custom Classes */
|
27 |
-
.clear{clear:both;}
|
28 |
-
.clearbig{clear:both;height:15px;}
|
29 |
-
.hidden{display:none;}
|
30 |
-
.floright{clear:none;float:right;margin:0 0 0 10px;}
|
31 |
-
.floleft{clear:none;float:left;margin:0 10px 0 0;}
|
32 |
-
.padding{padding:10px;overflow:hidden;}
|
33 |
-
.shrsb_option{display:block;font-weight:bold;margin-top:10px;color:#444;}
|
34 |
-
.hide{display:none;}
|
35 |
-
/* End Custom Classes */
|
36 |
-
/*------------------------------------------------------------------------------------------*/
|
37 |
-
/* Background Images Section */
|
38 |
-
.share-care,.share-sexy,.share-care-old,.share-love,.share-wealth,.share-enjoy,.share-german,.share-knowledge{display:block;float:left;margin:10px 0 0;padding:50px 0 0 11px;width:195px;}
|
39 |
-
.share-care{background:url('../images/sharing-caring-hearts.png') no-repeat;}
|
40 |
-
.share-sexy{background:url('../images/sharing-shr.png') no-repeat;}
|
41 |
-
.share-care-old{background:url('../images/sharing-caring.png') no-repeat;}
|
42 |
-
.share-love{background:url('../images/share-love-hearts.png') no-repeat;}
|
43 |
-
.share-wealth{background:url('../images/share-wealth.png') no-repeat;padding:50px 0 0 25px !important;}
|
44 |
-
.share-enjoy{background:url('../images/share-enjoy.png') no-repeat;}
|
45 |
-
.share-german{background:url('../images/share-german.png') no-repeat;padding-left:25px;}
|
46 |
-
.share-knowledge{background:url('../images/share-knowledge.png') no-repeat;padding-left:25px;}
|
47 |
-
/* End Background Images Section */
|
48 |
-
/*------------------------------------------------------------------------------------------*/
|
49 |
-
/* Top Status Messages */
|
50 |
-
div.shrsb-success,div.shrsb-error,div.shrsb-warning,div.shrsb-information{border-width:1px;border-style:solid;font-size:14px;font-weight:bold;height:auto;overflow:hidden;margin:30px 15px 15px 0px;padding:4px 10px 6px;width:97%;line-height:30px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;}
|
51 |
-
div.shrsb-success{background:#b4efab;border-color:#8be57e;color:#337129;}
|
52 |
-
div.shrsb-error{background:#feb1b1;border-color:#fe9090;color:#820101;}
|
53 |
-
div.shrsb-information{background:#a3d0ff;border-color:#6ab3ff;color:#004185;}
|
54 |
-
div.shrsb-warning{background:#f0feb1;border-color:#d5d458;color:#7f7200;}
|
55 |
-
.shrsb-warning a,.shrsb-information a,.shrsb-error a,.shrsb-success a{text-decoration:underline;}
|
56 |
-
.shrsb-warning a{color:#6f6300;}
|
57 |
-
.shrsb-error a{color:#cb0000;}
|
58 |
-
.shrsb-information a{color:#1b466f;}
|
59 |
-
.shrsb-success a{color:#1d5f12;}
|
60 |
-
#shrsb-sortables p{margin:0.3em 0 1.6em;}
|
61 |
-
#shrsb-sortables .shrsb-success,#shrsb-sortables .shrsb-error,#shrsb-sortables .shrsb-warning{width:auto;margin:0 0 15px;font-weight:normal;font-size:12px;}
|
62 |
-
#shrsb-sortables .shrsb-success p,#shrsb-sortables .shrsb-error p,#shrsb-sortables .shrsb-warning p{margin:0;}
|
63 |
-
/* End Top Status Messages */
|
64 |
-
/*------------------------------------------------------------------------------------------*/
|
65 |
-
/* Individual Section Status Messages */
|
66 |
-
div.dialog-box-success,div.dialog-box-error,div.dialog-box-warning,div.dialog-box-information{float:left;border-width:1px;border-style:solid;font-size:10px;font-weight:bold;height:auto;overflow:hidden;margin-bottom:10px;padding:4px 10px 6px;width:97.5%;}
|
67 |
-
div.dialog-box-succes{background:#b4efab;border-color:#8be57e;color:#337129;}
|
68 |
-
div.dialog-box-error{background:#feb1b1;border-color:#fe9090;color:#820101;}
|
69 |
-
div.dialog-box-warning{background:#f0feb1;border-color:#d5d458;color:#7f7200;}
|
70 |
-
div.dialog-box-information{background:#a3d0ff;border-color:#6ab3ff;color:#004185;}
|
71 |
-
div.dialog-left{float:left;line-height:18px;}
|
72 |
-
div.dialog-left a{text-decoration:underline;}
|
73 |
-
div.dialog-box-information a{color:#004185;}
|
74 |
-
div.dialog-box-information a:hover{color:#21759b;}
|
75 |
-
div.dialog-box-warning a{color:#af9c00;}
|
76 |
-
div.dialog-box-warning a:hover{color:#af9c00;}
|
77 |
-
div.dialog-right{float:right;}
|
78 |
-
div.dialog-right form{margin-bottom: 0px;}
|
79 |
-
img.del-x{cursor:pointer;margin-top:7px;}
|
80 |
-
/* End Individual Section Status Messages */
|
81 |
-
/*------------------------------------------------------------------------------------------*/
|
82 |
-
/* Bookmarking Services Icons */
|
83 |
-
#shrsb-networks li{background-image:url('../spritegen_default/sprite.png');background-repeat:no-repeat;cursor:move;float:left;height:40px;font-size:10px;margin:12px 2px !important;text-align:center;width:60px;}
|
84 |
-
#shrsb-networks li input{margin-top:33px;}
|
85 |
-
|
86 |
-
/* Sprite CSS */
|
87 |
-
li.shr-1
|
88 |
-
{
|
89 |
-
background-position:-60px top!important;
|
90 |
-
}
|
91 |
-
|
92 |
-
li.shr-2
|
93 |
-
{
|
94 |
-
background-position:-120px top!important;
|
95 |
-
}
|
96 |
-
|
97 |
-
li.shr-3
|
98 |
-
{
|
99 |
-
background-position:-180px top!important;
|
100 |
-
}
|
101 |
-
|
102 |
-
li.shr-5
|
103 |
-
{
|
104 |
-
background-position:-300px top!important;
|
105 |
-
}
|
106 |
-
|
107 |
-
li.shr-6
|
108 |
-
{
|
109 |
-
background-position:-360px top!important;
|
110 |
-
}
|
111 |
-
|
112 |
-
li.shr-7
|
113 |
-
{
|
114 |
-
background-position:-420px top!important;
|
115 |
-
}
|
116 |
-
|
117 |
-
li.shr-10
|
118 |
-
{
|
119 |
-
background-position:-600px top!important;
|
120 |
-
}
|
121 |
-
|
122 |
-
li.shr-14
|
123 |
-
{
|
124 |
-
background-position:-840px top!important;
|
125 |
-
}
|
126 |
-
|
127 |
-
li.shr-20
|
128 |
-
{
|
129 |
-
background-position:-1200px top!important;
|
130 |
-
}
|
131 |
-
|
132 |
-
li.shr-21
|
133 |
-
{
|
134 |
-
background-position:-1260px top!important;
|
135 |
-
}
|
136 |
-
|
137 |
-
li.shr-24
|
138 |
-
{
|
139 |
-
background-position:-1440px top!important;
|
140 |
-
}
|
141 |
-
|
142 |
-
li.shr-27
|
143 |
-
{
|
144 |
-
background-position:-1620px top!important;
|
145 |
-
}
|
146 |
-
|
147 |
-
li.shr-33
|
148 |
-
{
|
149 |
-
background-position:-1980px top!important;
|
150 |
-
}
|
151 |
-
|
152 |
-
li.shr-38
|
153 |
-
{
|
154 |
-
background-position:-2280px top!important;
|
155 |
-
}
|
156 |
-
|
157 |
-
li.shr-39
|
158 |
-
{
|
159 |
-
background-position:-2340px top!important;
|
160 |
-
}
|
161 |
-
|
162 |
-
li.shr-40
|
163 |
-
{
|
164 |
-
background-position:-2400px top!important;
|
165 |
-
}
|
166 |
-
|
167 |
-
li.shr-41
|
168 |
-
{
|
169 |
-
background-position:-2460px top!important;
|
170 |
-
}
|
171 |
-
|
172 |
-
li.shr-43
|
173 |
-
{
|
174 |
-
background-position:-2580px top!important;
|
175 |
-
}
|
176 |
-
|
177 |
-
li.shr-44
|
178 |
-
{
|
179 |
-
background-position:-2640px top!important;
|
180 |
-
}
|
181 |
-
|
182 |
-
li.shr-45
|
183 |
-
{
|
184 |
-
background-position:-2700px top!important;
|
185 |
-
}
|
186 |
-
|
187 |
-
li.shr-46
|
188 |
-
{
|
189 |
-
background-position:-2760px top!important;
|
190 |
-
}
|
191 |
-
|
192 |
-
li.shr-48
|
193 |
-
{
|
194 |
-
background-position:-2880px top!important;
|
195 |
-
}
|
196 |
-
|
197 |
-
li.shr-52
|
198 |
-
{
|
199 |
-
background-position:-3120px top!important;
|
200 |
-
}
|
201 |
-
|
202 |
-
li.shr-53
|
203 |
-
{
|
204 |
-
background-position:-3180px top!important;
|
205 |
-
}
|
206 |
-
|
207 |
-
li.shr-54
|
208 |
-
{
|
209 |
-
background-position:-3240px top!important;
|
210 |
-
}
|
211 |
-
|
212 |
-
li.shr-59
|
213 |
-
{
|
214 |
-
background-position:-3540px top!important;
|
215 |
-
}
|
216 |
-
|
217 |
-
li.shr-61
|
218 |
-
{
|
219 |
-
background-position:-3660px top!important;
|
220 |
-
}
|
221 |
-
|
222 |
-
li.shr-74
|
223 |
-
{
|
224 |
-
background-position:-4440px top!important;
|
225 |
-
}
|
226 |
-
|
227 |
-
li.shr-78
|
228 |
-
{
|
229 |
-
background-position:-4680px top!important;
|
230 |
-
}
|
231 |
-
|
232 |
-
li.shr-80
|
233 |
-
{
|
234 |
-
background-position:-4800px top!important;
|
235 |
-
}
|
236 |
-
|
237 |
-
li.shr-88
|
238 |
-
{
|
239 |
-
background-position:-5280px top!important;
|
240 |
-
}
|
241 |
-
|
242 |
-
li.shr-89
|
243 |
-
{
|
244 |
-
background-position:-5340px top!important;
|
245 |
-
}
|
246 |
-
|
247 |
-
li.shr-92
|
248 |
-
{
|
249 |
-
background-position:-5520px top!important;
|
250 |
-
}
|
251 |
-
|
252 |
-
li.shr-98
|
253 |
-
{
|
254 |
-
background-position:-5880px top!important;
|
255 |
-
}
|
256 |
-
|
257 |
-
li.shr-100
|
258 |
-
{
|
259 |
-
background-position:-6000px top!important;
|
260 |
-
}
|
261 |
-
|
262 |
-
li.shr-102
|
263 |
-
{
|
264 |
-
background-position:-6120px top!important;
|
265 |
-
}
|
266 |
-
|
267 |
-
li.shr-105
|
268 |
-
{
|
269 |
-
background-position:-6300px top!important;
|
270 |
-
}
|
271 |
-
|
272 |
-
li.shr-106
|
273 |
-
{
|
274 |
-
background-position:-6360px top!important;
|
275 |
-
}
|
276 |
-
|
277 |
-
li.shr-188
|
278 |
-
{
|
279 |
-
background-position:-11280px top!important;
|
280 |
-
}
|
281 |
-
|
282 |
-
li.shr-190
|
283 |
-
{
|
284 |
-
background-position:-11400px top!important;
|
285 |
-
}
|
286 |
-
|
287 |
-
li.shr-191
|
288 |
-
{
|
289 |
-
background-position:-11460px top!important;
|
290 |
-
}
|
291 |
-
|
292 |
-
li.shr-192
|
293 |
-
{
|
294 |
-
background-position:-11520px top!important;
|
295 |
-
}
|
296 |
-
|
297 |
-
li.shr-195
|
298 |
-
{
|
299 |
-
background-position:-11700px top!important;
|
300 |
-
}
|
301 |
-
|
302 |
-
li.shr-196
|
303 |
-
{
|
304 |
-
background-position:-11760px top!important;
|
305 |
-
}
|
306 |
-
|
307 |
-
li.shr-201
|
308 |
-
{
|
309 |
-
background-position:-12060px top!important;
|
310 |
-
}
|
311 |
-
|
312 |
-
li.shr-202
|
313 |
-
{
|
314 |
-
background-position:-12120px top!important;
|
315 |
-
}
|
316 |
-
|
317 |
-
li.shr-204
|
318 |
-
{
|
319 |
-
background-position:-12240px top!important;
|
320 |
-
}
|
321 |
-
|
322 |
-
li.shr-205
|
323 |
-
{
|
324 |
-
background-position:-12300px top!important;
|
325 |
-
}
|
326 |
-
|
327 |
-
li.shr-210
|
328 |
-
{
|
329 |
-
background-position:-12600px top!important;
|
330 |
-
}
|
331 |
-
|
332 |
-
li.shr-218
|
333 |
-
{
|
334 |
-
background-position:-13080px top!important;
|
335 |
-
}
|
336 |
-
|
337 |
-
li.shr-219
|
338 |
-
{
|
339 |
-
background-position:-13140px top!important;
|
340 |
-
}
|
341 |
-
|
342 |
-
li.shr-236
|
343 |
-
{
|
344 |
-
background-position:-14160px top!important;
|
345 |
-
}
|
346 |
-
|
347 |
-
li.shr-238
|
348 |
-
{
|
349 |
-
background-position:-14280px top!important;
|
350 |
-
}
|
351 |
-
|
352 |
-
li.shr-240
|
353 |
-
{
|
354 |
-
background-position:-14400px top!important;
|
355 |
-
}
|
356 |
-
|
357 |
-
li.shr-243
|
358 |
-
{
|
359 |
-
background-position:-14580px top!important;
|
360 |
-
}
|
361 |
-
|
362 |
-
li.shr-246
|
363 |
-
{
|
364 |
-
background-position:-14760px top!important;
|
365 |
-
}
|
366 |
-
|
367 |
-
li.shr-247
|
368 |
-
{
|
369 |
-
background-position:-14820px top!important;
|
370 |
-
}
|
371 |
-
|
372 |
-
li.shr-263
|
373 |
-
{
|
374 |
-
background-position:-15780px top!important;
|
375 |
-
}
|
376 |
-
|
377 |
-
li.shr-264
|
378 |
-
{
|
379 |
-
background-position:-15840px top!important;
|
380 |
-
}
|
381 |
-
|
382 |
-
li.shr-265
|
383 |
-
{
|
384 |
-
background-position:-15900px top!important;
|
385 |
-
}
|
386 |
-
|
387 |
-
li.shr-266
|
388 |
-
{
|
389 |
-
background-position:-15960px top!important;
|
390 |
-
}
|
391 |
-
|
392 |
-
li.shr-267
|
393 |
-
{
|
394 |
-
background-position:-16020px top!important;
|
395 |
-
}
|
396 |
-
|
397 |
-
li.shr-268
|
398 |
-
{
|
399 |
-
background-position:-16080px top!important;
|
400 |
-
}
|
401 |
-
|
402 |
-
li.shr-269
|
403 |
-
{
|
404 |
-
background-position:-16140px top!important;
|
405 |
-
}
|
406 |
-
|
407 |
-
li.shr-277
|
408 |
-
{
|
409 |
-
background-position:-16620px top!important;
|
410 |
-
}
|
411 |
-
|
412 |
-
li.shr-278
|
413 |
-
{
|
414 |
-
background-position:-16680px top!important;
|
415 |
-
}
|
416 |
-
|
417 |
-
li.shr-279
|
418 |
-
{
|
419 |
-
background-position:-16740px top!important;
|
420 |
-
}
|
421 |
-
|
422 |
-
li.shr-280
|
423 |
-
{
|
424 |
-
background-position:-16800px top!important;
|
425 |
-
}
|
426 |
-
|
427 |
-
li.shr-281
|
428 |
-
{
|
429 |
-
background-position:-16860px top!important;
|
430 |
-
}
|
431 |
-
|
432 |
-
li.shr-282
|
433 |
-
{
|
434 |
-
background-position:-16920px top!important;
|
435 |
-
}
|
436 |
-
|
437 |
-
li.shr-283
|
438 |
-
{
|
439 |
-
background-position:-16980px top!important;
|
440 |
-
}
|
441 |
-
|
442 |
-
li.shr-284
|
443 |
-
{
|
444 |
-
background-position:-17040px top!important;
|
445 |
-
}
|
446 |
-
|
447 |
-
li.shr-285
|
448 |
-
{
|
449 |
-
background-position:-17100px top!important;
|
450 |
-
}
|
451 |
-
|
452 |
-
li.shr-286
|
453 |
-
{
|
454 |
-
background-position:-17160px top!important;
|
455 |
-
}
|
456 |
-
|
457 |
-
li.shr-287
|
458 |
-
{
|
459 |
-
background-position:-17220px top!important;
|
460 |
-
}
|
461 |
-
|
462 |
-
li.shr-288
|
463 |
-
{
|
464 |
-
background-position:-17280px top!important;
|
465 |
-
}
|
466 |
-
|
467 |
-
li.shr-289
|
468 |
-
{
|
469 |
-
background-position:-17340px top!important;
|
470 |
-
}
|
471 |
-
|
472 |
-
li.shr-290
|
473 |
-
{
|
474 |
-
background-position:-17400px top!important;
|
475 |
-
}
|
476 |
-
|
477 |
-
li.shr-291
|
478 |
-
{
|
479 |
-
background-position:-17460px top!important;
|
480 |
-
}
|
481 |
-
|
482 |
-
li.shr-292
|
483 |
-
{
|
484 |
-
background-position:-17520px top!important;
|
485 |
-
}
|
486 |
-
|
487 |
-
li.shr-293
|
488 |
-
{
|
489 |
-
background-position:-17580px top!important;
|
490 |
-
}
|
491 |
-
|
492 |
-
li.shr-294
|
493 |
-
{
|
494 |
-
background-position:-17640px top!important;
|
495 |
-
}
|
496 |
-
|
497 |
-
li.shr-304
|
498 |
-
{
|
499 |
-
background-position:-18240px top!important;
|
500 |
-
}
|
501 |
-
|
502 |
-
li.shr-309
|
503 |
-
{
|
504 |
-
background-position:-18540px top!important;
|
505 |
-
}
|
506 |
-
|
507 |
-
li.shr-313
|
508 |
-
{
|
509 |
-
background-position:-18780px top!important;
|
510 |
-
}
|
511 |
-
/* End Sprite CSS */
|
512 |
-
|
513 |
-
ul.multi-selection{list-style:none;overflow:hidden;position:absolute;top:6px;right:0;}
|
514 |
-
ul.multi-selection li{display:block;float:left;clear:none;margin:0 !important;}
|
515 |
-
ul.multi-selection li.label-faker{margin-right:10px !important;}
|
516 |
-
ul.multi-selection li input{}
|
517 |
-
|
518 |
-
#shrsb-networks li.shr-pinterest{background-image:url('../images/pinterest.png');height: 41px;}
|
519 |
-
#shrsb-networks li.shr-googleplus{background-image:url('../images/googleplus.png');height: 41px;}
|
520 |
-
#shrsb-networks li.shr-fastmail{background-image:url('../images/shareaholicmail.png');height: 41px;}
|
521 |
-
|
522 |
-
/* End Bookmarking Services Icons */
|
523 |
-
/*------------------------------------------------------------------------------------------*/
|
524 |
-
/* Main Structure Styles */
|
525 |
-
div#shrsb-col-left{float:left;margin:15px 10px 0 0;}
|
526 |
-
#shrsb-col-left label{margin:0 12px 0 0;}
|
527 |
-
ul#shrsb-sortables li{list-style-type:none;margin:0 300px 20px 0;position:relative;}
|
528 |
-
ul#shrsb-sortables{list-style-type:none;}
|
529 |
-
div.box-mid-head{background:transparent url('../images/flo-head.jpg') repeat-x scroll 0 0;border:1px solid #DBDBDB;cursor:move;height:27px;text-align:right;width:100%;}
|
530 |
-
div.box-mid-head h2{color:#21759b;float:left;font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-size:14px;font-style:normal;font-weight:normal;height:24px;line-height:20px;margin:0;padding:3px 0 0 10px;text-align:left;}
|
531 |
-
div.box-mid-head a:hover{border:medium none;}
|
532 |
-
div.box-mid-head input{border:1px solid #ccc;}
|
533 |
-
div.box-mid-body{background:#fff url('../images/white-pix.jpg') repeat-x center top;border:1px solid #dbdbdb;border-top:0 none;display:table;width:100%;}
|
534 |
-
div.box-mid-body h3{display:block;font-size:18px;font-weight:bold;margin:8px 0;}
|
535 |
-
div#shrsb-col-right{clear:none;float:left;margin:5px 10px 0;position:absolute;right:1.3%;width:256px;}
|
536 |
-
div.box-right{float:left;margin-bottom:20px;}
|
537 |
-
div.box-right-head{background:transparent url('../images/flo-head.jpg') repeat-x 0 0;border:1px solid #dbdbdb;float:left;height:27px;width:256px;}
|
538 |
-
div.box-right-head h3{color:#21759b;float:left;font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-size:14px;font-style:normal;font-weight:normal;height:24px;line-height:20px;margin:0;padding:3px 0 0 10px;text-align:left;}
|
539 |
-
div.box-right-body{background:#fff url('../images/white-pix.jpg') repeat-x center top;border:1px solid #dbdbdb;border-top:0 none;float:left;width:256px;}
|
540 |
-
div.box-right-body h4{display:block;font-size:16px;font-weight:bold;margin:8px 0;}
|
541 |
-
div.box-right-body ul{list-style-image:none;list-style-position:inside;list-style-type:none;margin:0;}
|
542 |
-
div.box-right-body ul li strong{color:#454545;font-weight:bold}
|
543 |
-
div.shrsbsubmit,div.shrsbreset{float:left;margin:15px 0 40px;}
|
544 |
-
div.shrsbreset{margin-left:15px}
|
545 |
-
div.shrsbsubmit input{font-size:26px !important;padding:14px 20px !important;border-radius:4px !important;-moz-border-radius:4px !important;-webkit-border-radius:4px !important;outline:0 none !important;}
|
546 |
-
div.shrsbreset input{font-size:16px !important;border:0;padding:14px 20px !important;outline:0 none !important;}
|
547 |
-
div.shrsbsubmit input{background:#3dcb36 url('../images/green-grad.png') repeat-x 0 0 !important;border:1px solid #0f8f08 !important;color:white !important;}
|
548 |
-
div.shrsbreset input{color:grey !important;}
|
549 |
-
div.shrsbsubmit input:hover,div.shrsbreset input:hover{cursor:pointer !important}
|
550 |
-
div.shrsbsubmit input:active,div.shrsbsubmit input:focus{background-position:left bottom !important;outline:0 none !important;}
|
551 |
-
div.shrsbreset input:active,div.shrsbreset input:focus{background-position:left bottom !important;outline:0 none !important;}
|
552 |
-
/* End Main Structure Styles */
|
553 |
-
/*------------------------------------------------------------------------------------------*/
|
554 |
-
/* Useful Links Section */
|
555 |
-
div.box-right-body ul.infolinks{list-style-type:none;list-style-position:outside;}
|
556 |
-
div.box-right-body ul.infolinks li{background:url('../images/custom-fugue-sprite.png') no-repeat 0 -2367px;text-indent:22px;line-height:15px;margin-bottom:12px;font-size:11px;}
|
557 |
-
div.box-right-body ul.infolinks li a{text-decoration:none;}
|
558 |
-
/* End Useful Links Section */
|
559 |
-
/*------------------------------------------------------------------------------------------*/
|
560 |
-
/* Credits Section */
|
561 |
-
div.box-right-body ul.credits{list-style-type:none;list-style-position:outside;}
|
562 |
-
div.box-right-body ul.credits li{background:url('../images/custom-fugue-sprite.png') no-repeat 0 -2585px;text-indent:22px;line-height:15px;margin-bottom:12px;font-size:11px;}
|
563 |
-
div.box-right-body ul.credits li a{text-decoration:none;}
|
564 |
-
/* End Credits Section */
|
565 |
-
/*------------------------------------------------------------------------------------------*/
|
566 |
-
/* Translations Section */
|
567 |
-
div.box-right-body ul.langs{list-style-type:none;list-style-position:outside;}
|
568 |
-
div.box-right-body ul.langs li{background:url('../images/custom-fugue-sprite.png') no-repeat 0 -2475px;text-indent:22px;line-height:15px;margin-bottom:12px;font-size:11px;}
|
569 |
-
div.box-right-body ul.langs li a{text-decoration:none;}
|
570 |
-
/* End Translations Section */
|
571 |
-
/*------------------------------------------------------------------------------------------*/
|
572 |
-
/* Custom Mods Warning */
|
573 |
-
#custom-mods-notice{padding:5px 15px;background:#ffefef;border:5px solid #ef3b3b;margin-bottom:25px;display:none;}
|
574 |
-
#custom-mods-notice h1{background:url('../images/warning-big.png') no-repeat 0 0;font-size:48px;height:48px;line-height:42px;text-indent:48px;width:100%;color:#ef3b3b !important;margin:20px 0;text-shadow:#cf2626 0 1px 0,#fff 0 -1px 0;}
|
575 |
-
.custom-mods-notice-close{cursor:pointer;float:right;color:#5c0101;font-weight:bold;display:block;line-height:14px;margin-bottom:5px;padding-left:18px !important;}
|
576 |
-
#custom-mods-notice h3{margin:20px 0;}
|
577 |
-
#custom-mods-notice p{line-height:22px;}
|
578 |
-
#custom-mods-notice ol li{list-style:decimal;}
|
579 |
-
#custom-mods-notice ul{list-style:none;list-style-position:outside;margin:15px 0 25px 15px;}
|
580 |
-
#custom-mods-notice ul li{margin:15px 0 0 15px;padding:0 0 0 24px;line-height:22px;}
|
581 |
-
#custom-mods-notice li a{color:#9f1313;}
|
582 |
-
#custom-mods-notice ul li.custom-mods-folder{background:url('../images/custom-fugue-sprite.png') no-repeat 0 -2020px;}
|
583 |
-
#custom-mods-notice ul li.custom-mods-image{background:url('../images/custom-fugue-sprite.png') no-repeat 0 -2137px;}
|
584 |
-
#custom-mods-notice ul li.custom-mods-code{background:url('../images/custom-fugue-sprite.png') no-repeat 0 -2253px;}
|
585 |
-
/* End Custom Mods Warning */
|
586 |
-
/*------------------------------------------------------------------------------------------*/
|
587 |
-
/* Custom Fugue Sprite Styles */
|
588 |
-
.fugue{background:url('../images/custom-fugue-sprite.png') no-repeat;padding-left:22px;}
|
589 |
-
.fugue.f-info{background-position:0 2px;margin:2px 10px 0 0;}
|
590 |
-
.fugue.f-warn{background-position:0 -83px;margin:2px 10px 0 0;}
|
591 |
-
.fugue.f-success{background-position:0 -178px;margin:7px 10px 0 0;}
|
592 |
-
.fugue.f-question{background-position:0 -295px;margin:2px 10px 0 0;width:16px;border:0;padding:0;display:inline-block;}
|
593 |
-
.fugue.f-info-frame{background-position:0 -411px;height:16px;line-height:16px;padding:0;position:relative;top:6px;left:10px;text-indent:25px;}
|
594 |
-
.fugue.f-error{background-position:0 -525px;margin:2px 10px 0 0;}
|
595 |
-
.fugue.f-delete{background-position:0 -640px;}
|
596 |
-
.fugue.f-globe-plus{background-position:0 -755px;height:16px;line-height:16px;padding:0;position:relative;top:6px;left:10px;text-indent:25px;}
|
597 |
-
.fugue.f-leaf-pencil{background-position:0 -871px;height:16px;line-height:16px;padding:0;position:relative;top:6px;left:10px;text-indent:25px;}
|
598 |
-
.fugue.f-wrench{background-position:0 -987px;height:16px;line-height:16px;padding:0;position:relative;top:6px;left:10px;text-indent:25px;}
|
599 |
-
.fugue.f-money{background-position:0 -1102px;height:16px;line-height:16px;padding:0;position:relative;top:6px;left:10px;text-indent:25px;}
|
600 |
-
.fugue.f-medal{background-position:0 -1217px;height:16px;line-height:16px;padding:0;position:relative;top:6px;left:10px;text-indent:25px;}
|
601 |
-
.fugue.f-pallette{background-position:0 -1332px;height:16px;line-height:16px;padding:0;position:relative;top:6px;left:10px;text-indent:25px;}
|
602 |
-
.fugue.f-plugin{background-position:0 -1447px;margin:5px 0 20px 0;padding-left:22px;display:block;clear:both;}
|
603 |
-
.fugue.f-megaphone{background-position:0 -1564px;height:16px;line-height:16px;padding:0;position:relative;top:6px;left:10px;text-indent:25px;}
|
604 |
-
.fugue.f-flags{background-position:0 -1680px;height:16px;line-height:16px;padding:0;position:relative;top:6px;left:10px;text-indent:25px;}
|
605 |
-
.fugue.f-image{background-position:0 -1794px;height:16px;line-height:16px;padding:0;position:relative;top:6px;left:10px;text-indent:25px;}
|
606 |
-
.fugue.f-footer{background-position:0 -1909px;height:16px;line-height:16px;padding:0;position:relative;top:6px;left:10px;text-indent:25px;}
|
607 |
-
.fugue.f-folder{background-position:0 -2020px;}
|
608 |
-
.fugue.f-doc-image{background-position:0 -2137px;}
|
609 |
-
.fugue.f-doc-code{background-position:0 -2253px;}
|
610 |
-
.fugue.f-link-small{background-position:0 -2367px;}
|
611 |
-
.fugue.f-globe-small{background-position:0 -2475px;}
|
612 |
-
.fugue.f-star-small{background-position:0 -2585px;}
|
613 |
-
.fugue.f-status{background-position:0 -2697px;height:16px;line-height:16px;padding:0;position:relative;top:6px;left:10px;text-indent:25px;}
|
614 |
-
/* End Custom Fugue Sprite Styles */
|
615 |
-
/*------------------------------------------------------------------------------------------*/
|
616 |
-
.colorpicker{width:356px;height:176px;overflow:hidden;position:absolute;background:url(../images/colorpicker_images/colorpicker_background.png);font-family:Arial,Helvetica,sans-serif;display:none;z-index: 9999;}
|
617 |
-
.colorpicker_color{width:150px;height:150px;left:14px;top:13px;position:absolute;background:#f00;overflow:hidden;cursor:crosshair}
|
618 |
-
.colorpicker_color div{position:absolute;top:0;left:0;width:150px;height:150px;background:url(../images/colorpicker_images/colorpicker_overlay.png)}
|
619 |
-
.colorpicker_color div div{position:absolute;top:0;left:0;width:11px;height:11px;overflow:hidden;background:url(../images/colorpicker_images/colorpicker_select.gif);margin:-5px 0 0 -5px}
|
620 |
-
.colorpicker_hue{position:absolute;top:13px;left:171px;width:35px;height:150px;cursor:n-resize}
|
621 |
-
.colorpicker_hue div{position:absolute;width:35px;height:9px;overflow:hidden;background:url(../images/colorpicker_images/colorpicker_indic.gif) left top;margin:-4px 0 0 0;left:0px}
|
622 |
-
.colorpicker_new_color{position:absolute;width:60px;height:30px;left:213px;top:13px;background:#f00}
|
623 |
-
.colorpicker_current_color{position:absolute;width:60px;height:30px;left:283px;top:13px;background:#f00}
|
624 |
-
.colorpicker input{background-color:transparent;border:1px solid transparent;position:absolute;font-size:10px;font-family:Arial,Helvetica,sans-serif;color:#898989;top:4px;right:11px;text-align:right;margin:0;padding:0;height:11px}
|
625 |
-
.colorpicker_hex{position:absolute;width:72px;height:22px;background:url(../images/colorpicker_images/colorpicker_hex.png) top;left:212px;top:142px}
|
626 |
-
.colorpicker_hex input{right:6px}
|
627 |
-
.colorpicker_field{height:22px;width:62px;background-position:top;position:absolute}
|
628 |
-
.colorpicker_field span{position:absolute;width:12px;height:22px;overflow:hidden;top:0;right:0;cursor:n-resize}
|
629 |
-
.colorpicker_rgb_r{background-image:url(../images/colorpicker_images/colorpicker_rgb_r.png);top:52px;left:212px}
|
630 |
-
.colorpicker_rgb_g{background-image:url(../images/colorpicker_images/colorpicker_rgb_g.png);top:82px;left:212px}
|
631 |
-
.colorpicker_rgb_b{background-image:url(../images/colorpicker_images/colorpicker_rgb_b.png);top:112px;left:212px}
|
632 |
-
.colorpicker_hsb_h{background-image:url(../images/colorpicker_images/colorpicker_hsb_h.png);top:52px;left:282px}
|
633 |
-
.colorpicker_hsb_s{background-image:url(../images/colorpicker_images/colorpicker_hsb_s.png);top:82px;left:282px}
|
634 |
-
.colorpicker_hsb_b{background-image:url(../images/colorpicker_images/colorpicker_hsb_b.png);top:112px;left:282px}
|
635 |
-
.colorpicker_submit{position:absolute;width:22px;height:22px;background:url(../images/colorpicker_images/colorpicker_submit.png) top;left:322px;top:142px;overflow:hidden}
|
636 |
-
.colorpicker_focus{background-position:center}
|
637 |
-
.colorpicker_hex.colorpicker_focus{background-position:bottom}
|
638 |
-
.colorpicker_submit.colorpicker_focus{background-position:bottom}
|
639 |
-
.colorpicker_slider{background-position:bottom}
|
640 |
-
.color_selector{display:inline;width:36px !important;height:36px !important;background:url(../images/colorpicker_images/select2.png) !important}
|
641 |
-
.color_selector div{position:relative !important;top:4px !important;left:4px !important;width:28px !important;height:28px !important;background:url(../images/colorpicker_images/select2.png) center}
|
642 |
-
/*------------------------------------------------------------------------------------------*/
|
643 |
-
/* Stats */
|
644 |
-
#bonusShareFacesUL{height:35px !important;padding-top:1px !important;margin-top:8px !important;}
|
645 |
-
.bonusShareLi{display:inline !important;float:left !important;margin:0px 1px 0px 1px !important;}
|
646 |
-
.bonusShareFaces{width:38px !important;height:38px !important;border:solid transparent;}
|
647 |
-
.bonusShareFaces:hover{width:38px !important;height:38px !important;border:solid grey;}
|
648 |
-
/* End Stats Styles */
|
649 |
-
/*------------------------------------------------------------------------------------------*/
|
650 |
-
/* Functionality options Styles*/
|
651 |
-
#genopts td:first-child{min-width:380px;}
|
652 |
-
.tab{margin-left:30px !important;}
|
653 |
-
.tabForTr td:first-child{padding-left:30px !important;}
|
654 |
-
/* End of functionality options Styles*/
|
655 |
-
/*------------------------------------------------------------------------------------------*/
|
656 |
-
.shr-fb-like-standard{background-image:url(../images/fbplusone.png);background-position:0 -5px;width:60px !important;height:35px !important;}
|
657 |
-
.shr-fb-like-button{background-image:url(../images/fbplusone.png);background-position:0 -37px;width:100px !important;height:30px !important;}
|
658 |
-
.shr-fb-like-box{background-image:url(../images/fbplusone.png);background-position:0 -72px;width:60px !important;height:70px !important;}
|
659 |
-
.shr-tw-button-button,.shr-tw-button-standard{background-image:url(../images/tweetn.png);background-position:0 0;width:55px !important;height:20px !important;margin-top: 6px}
|
660 |
-
.shr-tw-button-button-count,.shr-tw-button-standard-count{background-image:url(../images/tweeth.png);width:108px !important;height:20px !important;background-position:-0px -0px;background-repeat:no-repeat;margin-top: 7px}
|
661 |
-
.shr-tw-button-box,.shr-tw-button-box-count{background-image:url(../images/tweetv.png);background-position:0 0;width:55px !important;height:63px !important;margin-top: 6px;}
|
662 |
-
.shr-plus-one-button{background-image:url(../images/fbplusone.png);background-position:-230px -12px;width:35px !important;height:30px !important;}
|
663 |
-
.shr-plus-one-button-count{background-image:url(../images/fbplusone.png);background-position:-120px -12px;width:85px !important;height:30px !important;}
|
664 |
-
.shr-plus-one-standard{background-image:url(../images/fbplusone.png);background-position:-230px -52px;width:40px !important;height:30px !important;}
|
665 |
-
.shr-plus-one-standard-count{background-image:url(../images/fbplusone.png);background-position:-120px -52px;width:95px !important;height:30px !important;}
|
666 |
-
.shr-plus-one-box-count{background-image:url(../images/fbplusone.png);background-position:-120px -90px;width:60px !important;height:70px !important;}
|
667 |
-
.shr-plus-one-box{background-image:url(../images/fbplusone.png);background-position:-120px -90px;width:60px !important;height:70px !important;}
|
668 |
-
.shr-fb-send{background-image:url(../images/fbplusone.png);background-position:-195px -93px;width:65px !important;height:32px !important;}
|
669 |
-
.dropzone{border:1px dashed #999;background:#e3e3e3;-moz-border-radius:4px;-khtml-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;background-image:none !important;}
|
670 |
-
.dropzoneNetworks{border:1px dashed #999;background:#e3e3e3;-moz-border-radius:2px;-khtml-border-radius:2px;-webkit-border-radius:2px;width:58px !important;height:43px !important;margin:10px 0px !important;border-radius:2px;background-image:none !important;}
|
671 |
-
#buttonPreviewsTop li,#buttonPreviewsBottom li{margin:0px 10px !important;padding:0px !important;float:left;}
|
672 |
-
/*------------------------------------------------------------------------------------------*/
|
673 |
-
/* Adjustments for bootstrap*/
|
674 |
-
#wpbody-content label input{float: left;}
|
675 |
-
#wpbody-content input{width: auto !important;height: auto;margin-right: 3px;}
|
676 |
-
#wpbody-content label{display: inline-block;}
|
677 |
-
#wpbody-content .hidden{display: none;visibility: visible;}
|
678 |
-
ul#shrsb-sortables li.reveal-modal{left: 25%;padding: 0;position: fixed;top:100px;}
|
679 |
-
#third-party-modal {top:0px !important;visibility: visible !important;}
|
680 |
-
/* End Adjustments for Bootstrap*/
|
681 |
-
/*------------------------------------------------------------------------------------------*/
|
682 |
-
/* Landing Page */
|
683 |
-
.select_product{background-color: #fff;display: block;font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;border: 1px solid #DEDEDE;margin-bottom: 25px;-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);overflow: auto;padding-top: 10px;padding-bottom: 10px;padding-left: 20px;-webkit-border-radius: 4px;-moz-border-radius: 4px;border-radius: 4px; max-width: 800px;-webkit-transition-duration: .4s;-moz-transition-duration: .4s;}
|
684 |
-
.select_product h1 {padding-top: 3px;}
|
685 |
-
.select_product div{display: inline-block}
|
686 |
-
.shr-landing-product-icon{float: left; min-width: 90px;}
|
687 |
-
.shr-landing-product-name{float: left; width: auto;}
|
688 |
-
.shr-landing-product-name h2{margin-top:14px;margin-bottom: 2px;font-size: 18px;}
|
689 |
-
.shr-landing-product-desc {font-family: Georgia,"Times New Roman","Bitstream Charter",Times,serif;color: #505961;font-size: 12px;}
|
690 |
-
.shr-landing-product-configure{float: right; padding: 20px 20px 0px 10px;}
|
691 |
-
/* End Landing Page Styles */
|
692 |
-
/*------------------------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/bootstrap/bootstrap.min.css
DELETED
@@ -1,588 +0,0 @@
|
|
1 |
-
/*!
|
2 |
-
* Bootstrap v2.0.0
|
3 |
-
*
|
4 |
-
* Copyright 2012 Twitter, Inc
|
5 |
-
* Licensed under the Apache License v2.0
|
6 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
7 |
-
*
|
8 |
-
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
9 |
-
*/
|
10 |
-
|
11 |
-
article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block;}
|
12 |
-
audio,canvas,video{display:inline-block;*display:inline;*zoom:1;}
|
13 |
-
audio:not([controls]){display:none;}
|
14 |
-
html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;}
|
15 |
-
a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;}
|
16 |
-
a:hover,a:active{outline:0;}
|
17 |
-
sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline;}
|
18 |
-
sup{top:-0.5em;}
|
19 |
-
sub{bottom:-0.25em;}
|
20 |
-
img{max-width:100%;height:auto;border:0;-ms-interpolation-mode:bicubic;}
|
21 |
-
button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle;}
|
22 |
-
button,input{*overflow:visible;line-height:normal;}
|
23 |
-
button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0;}
|
24 |
-
button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button;}
|
25 |
-
input[type="search"]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;}
|
26 |
-
input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none;}
|
27 |
-
textarea{overflow:auto;vertical-align:top;}
|
28 |
-
body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;color:#333333;background-color:#ffffff;}
|
29 |
-
a{color:#0088cc;text-decoration:none;}
|
30 |
-
a:hover{color:#005580;text-decoration:underline;}
|
31 |
-
.row{margin-left:-20px;*zoom:1;}.row:before,.row:after{display:table;content:"";}
|
32 |
-
.row:after{clear:both;}
|
33 |
-
[class*="span"]{float:left;margin-left:20px;}
|
34 |
-
.span1{width:60px;}
|
35 |
-
.span2{width:140px;}
|
36 |
-
.span3{width:220px;}
|
37 |
-
.span4{width:300px;}
|
38 |
-
.span5{width:380px;}
|
39 |
-
.span6{width:460px;}
|
40 |
-
.span7{width:540px;}
|
41 |
-
.span8{width:620px;}
|
42 |
-
.span9{width:700px;}
|
43 |
-
.span10{width:780px;}
|
44 |
-
.span11{width:860px;}
|
45 |
-
.span12,.container{width:940px;}
|
46 |
-
.offset1{margin-left:100px;}
|
47 |
-
.offset2{margin-left:180px;}
|
48 |
-
.offset3{margin-left:260px;}
|
49 |
-
.offset4{margin-left:340px;}
|
50 |
-
.offset5{margin-left:420px;}
|
51 |
-
.offset6{margin-left:500px;}
|
52 |
-
.offset7{margin-left:580px;}
|
53 |
-
.offset8{margin-left:660px;}
|
54 |
-
.offset9{margin-left:740px;}
|
55 |
-
.offset10{margin-left:820px;}
|
56 |
-
.offset11{margin-left:900px;}
|
57 |
-
.row-fluid{width:100%;*zoom:1;}.row-fluid:before,.row-fluid:after{display:table;content:"";}
|
58 |
-
.row-fluid:after{clear:both;}
|
59 |
-
.row-fluid>[class*="span"]{float:left;margin-left:2.127659574%;}
|
60 |
-
.row-fluid>[class*="span"]:first-child{margin-left:0;}
|
61 |
-
.row-fluid .span1{width:6.382978723%;}
|
62 |
-
.row-fluid .span2{width:14.89361702%;}
|
63 |
-
.row-fluid .span3{width:23.404255317%;}
|
64 |
-
.row-fluid .span4{width:31.914893614%;}
|
65 |
-
.row-fluid .span5{width:40.425531911%;}
|
66 |
-
.row-fluid .span6{width:48.93617020799999%;}
|
67 |
-
.row-fluid .span7{width:57.446808505%;}
|
68 |
-
.row-fluid .span8{width:65.95744680199999%;}
|
69 |
-
.row-fluid .span9{width:74.468085099%;}
|
70 |
-
.row-fluid .span10{width:82.97872339599999%;}
|
71 |
-
.row-fluid .span11{width:91.489361693%;}
|
72 |
-
.row-fluid .span12{width:99.99999998999999%;}
|
73 |
-
.container{width:940px;margin-left:auto;margin-right:auto;*zoom:1;}.container:before,.container:after{display:table;content:"";}
|
74 |
-
.container:after{clear:both;}
|
75 |
-
.container-fluid{padding-left:20px;padding-right:20px;*zoom:1;}.container-fluid:before,.container-fluid:after{display:table;content:"";}
|
76 |
-
.container-fluid:after{clear:both;}
|
77 |
-
code,pre{padding:0 3px 2px;font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;color:#333333;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
|
78 |
-
code{padding:3px 4px;color:#d14;background-color:#f7f7f9;border:1px solid #e1e1e8;}
|
79 |
-
pre{display:block;padding:8.5px;margin:0 0 9px;font-size:12px;line-height:18px;background-color:#f5f5f5;border:1px solid #ccc;border:1px solid rgba(0, 0, 0, 0.15);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;white-space:pre;white-space:pre-wrap;word-break:break-all;}pre.prettyprint{margin-bottom:18px;}
|
80 |
-
pre code{padding:0;background-color:transparent;}
|
81 |
-
.label{padding:1px 3px 2px;font-size:9.75px;font-weight:bold;color:#ffffff;text-transform:uppercase;background-color:#999999;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
|
82 |
-
.label-important{background-color:#b94a48;}
|
83 |
-
.label-warning{background-color:#f89406;}
|
84 |
-
.label-success{background-color:#468847;}
|
85 |
-
.label-info{background-color:#3a87ad;}
|
86 |
-
table{max-width:100%;border-collapse:collapse;border-spacing:0;}
|
87 |
-
.table{width:100%;margin-bottom:18px;}.table th,.table td{padding:8px;line-height:18px;text-align:left;border-top:1px solid #ddd;}
|
88 |
-
.table th{font-weight:bold;vertical-align:bottom;}
|
89 |
-
.table td{vertical-align:top;}
|
90 |
-
.table thead:first-child tr th,.table thead:first-child tr td{border-top:0;}
|
91 |
-
.table tbody+tbody{border-top:2px solid #ddd;}
|
92 |
-
.table-condensed th,.table-condensed td{padding:4px 5px;}
|
93 |
-
.table-bordered{border:1px solid #ddd;border-collapse:separate;*border-collapse:collapsed;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}.table-bordered th+th,.table-bordered td+td,.table-bordered th+td,.table-bordered td+th{border-left:1px solid #ddd;}
|
94 |
-
.table-bordered thead:first-child tr:first-child th,.table-bordered tbody:first-child tr:first-child th,.table-bordered tbody:first-child tr:first-child td{border-top:0;}
|
95 |
-
.table-bordered thead:first-child tr:first-child th:first-child,.table-bordered tbody:first-child tr:first-child td:first-child{-webkit-border-radius:4px 0 0 0;-moz-border-radius:4px 0 0 0;border-radius:4px 0 0 0;}
|
96 |
-
.table-bordered thead:first-child tr:first-child th:last-child,.table-bordered tbody:first-child tr:first-child td:last-child{-webkit-border-radius:0 4px 0 0;-moz-border-radius:0 4px 0 0;border-radius:0 4px 0 0;}
|
97 |
-
.table-bordered thead:last-child tr:last-child th:first-child,.table-bordered tbody:last-child tr:last-child td:first-child{-webkit-border-radius:0 0 0 4px;-moz-border-radius:0 0 0 4px;border-radius:0 0 0 4px;}
|
98 |
-
.table-bordered thead:last-child tr:last-child th:last-child,.table-bordered tbody:last-child tr:last-child td:last-child{-webkit-border-radius:0 0 4px 0;-moz-border-radius:0 0 4px 0;border-radius:0 0 4px 0;}
|
99 |
-
.table-striped tbody tr:nth-child(odd) td,.table-striped tbody tr:nth-child(odd) th{background-color:#f9f9f9;}
|
100 |
-
table .span1{float:none;width:44px;margin-left:0;}
|
101 |
-
table .span2{float:none;width:124px;margin-left:0;}
|
102 |
-
table .span3{float:none;width:204px;margin-left:0;}
|
103 |
-
table .span4{float:none;width:284px;margin-left:0;}
|
104 |
-
table .span5{float:none;width:364px;margin-left:0;}
|
105 |
-
table .span6{float:none;width:444px;margin-left:0;}
|
106 |
-
table .span7{float:none;width:524px;margin-left:0;}
|
107 |
-
table .span8{float:none;width:604px;margin-left:0;}
|
108 |
-
table .span9{float:none;width:684px;margin-left:0;}
|
109 |
-
table .span10{float:none;width:764px;margin-left:0;}
|
110 |
-
table .span11{float:none;width:844px;margin-left:0;}
|
111 |
-
table .span12{float:none;width:924px;margin-left:0;}
|
112 |
-
form{margin:0 0 18px;}
|
113 |
-
fieldset{padding:0;margin:0;border:0;}
|
114 |
-
legend{display:block;width:100%;padding:0;margin-bottom:27px;font-size:19.5px;line-height:36px;color:#333333;border:0;border-bottom:1px solid #eee;}
|
115 |
-
label,input,button,select,textarea{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;font-weight:normal;line-height:18px;}
|
116 |
-
label{display:block;margin-bottom:5px;color:#333333;}
|
117 |
-
input,textarea,select,.uneditable-input{display:inline-block;width:210px;height:18px;padding:4px;margin-bottom:9px;font-size:13px;line-height:18px;color:#555555;border:1px solid #ccc;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
|
118 |
-
.uneditable-textarea{width:auto;height:auto;}
|
119 |
-
label input,label textarea,label select{display:block;}
|
120 |
-
input[type="image"],input[type="checkbox"],input[type="radio"]{width:auto;height:auto;padding:0;margin:3px 0;*margin-top:0;line-height:normal;border:0;cursor:pointer;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}
|
121 |
-
input[type="file"]{padding:initial;line-height:initial;border:initial;background-color:#ffffff;background-color:initial;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
|
122 |
-
input[type="button"],input[type="reset"],input[type="submit"]{width:auto;height:auto;}
|
123 |
-
select,input[type="file"]{height:28px;*margin-top:4px;line-height:28px;}
|
124 |
-
select{width:220px;background-color:#ffffff;}
|
125 |
-
select[multiple],select[size]{height:auto;}
|
126 |
-
input[type="image"]{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
|
127 |
-
textarea{height:auto;}
|
128 |
-
input[type="hidden"]{display:none;}
|
129 |
-
.radio,.checkbox{padding-left:18px;}
|
130 |
-
.radio input[type="radio"],.checkbox input[type="checkbox"]{float:left;margin-left:-18px;}
|
131 |
-
.controls>.radio:first-child,.controls>.checkbox:first-child{padding-top:5px;}
|
132 |
-
.radio.inline,.checkbox.inline{display:inline-block;margin-bottom:0;vertical-align:middle;}
|
133 |
-
.radio.inline+.radio.inline,.checkbox.inline+.checkbox.inline{margin-left:10px;}
|
134 |
-
.controls>.radio.inline:first-child,.controls>.checkbox.inline:first-child{padding-top:0;}
|
135 |
-
input,textarea{-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-webkit-transition:border linear 0.2s,box-shadow linear 0.2s;-moz-transition:border linear 0.2s,box-shadow linear 0.2s;-ms-transition:border linear 0.2s,box-shadow linear 0.2s;-o-transition:border linear 0.2s,box-shadow linear 0.2s;transition:border linear 0.2s,box-shadow linear 0.2s;}
|
136 |
-
input:focus,textarea:focus{border-color:rgba(82, 168, 236, 0.8);-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(82, 168, 236, 0.6);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(82, 168, 236, 0.6);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(82, 168, 236, 0.6);outline:0;outline:thin dotted \9;}
|
137 |
-
input[type="file"]:focus,input[type="checkbox"]:focus,select:focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;}
|
138 |
-
.input-mini{width:60px;}
|
139 |
-
.input-small{width:90px;}
|
140 |
-
.input-medium{width:150px;}
|
141 |
-
.input-large{width:210px;}
|
142 |
-
.input-xlarge{width:270px;}
|
143 |
-
.input-xxlarge{width:530px;}
|
144 |
-
input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input{float:none;margin-left:0;}
|
145 |
-
input.span1,textarea.span1,.uneditable-input.span1{width:50px;}
|
146 |
-
input.span2,textarea.span2,.uneditable-input.span2{width:130px;}
|
147 |
-
input.span3,textarea.span3,.uneditable-input.span3{width:210px;}
|
148 |
-
input.span4,textarea.span4,.uneditable-input.span4{width:290px;}
|
149 |
-
input.span5,textarea.span5,.uneditable-input.span5{width:370px;}
|
150 |
-
input.span6,textarea.span6,.uneditable-input.span6{width:450px;}
|
151 |
-
input.span7,textarea.span7,.uneditable-input.span7{width:530px;}
|
152 |
-
input.span8,textarea.span8,.uneditable-input.span8{width:610px;}
|
153 |
-
input.span9,textarea.span9,.uneditable-input.span9{width:690px;}
|
154 |
-
input.span10,textarea.span10,.uneditable-input.span10{width:770px;}
|
155 |
-
input.span11,textarea.span11,.uneditable-input.span11{width:850px;}
|
156 |
-
input.span12,textarea.span12,.uneditable-input.span12{width:930px;}
|
157 |
-
input[disabled],select[disabled],textarea[disabled],input[readonly],select[readonly],textarea[readonly]{background-color:#f5f5f5;border-color:#ddd;cursor:not-allowed;}
|
158 |
-
.control-group.warning>label,.control-group.warning .help-block,.control-group.warning .help-inline{color:#c09853;}
|
159 |
-
.control-group.warning input,.control-group.warning select,.control-group.warning textarea{color:#c09853;border-color:#c09853;}.control-group.warning input:focus,.control-group.warning select:focus,.control-group.warning textarea:focus{border-color:#a47e3c;-webkit-box-shadow:0 0 6px #dbc59e;-moz-box-shadow:0 0 6px #dbc59e;box-shadow:0 0 6px #dbc59e;}
|
160 |
-
.control-group.warning .input-prepend .add-on,.control-group.warning .input-append .add-on{color:#c09853;background-color:#fcf8e3;border-color:#c09853;}
|
161 |
-
.control-group.error>label,.control-group.error .help-block,.control-group.error .help-inline{color:#b94a48;}
|
162 |
-
.control-group.error input,.control-group.error select,.control-group.error textarea{color:#b94a48;border-color:#b94a48;}.control-group.error input:focus,.control-group.error select:focus,.control-group.error textarea:focus{border-color:#953b39;-webkit-box-shadow:0 0 6px #d59392;-moz-box-shadow:0 0 6px #d59392;box-shadow:0 0 6px #d59392;}
|
163 |
-
.control-group.error .input-prepend .add-on,.control-group.error .input-append .add-on{color:#b94a48;background-color:#f2dede;border-color:#b94a48;}
|
164 |
-
.control-group.success>label,.control-group.success .help-block,.control-group.success .help-inline{color:#468847;}
|
165 |
-
.control-group.success input,.control-group.success select,.control-group.success textarea{color:#468847;border-color:#468847;}.control-group.success input:focus,.control-group.success select:focus,.control-group.success textarea:focus{border-color:#356635;-webkit-box-shadow:0 0 6px #7aba7b;-moz-box-shadow:0 0 6px #7aba7b;box-shadow:0 0 6px #7aba7b;}
|
166 |
-
.control-group.success .input-prepend .add-on,.control-group.success .input-append .add-on{color:#468847;background-color:#dff0d8;border-color:#468847;}
|
167 |
-
input:focus:required:invalid,textarea:focus:required:invalid,select:focus:required:invalid{color:#b94a48;border-color:#ee5f5b;}input:focus:required:invalid:focus,textarea:focus:required:invalid:focus,select:focus:required:invalid:focus{border-color:#e9322d;-webkit-box-shadow:0 0 6px #f8b9b7;-moz-box-shadow:0 0 6px #f8b9b7;box-shadow:0 0 6px #f8b9b7;}
|
168 |
-
.form-actions{padding:17px 20px 18px;margin-top:18px;margin-bottom:18px;background-color:#f5f5f5;border-top:1px solid #ddd;}
|
169 |
-
.uneditable-input{display:block;background-color:#ffffff;border-color:#eee;-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.025);-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.025);box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.025);cursor:not-allowed;}
|
170 |
-
:-moz-placeholder{color:#999999;}
|
171 |
-
::-webkit-input-placeholder{color:#999999;}
|
172 |
-
.help-block{margin-top:5px;margin-bottom:0;color:#999999;}
|
173 |
-
.help-inline{display:inline-block;*display:inline;*zoom:1;margin-bottom:9px;vertical-align:middle;padding-left:5px;}
|
174 |
-
.input-prepend,.input-append{margin-bottom:5px;*zoom:1;}.input-prepend:before,.input-append:before,.input-prepend:after,.input-append:after{display:table;content:"";}
|
175 |
-
.input-prepend:after,.input-append:after{clear:both;}
|
176 |
-
.input-prepend input,.input-append input,.input-prepend .uneditable-input,.input-append .uneditable-input{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;}.input-prepend input:focus,.input-append input:focus,.input-prepend .uneditable-input:focus,.input-append .uneditable-input:focus{position:relative;z-index:2;}
|
177 |
-
.input-prepend .uneditable-input,.input-append .uneditable-input{border-left-color:#ccc;}
|
178 |
-
.input-prepend .add-on,.input-append .add-on{float:left;display:block;width:auto;min-width:16px;height:18px;margin-right:-1px;padding:4px 5px;font-weight:normal;line-height:18px;color:#999999;text-align:center;text-shadow:0 1px 0 #ffffff;background-color:#f5f5f5;border:1px solid #ccc;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;}
|
179 |
-
.input-prepend .active,.input-append .active{background-color:#a9dba9;border-color:#46a546;}
|
180 |
-
.input-prepend .add-on{*margin-top:1px;}
|
181 |
-
.input-append input,.input-append .uneditable-input{float:left;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;}
|
182 |
-
.input-append .uneditable-input{border-right-color:#ccc;}
|
183 |
-
.input-append .add-on{margin-right:0;margin-left:-1px;-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;}
|
184 |
-
.input-append input:first-child{*margin-left:-160px;}.input-append input:first-child+.add-on{*margin-left:-21px;}
|
185 |
-
.search-query{padding-left:14px;padding-right:14px;margin-bottom:0;-webkit-border-radius:14px;-moz-border-radius:14px;border-radius:14px;}
|
186 |
-
.form-search input,.form-inline input,.form-horizontal input,.form-search textarea,.form-inline textarea,.form-horizontal textarea,.form-search select,.form-inline select,.form-horizontal select,.form-search .help-inline,.form-inline .help-inline,.form-horizontal .help-inline,.form-search .uneditable-input,.form-inline .uneditable-input,.form-horizontal .uneditable-input{display:inline-block;margin-bottom:0;}
|
187 |
-
.form-search label,.form-inline label,.form-search .input-append,.form-inline .input-append,.form-search .input-prepend,.form-inline .input-prepend{display:inline-block;}
|
188 |
-
.form-search .input-append .add-on,.form-inline .input-prepend .add-on,.form-search .input-append .add-on,.form-inline .input-prepend .add-on{vertical-align:middle;}
|
189 |
-
.control-group{margin-bottom:9px;}
|
190 |
-
.form-horizontal legend+.control-group{margin-top:18px;-webkit-margin-top-collapse:separate;}
|
191 |
-
.form-horizontal .control-group{margin-bottom:18px;*zoom:1;}.form-horizontal .control-group:before,.form-horizontal .control-group:after{display:table;content:"";}
|
192 |
-
.form-horizontal .control-group:after{clear:both;}
|
193 |
-
.form-horizontal .control-group>label{float:left;width:140px;padding-top:5px;text-align:right;}
|
194 |
-
.form-horizontal .controls{margin-left:160px;}
|
195 |
-
.form-horizontal .form-actions{padding-left:160px;}
|
196 |
-
.btn{display:inline-block;padding:4px 10px 4px;font-size:13px;line-height:18px;color:#333333;text-align:center;text-shadow:0 1px 1px rgba(255, 255, 255, 0.75);background-color:#fafafa;background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(25%, #ffffff), to(#e6e6e6));background-image:-webkit-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);background-image:-moz-linear-gradient(top, #ffffff, #ffffff 25%, #e6e6e6);background-image:-ms-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);background-image:-o-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);background-image:linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);background-repeat:no-repeat;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);border:1px solid #ccc;border-bottom-color:#bbb;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);cursor:pointer;*margin-left:.3em;}.btn:first-child{*margin-left:0;}
|
197 |
-
.btn:hover{color:#333333;text-decoration:none;background-color:#e6e6e6;background-position:0 -15px;-webkit-transition:background-position 0.1s linear;-moz-transition:background-position 0.1s linear;-ms-transition:background-position 0.1s linear;-o-transition:background-position 0.1s linear;transition:background-position 0.1s linear;}
|
198 |
-
.btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;}
|
199 |
-
.btn.active,.btn:active{background-image:none;-webkit-box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);background-color:#e6e6e6;background-color:#d9d9d9 \9;color:rgba(0, 0, 0, 0.5);outline:0;}
|
200 |
-
.btn.disabled,.btn[disabled]{cursor:default;background-image:none;background-color:#e6e6e6;opacity:0.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
|
201 |
-
.btn-large{padding:9px 14px;font-size:15px;line-height:normal;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;}
|
202 |
-
.btn-large .icon{margin-top:1px;}
|
203 |
-
.btn-small{padding:5px 9px;font-size:11px;line-height:16px;}
|
204 |
-
.btn-small .icon{margin-top:-1px;}
|
205 |
-
.btn-primary,.btn-primary:hover,.btn-warning,.btn-warning:hover,.btn-danger,.btn-danger:hover,.btn-success,.btn-success:hover,.btn-info,.btn-info:hover{text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);color:#ffffff;}
|
206 |
-
.btn-primary.active,.btn-warning.active,.btn-danger.active,.btn-success.active,.btn-info.active{color:rgba(255, 255, 255, 0.75);}
|
207 |
-
.btn-primary{background-color:#006dcc;background-image:-moz-linear-gradient(top, #0088cc, #0044cc);background-image:-ms-linear-gradient(top, #0088cc, #0044cc);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));background-image:-webkit-linear-gradient(top, #0088cc, #0044cc);background-image:-o-linear-gradient(top, #0088cc, #0044cc);background-image:linear-gradient(top, #0088cc, #0044cc);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);border-color:#0044cc #0044cc #002a80;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);}.btn-primary:hover,.btn-primary:active,.btn-primary.active,.btn-primary.disabled,.btn-primary[disabled]{background-color:#0044cc;}
|
208 |
-
.btn-primary:active,.btn-primary.active{background-color:#003399 \9;}
|
209 |
-
.btn-warning{background-color:#faa732;background-image:-moz-linear-gradient(top, #fbb450, #f89406);background-image:-ms-linear-gradient(top, #fbb450, #f89406);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));background-image:-webkit-linear-gradient(top, #fbb450, #f89406);background-image:-o-linear-gradient(top, #fbb450, #f89406);background-image:linear-gradient(top, #fbb450, #f89406);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0);border-color:#f89406 #f89406 #ad6704;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);}.btn-warning:hover,.btn-warning:active,.btn-warning.active,.btn-warning.disabled,.btn-warning[disabled]{background-color:#f89406;}
|
210 |
-
.btn-warning:active,.btn-warning.active{background-color:#c67605 \9;}
|
211 |
-
.btn-danger{background-color:#da4f49;background-image:-moz-linear-gradient(top, #ee5f5b, #bd362f);background-image:-ms-linear-gradient(top, #ee5f5b, #bd362f);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));background-image:-webkit-linear-gradient(top, #ee5f5b, #bd362f);background-image:-o-linear-gradient(top, #ee5f5b, #bd362f);background-image:linear-gradient(top, #ee5f5b, #bd362f);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#bd362f', GradientType=0);border-color:#bd362f #bd362f #802420;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);}.btn-danger:hover,.btn-danger:active,.btn-danger.active,.btn-danger.disabled,.btn-danger[disabled]{background-color:#bd362f;}
|
212 |
-
.btn-danger:active,.btn-danger.active{background-color:#942a25 \9;}
|
213 |
-
.btn-success{background-color:#5bb75b;background-image:-moz-linear-gradient(top, #62c462, #51a351);background-image:-ms-linear-gradient(top, #62c462, #51a351);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));background-image:-webkit-linear-gradient(top, #62c462, #51a351);background-image:-o-linear-gradient(top, #62c462, #51a351);background-image:linear-gradient(top, #62c462, #51a351);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#51a351', GradientType=0);border-color:#51a351 #51a351 #387038;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);}.btn-success:hover,.btn-success:active,.btn-success.active,.btn-success.disabled,.btn-success[disabled]{background-color:#51a351;}
|
214 |
-
.btn-success:active,.btn-success.active{background-color:#408140 \9;}
|
215 |
-
.btn-info{background-color:#49afcd;background-image:-moz-linear-gradient(top, #5bc0de, #2f96b4);background-image:-ms-linear-gradient(top, #5bc0de, #2f96b4);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4));background-image:-webkit-linear-gradient(top, #5bc0de, #2f96b4);background-image:-o-linear-gradient(top, #5bc0de, #2f96b4);background-image:linear-gradient(top, #5bc0de, #2f96b4);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#2f96b4', GradientType=0);border-color:#2f96b4 #2f96b4 #1f6377;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);}.btn-info:hover,.btn-info:active,.btn-info.active,.btn-info.disabled,.btn-info[disabled]{background-color:#2f96b4;}
|
216 |
-
.btn-info:active,.btn-info.active{background-color:#24748c \9;}
|
217 |
-
button.btn,input[type="submit"].btn{*padding-top:2px;*padding-bottom:2px;}button.btn::-moz-focus-inner,input[type="submit"].btn::-moz-focus-inner{padding:0;border:0;}
|
218 |
-
button.btn.large,input[type="submit"].btn.large{*padding-top:7px;*padding-bottom:7px;}
|
219 |
-
button.btn.small,input[type="submit"].btn.small{*padding-top:3px;*padding-bottom:3px;}
|
220 |
-
[class^="icon-"]{display:inline-block;width:14px;height:14px;vertical-align:text-top;background-image:url(../../images/glyphicons-halflings.png);background-position:14px 14px;background-repeat:no-repeat;*margin-right:.3em;}[class^="icon-"]:last-child{*margin-left:0;}
|
221 |
-
.icon-white{background-image:url(../../images/glyphicons-halflings-white.png);}
|
222 |
-
.icon-glass{background-position:0 0;}
|
223 |
-
.icon-music{background-position:-24px 0;}
|
224 |
-
.icon-search{background-position:-48px 0;}
|
225 |
-
.icon-envelope{background-position:-72px 0;}
|
226 |
-
.icon-heart{background-position:-96px 0;}
|
227 |
-
.icon-star{background-position:-120px 0;}
|
228 |
-
.icon-star-empty{background-position:-144px 0;}
|
229 |
-
.icon-user{background-position:-168px 0;}
|
230 |
-
.icon-film{background-position:-192px 0;}
|
231 |
-
.icon-th-large{background-position:-216px 0;}
|
232 |
-
.icon-th{background-position:-240px 0;}
|
233 |
-
.icon-th-list{background-position:-264px 0;}
|
234 |
-
.icon-ok{background-position:-288px 0;}
|
235 |
-
.icon-remove{background-position:-312px 0;}
|
236 |
-
.icon-zoom-in{background-position:-336px 0;}
|
237 |
-
.icon-zoom-out{background-position:-360px 0;}
|
238 |
-
.icon-off{background-position:-384px 0;}
|
239 |
-
.icon-signal{background-position:-408px 0;}
|
240 |
-
.icon-cog{background-position:-432px 0;}
|
241 |
-
.icon-trash{background-position:-456px 0;}
|
242 |
-
.icon-home{background-position:0 -24px;}
|
243 |
-
.icon-file{background-position:-24px -24px;}
|
244 |
-
.icon-time{background-position:-48px -24px;}
|
245 |
-
.icon-road{background-position:-72px -24px;}
|
246 |
-
.icon-download-alt{background-position:-96px -24px;}
|
247 |
-
.icon-download{background-position:-120px -24px;}
|
248 |
-
.icon-upload{background-position:-144px -24px;}
|
249 |
-
.icon-inbox{background-position:-168px -24px;}
|
250 |
-
.icon-play-circle{background-position:-192px -24px;}
|
251 |
-
.icon-repeat{background-position:-216px -24px;}
|
252 |
-
.icon-refresh{background-position:-240px -24px;}
|
253 |
-
.icon-list-alt{background-position:-264px -24px;}
|
254 |
-
.icon-lock{background-position:-287px -24px;}
|
255 |
-
.icon-flag{background-position:-312px -24px;}
|
256 |
-
.icon-headphones{background-position:-336px -24px;}
|
257 |
-
.icon-volume-off{background-position:-360px -24px;}
|
258 |
-
.icon-volume-down{background-position:-384px -24px;}
|
259 |
-
.icon-volume-up{background-position:-408px -24px;}
|
260 |
-
.icon-qrcode{background-position:-432px -24px;}
|
261 |
-
.icon-barcode{background-position:-456px -24px;}
|
262 |
-
.icon-tag{background-position:0 -48px;}
|
263 |
-
.icon-tags{background-position:-25px -48px;}
|
264 |
-
.icon-book{background-position:-48px -48px;}
|
265 |
-
.icon-bookmark{background-position:-72px -48px;}
|
266 |
-
.icon-print{background-position:-96px -48px;}
|
267 |
-
.icon-camera{background-position:-120px -48px;}
|
268 |
-
.icon-font{background-position:-144px -48px;}
|
269 |
-
.icon-bold{background-position:-167px -48px;}
|
270 |
-
.icon-italic{background-position:-192px -48px;}
|
271 |
-
.icon-text-height{background-position:-216px -48px;}
|
272 |
-
.icon-text-width{background-position:-240px -48px;}
|
273 |
-
.icon-align-left{background-position:-264px -48px;}
|
274 |
-
.icon-align-center{background-position:-288px -48px;}
|
275 |
-
.icon-align-right{background-position:-312px -48px;}
|
276 |
-
.icon-align-justify{background-position:-336px -48px;}
|
277 |
-
.icon-list{background-position:-360px -48px;}
|
278 |
-
.icon-indent-left{background-position:-384px -48px;}
|
279 |
-
.icon-indent-right{background-position:-408px -48px;}
|
280 |
-
.icon-facetime-video{background-position:-432px -48px;}
|
281 |
-
.icon-picture{background-position:-456px -48px;}
|
282 |
-
.icon-pencil{background-position:0 -72px;}
|
283 |
-
.icon-map-marker{background-position:-24px -72px;}
|
284 |
-
.icon-adjust{background-position:-48px -72px;}
|
285 |
-
.icon-tint{background-position:-72px -72px;}
|
286 |
-
.icon-edit{background-position:-96px -72px;}
|
287 |
-
.icon-share{background-position:-120px -72px;}
|
288 |
-
.icon-check{background-position:-144px -72px;}
|
289 |
-
.icon-move{background-position:-168px -72px;}
|
290 |
-
.icon-step-backward{background-position:-192px -72px;}
|
291 |
-
.icon-fast-backward{background-position:-216px -72px;}
|
292 |
-
.icon-backward{background-position:-240px -72px;}
|
293 |
-
.icon-play{background-position:-264px -72px;}
|
294 |
-
.icon-pause{background-position:-288px -72px;}
|
295 |
-
.icon-stop{background-position:-312px -72px;}
|
296 |
-
.icon-forward{background-position:-336px -72px;}
|
297 |
-
.icon-fast-forward{background-position:-360px -72px;}
|
298 |
-
.icon-step-forward{background-position:-384px -72px;}
|
299 |
-
.icon-eject{background-position:-408px -72px;}
|
300 |
-
.icon-chevron-left{background-position:-432px -72px;}
|
301 |
-
.icon-chevron-right{background-position:-456px -72px;}
|
302 |
-
.icon-plus-sign{background-position:0 -96px;}
|
303 |
-
.icon-minus-sign{background-position:-24px -96px;}
|
304 |
-
.icon-remove-sign{background-position:-48px -96px;}
|
305 |
-
.icon-ok-sign{background-position:-72px -96px;}
|
306 |
-
.icon-question-sign{background-position:-96px -96px;}
|
307 |
-
.icon-info-sign{background-position:-120px -96px;}
|
308 |
-
.icon-screenshot{background-position:-144px -96px;}
|
309 |
-
.icon-remove-circle{background-position:-168px -96px;}
|
310 |
-
.icon-ok-circle{background-position:-192px -96px;}
|
311 |
-
.icon-ban-circle{background-position:-216px -96px;}
|
312 |
-
.icon-arrow-left{background-position:-240px -96px;}
|
313 |
-
.icon-arrow-right{background-position:-264px -96px;}
|
314 |
-
.icon-arrow-up{background-position:-289px -96px;}
|
315 |
-
.icon-arrow-down{background-position:-312px -96px;}
|
316 |
-
.icon-share-alt{background-position:-336px -96px;}
|
317 |
-
.icon-resize-full{background-position:-360px -96px;}
|
318 |
-
.icon-resize-small{background-position:-384px -96px;}
|
319 |
-
.icon-plus{background-position:-408px -96px;}
|
320 |
-
.icon-minus{background-position:-433px -96px;}
|
321 |
-
.icon-asterisk{background-position:-456px -96px;}
|
322 |
-
.icon-exclamation-sign{background-position:0 -120px;}
|
323 |
-
.icon-gift{background-position:-24px -120px;}
|
324 |
-
.icon-leaf{background-position:-48px -120px;}
|
325 |
-
.icon-fire{background-position:-72px -120px;}
|
326 |
-
.icon-eye-open{background-position:-96px -120px;}
|
327 |
-
.icon-eye-close{background-position:-120px -120px;}
|
328 |
-
.icon-warning-sign{background-position:-144px -120px;}
|
329 |
-
.icon-plane{background-position:-168px -120px;}
|
330 |
-
.icon-calendar{background-position:-192px -120px;}
|
331 |
-
.icon-random{background-position:-216px -120px;}
|
332 |
-
.icon-comment{background-position:-240px -120px;}
|
333 |
-
.icon-magnet{background-position:-264px -120px;}
|
334 |
-
.icon-chevron-up{background-position:-288px -120px;}
|
335 |
-
.icon-chevron-down{background-position:-313px -119px;}
|
336 |
-
.icon-retweet{background-position:-336px -120px;}
|
337 |
-
.icon-shopping-cart{background-position:-360px -120px;}
|
338 |
-
.icon-folder-close{background-position:-384px -120px;}
|
339 |
-
.icon-folder-open{background-position:-408px -120px;}
|
340 |
-
.icon-resize-vertical{background-position:-432px -119px;}
|
341 |
-
.icon-resize-horizontal{background-position:-456px -118px;}
|
342 |
-
.btn-group{position:relative;*zoom:1;*margin-left:.3em;}.btn-group:before,.btn-group:after{display:table;content:"";}
|
343 |
-
.btn-group:after{clear:both;}
|
344 |
-
.btn-group:first-child{*margin-left:0;}
|
345 |
-
.btn-group+.btn-group{margin-left:5px;}
|
346 |
-
.btn-toolbar{margin-top:9px;margin-bottom:9px;}.btn-toolbar .btn-group{display:inline-block;*display:inline;*zoom:1;}
|
347 |
-
.btn-group .btn{position:relative;float:left;margin-left:-1px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}
|
348 |
-
.btn-group .btn:first-child{margin-left:0;-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;border-top-left-radius:4px;-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;border-bottom-left-radius:4px;}
|
349 |
-
.btn-group .btn:last-child,.btn-group .dropdown-toggle{-webkit-border-top-right-radius:4px;-moz-border-radius-topright:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;border-bottom-right-radius:4px;}
|
350 |
-
.btn-group .btn.large:first-child{margin-left:0;-webkit-border-top-left-radius:6px;-moz-border-radius-topleft:6px;border-top-left-radius:6px;-webkit-border-bottom-left-radius:6px;-moz-border-radius-bottomleft:6px;border-bottom-left-radius:6px;}
|
351 |
-
.btn-group .btn.large:last-child,.btn-group .large.dropdown-toggle{-webkit-border-top-right-radius:6px;-moz-border-radius-topright:6px;border-top-right-radius:6px;-webkit-border-bottom-right-radius:6px;-moz-border-radius-bottomright:6px;border-bottom-right-radius:6px;}
|
352 |
-
.btn-group .btn:hover,.btn-group .btn:focus,.btn-group .btn:active,.btn-group .btn.active{z-index:2;}
|
353 |
-
.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0;}
|
354 |
-
.btn-group .dropdown-toggle{padding-left:8px;padding-right:8px;-webkit-box-shadow:inset 1px 0 0 rgba(255, 255, 255, 0.125),inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 1px 0 0 rgba(255, 255, 255, 0.125),inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 1px 0 0 rgba(255, 255, 255, 0.125),inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);*padding-top:5px;*padding-bottom:5px;}
|
355 |
-
.btn-group.open{*z-index:1000;}.btn-group.open .dropdown-menu{display:block;margin-top:1px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;}
|
356 |
-
.btn-group.open .dropdown-toggle{background-image:none;-webkit-box-shadow:inset 0 1px 6px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 1px 6px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 0 1px 6px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);}
|
357 |
-
.btn .caret{margin-top:7px;margin-left:0;}
|
358 |
-
.btn:hover .caret,.open.btn-group .caret{opacity:1;filter:alpha(opacity=100);}
|
359 |
-
.btn-primary .caret,.btn-danger .caret,.btn-info .caret,.btn-success .caret{border-top-color:#ffffff;opacity:0.75;filter:alpha(opacity=75);}
|
360 |
-
.btn-small .caret{margin-top:4px;}
|
361 |
-
.nav{margin-left:0;margin-bottom:18px;list-style:none;}
|
362 |
-
.nav>li>a{display:block;}
|
363 |
-
.nav>li>a:hover{text-decoration:none;background-color:#eeeeee;}
|
364 |
-
.nav-list{padding-left:14px;padding-right:14px;margin-bottom:0;}
|
365 |
-
.nav-list>li>a,.nav-list .nav-header{display:block;padding:3px 15px;margin-left:-15px;margin-right:-15px;text-shadow:0 1px 0 rgba(255, 255, 255, 0.5);}
|
366 |
-
.nav-list .nav-header{font-size:11px;font-weight:bold;line-height:18px;color:#999999;text-transform:uppercase;}
|
367 |
-
.nav-list>li+.nav-header{margin-top:9px;}
|
368 |
-
.nav-list .active>a,.nav-list .active>a:hover{color:#ffffff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.2);background-color:#0088cc;}
|
369 |
-
.nav-list [class^="icon-"]{margin-right:2px;}
|
370 |
-
.nav-tabs,.nav-pills{*zoom:1;}.nav-tabs:before,.nav-pills:before,.nav-tabs:after,.nav-pills:after{display:table;content:"";}
|
371 |
-
.nav-tabs:after,.nav-pills:after{clear:both;}
|
372 |
-
.nav-tabs>li,.nav-pills>li{float:left;}
|
373 |
-
.nav-tabs>li>a,.nav-pills>li>a{padding-right:12px;padding-left:12px;margin-right:2px;line-height:14px;}
|
374 |
-
.nav-tabs{border-bottom:1px solid #ddd;}
|
375 |
-
.nav-tabs>li{margin-bottom:-1px;}
|
376 |
-
.nav-tabs>li>a{padding-top:9px;padding-bottom:9px;border:1px solid transparent;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0;}.nav-tabs>li>a:hover{border-color:#eeeeee #eeeeee #dddddd;}
|
377 |
-
.nav-tabs>.active>a,.nav-tabs>.active>a:hover{color:#555555;background-color:#ffffff;border:1px solid #ddd;border-bottom-color:transparent;cursor:default;}
|
378 |
-
.nav-pills>li>a{padding-top:8px;padding-bottom:8px;margin-top:2px;margin-bottom:2px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;}
|
379 |
-
.nav-pills .active>a,.nav-pills .active>a:hover{color:#ffffff;background-color:#0088cc;}
|
380 |
-
.nav-stacked>li{float:none;}
|
381 |
-
.nav-stacked>li>a{margin-right:0;}
|
382 |
-
.nav-tabs.nav-stacked{border-bottom:0;}
|
383 |
-
.nav-tabs.nav-stacked>li>a{border:1px solid #ddd;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}
|
384 |
-
.nav-tabs.nav-stacked>li:first-child>a{-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0;}
|
385 |
-
.nav-tabs.nav-stacked>li:last-child>a{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;}
|
386 |
-
.nav-tabs.nav-stacked>li>a:hover{border-color:#ddd;z-index:2;}
|
387 |
-
.nav-pills.nav-stacked>li>a{margin-bottom:3px;}
|
388 |
-
.nav-pills.nav-stacked>li:last-child>a{margin-bottom:1px;}
|
389 |
-
.nav-tabs .dropdown-menu,.nav-pills .dropdown-menu{margin-top:1px;border-width:1px;}
|
390 |
-
.nav-pills .dropdown-menu{-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
|
391 |
-
.nav-tabs .dropdown-toggle .caret,.nav-pills .dropdown-toggle .caret{border-top-color:#0088cc;margin-top:6px;}
|
392 |
-
.nav-tabs .dropdown-toggle:hover .caret,.nav-pills .dropdown-toggle:hover .caret{border-top-color:#005580;}
|
393 |
-
.nav-tabs .active .dropdown-toggle .caret,.nav-pills .active .dropdown-toggle .caret{border-top-color:#333333;}
|
394 |
-
.nav>.dropdown.active>a:hover{color:#000000;cursor:pointer;}
|
395 |
-
.nav-tabs .open .dropdown-toggle,.nav-pills .open .dropdown-toggle,.nav>.open.active>a:hover{color:#ffffff;background-color:#999999;border-color:#999999;}
|
396 |
-
.nav .open .caret,.nav .open.active .caret,.nav .open a:hover .caret{border-top-color:#ffffff;opacity:1;filter:alpha(opacity=100);}
|
397 |
-
.tabs-stacked .open>a:hover{border-color:#999999;}
|
398 |
-
.tabbable{*zoom:1;}.tabbable:before,.tabbable:after{display:table;content:"";}
|
399 |
-
.tabbable:after{clear:both;}
|
400 |
-
.tabs-below .nav-tabs,.tabs-right .nav-tabs,.tabs-left .nav-tabs{border-bottom:0;}
|
401 |
-
.tab-content>.tab-pane,.pill-content>.pill-pane{display:none;}
|
402 |
-
.tab-content>.active,.pill-content>.active{display:block;}
|
403 |
-
.tabs-below .nav-tabs{border-top:1px solid #ddd;}
|
404 |
-
.tabs-below .nav-tabs>li{margin-top:-1px;margin-bottom:0;}
|
405 |
-
.tabs-below .nav-tabs>li>a{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;}.tabs-below .nav-tabs>li>a:hover{border-bottom-color:transparent;border-top-color:#ddd;}
|
406 |
-
.tabs-below .nav-tabs .active>a,.tabs-below .nav-tabs .active>a:hover{border-color:transparent #ddd #ddd #ddd;}
|
407 |
-
.tabs-left .nav-tabs>li,.tabs-right .nav-tabs>li{float:none;}
|
408 |
-
.tabs-left .nav-tabs>li>a,.tabs-right .nav-tabs>li>a{min-width:74px;margin-right:0;margin-bottom:3px;}
|
409 |
-
.tabs-left .nav-tabs{float:left;margin-right:19px;border-right:1px solid #ddd;}
|
410 |
-
.tabs-left .nav-tabs>li>a{margin-right:-1px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px;}
|
411 |
-
.tabs-left .nav-tabs>li>a:hover{border-color:#eeeeee #dddddd #eeeeee #eeeeee;}
|
412 |
-
.tabs-left .nav-tabs .active>a,.tabs-left .nav-tabs .active>a:hover{border-color:#ddd transparent #ddd #ddd;*border-right-color:#ffffff;}
|
413 |
-
.tabs-right .nav-tabs{float:right;margin-left:19px;border-left:1px solid #ddd;}
|
414 |
-
.tabs-right .nav-tabs>li>a{margin-left:-1px;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0;}
|
415 |
-
.tabs-right .nav-tabs>li>a:hover{border-color:#eeeeee #eeeeee #eeeeee #dddddd;}
|
416 |
-
.tabs-right .nav-tabs .active>a,.tabs-right .nav-tabs .active>a:hover{border-color:#ddd #ddd #ddd transparent;*border-left-color:#ffffff;}
|
417 |
-
.navbar{overflow:visible;margin-bottom:18px;}
|
418 |
-
.navbar-inner{padding-left:20px;padding-right:20px;background-color:#2c2c2c;background-image:-moz-linear-gradient(top, #333333, #222222);background-image:-ms-linear-gradient(top, #333333, #222222);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#333333), to(#222222));background-image:-webkit-linear-gradient(top, #333333, #222222);background-image:-o-linear-gradient(top, #333333, #222222);background-image:linear-gradient(top, #333333, #222222);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.1);-moz-box-shadow:0 1px 3px rgba(0, 0, 0, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.1);box-shadow:0 1px 3px rgba(0, 0, 0, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.1);}
|
419 |
-
.btn-navbar{display:none;float:right;padding:7px 10px;margin-left:5px;margin-right:5px;background-color:#2c2c2c;background-image:-moz-linear-gradient(top, #333333, #222222);background-image:-ms-linear-gradient(top, #333333, #222222);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#333333), to(#222222));background-image:-webkit-linear-gradient(top, #333333, #222222);background-image:-o-linear-gradient(top, #333333, #222222);background-image:linear-gradient(top, #333333, #222222);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0);border-color:#222222 #222222 #000000;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1),0 1px 0 rgba(255, 255, 255, 0.075);-moz-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1),0 1px 0 rgba(255, 255, 255, 0.075);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1),0 1px 0 rgba(255, 255, 255, 0.075);}.btn-navbar:hover,.btn-navbar:active,.btn-navbar.active,.btn-navbar.disabled,.btn-navbar[disabled]{background-color:#222222;}
|
420 |
-
.btn-navbar:active,.btn-navbar.active{background-color:#080808 \9;}
|
421 |
-
.btn-navbar .icon-bar{display:block;width:18px;height:2px;background-color:#f5f5f5;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-shadow:0 1px 0 rgba(0, 0, 0, 0.25);-moz-box-shadow:0 1px 0 rgba(0, 0, 0, 0.25);box-shadow:0 1px 0 rgba(0, 0, 0, 0.25);}
|
422 |
-
.btn-navbar .icon-bar+.icon-bar{margin-top:3px;}
|
423 |
-
.nav-collapse.collapse{height:auto;}
|
424 |
-
.navbar .brand:hover{text-decoration:none;}
|
425 |
-
.navbar .brand{float:left;display:block;padding:8px 20px 12px;margin-left:-20px;font-size:20px;font-weight:200;line-height:1;color:#ffffff;}
|
426 |
-
.navbar .navbar-text{margin-bottom:0;line-height:40px;color:#999999;}.navbar .navbar-text a:hover{color:#ffffff;background-color:transparent;}
|
427 |
-
.navbar .btn,.navbar .btn-group{margin-top:5px;}
|
428 |
-
.navbar .btn-group .btn{margin-top:0;}
|
429 |
-
.navbar-form{margin-bottom:0;*zoom:1;}.navbar-form:before,.navbar-form:after{display:table;content:"";}
|
430 |
-
.navbar-form:after{clear:both;}
|
431 |
-
.navbar-form input,.navbar-form select{display:inline-block;margin-top:5px;margin-bottom:0;}
|
432 |
-
.navbar-form .radio,.navbar-form .checkbox{margin-top:5px;}
|
433 |
-
.navbar-form input[type="image"],.navbar-form input[type="checkbox"],.navbar-form input[type="radio"]{margin-top:3px;}
|
434 |
-
.navbar-search{position:relative;float:left;margin-top:6px;margin-bottom:0;}.navbar-search .search-query{padding:4px 9px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;font-weight:normal;line-height:1;color:#ffffff;color:rgba(255, 255, 255, 0.75);background:#666;background:rgba(255, 255, 255, 0.3);border:1px solid #111;-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1),0 1px 0px rgba(255, 255, 255, 0.15);-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1),0 1px 0px rgba(255, 255, 255, 0.15);box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1),0 1px 0px rgba(255, 255, 255, 0.15);-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none;}.navbar-search .search-query :-moz-placeholder{color:#eeeeee;}
|
435 |
-
.navbar-search .search-query::-webkit-input-placeholder{color:#eeeeee;}
|
436 |
-
.navbar-search .search-query:hover{color:#ffffff;background-color:#999999;background-color:rgba(255, 255, 255, 0.5);}
|
437 |
-
.navbar-search .search-query:focus,.navbar-search .search-query.focused{padding:5px 10px;color:#333333;text-shadow:0 1px 0 #ffffff;background-color:#ffffff;border:0;-webkit-box-shadow:0 0 3px rgba(0, 0, 0, 0.15);-moz-box-shadow:0 0 3px rgba(0, 0, 0, 0.15);box-shadow:0 0 3px rgba(0, 0, 0, 0.15);outline:0;}
|
438 |
-
.navbar-fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030;}
|
439 |
-
.navbar-fixed-top .navbar-inner{padding-left:0;padding-right:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}
|
440 |
-
.navbar .nav{position:relative;left:0;display:block;float:left;margin:0 10px 0 0;}
|
441 |
-
.navbar .nav.pull-right{float:right;}
|
442 |
-
.navbar .nav>li{display:block;float:left;}
|
443 |
-
.navbar .nav>li>a{float:none;padding:10px 10px 11px;line-height:19px;color:#999999;text-decoration:none;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);}
|
444 |
-
.navbar .nav>li>a:hover{background-color:transparent;color:#ffffff;text-decoration:none;}
|
445 |
-
.navbar .nav .active>a,.navbar .nav .active>a:hover{color:#ffffff;text-decoration:none;background-color:#222222;background-color:rgba(0, 0, 0, 0.5);}
|
446 |
-
.navbar .divider-vertical{height:40px;width:1px;margin:0 9px;overflow:hidden;background-color:#222222;border-right:1px solid #333333;}
|
447 |
-
.navbar .nav.pull-right{margin-left:10px;margin-right:0;}
|
448 |
-
.navbar .dropdown-menu{margin-top:1px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}.navbar .dropdown-menu:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0, 0, 0, 0.2);position:absolute;top:-7px;left:9px;}
|
449 |
-
.navbar .dropdown-menu:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #ffffff;position:absolute;top:-6px;left:10px;}
|
450 |
-
.navbar .nav .dropdown-toggle .caret,.navbar .nav .open.dropdown .caret{border-top-color:#ffffff;}
|
451 |
-
.navbar .nav .active .caret{opacity:1;filter:alpha(opacity=100);}
|
452 |
-
.navbar .nav .open>.dropdown-toggle,.navbar .nav .active>.dropdown-toggle,.navbar .nav .open.active>.dropdown-toggle{background-color:transparent;}
|
453 |
-
.navbar .nav .active>.dropdown-toggle:hover{color:#ffffff;}
|
454 |
-
.navbar .nav.pull-right .dropdown-menu{left:auto;right:0;}.navbar .nav.pull-right .dropdown-menu:before{left:auto;right:12px;}
|
455 |
-
.navbar .nav.pull-right .dropdown-menu:after{left:auto;right:13px;}
|
456 |
-
.breadcrumb{padding:7px 14px;margin:0 0 18px;background-color:#fbfbfb;background-image:-moz-linear-gradient(top, #ffffff, #f5f5f5);background-image:-ms-linear-gradient(top, #ffffff, #f5f5f5);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f5f5f5));background-image:-webkit-linear-gradient(top, #ffffff, #f5f5f5);background-image:-o-linear-gradient(top, #ffffff, #f5f5f5);background-image:linear-gradient(top, #ffffff, #f5f5f5);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f5f5f5', GradientType=0);border:1px solid #ddd;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 0 1px 0 #ffffff;-moz-box-shadow:inset 0 1px 0 #ffffff;box-shadow:inset 0 1px 0 #ffffff;}.breadcrumb li{display:inline;text-shadow:0 1px 0 #ffffff;}
|
457 |
-
.breadcrumb .divider{padding:0 5px;color:#999999;}
|
458 |
-
.breadcrumb .active a{color:#333333;}
|
459 |
-
.pagination{height:36px;margin:18px 0;}
|
460 |
-
.pagination ul{display:inline-block;*display:inline;*zoom:1;margin-left:0;margin-bottom:0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:0 1px 2px rgba(0, 0, 0, 0.05);}
|
461 |
-
.pagination li{display:inline;}
|
462 |
-
.pagination a{float:left;padding:0 14px;line-height:34px;text-decoration:none;border:1px solid #ddd;border-left-width:0;}
|
463 |
-
.pagination a:hover,.pagination .active a{background-color:#f5f5f5;}
|
464 |
-
.pagination .active a{color:#999999;cursor:default;}
|
465 |
-
.pagination .disabled a,.pagination .disabled a:hover{color:#999999;background-color:transparent;cursor:default;}
|
466 |
-
.pagination li:first-child a{border-left-width:1px;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;}
|
467 |
-
.pagination li:last-child a{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;}
|
468 |
-
.pagination-centered{text-align:center;}
|
469 |
-
.pagination-right{text-align:right;}
|
470 |
-
.pager{margin-left:0;margin-bottom:18px;list-style:none;text-align:center;*zoom:1;}.pager:before,.pager:after{display:table;content:"";}
|
471 |
-
.pager:after{clear:both;}
|
472 |
-
.pager li{display:inline;}
|
473 |
-
.pager a{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px;}
|
474 |
-
.pager a:hover{text-decoration:none;background-color:#f5f5f5;}
|
475 |
-
.pager .next a{float:right;}
|
476 |
-
.pager .previous a{float:left;}
|
477 |
-
.thumbnails{margin-left:-20px;list-style:none;*zoom:1;}.thumbnails:before,.thumbnails:after{display:table;content:"";}
|
478 |
-
.thumbnails:after{clear:both;}
|
479 |
-
.thumbnails>li{float:left;margin:0 0 18px 20px;}
|
480 |
-
.thumbnail{display:block;padding:4px;line-height:1;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);}
|
481 |
-
a.thumbnail:hover{border-color:#0088cc;-webkit-box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);-moz-box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);}
|
482 |
-
.thumbnail>img{display:block;max-width:100%;margin-left:auto;margin-right:auto;}
|
483 |
-
.thumbnail .caption{padding:9px;}
|
484 |
-
.alert{padding:8px 35px 8px 14px;margin-bottom:18px;text-shadow:0 1px 0 rgba(255, 255, 255, 0.5);background-color:#fcf8e3;border:1px solid #fbeed5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
|
485 |
-
.alert,.alert-heading{color:#c09853;}
|
486 |
-
.alert .close{position:relative;top:-2px;right:-21px;line-height:18px;}
|
487 |
-
.alert-success{background-color:#dff0d8;border-color:#d6e9c6;}
|
488 |
-
.alert-success,.alert-success .alert-heading{color:#468847;}
|
489 |
-
.alert-danger,.alert-error{background-color:#f2dede;border-color:#eed3d7;}
|
490 |
-
.alert-danger,.alert-error,.alert-danger .alert-heading,.alert-error .alert-heading{color:#b94a48;}
|
491 |
-
.alert-info{background-color:#d9edf7;border-color:#bce8f1;}
|
492 |
-
.alert-info,.alert-info .alert-heading{color:#3a87ad;}
|
493 |
-
.alert-block{padding-top:14px;padding-bottom:14px;}
|
494 |
-
.alert-block>p,.alert-block>ul{margin-bottom:0;}
|
495 |
-
.alert-block p+p{margin-top:5px;}
|
496 |
-
@-webkit-keyframes progress-bar-stripes{from{background-position:0 0;} to{background-position:40px 0;}}@-moz-keyframes progress-bar-stripes{from{background-position:0 0;} to{background-position:40px 0;}}@keyframes progress-bar-stripes{from{background-position:0 0;} to{background-position:40px 0;}}.progress{overflow:hidden;height:18px;margin-bottom:18px;background-color:#f7f7f7;background-image:-moz-linear-gradient(top, #f5f5f5, #f9f9f9);background-image:-ms-linear-gradient(top, #f5f5f5, #f9f9f9);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9));background-image:-webkit-linear-gradient(top, #f5f5f5, #f9f9f9);background-image:-o-linear-gradient(top, #f5f5f5, #f9f9f9);background-image:linear-gradient(top, #f5f5f5, #f9f9f9);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#f9f9f9', GradientType=0);-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
|
497 |
-
.progress .bar{width:0%;height:18px;color:#ffffff;font-size:12px;text-align:center;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);background-color:#0e90d2;background-image:-moz-linear-gradient(top, #149bdf, #0480be);background-image:-ms-linear-gradient(top, #149bdf, #0480be);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be));background-image:-webkit-linear-gradient(top, #149bdf, #0480be);background-image:-o-linear-gradient(top, #149bdf, #0480be);background-image:linear-gradient(top, #149bdf, #0480be);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#149bdf', endColorstr='#0480be', GradientType=0);-webkit-box-shadow:inset 0 -1px 0 rgba(0, 0, 0, 0.15);-moz-box-shadow:inset 0 -1px 0 rgba(0, 0, 0, 0.15);box-shadow:inset 0 -1px 0 rgba(0, 0, 0, 0.15);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:width 0.6s ease;-moz-transition:width 0.6s ease;-ms-transition:width 0.6s ease;-o-transition:width 0.6s ease;transition:width 0.6s ease;}
|
498 |
-
.progress-striped .bar{background-color:#62c462;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);-webkit-background-size:40px 40px;-moz-background-size:40px 40px;-o-background-size:40px 40px;background-size:40px 40px;}
|
499 |
-
.progress.active .bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-moz-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite;}
|
500 |
-
.progress-danger .bar{background-color:#dd514c;background-image:-moz-linear-gradient(top, #ee5f5b, #c43c35);background-image:-ms-linear-gradient(top, #ee5f5b, #c43c35);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35));background-image:-webkit-linear-gradient(top, #ee5f5b, #c43c35);background-image:-o-linear-gradient(top, #ee5f5b, #c43c35);background-image:linear-gradient(top, #ee5f5b, #c43c35);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#c43c35', GradientType=0);}
|
501 |
-
.progress-danger.progress-striped .bar{background-color:#ee5f5b;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);}
|
502 |
-
.progress-success .bar{background-color:#5eb95e;background-image:-moz-linear-gradient(top, #62c462, #57a957);background-image:-ms-linear-gradient(top, #62c462, #57a957);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957));background-image:-webkit-linear-gradient(top, #62c462, #57a957);background-image:-o-linear-gradient(top, #62c462, #57a957);background-image:linear-gradient(top, #62c462, #57a957);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#57a957', GradientType=0);}
|
503 |
-
.progress-success.progress-striped .bar{background-color:#62c462;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);}
|
504 |
-
.progress-info .bar{background-color:#4bb1cf;background-image:-moz-linear-gradient(top, #5bc0de, #339bb9);background-image:-ms-linear-gradient(top, #5bc0de, #339bb9);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#339bb9));background-image:-webkit-linear-gradient(top, #5bc0de, #339bb9);background-image:-o-linear-gradient(top, #5bc0de, #339bb9);background-image:linear-gradient(top, #5bc0de, #339bb9);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#339bb9', GradientType=0);}
|
505 |
-
.progress-info.progress-striped .bar{background-color:#5bc0de;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);}
|
506 |
-
.hero-unit{padding:60px;margin-bottom:30px;background-color:#f5f5f5;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;}.hero-unit h1{margin-bottom:0;font-size:60px;line-height:1;letter-spacing:-1px;}
|
507 |
-
.hero-unit p{font-size:18px;font-weight:200;line-height:27px;}
|
508 |
-
.tooltip{position:absolute;z-index:1020;display:block;visibility:visible;padding:5px;font-size:11px;opacity:0;filter:alpha(opacity=0);}.tooltip.in{opacity:0.8;filter:alpha(opacity=80);}
|
509 |
-
.tooltip.top{margin-top:-2px;}
|
510 |
-
.tooltip.right{margin-left:2px;}
|
511 |
-
.tooltip.bottom{margin-top:2px;}
|
512 |
-
.tooltip.left{margin-left:-2px;}
|
513 |
-
.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #000000;}
|
514 |
-
.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000;}
|
515 |
-
.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #000000;}
|
516 |
-
.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid #000000;}
|
517 |
-
.tooltip-inner{max-width:200px;padding:3px 8px;color:#ffffff;text-align:center;text-decoration:none;background-color:#000000;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
|
518 |
-
.tooltip-arrow{position:absolute;width:0;height:0;}
|
519 |
-
.popover{position:absolute;top:0;left:0;z-index:1010;display:none;padding:5px;}.popover.top{margin-top:-5px;}
|
520 |
-
.popover.right{margin-left:5px;}
|
521 |
-
.popover.bottom{margin-top:5px;}
|
522 |
-
.popover.left{margin-left:-5px;}
|
523 |
-
.popover.top .arrow{bottom:0;left:50%;margin-left:-5px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #000000;}
|
524 |
-
.popover.right .arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid #000000;}
|
525 |
-
.popover.bottom .arrow{top:0;left:50%;margin-left:-5px;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #000000;}
|
526 |
-
.popover.left .arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000;}
|
527 |
-
.popover .arrow{position:absolute;width:0;height:0;}
|
528 |
-
.popover-inner{padding:3px;width:280px;overflow:hidden;background:#000000;background:rgba(0, 0, 0, 0.8);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);-moz-box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);}
|
529 |
-
.popover-title{padding:9px 15px;line-height:1;background-color:#f5f5f5;border-bottom:1px solid #eee;-webkit-border-radius:3px 3px 0 0;-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;}
|
530 |
-
.popover-content{padding:14px;background-color:#ffffff;-webkit-border-radius:0 0 3px 3px;-moz-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box;}.popover-content p,.popover-content ul,.popover-content ol{margin-bottom:0;}
|
531 |
-
.modal-open .dropdown-menu{z-index:2050;}
|
532 |
-
.modal-open .dropdown.open{*z-index:2050;}
|
533 |
-
.modal-open .popover{z-index:2060;}
|
534 |
-
.modal-open .tooltip{z-index:2070;}
|
535 |
-
.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000000;}.modal-backdrop.fade{opacity:0;}
|
536 |
-
.modal-backdrop,.modal-backdrop.fade.in{opacity:0.8;filter:alpha(opacity=80);}
|
537 |
-
.modal{position:fixed;top:50%;left:50%;z-index:1050;max-height:500px;overflow:auto;width:560px;margin:-250px 0 0 -280px;background-color:#ffffff;border:1px solid #999;border:1px solid rgba(0, 0, 0, 0.3);*border:1px solid #999;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);-moz-box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box;}.modal.fade{-webkit-transition:opacity .3s linear, top .3s ease-out;-moz-transition:opacity .3s linear, top .3s ease-out;-ms-transition:opacity .3s linear, top .3s ease-out;-o-transition:opacity .3s linear, top .3s ease-out;transition:opacity .3s linear, top .3s ease-out;top:-25%;}
|
538 |
-
.modal.fade.in{top:50%;}
|
539 |
-
.modal-header{padding:9px 15px;border-bottom:1px solid #eee;}.modal-header .close{margin-top:2px;}
|
540 |
-
.modal-body{padding:15px;}
|
541 |
-
.modal-footer{padding:14px 15px 15px;margin-bottom:0;background-color:#f5f5f5;border-top:1px solid #ddd;-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px;-webkit-box-shadow:inset 0 1px 0 #ffffff;-moz-box-shadow:inset 0 1px 0 #ffffff;box-shadow:inset 0 1px 0 #ffffff;*zoom:1;}.modal-footer:before,.modal-footer:after{display:table;content:"";}
|
542 |
-
.modal-footer:after{clear:both;}
|
543 |
-
.modal-footer .btn{float:right;margin-left:5px;margin-bottom:0;}
|
544 |
-
.dropdown{position:relative;}
|
545 |
-
.dropdown-toggle{*margin-bottom:-3px;}
|
546 |
-
.dropdown-toggle:active,.open .dropdown-toggle{outline:0;}
|
547 |
-
.caret{display:inline-block;width:0;height:0;text-indent:-99999px;*text-indent:0;vertical-align:top;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #000000;opacity:0.3;filter:alpha(opacity=30);content:"\2193";}
|
548 |
-
.dropdown .caret{margin-top:8px;margin-left:2px;}
|
549 |
-
.dropdown:hover .caret,.open.dropdown .caret{opacity:1;filter:alpha(opacity=100);}
|
550 |
-
.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;float:left;display:none;min-width:160px;max-width:220px;_width:160px;padding:4px 0;margin:0;list-style:none;background-color:#ffffff;border-color:#ccc;border-color:rgba(0, 0, 0, 0.2);border-style:solid;border-width:1px;-webkit-border-radius:0 0 5px 5px;-moz-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px;-webkit-box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);-moz-box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;*border-right-width:2px;*border-bottom-width:2px;}.dropdown-menu.bottom-up{top:auto;bottom:100%;margin-bottom:2px;}
|
551 |
-
.dropdown-menu .divider{height:1px;margin:5px 1px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #ffffff;*width:100%;*margin:-5px 0 5px;}
|
552 |
-
.dropdown-menu a{display:block;padding:3px 15px;clear:both;font-weight:normal;line-height:18px;color:#555555;white-space:nowrap;}
|
553 |
-
.dropdown-menu li>a:hover,.dropdown-menu .active>a,.dropdown-menu .active>a:hover{color:#ffffff;text-decoration:none;background-color:#0088cc;}
|
554 |
-
.dropdown.open{*z-index:1000;}.dropdown.open .dropdown-toggle{color:#ffffff;background:#ccc;background:rgba(0, 0, 0, 0.3);}
|
555 |
-
.dropdown.open .dropdown-menu{display:block;}
|
556 |
-
.typeahead{margin-top:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
|
557 |
-
.accordion{margin-bottom:18px;}
|
558 |
-
.accordion-group{margin-bottom:2px;border:1px solid #e5e5e5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
|
559 |
-
.accordion-heading{border-bottom:0;}
|
560 |
-
.accordion-heading .accordion-toggle{display:block;padding:8px 15px;}
|
561 |
-
.accordion-inner{padding:9px 15px;border-top:1px solid #e5e5e5;}
|
562 |
-
.carousel{position:relative;margin-bottom:18px;line-height:1;}
|
563 |
-
.carousel-inner{overflow:hidden;width:100%;position:relative;}
|
564 |
-
.carousel .item{display:none;position:relative;-webkit-transition:0.6s ease-in-out left;-moz-transition:0.6s ease-in-out left;-ms-transition:0.6s ease-in-out left;-o-transition:0.6s ease-in-out left;transition:0.6s ease-in-out left;}
|
565 |
-
.carousel .item>img{display:block;line-height:1;}
|
566 |
-
.carousel .active,.carousel .next,.carousel .prev{display:block;}
|
567 |
-
.carousel .active{left:0;}
|
568 |
-
.carousel .next,.carousel .prev{position:absolute;top:0;width:100%;}
|
569 |
-
.carousel .next{left:100%;}
|
570 |
-
.carousel .prev{left:-100%;}
|
571 |
-
.carousel .next.left,.carousel .prev.right{left:0;}
|
572 |
-
.carousel .active.left{left:-100%;}
|
573 |
-
.carousel .active.right{left:100%;}
|
574 |
-
.carousel-control{position:absolute;top:40%;left:15px;width:40px;height:40px;margin-top:-20px;font-size:60px;font-weight:100;line-height:30px;color:#ffffff;text-align:center;background:#222222;border:3px solid #ffffff;-webkit-border-radius:23px;-moz-border-radius:23px;border-radius:23px;opacity:0.5;filter:alpha(opacity=50);}.carousel-control.right{left:auto;right:15px;}
|
575 |
-
.carousel-control:hover{color:#ffffff;text-decoration:none;opacity:0.9;filter:alpha(opacity=90);}
|
576 |
-
.carousel-caption{position:absolute;left:0;right:0;bottom:0;padding:10px 15px 5px;background:#333333;background:rgba(0, 0, 0, 0.75);}
|
577 |
-
.carousel-caption h4,.carousel-caption p{color:#ffffff;}
|
578 |
-
.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #eee;border:1px solid rgba(0, 0, 0, 0.05);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);}.well blockquote{border-color:#ddd;border-color:rgba(0, 0, 0, 0.15);}
|
579 |
-
.close{float:right;font-size:20px;font-weight:bold;line-height:18px;color:#000000;text-shadow:0 1px 0 #ffffff;opacity:0.2;filter:alpha(opacity=20);}.close:hover{color:#000000;text-decoration:none;opacity:0.4;filter:alpha(opacity=40);cursor:pointer;}
|
580 |
-
.pull-right{float:right;}
|
581 |
-
.pull-left{float:left;}
|
582 |
-
.hide{display:none;}
|
583 |
-
.show{display:block;}
|
584 |
-
.invisible{visibility:hidden;}
|
585 |
-
.fade{-webkit-transition:opacity 0.15s linear;-moz-transition:opacity 0.15s linear;-ms-transition:opacity 0.15s linear;-o-transition:opacity 0.15s linear;transition:opacity 0.15s linear;opacity:0;}.fade.in{opacity:1;}
|
586 |
-
.collapse{-webkit-transition:height 0.35s ease;-moz-transition:height 0.35s ease;-ms-transition:height 0.35s ease;-o-transition:height 0.35s ease;transition:height 0.35s ease;position:relative;overflow:hidden;height:0;}.collapse.in{height:auto;}
|
587 |
-
.hidden{display:none;visibility:hidden;}
|
588 |
-
@media (max-width:480px){.nav-collapse{-webkit-transform:translate3d(0, 0, 0);} .page-header h1 small{display:block;line-height:18px;} input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input{display:block;width:100%;height:28px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;} .input-prepend input[class*="span"],.input-append input[class*="span"]{width:auto;} input[type="checkbox"],input[type="radio"]{border:1px solid #ccc;} .form-horizontal .control-group>label{float:none;width:auto;padding-top:0;text-align:left;} .form-horizontal .controls{margin-left:0;} .form-horizontal .control-list{padding-top:0;} .form-horizontal .form-actions{padding-left:10px;padding-right:10px;} .modal{position:absolute;top:10px;left:10px;right:10px;width:auto;margin:0;}.modal.fade.in{top:auto;} .modal-header .close{padding:10px;margin:-10px;} .carousel-caption{position:static;}}@media (max-width:768px){.container{width:auto;padding:0 20px;} .row-fluid{width:100%;} .row{margin-left:0;} .row>[class*="span"],.row-fluid>[class*="span"]{float:none;display:block;width:auto;margin:0;}}@media (min-width:768px) and (max-width:980px){.row{margin-left:-20px;*zoom:1;}.row:before,.row:after{display:table;content:"";} .row:after{clear:both;} [class*="span"]{float:left;margin-left:20px;} .span1{width:42px;} .span2{width:104px;} .span3{width:166px;} .span4{width:228px;} .span5{width:290px;} .span6{width:352px;} .span7{width:414px;} .span8{width:476px;} .span9{width:538px;} .span10{width:600px;} .span11{width:662px;} .span12,.container{width:724px;} .offset1{margin-left:82px;} .offset2{margin-left:144px;} .offset3{margin-left:206px;} .offset4{margin-left:268px;} .offset5{margin-left:330px;} .offset6{margin-left:392px;} .offset7{margin-left:454px;} .offset8{margin-left:516px;} .offset9{margin-left:578px;} .offset10{margin-left:640px;} .offset11{margin-left:702px;} .row-fluid{width:100%;*zoom:1;}.row-fluid:before,.row-fluid:after{display:table;content:"";} .row-fluid:after{clear:both;} .row-fluid>[class*="span"]{float:left;margin-left:2.762430939%;} .row-fluid>[class*="span"]:first-child{margin-left:0;} .row-fluid .span1{width:5.801104972%;} .row-fluid .span2{width:14.364640883%;} .row-fluid .span3{width:22.928176794%;} .row-fluid .span4{width:31.491712705%;} .row-fluid .span5{width:40.055248616%;} .row-fluid .span6{width:48.618784527%;} .row-fluid .span7{width:57.182320438000005%;} .row-fluid .span8{width:65.74585634900001%;} .row-fluid .span9{width:74.30939226%;} .row-fluid .span10{width:82.87292817100001%;} .row-fluid .span11{width:91.436464082%;} .row-fluid .span12{width:99.999999993%;} input.span1,textarea.span1,.uneditable-input.span1{width:32px;} input.span2,textarea.span2,.uneditable-input.span2{width:94px;} input.span3,textarea.span3,.uneditable-input.span3{width:156px;} input.span4,textarea.span4,.uneditable-input.span4{width:218px;} input.span5,textarea.span5,.uneditable-input.span5{width:280px;} input.span6,textarea.span6,.uneditable-input.span6{width:342px;} input.span7,textarea.span7,.uneditable-input.span7{width:404px;} input.span8,textarea.span8,.uneditable-input.span8{width:466px;} input.span9,textarea.span9,.uneditable-input.span9{width:528px;} input.span10,textarea.span10,.uneditable-input.span10{width:590px;} input.span11,textarea.span11,.uneditable-input.span11{width:652px;} input.span12,textarea.span12,.uneditable-input.span12{width:714px;}}@media (max-width:980px){body{padding-top:0;} .navbar-fixed-top{position:static;margin-bottom:18px;} .navbar-fixed-top .navbar-inner{padding:5px;} .navbar .container{width:auto;padding:0;} .navbar .brand{padding-left:10px;padding-right:10px;margin:0 0 0 -5px;} .navbar .nav-collapse{clear:left;} .navbar .nav{float:none;margin:0 0 9px;} .navbar .nav>li{float:none;} .navbar .nav>li>a{margin-bottom:2px;} .navbar .nav>.divider-vertical{display:none;} .navbar .nav>li>a,.navbar .dropdown-menu a{padding:6px 15px;font-weight:bold;color:#999999;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;} .navbar .dropdown-menu li+li a{margin-bottom:2px;} .navbar .nav>li>a:hover,.navbar .dropdown-menu a:hover{background-color:#222222;} .navbar .dropdown-menu{position:static;top:auto;left:auto;float:none;display:block;max-width:none;margin:0 15px;padding:0;background-color:transparent;border:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;} .navbar .dropdown-menu:before,.navbar .dropdown-menu:after{display:none;} .navbar .dropdown-menu .divider{display:none;} .navbar-form,.navbar-search{float:none;padding:9px 15px;margin:9px 0;border-top:1px solid #222222;border-bottom:1px solid #222222;-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1),0 1px 0 rgba(255, 255, 255, 0.1);-moz-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1),0 1px 0 rgba(255, 255, 255, 0.1);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1),0 1px 0 rgba(255, 255, 255, 0.1);} .navbar .nav.pull-right{float:none;margin-left:0;} .navbar-static .navbar-inner{padding-left:10px;padding-right:10px;} .btn-navbar{display:block;} .nav-collapse{overflow:hidden;height:0;}}@media (min-width:980px){.nav-collapse.collapse{height:auto !important;}}@media (min-width:1200px){.row{margin-left:-30px;*zoom:1;}.row:before,.row:after{display:table;content:"";} .row:after{clear:both;} [class*="span"]{float:left;margin-left:30px;} .span1{width:70px;} .span2{width:170px;} .span3{width:270px;} .span4{width:370px;} .span5{width:470px;} .span6{width:570px;} .span7{width:670px;} .span8{width:770px;} .span9{width:870px;} .span10{width:970px;} .span11{width:1070px;} .span12,.container{width:1170px;} .offset1{margin-left:130px;} .offset2{margin-left:230px;} .offset3{margin-left:330px;} .offset4{margin-left:430px;} .offset5{margin-left:530px;} .offset6{margin-left:630px;} .offset7{margin-left:730px;} .offset8{margin-left:830px;} .offset9{margin-left:930px;} .offset10{margin-left:1030px;} .offset11{margin-left:1130px;} .row-fluid{width:100%;*zoom:1;}.row-fluid:before,.row-fluid:after{display:table;content:"";} .row-fluid:after{clear:both;} .row-fluid>[class*="span"]{float:left;margin-left:2.564102564%;} .row-fluid>[class*="span"]:first-child{margin-left:0;} .row-fluid .span1{width:5.982905983%;} .row-fluid .span2{width:14.529914530000001%;} .row-fluid .span3{width:23.076923077%;} .row-fluid .span4{width:31.623931624%;} .row-fluid .span5{width:40.170940171000005%;} .row-fluid .span6{width:48.717948718%;} .row-fluid .span7{width:57.264957265%;} .row-fluid .span8{width:65.81196581200001%;} .row-fluid .span9{width:74.358974359%;} .row-fluid .span10{width:82.905982906%;} .row-fluid .span11{width:91.45299145300001%;} .row-fluid .span12{width:100%;} input.span1,textarea.span1,.uneditable-input.span1{width:60px;} input.span2,textarea.span2,.uneditable-input.span2{width:160px;} input.span3,textarea.span3,.uneditable-input.span3{width:260px;} input.span4,textarea.span4,.uneditable-input.span4{width:360px;} input.span5,textarea.span5,.uneditable-input.span5{width:460px;} input.span6,textarea.span6,.uneditable-input.span6{width:560px;} input.span7,textarea.span7,.uneditable-input.span7{width:660px;} input.span8,textarea.span8,.uneditable-input.span8{width:760px;} input.span9,textarea.span9,.uneditable-input.span9{width:860px;} input.span10,textarea.span10,.uneditable-input.span10{width:960px;} input.span11,textarea.span11,.uneditable-input.span11{width:1060px;} input.span12,textarea.span12,.uneditable-input.span12{width:1160px;} .thumbnails{margin-left:-30px;} .thumbnails>li{margin-left:30px;}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/comfeed.css
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
li.custom-comfeed{background-position:0px bottom !important}
|
2 |
-
li.custom-comfeed:hover{background-position:0px top !important}
|
|
|
|
css/ie7-admin-style.css
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
div#shrsb-col-left { overflow:hidden; }
|
2 |
-
div.box-mid-body { overflow:hidden; margin:-2px 0 0 0; }
|
3 |
-
div#shrsb-networks { display:block; margin:0 0 10px 0; overflow:hidden; }
|
4 |
-
div#shrsb-col-right { margin:40px -10px 0; right:2%; width:256px; }
|
5 |
-
div.box-right-head { width:256px; }
|
6 |
-
div.box-right-body { width:256px; overflow:hidden; }
|
7 |
-
div.box-right-body ul { list-style:none; padding:0; }
|
8 |
-
div.box-right-body ul li { list-style:none; list-style-position:outside; margin:0; padding:0; }
|
9 |
-
div.box-right-body ol { list-style-type:decimal !important; list-style-position:inside; }
|
10 |
-
div.box-right-body ol li { margin:30px 0 30px -30px; list-style-type:decimal !important; list-style-position:inside; }
|
11 |
-
div.box-right-body ol li:before { width:0; }
|
12 |
-
div.box-right-body ol li span { line-height:15px; }
|
13 |
-
div.dialog-box-succes { width:97.6%; }
|
14 |
-
div.dialog-box-error { width:97.6%; }
|
15 |
-
div.dialog-box-warning { width:97.6%; }
|
16 |
-
div.dialog-box-information { width:97.6%; }
|
17 |
-
img.del-x { margin-top:3px; }
|
18 |
-
.shebang-info { top:0; }
|
19 |
-
#bgimgs { display:block; overflow:hidden; padding:10px 10px 0; }
|
20 |
-
ul#shrsb-sortables li div.box-mid-head { width:100% !important; display:block !important; overflow:hidden !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/shareaholic-promo.css
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
/*------------------------------------------------------------------------------------------*/
|
2 |
-
/* Start Ext Promo */
|
3 |
-
#ext-promo-prompt{display:none;position:relative;width:100%;line-height:31px;height:31px;font-size:14px;background:#ffefc6 url(https://dtym7iokkjlif.cloudfront.net/media/images/ext-promo-bg.png) repeat-x scroll 0 0;z-index:99998;/*Admin bar is 99999*/}
|
4 |
-
#ext-promo-prompt a{text-decoration:none;color:#0076A6;}
|
5 |
-
#ext-promo-prompt a:hover{color:#017FD6;}
|
6 |
-
#ext-promo-prompt a.close{position:relative;width:20px;float:right;margin-right:10px;margin-top:5px;width:20px;height:20px;text-indent:-9999px;background:transparent url(https://dtym7iokkjlif.cloudfront.net/media/images/ext-promo-x.png) no-repeat scroll 0 0;}
|
7 |
-
#ext-promo-prompt a.close:hover{background-position:0 -20px;}
|
8 |
-
#ext-promo-prompt a.install{position:relative;width:75px;float:right;margin-right:20px;margin-top:4px;color:black;text-align:center;line-height:19px;border:1px solid rgba(100,100,100,.4);background-image:-webkit-gradient(linear,left bottom,left top,color-stop(0.25,#bdbdbd),color-stop(0.6,#d9d9d9),color-stop(0.99,#e0dcdf));background:-moz-linear-gradient(top,#bdbdbd,#e0dcdf);}
|
9 |
-
#ext-promo-prompt a.install:hover{border:1px solid rgba(100,100,100,.9);}
|
10 |
-
/* End of functionality options Styles*/
|
11 |
-
/*------------------------------------------------------------------------------------------*/
|
12 |
-
.fs_a{font-family:Arial,Helvetica,Geneva,sans-serif;}
|
13 |
-
.fs_c_midgrey2{color:#555555}
|
14 |
-
.rounded_5{webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;}
|
15 |
-
/*------------------------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/style.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
div.shr-bookmarks{margin:20px 0 8px;clear:both !important}div.shr-bookmarks-expand{height:32px;overflow:hidden}div.shr-bookmarks-bg-shr{padding:28px 0 0 10px !important;background:transparent url('../images/sharing-shr.png') no-repeat !important}div.shr-bookmarks-bg-caring{padding:26px 0 0 10px !important;background:transparent url('../images/sharing-caring-hearts.png') no-repeat !important}div.shr-bookmarks-bg-caring-old{padding:26px 0 0 10px !important;background:transparent url('../images/sharing-caring.png') no-repeat !important}div.shr-bookmarks-bg-love{padding:26px 0 0 10px !important;background:transparent url('../images/share-love-hearts.png') no-repeat !important}div.shr-bookmarks-bg-wealth{margin-left:15px !important;padding:35px 0 0 20px !important;background:transparent url('../images/share-wealth.png') no-repeat !important}div.shr-bookmarks-bg-enjoy{padding:26px 0 0 10px !important;background:transparent url('../images/share-enjoy.png') no-repeat !important}div.shr-bookmarks-bg-german{padding:35px 0 0 20px !important;background:transparent url('../images/share-german.png') no-repeat !important}div.shr-bookmarks-bg-knowledge{padding:35px 0 0 10px !important;background:transparent url('../images/share-knowledge.png') no-repeat !important}div.shr-bookmarks ul.socials{width:100% !important;margin:0 !important;padding:0 !important;float:left !important;background:transparent none !important;border:0 none !important;outline:0 none !important}div.shr-bookmarks ul.socials li{background-image:url('../images/shr-sprite.png') !important;background-repeat:no-repeat !important;display:inline !important;float:left !important;list-style-type:none !important;padding:0 !important;height:29px !important;width:60px !important;cursor:pointer !important;margin:3px 0 0 !important;background-color:transparent !important;border:0 none !important;outline:0 none !important;clear:none !important}div.shr-bookmarks ul.socials li:before,div.shr-bookmarks ul.socials li:after,div.shr-bookmarks ul.socials li a:before,div.shr-bookmarks ul.socials li a:after{content:'' !important}div.shr-bookmarks ul.socials a,div.shr-bookmarks ul.socials a:hover{display:block !important;width:60px !important;height:29px !important;text-indent:-9999px !important;background-color:transparent !important;text-decoration:none !important;border:0 none !important;margin:0 !important;padding:0 !important}div.shr-bookmarks div.shr-getshr{line-height:15px !important;padding-top:2px !important;padding-left:8px !important;float:left !important;}div.shr-bookmarks div.shr-getshr a{width:auto !important;font-size:10px !important;text-indent:0px !important;text-decoration:none !important;}div.shr-bookmarks ul.socials a:hover,div.shr-bookmarks ul.socials li:hover{background-color:transparent !important;border:0 none !important;outline:0 none !important}li.shr-newsvine{background-position:left bottom !important}li.shr-newsvine:hover{background-position:left top !important}li.shr-linkedin{background-position:-70px bottom !important}li.shr-linkedin:hover{background-position:-70px top !important}li.shr-googlebookmarks{background-position:-140px bottom !important}li.shr-googlebookmarks:hover{background-position:-140px top !important}li.shr-googlereader{background-position:-210px bottom !important}li.shr-googlereader:hover{background-position:-210px top !important}li.shr-scriptstyle{background-position:-280px bottom !important}li.shr-scriptstyle:hover{background-position:-280px top !important}li.shr-mail{background-position:-350px bottom !important}li.shr-mail:hover{background-position:-350px top !important}li.shr-comfeed{background-position:-420px bottom !important}li.shr-comfeed:hover{background-position:-420px top !important}li.shr-twitter{background-position:-490px bottom !important}li.shr-twitter:hover{background-position:-490px top !important}li.shr-technorati{background-position:-560px bottom !important}li.shr-technorati:hover{background-position:-560px top !important}li.shr-stumbleupon{background-position:-630px bottom !important}li.shr-stumbleupon:hover{background-position:-630px top !important}li.shr-reddit{background-position:-700px bottom !important}li.shr-reddit:hover{background-position:-700px top !important}li.shr-myspace{background-position:-770px bottom !important}li.shr-myspace:hover{background-position:-770px top !important}li.shr-mixx{background-position:-840px bottom !important}li.shr-mixx:hover{background-position:-840px top !important}li.shr-diigo{background-position:-910px bottom !important}li.shr-diigo:hover{background-position:-910px top !important}li.shr-digg{background-position:-980px bottom !important}li.shr-digg:hover{background-position:-980px top !important}li.shr-designfloat{background-position:-1050px bottom !important}li.shr-designfloat:hover{background-position:-1050px top !important}li.shr-yahoobuzz{background-position:-1120px bottom !important}li.shr-yahoobuzz:hover{background-position:-1120px top !important}li.shr-delicious{background-position:-1190px bottom !important}li.shr-delicious:hover{background-position:-1190px top !important}li.shr-blinklist{background-position:-1260px bottom !important}li.shr-blinklist:hover{background-position:-1260px top !important}li.shr-facebook{background-position:-1330px bottom !important}li.shr-facebook:hover{background-position:-1330px top !important}li.shr-misterwong{background-position:-1400px bottom !important}li.shr-misterwong:hover{background-position:-1400px top !important}li.shr-izeby{background-position:-1470px bottom !important}li.shr-izeby:hover{background-position:-1470px top !important}li.shr-twittley{background-position:-1540px bottom !important}li.shr-twittley:hover{background-position:-1540px top !important}li.shr-tipd{background-position:-1610px bottom !important}li.shr-tipd:hover{background-position:-1610px top !important}li.shr-pfbuzz{background-position:-1680px bottom !important}li.shr-pfbuzz:hover{background-position:-1680px top !important}li.shr-friendfeed{background-position:-1750px bottom !important}li.shr-friendfeed:hover{background-position:-1750px top !important}li.shr-blogmarks{background-position:-1820px bottom !important}li.shr-blogmarks:hover{background-position:-1820px top !important}li.shr-fwisp{background-position:-1890px bottom !important}li.shr-fwisp:hover{background-position:-1890px top !important}li.shr-yahoomail{background-position:-1960px bottom !important}li.shr-yahoomail:hover{background-position:-1960px top !important}li.shr-bobrdobr{background-position:-2030px bottom !important}li.shr-bobrdobr:hover{background-position:-2030px top !important}li.shr-memoryru{background-position:-2100px bottom !important}li.shr-memoryru:hover{background-position:-2100px top !important}li.shr-100zakladok{background-position:-2170px bottom !important}li.shr-100zakladok:hover{background-position:-2170px top !important}li.shr-yandex{background-position:-2240px bottom !important}li.shr-yandex:hover{background-position:-2240px top !important}li.shr-moemesto{background-position:-2310px bottom !important}li.shr-moemesto:hover{background-position:-2310px top !important}li.shr-marrows{background-position:-2380px bottom !important}li.shr-marrows:hover{background-position:-2380px top !important}li.shr-identica{background-position:-2450px bottom !important}li.shr-identica:hover{background-position:-2450px top !important}li.shr-hackernews{background-position:-2520px bottom !important}li.shr-hackernews:hover{background-position:-2520px top !important}li.shr-ning{background-position:-2590px bottom !important}li.shr-ning:hover{background-position:-2590px top !important}li.shr-designbump{background-position:-2660px bottom !important}li.shr-designbump:hover{background-position:-2660px top !important}li.shr-printfriendly{background-position:-2730px bottom !important}li.shr-printfriendly:hover{background-position:-2730px top !important}li.shr-fleck{background-position:-2800px bottom !important}li.shr-fleck:hover{background-position:-2800px top !important}li.shr-netvibes{background-position:-2870px bottom !important}li.shr-netvibes:hover{background-position:-2870px top !important}li.shr-netvouz{background-position:-2940px bottom !important}li.shr-netvouz:hover{background-position:-2940px top !important}li.shr-nujij{background-position:-3010px bottom !important}li.shr-nujij:hover{background-position:-3010px top !important}li.shr-globalgrind{background-position:-3080px bottom !important}li.shr-globalgrind:hover{background-position:-3080px top !important}li.shr-wikio{background-position:-3150px bottom !important}li.shr-wikio:hover{background-position:-3150px top !important}li.shr-xerpi{background-position:-3220px bottom !important}li.shr-xerpi:hover{background-position:-3220px top !important}li.shr-sphinn{background-position:-3290px bottom !important}li.shr-sphinn:hover{background-position:-3290px top !important}li.shr-hotmail{background-position:-3360px bottom !important}li.shr-hotmail:hover{background-position:-3360px top !important}li.shr-posterous{background-position:-3430px bottom !important}li.shr-posterous:hover{background-position:-3430px top !important}li.shr-techmeme{background-position:-3500px bottom !important}li.shr-techmeme:hover{background-position:-3500px top !important}li.shr-ekudos{background-position:-3570px bottom !important}li.shr-ekudos:hover{background-position:-3570px top !important}li.shr-pingfm{background-position:-3640px bottom !important}li.shr-pingfm:hover{background-position:-3640px top !important}li.shr-tomuse{background-position:-3710px bottom !important}li.shr-tomuse:hover{background-position:-3710px top !important}li.shr-webblend{background-position:-3780px bottom !important}li.shr-webblend:hover{background-position:-3780px top !important}li.shr-wykop{background-position:-3850px bottom !important}li.shr-wykop:hover{background-position:-3850px top !important}li.shr-blogengage{background-position:-3920px bottom !important}li.shr-blogengage:hover{background-position:-3920px top !important}li.shr-hyves{background-position:-3990px bottom !important}li.shr-hyves:hover{background-position:-3990px top !important}li.shr-pusha{background-position:-4060px bottom !important}li.shr-pusha:hover{background-position:-4060px top !important}li.shr-hatena{background-position:-4130px bottom !important}li.shr-hatena:hover{background-position:-4130px top !important}li.shr-mylinkvault{background-position:-4200px bottom !important}li.shr-mylinkvault:hover{background-position:-4200px top !important}li.shr-slashdot{background-position:-4270px bottom !important}li.shr-slashdot:hover{background-position:-4270px top !important}li.shr-squidoo{background-position:-4340px bottom !important}li.shr-squidoo:hover{background-position:-4340px top !important}li.shr-faqpal:hover{background-position:-4480px top !important}li.shr-evernote{background-position:-4550px bottom !important}li.shr-evernote:hover{background-position:-4550px top !important}li.shr-meneame{background-position:-4620px bottom !important}li.shr-meneame:hover{background-position:-4620px top !important}li.shr-bitacoras{background-position:-4690px bottom !important}li.shr-bitacoras:hover{background-position:-4690px top !important}li.shr-jumptags{background-position:-4760px bottom !important}li.shr-jumptags:hover{background-position:-4760px top !important}li.shr-bebo{background-position:-4830px bottom !important}li.shr-bebo:hover{background-position:-4830px top !important}li.shr-n4g{background-position:-4900px bottom !important}li.shr-n4g:hover{background-position:-4900px top !important}li.shr-strands{background-position:-4970px bottom !important}li.shr-strands:hover{background-position:-4970px top !important}li.shr-orkut{background-position:-5040px bottom !important}li.shr-orkut:hover{background-position:-5040px top !important}li.shr-tumblr{background-position:-5110px bottom !important}li.shr-tumblr:hover{background-position:-5110px top !important}li.shr-stumpedia{background-position:-5180px bottom !important}li.shr-stumpedia:hover{background-position:-5180px top !important}li.shr-current{background-position:-5250px bottom !important}li.shr-current:hover{background-position:-5250px top !important}li.shr-blogger{background-position:-5320px bottom !important}li.shr-blogger:hover{background-position:-5320px top !important}li.shr-plurk{background-position:-5390px bottom !important}li.shr-plurk:hover{background-position:-5390px top !important}li.shr-virb{background-position:-5460px bottom !important}li.shr-virb:hover{background-position:-5460px top !important}li.shr-dzone{background-position:-5530px bottom !important}li.shr-dzone:hover{background-position:-5530px top !important}li.shr-kaevur{background-position:-5600px bottom !important}li.shr-kaevur:hover{background-position:-5600px top !important}li.shr-box{background-position:-5670px bottom !important}li.shr-box:hover{background-position:-5670px top !important}li.shr-oknotizie{background-position:-5740px bottom !important}li.shr-oknotizie:hover{background-position:-5740px top !important}li.shr-bonzobox{background-position:-5810px bottom !important}li.shr-bonzobox:hover{background-position:-5810px top !important}li.shr-plaxo{background-position:-5880px bottom !important}li.shr-plaxo:hover{background-position:-5880px top !important}li.shr-springpad{background-position:-5950px bottom !important}li.shr-springpad:hover{background-position:-5950px top !important}li.shr-zabox{background-position:-6020px bottom !important}li.shr-zabox:hover{background-position:-6020px top !important}li.shr-viadeo{background-position:-6090px bottom !important}li.shr-viadeo:hover{background-position:-6090px top !important}li.shr-googlebuzz{background-position:-6160px bottom !important}li.shr-googlebuzz:hover{background-position:-6160px top !important}li.shr-gmail{background-position:-6230px bottom !important}li.shr-gmail:hover{background-position:-6230px top !important}li.shr-buzzster{background-position:-6300px bottom !important}li.shr-buzzster:hover{background-position:-6300px top !important}div.shr-count{font:12px bold,arial !important;position: relative !important;}div.shr-count-outline{position: absolute !important;color: white !important;}div.shr-count-center{position: absolute !important;color: blue !important;}
|
|
css/style.dev.css
DELETED
@@ -1,198 +0,0 @@
|
|
1 |
-
div.shr-bookmarks{margin:20px 0 8px;clear:both !important}
|
2 |
-
div.shr-bookmarks-expand{height:32px;overflow:hidden}
|
3 |
-
div.shr-bookmarks-bg-shr{padding:28px 0 0 10px !important;background:transparent url('../images/sharing-shr.png') no-repeat !important}
|
4 |
-
div.shr-bookmarks-bg-caring{padding:26px 0 0 10px !important;background:transparent url('../images/sharing-caring-hearts.png') no-repeat !important}
|
5 |
-
div.shr-bookmarks-bg-caring-old{padding:26px 0 0 10px !important;background:transparent url('../images/sharing-caring.png') no-repeat !important}
|
6 |
-
div.shr-bookmarks-bg-love{padding:26px 0 0 10px !important;background:transparent url('../images/share-love-hearts.png') no-repeat !important}
|
7 |
-
div.shr-bookmarks-bg-wealth{margin-left:15px !important;padding:35px 0 0 20px !important;background:transparent url('../images/share-wealth.png') no-repeat !important}
|
8 |
-
div.shr-bookmarks-bg-enjoy{padding:26px 0 0 10px !important;background:transparent url('../images/share-enjoy.png') no-repeat !important}
|
9 |
-
div.shr-bookmarks-bg-german{padding:35px 0 0 20px !important;background:transparent url('../images/share-german.png') no-repeat !important}
|
10 |
-
div.shr-bookmarks-bg-knowledge{padding:35px 0 0 10px !important;background:transparent url('../images/share-knowledge.png') no-repeat !important}
|
11 |
-
div.shr-bookmarks ul.socials{width:100% !important;margin:0 !important;padding:0 !important;float:left !important;background:transparent none !important;border:0 none !important;outline:0 none !important}
|
12 |
-
div.shr-bookmarks ul.socials li{background-image:url('../images/shr-sprite.png') !important;background-repeat:no-repeat !important;display:inline !important;float:left !important;list-style-type:none !important;padding:0 !important;height:29px !important;width:60px !important;cursor:pointer !important;margin:3px 0 0 !important;background-color:transparent !important;border:0 none !important;outline:0 none !important;clear:none !important}
|
13 |
-
div.shr-bookmarks ul.socials li:before,div.shr-bookmarks ul.socials li:after,div.shr-bookmarks ul.socials li a:before,div.shr-bookmarks ul.socials li a:after{content:'' !important}
|
14 |
-
div.shr-bookmarks ul.socials a,div.shr-bookmarks ul.socials a:hover{display:block !important;width:60px !important;height:29px !important;text-indent:-9999px !important;background-color:transparent !important;text-decoration:none !important;border:0 none !important;margin:0 !important;padding:0 !important}
|
15 |
-
div.shr-bookmarks div.shr-getshr{line-height:15px !important;padding-top:2px !important;padding-left:8px !important;float:left !important;}
|
16 |
-
div.shr-bookmarks div.shr-getshr a{width:auto !important;font-size:10px !important;text-indent:0px !important;text-decoration:none !important;}
|
17 |
-
div.shr-bookmarks ul.socials a:hover,div.shr-bookmarks ul.socials li:hover{background-color:transparent !important;border:0 none !important;outline:0 none !important}
|
18 |
-
li.shr-newsvine{background-position:left bottom !important}
|
19 |
-
li.shr-newsvine:hover{background-position:left top !important}
|
20 |
-
li.shr-linkedin{background-position:-70px bottom !important}
|
21 |
-
li.shr-linkedin:hover{background-position:-70px top !important}
|
22 |
-
li.shr-googlebookmarks{background-position:-140px bottom !important}
|
23 |
-
li.shr-googlebookmarks:hover{background-position:-140px top !important}
|
24 |
-
li.shr-googlereader{background-position:-210px bottom !important}
|
25 |
-
li.shr-googlereader:hover{background-position:-210px top !important}
|
26 |
-
li.shr-scriptstyle{background-position:-280px bottom !important}
|
27 |
-
li.shr-scriptstyle:hover{background-position:-280px top !important}
|
28 |
-
li.shr-mail{background-position:-350px bottom !important}
|
29 |
-
li.shr-mail:hover{background-position:-350px top !important}
|
30 |
-
li.shr-twitter{background-position:-490px bottom !important}
|
31 |
-
li.shr-twitter:hover{background-position:-490px top !important}
|
32 |
-
li.shr-technorati{background-position:-560px bottom !important}
|
33 |
-
li.shr-technorati:hover{background-position:-560px top !important}
|
34 |
-
li.shr-stumbleupon{background-position:-630px bottom !important}
|
35 |
-
li.shr-stumbleupon:hover{background-position:-630px top !important}
|
36 |
-
li.shr-reddit{background-position:-700px bottom !important}
|
37 |
-
li.shr-reddit:hover{background-position:-700px top !important}
|
38 |
-
li.shr-myspace{background-position:-770px bottom !important}
|
39 |
-
li.shr-myspace:hover{background-position:-770px top !important}
|
40 |
-
li.shr-mixx{background-position:-840px bottom !important}
|
41 |
-
li.shr-mixx:hover{background-position:-840px top !important}
|
42 |
-
li.shr-diigo{background-position:-910px bottom !important}
|
43 |
-
li.shr-diigo:hover{background-position:-910px top !important}
|
44 |
-
li.shr-digg{background-position:-980px bottom !important}
|
45 |
-
li.shr-digg:hover{background-position:-980px top !important}
|
46 |
-
li.shr-designfloat{background-position:-1050px bottom !important}
|
47 |
-
li.shr-designfloat:hover{background-position:-1050px top !important}
|
48 |
-
li.shr-yahoobuzz{background-position:-1120px bottom !important}
|
49 |
-
li.shr-yahoobuzz:hover{background-position:-1120px top !important}
|
50 |
-
li.shr-delicious{background-position:-1190px bottom !important}
|
51 |
-
li.shr-delicious:hover{background-position:-1190px top !important}
|
52 |
-
li.shr-blinklist{background-position:-1260px bottom !important}
|
53 |
-
li.shr-blinklist:hover{background-position:-1260px top !important}
|
54 |
-
li.shr-facebook{background-position:-1330px bottom !important}
|
55 |
-
li.shr-facebook:hover{background-position:-1330px top !important}
|
56 |
-
li.shr-misterwong{background-position:-1400px bottom !important}
|
57 |
-
li.shr-misterwong:hover{background-position:-1400px top !important}
|
58 |
-
li.shr-izeby{background-position:-1470px bottom !important}
|
59 |
-
li.shr-izeby:hover{background-position:-1470px top !important}
|
60 |
-
li.shr-twittley{background-position:-1540px bottom !important}
|
61 |
-
li.shr-twittley:hover{background-position:-1540px top !important}
|
62 |
-
li.shr-tipd{background-position:-1610px bottom !important}
|
63 |
-
li.shr-tipd:hover{background-position:-1610px top !important}
|
64 |
-
li.shr-pfbuzz{background-position:-1680px bottom !important}
|
65 |
-
li.shr-pfbuzz:hover{background-position:-1680px top !important}
|
66 |
-
li.shr-friendfeed{background-position:-1750px bottom !important}
|
67 |
-
li.shr-friendfeed:hover{background-position:-1750px top !important}
|
68 |
-
li.shr-blogmarks{background-position:-1820px bottom !important}
|
69 |
-
li.shr-blogmarks:hover{background-position:-1820px top !important}
|
70 |
-
li.shr-fwisp{background-position:-1890px bottom !important}
|
71 |
-
li.shr-fwisp:hover{background-position:-1890px top !important}
|
72 |
-
li.shr-yahoomail{background-position:-1960px bottom !important}
|
73 |
-
li.shr-yahoomail:hover{background-position:-1960px top !important}
|
74 |
-
li.shr-bobrdobr{background-position:-2030px bottom !important}
|
75 |
-
li.shr-bobrdobr:hover{background-position:-2030px top !important}
|
76 |
-
li.shr-memoryru{background-position:-2100px bottom !important}
|
77 |
-
li.shr-memoryru:hover{background-position:-2100px top !important}
|
78 |
-
li.shr-100zakladok{background-position:-2170px bottom !important}
|
79 |
-
li.shr-100zakladok:hover{background-position:-2170px top !important}
|
80 |
-
li.shr-yandex{background-position:-2240px bottom !important}
|
81 |
-
li.shr-yandex:hover{background-position:-2240px top !important}
|
82 |
-
li.shr-moemesto{background-position:-2310px bottom !important}
|
83 |
-
li.shr-moemesto:hover{background-position:-2310px top !important}
|
84 |
-
li.shr-marrows{background-position:-2380px bottom !important}
|
85 |
-
li.shr-marrows:hover{background-position:-2380px top !important}
|
86 |
-
li.shr-identica{background-position:-2450px bottom !important}
|
87 |
-
li.shr-identica:hover{background-position:-2450px top !important}
|
88 |
-
li.shr-hackernews{background-position:-2520px bottom !important}
|
89 |
-
li.shr-hackernews:hover{background-position:-2520px top !important}
|
90 |
-
li.shr-ning{background-position:-2590px bottom !important}
|
91 |
-
li.shr-ning:hover{background-position:-2590px top !important}
|
92 |
-
li.shr-designbump{background-position:-2660px bottom !important}
|
93 |
-
li.shr-designbump:hover{background-position:-2660px top !important}
|
94 |
-
li.shr-printfriendly{background-position:-2730px bottom !important}
|
95 |
-
li.shr-printfriendly:hover{background-position:-2730px top !important}
|
96 |
-
li.shr-fleck{background-position:-2800px bottom !important}
|
97 |
-
li.shr-fleck:hover{background-position:-2800px top !important}
|
98 |
-
li.shr-netvibes{background-position:-2870px bottom !important}
|
99 |
-
li.shr-netvibes:hover{background-position:-2870px top !important}
|
100 |
-
li.shr-netvouz{background-position:-2940px bottom !important}
|
101 |
-
li.shr-netvouz:hover{background-position:-2940px top !important}
|
102 |
-
li.shr-nujij{background-position:-3010px bottom !important}
|
103 |
-
li.shr-nujij:hover{background-position:-3010px top !important}
|
104 |
-
li.shr-globalgrind{background-position:-3080px bottom !important}
|
105 |
-
li.shr-globalgrind:hover{background-position:-3080px top !important}
|
106 |
-
li.shr-wikio{background-position:-3150px bottom !important}
|
107 |
-
li.shr-wikio:hover{background-position:-3150px top !important}
|
108 |
-
li.shr-xerpi{background-position:-3220px bottom !important}
|
109 |
-
li.shr-xerpi:hover{background-position:-3220px top !important}
|
110 |
-
li.shr-sphinn{background-position:-3290px bottom !important}
|
111 |
-
li.shr-sphinn:hover{background-position:-3290px top !important}
|
112 |
-
li.shr-hotmail{background-position:-3360px bottom !important}
|
113 |
-
li.shr-hotmail:hover{background-position:-3360px top !important}
|
114 |
-
li.shr-posterous{background-position:-3430px bottom !important}
|
115 |
-
li.shr-posterous:hover{background-position:-3430px top !important}
|
116 |
-
li.shr-techmeme{background-position:-3500px bottom !important}
|
117 |
-
li.shr-techmeme:hover{background-position:-3500px top !important}
|
118 |
-
li.shr-ekudos{background-position:-3570px bottom !important}
|
119 |
-
li.shr-ekudos:hover{background-position:-3570px top !important}
|
120 |
-
li.shr-pingfm{background-position:-3640px bottom !important}
|
121 |
-
li.shr-pingfm:hover{background-position:-3640px top !important}
|
122 |
-
li.shr-tomuse{background-position:-3710px bottom !important}
|
123 |
-
li.shr-tomuse:hover{background-position:-3710px top !important}
|
124 |
-
li.shr-webblend{background-position:-3780px bottom !important}
|
125 |
-
li.shr-webblend:hover{background-position:-3780px top !important}
|
126 |
-
li.shr-wykop{background-position:-3850px bottom !important}
|
127 |
-
li.shr-wykop:hover{background-position:-3850px top !important}
|
128 |
-
li.shr-blogengage{background-position:-3920px bottom !important}
|
129 |
-
li.shr-blogengage:hover{background-position:-3920px top !important}
|
130 |
-
li.shr-hyves{background-position:-3990px bottom !important}
|
131 |
-
li.shr-hyves:hover{background-position:-3990px top !important}
|
132 |
-
li.shr-pusha{background-position:-4060px bottom !important}
|
133 |
-
li.shr-pusha:hover{background-position:-4060px top !important}
|
134 |
-
li.shr-hatena{background-position:-4130px bottom !important}
|
135 |
-
li.shr-hatena:hover{background-position:-4130px top !important}
|
136 |
-
li.shr-mylinkvault{background-position:-4200px bottom !important}
|
137 |
-
li.shr-mylinkvault:hover{background-position:-4200px top !important}
|
138 |
-
li.shr-slashdot{background-position:-4270px bottom !important}
|
139 |
-
li.shr-slashdot:hover{background-position:-4270px top !important}
|
140 |
-
li.shr-squidoo{background-position:-4340px bottom !important}
|
141 |
-
li.shr-squidoo:hover{background-position:-4340px top !important}
|
142 |
-
li.shr-faqpal{background-position:-4480px bottom !important}
|
143 |
-
li.shr-faqpal:hover{background-position:-4480px top !important}
|
144 |
-
li.shr-evernote{background-position:-4550px bottom !important}
|
145 |
-
li.shr-evernote:hover{background-position:-4550px top !important}
|
146 |
-
li.shr-meneame{background-position:-4620px bottom !important}
|
147 |
-
li.shr-meneame:hover{background-position:-4620px top !important}
|
148 |
-
li.shr-bitacoras{background-position:-4690px bottom !important}
|
149 |
-
li.shr-bitacoras:hover{background-position:-4690px top !important}
|
150 |
-
li.shr-jumptags{background-position:-4760px bottom !important}
|
151 |
-
li.shr-jumptags:hover{background-position:-4760px top !important}
|
152 |
-
li.shr-bebo{background-position:-4830px bottom !important}
|
153 |
-
li.shr-bebo:hover{background-position:-4830px top !important}
|
154 |
-
li.shr-n4g{background-position:-4900px bottom !important}
|
155 |
-
li.shr-n4g:hover{background-position:-4900px top !important}
|
156 |
-
li.shr-strands{background-position:-4970px bottom !important}
|
157 |
-
li.shr-strands:hover{background-position:-4970px top !important}
|
158 |
-
li.shr-orkut{background-position:-5040px bottom !important}
|
159 |
-
li.shr-orkut:hover{background-position:-5040px top !important}
|
160 |
-
li.shr-tumblr{background-position:-5110px bottom !important}
|
161 |
-
li.shr-tumblr:hover{background-position:-5110px top !important}
|
162 |
-
li.shr-stumpedia{background-position:-5180px bottom !important}
|
163 |
-
li.shr-stumpedia:hover{background-position:-5180px top !important}
|
164 |
-
li.shr-current{background-position:-5250px bottom !important}
|
165 |
-
li.shr-current:hover{background-position:-5250px top !important}
|
166 |
-
li.shr-blogger{background-position:-5320px bottom !important}
|
167 |
-
li.shr-blogger:hover{background-position:-5320px top !important}
|
168 |
-
li.shr-plurk{background-position:-5390px bottom !important}
|
169 |
-
li.shr-plurk:hover{background-position:-5390px top !important}
|
170 |
-
li.shr-virb{background-position:-5460px bottom !important}
|
171 |
-
li.shr-virb:hover{background-position:-5460px top !important}
|
172 |
-
li.shr-dzone{background-position:-5530px bottom !important}
|
173 |
-
li.shr-dzone:hover{background-position:-5530px top !important}
|
174 |
-
li.shr-kaevur{background-position:-5600px bottom !important}
|
175 |
-
li.shr-kaevur:hover{background-position:-5600px top !important}
|
176 |
-
li.shr-box{background-position:-5670px bottom !important}
|
177 |
-
li.shr-box:hover{background-position:-5670px top !important}
|
178 |
-
li.shr-oknotizie{background-position:-5740px bottom !important}
|
179 |
-
li.shr-oknotizie:hover{background-position:-5740px top !important}
|
180 |
-
li.shr-bonzobox{background-position:-5810px bottom !important}
|
181 |
-
li.shr-bonzobox:hover{background-position:-5810px top !important}
|
182 |
-
li.shr-plaxo{background-position:-5880px bottom !important}
|
183 |
-
li.shr-plaxo:hover{background-position:-5880px top !important}
|
184 |
-
li.shr-springpad{background-position:-5950px bottom !important}
|
185 |
-
li.shr-springpad:hover{background-position:-5950px top !important}
|
186 |
-
li.shr-zabox{background-position:-6020px bottom !important}
|
187 |
-
li.shr-zabox:hover{background-position:-6020px top !important}
|
188 |
-
li.shr-viadeo{background-position:-6090px bottom !important}
|
189 |
-
li.shr-viadeo:hover{background-position:-6090px top !important}
|
190 |
-
li.shr-googlebuzz{background-position:-6160px bottom !important}
|
191 |
-
li.shr-googlebuzz:hover{background-position:-6160px top !important}
|
192 |
-
li.shr-gmail{background-position:-6230px bottom !important}
|
193 |
-
li.shr-gmail:hover{background-position:-6230px top !important}
|
194 |
-
li.shr-buzzster{background-position:-6300px bottom !important}
|
195 |
-
li.shr-buzzster:hover{background-position:-6300px top !important}
|
196 |
-
div.shr-count{font:12px bold,arial !important;position:relative !important;}
|
197 |
-
div.shr-count-outline{position:absolute !important;color:white !important;}
|
198 |
-
div.shr-count-center{position:absolute !important;color:blue !important;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
curl.php
ADDED
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package shareaholic
|
4 |
+
*/
|
5 |
+
|
6 |
+
require_once(SHAREAHOLIC_DIR . '/query_string_builder.php');
|
7 |
+
|
8 |
+
/**
|
9 |
+
* This class is a library to easily interface with PHP's native
|
10 |
+
* cURL library. It exposes two methods `get` and `post`.
|
11 |
+
*/
|
12 |
+
class ShareaholicCurl {
|
13 |
+
/**
|
14 |
+
*
|
15 |
+
* Performs a POST request
|
16 |
+
*
|
17 |
+
* @param string $url the url you are POSTing to
|
18 |
+
* @param array $data an associative array of the data you are posting
|
19 |
+
* @param string $data_type defaults to nothing, you can pass in 'json'
|
20 |
+
*
|
21 |
+
* @return array the returned data json decoded
|
22 |
+
*/
|
23 |
+
public static function post($url, $data = array(), $data_type = '') {
|
24 |
+
return self::send_request($url, $data, $data_type, 'POST');
|
25 |
+
}
|
26 |
+
|
27 |
+
/**
|
28 |
+
*
|
29 |
+
* Performs a GET request
|
30 |
+
*
|
31 |
+
* @param string $url the url you are GETing to
|
32 |
+
* @param array $data an associative array of the data you are posting
|
33 |
+
*
|
34 |
+
* @return array the returned data json decoded
|
35 |
+
*/
|
36 |
+
public static function get($url, $data = array(), $data_type = '') {
|
37 |
+
return self::send_request($url, $data, $data_type, 'GET');
|
38 |
+
}
|
39 |
+
|
40 |
+
/**
|
41 |
+
*
|
42 |
+
* Performs a request using cURL
|
43 |
+
*
|
44 |
+
* @param string $url the url you are GETing to
|
45 |
+
* @param array $data an associative array of the data you are posting
|
46 |
+
* @param string $data_type either an empty string or 'json'
|
47 |
+
* @param string $method the HTTP verb to be used
|
48 |
+
*
|
49 |
+
* @return array the returned data json decoded
|
50 |
+
*/
|
51 |
+
private static function send_request($url, $data, $data_type, $method) {
|
52 |
+
ShareaholicUtilities::log($data);
|
53 |
+
$curl = curl_init();
|
54 |
+
curl_setopt_array($curl, array(
|
55 |
+
CURLOPT_URL => $url,
|
56 |
+
CURLOPT_RETURNTRANSFER => 1,
|
57 |
+
CURLOPT_SSL_VERIFYPEER => false,
|
58 |
+
CURLOPT_SSL_VERIFYHOST => false
|
59 |
+
));
|
60 |
+
|
61 |
+
/*
|
62 |
+
* Because many shared hosting providers set `open_basedir` in php.ini
|
63 |
+
* that means we can't always set CURLOPT_FOLLOWLOCATION.
|
64 |
+
* This next block is an attempt around that by sending head requests
|
65 |
+
* to determine if there will be a redirect and then following it.
|
66 |
+
* Shamelessly stolen from here:
|
67 |
+
* http://us2.php.net/manual/en/function.curl-setopt.php#102121
|
68 |
+
*/
|
69 |
+
$mr = 5;
|
70 |
+
if (ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off')) {
|
71 |
+
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, $mr > 0);
|
72 |
+
curl_setopt($curl, CURLOPT_MAXREDIRS, $mr);
|
73 |
+
} else {
|
74 |
+
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false);
|
75 |
+
if ($mr > 0) {
|
76 |
+
$newurl = curl_getinfo($curl, CURLINFO_EFFECTIVE_URL);
|
77 |
+
|
78 |
+
$rch = curl_copy_handle($curl);
|
79 |
+
curl_setopt($rch, CURLOPT_HEADER, true);
|
80 |
+
curl_setopt($rch, CURLOPT_NOBODY, true);
|
81 |
+
curl_setopt($rch, CURLOPT_FORBID_REUSE, false);
|
82 |
+
curl_setopt($rch, CURLOPT_RETURNTRANSFER, true);
|
83 |
+
do {
|
84 |
+
curl_setopt($rch, CURLOPT_URL, $newurl);
|
85 |
+
$header = curl_exec($rch);
|
86 |
+
if (curl_errno($rch)) {
|
87 |
+
$code = 0;
|
88 |
+
} else {
|
89 |
+
$code = curl_getinfo($rch, CURLINFO_HTTP_CODE);
|
90 |
+
if ($code == 301 || $code == 302) {
|
91 |
+
preg_match('/Location:(.*?)\n/', $header, $matches);
|
92 |
+
$newurl = trim(array_pop($matches));
|
93 |
+
} else {
|
94 |
+
$code = 0;
|
95 |
+
}
|
96 |
+
}
|
97 |
+
} while ($code && --$mr);
|
98 |
+
curl_close($rch);
|
99 |
+
if (!$mr) {
|
100 |
+
if ($maxredirect === null) {
|
101 |
+
trigger_error('Too many redirects. When following redirects, libcurl hit the maximum amount.', E_USER_WARNING);
|
102 |
+
} else {
|
103 |
+
$maxredirect = 0;
|
104 |
+
}
|
105 |
+
return false;
|
106 |
+
}
|
107 |
+
curl_setopt($curl, CURLOPT_URL, $newurl);
|
108 |
+
}
|
109 |
+
}
|
110 |
+
/* end stolen code */
|
111 |
+
|
112 |
+
if ($method == 'POST') {
|
113 |
+
curl_setopt_array($curl, array(
|
114 |
+
CURLOPT_POST => 1,
|
115 |
+
CURLOPT_HTTPHEADER => array("Accept: application/json,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain")
|
116 |
+
));
|
117 |
+
|
118 |
+
if ($data_type == 'json'){
|
119 |
+
curl_setopt_array($curl, array(
|
120 |
+
CURLOPT_POSTFIELDS => json_encode($data),
|
121 |
+
CURLOPT_HTTPHEADER => array(
|
122 |
+
'Content-Type: application/json',
|
123 |
+
'Content-Length: ' . strlen(json_encode($data))
|
124 |
+
)
|
125 |
+
));
|
126 |
+
} else {
|
127 |
+
curl_setopt_array($curl, array(
|
128 |
+
CURLOPT_POSTFIELDS => ShareaholicQueryStringBuilder::build_query_string($data),
|
129 |
+
));
|
130 |
+
}
|
131 |
+
}
|
132 |
+
|
133 |
+
$result = curl_exec($curl);
|
134 |
+
$info = curl_getinfo($curl);
|
135 |
+
ShareaholicUtilities::log(curl_error($curl));
|
136 |
+
ShareaholicUtilities::log(curl_getinfo($curl));
|
137 |
+
curl_close($curl);
|
138 |
+
|
139 |
+
if (preg_match('/^20*/', $info['http_code'])) {
|
140 |
+
return ShareaholicUtilities::object_to_array(json_decode($result)) ?
|
141 |
+
ShareaholicUtilities::object_to_array(json_decode($result)) : $result;
|
142 |
+
} else {
|
143 |
+
return false;
|
144 |
+
}
|
145 |
+
}
|
146 |
+
}
|
147 |
+
|
148 |
+
?>
|
deprecation.php
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Holds the `ShareaholicDeprecation` class
|
4 |
+
*
|
5 |
+
* @package shareaholic
|
6 |
+
*/
|
7 |
+
|
8 |
+
/**
|
9 |
+
* This class keeps track of various deprecations and what files
|
10 |
+
* and line numbers they occur on.
|
11 |
+
*/
|
12 |
+
class ShareaholicDeprecation {
|
13 |
+
public function __construct($function) {
|
14 |
+
$this->function = $function;
|
15 |
+
$deprecations = get_option('shareaholic_deprecations');
|
16 |
+
$this->deprecations = isset($deprecations[$function]) ? $deprecations[$function] : array();
|
17 |
+
}
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Store a file and line number of the call site of a deprecated function.
|
21 |
+
*
|
22 |
+
* If the file already has a deprecated function in it and a differe line number,
|
23 |
+
* the line number will be appended (i.e. the user has called it multiple times).
|
24 |
+
*
|
25 |
+
* @param string $file the name of the file
|
26 |
+
* @param string $line the line number of the call site
|
27 |
+
*/
|
28 |
+
public function push($file, $line) {
|
29 |
+
$line_numbers = isset($this->deprecations[$file]) ? $this->deprecations[$file] : array();
|
30 |
+
array_push($line_numbers, $line);
|
31 |
+
$this->deprecations[$file] = array_unique($line_numbers);
|
32 |
+
|
33 |
+
$this->update($this->deprecations);
|
34 |
+
}
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Returns all of the deprecations and their call sites
|
38 |
+
*
|
39 |
+
* @return array
|
40 |
+
*/
|
41 |
+
public static function all() {
|
42 |
+
return get_option('shareaholic_deprecations') ? get_option('shareaholic_deprecations') : array();
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Destroy all deprecation warnings. This is called as early
|
47 |
+
* as possible in wordpress loading so that if someone has
|
48 |
+
* removed a deprecated function, the warning does not stick
|
49 |
+
* around. Because this occurs *before* the theme is set up,
|
50 |
+
* those warnings will get relogged.
|
51 |
+
*/
|
52 |
+
public static function destroy_all(){
|
53 |
+
delete_option('shareaholic_deprecations');
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Updates the wordpress option.
|
58 |
+
*
|
59 |
+
* @param array $function_calls key of the file name and the value
|
60 |
+
* is an array of the line numbers
|
61 |
+
*/
|
62 |
+
private function update($function_calls) {
|
63 |
+
$deprecations = get_option('shareaholic_deprecations');
|
64 |
+
$deprecations[$this->function] = $function_calls;
|
65 |
+
update_option('shareaholic_deprecations', $deprecations);
|
66 |
+
}
|
67 |
+
|
68 |
+
}
|
69 |
+
|
70 |
+
|
71 |
+
?>
|
global_functions.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* This will hold all of the global namespaced functions.
|
4 |
+
*
|
5 |
+
* @package shareaholic
|
6 |
+
*/
|
7 |
+
|
8 |
+
function selfserv_shareaholic() {
|
9 |
+
$trace = debug_backtrace();
|
10 |
+
$deprecation = new ShareaholicDeprecation('selfserv_shareaholic');
|
11 |
+
$deprecation->push($trace[0]['file'], $trace[0]['line']);
|
12 |
+
echo ShareaholicPublic::canvas(NULL, 'share_buttons');
|
13 |
+
}
|
14 |
+
|
15 |
+
function get_shr_like_buttonset($position) {
|
16 |
+
$trace = debug_backtrace();
|
17 |
+
$deprecation = new ShareaholicDeprecation('get_shr_like_buttonset');
|
18 |
+
$deprecation->push($trace[0]['file'], $trace[0]['line']);
|
19 |
+
|
20 |
+
$settings = ShareaholicUtilities::get_settings();
|
21 |
+
$page_type = ShareaholicUtilities::page_type();
|
22 |
+
|
23 |
+
switch ($position) {
|
24 |
+
case 'Top':
|
25 |
+
$id = isset($settings['location_name_ids']["{$page_type}_above_content"])
|
26 |
+
? $settings['location_name_ids']["{$page_type}_above_content"] : NULL;
|
27 |
+
break;
|
28 |
+
case 'Bottom':
|
29 |
+
$id = isset($settings['location_name_ids']["{$page_type}_below_content"])
|
30 |
+
? $settings['location_name_ids']["{$page_type}_below_content"] : NULL;
|
31 |
+
break;
|
32 |
+
}
|
33 |
+
|
34 |
+
echo ShareaholicPublic::canvas($id, 'share_buttons');
|
35 |
+
}
|
36 |
+
|
37 |
+
?>
|
images/cbm.png
DELETED
Binary file
|
images/chart.png
DELETED
Binary file
|
images/circle_green.png
DELETED
Binary file
|
images/circle_grey.png
DELETED
Binary file
|
images/circle_red.png
DELETED
Binary file
|
images/circle_yellow.png
DELETED
Binary file
|
images/classicbookmark_16x16.png
DELETED
Binary file
|
images/classicbookmark_32x32.png
DELETED
Binary file
|
images/colorpicker_images/blank.gif
DELETED
Binary file
|
images/colorpicker_images/colorpicker_background.png
DELETED
Binary file
|
images/colorpicker_images/colorpicker_hex.png
DELETED
Binary file
|
images/colorpicker_images/colorpicker_hsb_b.png
DELETED
Binary file
|
images/colorpicker_images/colorpicker_hsb_h.png
DELETED
Binary file
|
images/colorpicker_images/colorpicker_hsb_s.png
DELETED
Binary file
|
images/colorpicker_images/colorpicker_indic.gif
DELETED
Binary file
|
images/colorpicker_images/colorpicker_overlay.png
DELETED
Binary file
|
images/colorpicker_images/colorpicker_rgb_b.png
DELETED
Binary file
|
images/colorpicker_images/colorpicker_rgb_g.png
DELETED
Binary file
|
images/colorpicker_images/colorpicker_rgb_r.png
DELETED
Binary file
|
images/colorpicker_images/colorpicker_select.gif
DELETED
Binary file
|
images/colorpicker_images/colorpicker_submit.png
DELETED
Binary file
|
images/colorpicker_images/select2.png
DELETED
Binary file
|
images/colorpicker_images/slider.png
DELETED
Binary file
|
images/comfeed.png
DELETED
Binary file
|
images/custom-fugue-sprite.png
DELETED
Binary file
|
images/error-delete.jpg
DELETED
Binary file
|
images/fbplusone.png
DELETED
Binary file
|
images/flo-head.jpg
DELETED
Binary file
|
images/ga-icon.png
DELETED
Binary file
|
images/glyphicons-halflings-white.png
DELETED
Binary file
|
images/glyphicons-halflings.png
DELETED
Binary file
|
images/googleplus.png
DELETED
Binary file
|
images/green-grad.png
DELETED
Binary file
|
images/information-delete.jpg
DELETED
Binary file
|
images/key.png
DELETED
Binary file
|
images/line-chart.png
DELETED
Binary file
|
images/new_badge.png
DELETED
Binary file
|
images/orange_arrow.gif
DELETED
Binary file
|
images/pinterest.png
DELETED
Binary file
|
images/red-grad.png
DELETED
Binary file
|
images/sbm.png
DELETED
Binary file
|
images/share-enjoy.png
DELETED
Binary file
|
images/share-german.png
DELETED
Binary file
|
images/share-knowledge.png
DELETED
Binary file
|
images/share-love-hearts.png
DELETED
Binary file
|
images/share-wealth.png
DELETED
Binary file
|
images/shareaholicmail.png
DELETED
Binary file
|
images/sharing-caring-hearts.png
DELETED
Binary file
|
images/sharing-caring.png
DELETED
Binary file
|
images/sharing-shr.png
DELETED
Binary file
|
images/shr-sprite.png
DELETED
Binary file
|
images/shrsb-logo.png
DELETED
Binary file
|
images/success-delete.jpg
DELETED
Binary file
|
images/thumbs-icon.png
DELETED
Binary file
|
images/thumbs.png
DELETED
Binary file
|
images/tophat.jpg
DELETED
Binary file
|
images/tweeth.png
DELETED
Binary file
|
images/tweetn.png
DELETED
Binary file
|
images/tweetv.png
DELETED
Binary file
|
images/twitter-16x16.png
DELETED
Binary file
|
images/warning-big.png
DELETED
Binary file
|
images/warning-delete.jpg
DELETED
Binary file
|
images/white-pix.jpg
DELETED
Binary file
|
includes/JSON.php
DELETED
@@ -1,804 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
|
3 |
-
|
4 |
-
/**
|
5 |
-
* Converts to and from JSON format.
|
6 |
-
*
|
7 |
-
* JSON (JavaScript Object Notation) is a lightweight data-interchange
|
8 |
-
* format. It is easy for humans to read and write. It is easy for machines
|
9 |
-
* to parse and generate. It is based on a subset of the JavaScript
|
10 |
-
* Programming Language, Standard ECMA-262 3rd Edition - December 1999.
|
11 |
-
* This feature can also be found in Python. JSON is a text format that is
|
12 |
-
* completely language independent but uses conventions that are familiar
|
13 |
-
* to programmers of the C-family of languages, including C, C++, C#, Java,
|
14 |
-
* JavaScript, Perl, TCL, and many others. These properties make JSON an
|
15 |
-
* ideal data-interchange language.
|
16 |
-
*
|
17 |
-
* This package provides a simple encoder and decoder for JSON notation. It
|
18 |
-
* is intended for use with client-side Javascript applications that make
|
19 |
-
* use of HTTPRequest to perform server communication functions - data can
|
20 |
-
* be encoded into JSON notation for use in a client-side javascript, or
|
21 |
-
* decoded from incoming Javascript requests. JSON format is native to
|
22 |
-
* Javascript, and can be directly eval()'ed with no further parsing
|
23 |
-
* overhead
|
24 |
-
*
|
25 |
-
* All strings should be in ASCII or UTF-8 format!
|
26 |
-
*
|
27 |
-
* LICENSE: Redistribution and use in source and binary forms, with or
|
28 |
-
* without modification, are permitted provided that the following
|
29 |
-
* conditions are met: Redistributions of source code must retain the
|
30 |
-
* above copyright notice, this list of conditions and the following
|
31 |
-
* disclaimer. Redistributions in binary form must reproduce the above
|
32 |
-
* copyright notice, this list of conditions and the following disclaimer
|
33 |
-
* in the documentation and/or other materials provided with the
|
34 |
-
* distribution.
|
35 |
-
*
|
36 |
-
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
37 |
-
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
38 |
-
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
39 |
-
* NO EVENT SHALL CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
40 |
-
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
41 |
-
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
42 |
-
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
43 |
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
44 |
-
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
45 |
-
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
46 |
-
* DAMAGE.
|
47 |
-
*
|
48 |
-
* @category
|
49 |
-
* @package Services_JSON
|
50 |
-
* @author Michal Migurski <mike-json@teczno.com>
|
51 |
-
* @author Matt Knapp <mdknapp[at]gmail[dot]com>
|
52 |
-
* @author Brett Stimmerman <brettstimmerman[at]gmail[dot]com>
|
53 |
-
* @copyright 2005 Michal Migurski
|
54 |
-
* @version CVS: $Id: JSON.php,v 1.31 2006/06/28 05:54:17 migurski Exp $
|
55 |
-
* @license http://www.opensource.org/licenses/bsd-license.php
|
56 |
-
* @link http://pear.php.net/pepr/pepr-proposal-show.php?id=198
|
57 |
-
*/
|
58 |
-
|
59 |
-
/**
|
60 |
-
* Marker constant for Services_JSON::decode(), used to flag stack state
|
61 |
-
*/
|
62 |
-
define('SERVICES_JSON_SLICE', 1);
|
63 |
-
|
64 |
-
/**
|
65 |
-
* Marker constant for Services_JSON::decode(), used to flag stack state
|
66 |
-
*/
|
67 |
-
define('SERVICES_JSON_IN_STR', 2);
|
68 |
-
|
69 |
-
/**
|
70 |
-
* Marker constant for Services_JSON::decode(), used to flag stack state
|
71 |
-
*/
|
72 |
-
define('SERVICES_JSON_IN_ARR', 3);
|
73 |
-
|
74 |
-
/**
|
75 |
-
* Marker constant for Services_JSON::decode(), used to flag stack state
|
76 |
-
*/
|
77 |
-
define('SERVICES_JSON_IN_OBJ', 4);
|
78 |
-
|
79 |
-
/**
|
80 |
-
* Marker constant for Services_JSON::decode(), used to flag stack state
|
81 |
-
*/
|
82 |
-
define('SERVICES_JSON_IN_CMT', 5);
|
83 |
-
|
84 |
-
/**
|
85 |
-
* Behavior switch for Services_JSON::decode()
|
86 |
-
*/
|
87 |
-
define('SERVICES_JSON_LOOSE_TYPE', 16);
|
88 |
-
|
89 |
-
/**
|
90 |
-
* Behavior switch for Services_JSON::decode()
|
91 |
-
*/
|
92 |
-
define('SERVICES_JSON_SUPPRESS_ERRORS', 32);
|
93 |
-
|
94 |
-
/**
|
95 |
-
* Converts to and from JSON format.
|
96 |
-
*
|
97 |
-
* Brief example of use:
|
98 |
-
*
|
99 |
-
* <code>
|
100 |
-
* // create a new instance of Services_JSON
|
101 |
-
* $json = new Services_JSON();
|
102 |
-
*
|
103 |
-
* // convert a complexe value to JSON notation, and send it to the browser
|
104 |
-
* $value = array('foo', 'bar', array(1, 2, 'baz'), array(3, array(4)));
|
105 |
-
* $output = $json->encode($value);
|
106 |
-
*
|
107 |
-
* print($output);
|
108 |
-
* // prints: ["foo","bar",[1,2,"baz"],[3,[4]]]
|
109 |
-
*
|
110 |
-
* // accept incoming POST data, assumed to be in JSON notation
|
111 |
-
* $input = file_get_contents('php://input', 1000000);
|
112 |
-
* $value = $json->decode($input);
|
113 |
-
* </code>
|
114 |
-
*/
|
115 |
-
|
116 |
-
class Services_JSON
|
117 |
-
{
|
118 |
-
/**
|
119 |
-
* constructs a new JSON instance
|
120 |
-
*
|
121 |
-
* @param int $use object behavior flags; combine with boolean-OR
|
122 |
-
*
|
123 |
-
* possible values:
|
124 |
-
* - SERVICES_JSON_LOOSE_TYPE: loose typing.
|
125 |
-
* "{...}" syntax creates associative arrays
|
126 |
-
* instead of objects in decode().
|
127 |
-
* - SERVICES_JSON_SUPPRESS_ERRORS: error suppression.
|
128 |
-
* Values which can't be encoded (e.g. resources)
|
129 |
-
* appear as NULL instead of throwing errors.
|
130 |
-
* By default, a deeply-nested resource will
|
131 |
-
* bubble up with an error, so all return values
|
132 |
-
* from encode() should be checked with isError()
|
133 |
-
*/
|
134 |
-
function Services_JSON($use = 0)
|
135 |
-
{
|
136 |
-
$this->use = $use;
|
137 |
-
}
|
138 |
-
|
139 |
-
/**
|
140 |
-
* convert a string from one UTF-16 char to one UTF-8 char
|
141 |
-
*
|
142 |
-
* Normally should be handled by mb_convert_encoding, but
|
143 |
-
* provides a slower PHP-only method for installations
|
144 |
-
* that lack the multibye string extension.
|
145 |
-
*
|
146 |
-
* @param string $utf16 UTF-16 character
|
147 |
-
* @return string UTF-8 character
|
148 |
-
* @access private
|
149 |
-
*/
|
150 |
-
function utf162utf8($utf16)
|
151 |
-
{
|
152 |
-
// oh please oh please oh please oh please oh please
|
153 |
-
if(function_exists('mb_convert_encoding')) {
|
154 |
-
return mb_convert_encoding($utf16, 'UTF-8', 'UTF-16');
|
155 |
-
}
|
156 |
-
|
157 |
-
$bytes = (ord($utf16{0}) << 8) | ord($utf16{1});
|
158 |
-
|
159 |
-
switch(true) {
|
160 |
-
case ((0x7F & $bytes) == $bytes):
|
161 |
-
// this case should never be reached, because we are in ASCII range
|
162 |
-
// see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
163 |
-
return chr(0x7F & $bytes);
|
164 |
-
|
165 |
-
case (0x07FF & $bytes) == $bytes:
|
166 |
-
// return a 2-byte UTF-8 character
|
167 |
-
// see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
168 |
-
return chr(0xC0 | (($bytes >> 6) & 0x1F))
|
169 |
-
. chr(0x80 | ($bytes & 0x3F));
|
170 |
-
|
171 |
-
case (0xFFFF & $bytes) == $bytes:
|
172 |
-
// return a 3-byte UTF-8 character
|
173 |
-
// see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
174 |
-
return chr(0xE0 | (($bytes >> 12) & 0x0F))
|
175 |
-
. chr(0x80 | (($bytes >> 6) & 0x3F))
|
176 |
-
. chr(0x80 | ($bytes & 0x3F));
|
177 |
-
}
|
178 |
-
|
179 |
-
// ignoring UTF-32 for now, sorry
|
180 |
-
return '';
|
181 |
-
}
|
182 |
-
|
183 |
-
/**
|
184 |
-
* convert a string from one UTF-8 char to one UTF-16 char
|
185 |
-
*
|
186 |
-
* Normally should be handled by mb_convert_encoding, but
|
187 |
-
* provides a slower PHP-only method for installations
|
188 |
-
* that lack the multibye string extension.
|
189 |
-
*
|
190 |
-
* @param string $utf8 UTF-8 character
|
191 |
-
* @return string UTF-16 character
|
192 |
-
* @access private
|
193 |
-
*/
|
194 |
-
function utf82utf16($utf8)
|
195 |
-
{
|
196 |
-
// oh please oh please oh please oh please oh please
|
197 |
-
if(function_exists('mb_convert_encoding')) {
|
198 |
-
return mb_convert_encoding($utf8, 'UTF-16', 'UTF-8');
|
199 |
-
}
|
200 |
-
|
201 |
-
switch(strlen($utf8)) {
|
202 |
-
case 1:
|
203 |
-
// this case should never be reached, because we are in ASCII range
|
204 |
-
// see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
205 |
-
return $utf8;
|
206 |
-
|
207 |
-
case 2:
|
208 |
-
// return a UTF-16 character from a 2-byte UTF-8 char
|
209 |
-
// see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
210 |
-
return chr(0x07 & (ord($utf8{0}) >> 2))
|
211 |
-
. chr((0xC0 & (ord($utf8{0}) << 6))
|
212 |
-
| (0x3F & ord($utf8{1})));
|
213 |
-
|
214 |
-
case 3:
|
215 |
-
// return a UTF-16 character from a 3-byte UTF-8 char
|
216 |
-
// see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
217 |
-
return chr((0xF0 & (ord($utf8{0}) << 4))
|
218 |
-
| (0x0F & (ord($utf8{1}) >> 2)))
|
219 |
-
. chr((0xC0 & (ord($utf8{1}) << 6))
|
220 |
-
| (0x7F & ord($utf8{2})));
|
221 |
-
}
|
222 |
-
|
223 |
-
// ignoring UTF-32 for now, sorry
|
224 |
-
return '';
|
225 |
-
}
|
226 |
-
|
227 |
-
/**
|
228 |
-
* encodes an arbitrary variable into JSON format
|
229 |
-
*
|
230 |
-
* @param mixed $var any number, boolean, string, array, or object to be encoded.
|
231 |
-
* see argument 1 to Services_JSON() above for array-parsing behavior.
|
232 |
-
* if var is a strng, note that encode() always expects it
|
233 |
-
* to be in ASCII or UTF-8 format!
|
234 |
-
*
|
235 |
-
* @return mixed JSON string representation of input var or an error if a problem occurs
|
236 |
-
* @access public
|
237 |
-
*/
|
238 |
-
function encode($var)
|
239 |
-
{
|
240 |
-
switch (gettype($var)) {
|
241 |
-
case 'boolean':
|
242 |
-
return $var ? 'true' : 'false';
|
243 |
-
|
244 |
-
case 'NULL':
|
245 |
-
return 'null';
|
246 |
-
|
247 |
-
case 'integer':
|
248 |
-
return (int) $var;
|
249 |
-
|
250 |
-
case 'double':
|
251 |
-
case 'float':
|
252 |
-
return (float) $var;
|
253 |
-
|
254 |
-
case 'string':
|
255 |
-
// STRINGS ARE EXPECTED TO BE IN ASCII OR UTF-8 FORMAT
|
256 |
-
$ascii = '';
|
257 |
-
$strlen_var = strlen($var);
|
258 |
-
|
259 |
-
/*
|
260 |
-
* Iterate over every character in the string,
|
261 |
-
* escaping with a slash or encoding to UTF-8 where necessary
|
262 |
-
*/
|
263 |
-
for ($c = 0; $c < $strlen_var; ++$c) {
|
264 |
-
|
265 |
-
$ord_var_c = ord($var{$c});
|
266 |
-
|
267 |
-
switch (true) {
|
268 |
-
case $ord_var_c == 0x08:
|
269 |
-
$ascii .= '\b';
|
270 |
-
break;
|
271 |
-
case $ord_var_c == 0x09:
|
272 |
-
$ascii .= '\t';
|
273 |
-
break;
|
274 |
-
case $ord_var_c == 0x0A:
|
275 |
-
$ascii .= '\n';
|
276 |
-
break;
|
277 |
-
case $ord_var_c == 0x0C:
|
278 |
-
$ascii .= '\f';
|
279 |
-
break;
|
280 |
-
case $ord_var_c == 0x0D:
|
281 |
-
$ascii .= '\r';
|
282 |
-
break;
|
283 |
-
|
284 |
-
case $ord_var_c == 0x22:
|
285 |
-
case $ord_var_c == 0x2F:
|
286 |
-
case $ord_var_c == 0x5C:
|
287 |
-
// double quote, slash, slosh
|
288 |
-
$ascii .= '\\'.$var{$c};
|
289 |
-
break;
|
290 |
-
|
291 |
-
case (($ord_var_c >= 0x20) && ($ord_var_c <= 0x7F)):
|
292 |
-
// characters U-00000000 - U-0000007F (same as ASCII)
|
293 |
-
$ascii .= $var{$c};
|
294 |
-
break;
|
295 |
-
|
296 |
-
case (($ord_var_c & 0xE0) == 0xC0):
|
297 |
-
// characters U-00000080 - U-000007FF, mask 110XXXXX
|
298 |
-
// see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
299 |
-
$char = pack('C*', $ord_var_c, ord($var{$c + 1}));
|
300 |
-
$c += 1;
|
301 |
-
$utf16 = $this->utf82utf16($char);
|
302 |
-
$ascii .= sprintf('\u%04s', bin2hex($utf16));
|
303 |
-
break;
|
304 |
-
|
305 |
-
case (($ord_var_c & 0xF0) == 0xE0):
|
306 |
-
// characters U-00000800 - U-0000FFFF, mask 1110XXXX
|
307 |
-
// see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
308 |
-
$char = pack('C*', $ord_var_c,
|
309 |
-
ord($var{$c + 1}),
|
310 |
-
ord($var{$c + 2}));
|
311 |
-
$c += 2;
|
312 |
-
$utf16 = $this->utf82utf16($char);
|
313 |
-
$ascii .= sprintf('\u%04s', bin2hex($utf16));
|
314 |
-
break;
|
315 |
-
|
316 |
-
case (($ord_var_c & 0xF8) == 0xF0):
|
317 |
-
// characters U-00010000 - U-001FFFFF, mask 11110XXX
|
318 |
-
// see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
319 |
-
$char = pack('C*', $ord_var_c,
|
320 |
-
ord($var{$c + 1}),
|
321 |
-
ord($var{$c + 2}),
|
322 |
-
ord($var{$c + 3}));
|
323 |
-
$c += 3;
|
324 |
-
$utf16 = $this->utf82utf16($char);
|
325 |
-
$ascii .= sprintf('\u%04s', bin2hex($utf16));
|
326 |
-
break;
|
327 |
-
|
328 |
-
case (($ord_var_c & 0xFC) == 0xF8):
|
329 |
-
// characters U-00200000 - U-03FFFFFF, mask 111110XX
|
330 |
-
// see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
331 |
-
$char = pack('C*', $ord_var_c,
|
332 |
-
ord($var{$c + 1}),
|
333 |
-
ord($var{$c + 2}),
|
334 |
-
ord($var{$c + 3}),
|
335 |
-
ord($var{$c + 4}));
|
336 |
-
$c += 4;
|
337 |
-
$utf16 = $this->utf82utf16($char);
|
338 |
-
$ascii .= sprintf('\u%04s', bin2hex($utf16));
|
339 |
-
break;
|
340 |
-
|
341 |
-
case (($ord_var_c & 0xFE) == 0xFC):
|
342 |
-
// characters U-04000000 - U-7FFFFFFF, mask 1111110X
|
343 |
-
// see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
344 |
-
$char = pack('C*', $ord_var_c,
|
345 |
-
ord($var{$c + 1}),
|
346 |
-
ord($var{$c + 2}),
|
347 |
-
ord($var{$c + 3}),
|
348 |
-
ord($var{$c + 4}),
|
349 |
-
ord($var{$c + 5}));
|
350 |
-
$c += 5;
|
351 |
-
$utf16 = $this->utf82utf16($char);
|
352 |
-
$ascii .= sprintf('\u%04s', bin2hex($utf16));
|
353 |
-
break;
|
354 |
-
}
|
355 |
-
}
|
356 |
-
|
357 |
-
return '"'.$ascii.'"';
|
358 |
-
|
359 |
-
case 'array':
|
360 |
-
/*
|
361 |
-
* As per JSON spec if any array key is not an integer
|
362 |
-
* we must treat the the whole array as an object. We
|
363 |
-
* also try to catch a sparsely populated associative
|
364 |
-
* array with numeric keys here because some JS engines
|
365 |
-
* will create an array with empty indexes up to
|
366 |
-
* max_index which can cause memory issues and because
|
367 |
-
* the keys, which may be relevant, will be remapped
|
368 |
-
* otherwise.
|
369 |
-
*
|
370 |
-
* As per the ECMA and JSON specification an object may
|
371 |
-
* have any string as a property. Unfortunately due to
|
372 |
-
* a hole in the ECMA specification if the key is a
|
373 |
-
* ECMA reserved word or starts with a digit the
|
374 |
-
* parameter is only accessible using ECMAScript's
|
375 |
-
* bracket notation.
|
376 |
-
*/
|
377 |
-
|
378 |
-
// treat as a JSON object
|
379 |
-
if (is_array($var) && count($var) && (array_keys($var) !== range(0, sizeof($var) - 1))) {
|
380 |
-
$properties = array_map(array($this, 'name_value'),
|
381 |
-
array_keys($var),
|
382 |
-
array_values($var));
|
383 |
-
|
384 |
-
foreach($properties as $property) {
|
385 |
-
if(Services_JSON::isError($property)) {
|
386 |
-
return $property;
|
387 |
-
}
|
388 |
-
}
|
389 |
-
|
390 |
-
return '{' . join(',', $properties) . '}';
|
391 |
-
}
|
392 |
-
|
393 |
-
// treat it like a regular array
|
394 |
-
$elements = array_map(array($this, 'encode'), $var);
|
395 |
-
|
396 |
-
foreach($elements as $element) {
|
397 |
-
if(Services_JSON::isError($element)) {
|
398 |
-
return $element;
|
399 |
-
}
|
400 |
-
}
|
401 |
-
|
402 |
-
return '[' . join(',', $elements) . ']';
|
403 |
-
|
404 |
-
case 'object':
|
405 |
-
$vars = get_object_vars($var);
|
406 |
-
|
407 |
-
$properties = array_map(array($this, 'name_value'),
|
408 |
-
array_keys($vars),
|
409 |
-
array_values($vars));
|
410 |
-
|
411 |
-
foreach($properties as $property) {
|
412 |
-
if(Services_JSON::isError($property)) {
|
413 |
-
return $property;
|
414 |
-
}
|
415 |
-
}
|
416 |
-
|
417 |
-
return '{' . join(',', $properties) . '}';
|
418 |
-
|
419 |
-
default:
|
420 |
-
return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS)
|
421 |
-
? 'null'
|
422 |
-
: new Services_JSON_Error(gettype($var)." can not be encoded as JSON string");
|
423 |
-
}
|
424 |
-
}
|
425 |
-
|
426 |
-
/**
|
427 |
-
* array-walking function for use in generating JSON-formatted name-value pairs
|
428 |
-
*
|
429 |
-
* @param string $name name of key to use
|
430 |
-
* @param mixed $value reference to an array element to be encoded
|
431 |
-
*
|
432 |
-
* @return string JSON-formatted name-value pair, like '"name":value'
|
433 |
-
* @access private
|
434 |
-
*/
|
435 |
-
function name_value($name, $value)
|
436 |
-
{
|
437 |
-
$encoded_value = $this->encode($value);
|
438 |
-
|
439 |
-
if(Services_JSON::isError($encoded_value)) {
|
440 |
-
return $encoded_value;
|
441 |
-
}
|
442 |
-
|
443 |
-
return $this->encode(strval($name)) . ':' . $encoded_value;
|
444 |
-
}
|
445 |
-
|
446 |
-
/**
|
447 |
-
* reduce a string by removing leading and trailing comments and whitespace
|
448 |
-
*
|
449 |
-
* @param $str string string value to strip of comments and whitespace
|
450 |
-
*
|
451 |
-
* @return string string value stripped of comments and whitespace
|
452 |
-
* @access private
|
453 |
-
*/
|
454 |
-
function reduce_string($str)
|
455 |
-
{
|
456 |
-
$str = preg_replace(array(
|
457 |
-
|
458 |
-
// eliminate single line comments in '// ...' form
|
459 |
-
'#^\s*//(.+)$#m',
|
460 |
-
|
461 |
-
// eliminate multi-line comments in '/* ... */' form, at start of string
|
462 |
-
'#^\s*/\*(.+)\*/#Us',
|
463 |
-
|
464 |
-
// eliminate multi-line comments in '/* ... */' form, at end of string
|
465 |
-
'#/\*(.+)\*/\s*$#Us'
|
466 |
-
|
467 |
-
), '', $str);
|
468 |
-
|
469 |
-
// eliminate extraneous space
|
470 |
-
return trim($str);
|
471 |
-
}
|
472 |
-
|
473 |
-
/**
|
474 |
-
* decodes a JSON string into appropriate variable
|
475 |
-
*
|
476 |
-
* @param string $str JSON-formatted string
|
477 |
-
*
|
478 |
-
* @return mixed number, boolean, string, array, or object
|
479 |
-
* corresponding to given JSON input string.
|
480 |
-
* See argument 1 to Services_JSON() above for object-output behavior.
|
481 |
-
* Note that decode() always returns strings
|
482 |
-
* in ASCII or UTF-8 format!
|
483 |
-
* @access public
|
484 |
-
*/
|
485 |
-
function decode($str)
|
486 |
-
{
|
487 |
-
$str = $this->reduce_string($str);
|
488 |
-
|
489 |
-
switch (strtolower($str)) {
|
490 |
-
case 'true':
|
491 |
-
return true;
|
492 |
-
|
493 |
-
case 'false':
|
494 |
-
return false;
|
495 |
-
|
496 |
-
case 'null':
|
497 |
-
return null;
|
498 |
-
|
499 |
-
default:
|
500 |
-
$m = array();
|
501 |
-
|
502 |
-
if (is_numeric($str)) {
|
503 |
-
// Lookie-loo, it's a number
|
504 |
-
|
505 |
-
// This would work on its own, but I'm trying to be
|
506 |
-
// good about returning integers where appropriate:
|
507 |
-
// return (float)$str;
|
508 |
-
|
509 |
-
// Return float or int, as appropriate
|
510 |
-
return ((float)$str == (integer)$str)
|
511 |
-
? (integer)$str
|
512 |
-
: (float)$str;
|
513 |
-
|
514 |
-
} elseif (preg_match('/^("|\').*(\1)$/s', $str, $m) && $m[1] == $m[2]) {
|
515 |
-
// STRINGS RETURNED IN UTF-8 FORMAT
|
516 |
-
$delim = substr($str, 0, 1);
|
517 |
-
$chrs = substr($str, 1, -1);
|
518 |
-
$utf8 = '';
|
519 |
-
$strlen_chrs = strlen($chrs);
|
520 |
-
|
521 |
-
for ($c = 0; $c < $strlen_chrs; ++$c) {
|
522 |
-
|
523 |
-
$substr_chrs_c_2 = substr($chrs, $c, 2);
|
524 |
-
$ord_chrs_c = ord($chrs{$c});
|
525 |
-
|
526 |
-
switch (true) {
|
527 |
-
case $substr_chrs_c_2 == '\b':
|
528 |
-
$utf8 .= chr(0x08);
|
529 |
-
++$c;
|
530 |
-
break;
|
531 |
-
case $substr_chrs_c_2 == '\t':
|
532 |
-
$utf8 .= chr(0x09);
|
533 |
-
++$c;
|
534 |
-
break;
|
535 |
-
case $substr_chrs_c_2 == '\n':
|
536 |
-
$utf8 .= chr(0x0A);
|
537 |
-
++$c;
|
538 |
-
break;
|
539 |
-
case $substr_chrs_c_2 == '\f':
|
540 |
-
$utf8 .= chr(0x0C);
|
541 |
-
++$c;
|
542 |
-
break;
|
543 |
-
case $substr_chrs_c_2 == '\r':
|
544 |
-
$utf8 .= chr(0x0D);
|
545 |
-
++$c;
|
546 |
-
break;
|
547 |
-
|
548 |
-
case $substr_chrs_c_2 == '\\"':
|
549 |
-
case $substr_chrs_c_2 == '\\\'':
|
550 |
-
case $substr_chrs_c_2 == '\\\\':
|
551 |
-
case $substr_chrs_c_2 == '\\/':
|
552 |
-
if (($delim == '"' && $substr_chrs_c_2 != '\\\'') ||
|
553 |
-
($delim == "'" && $substr_chrs_c_2 != '\\"')) {
|
554 |
-
$utf8 .= $chrs{++$c};
|
555 |
-
}
|
556 |
-
break;
|
557 |
-
|
558 |
-
case preg_match('/\\\u[0-9A-F]{4}/i', substr($chrs, $c, 6)):
|
559 |
-
// single, escaped unicode character
|
560 |
-
$utf16 = chr(hexdec(substr($chrs, ($c + 2), 2)))
|
561 |
-
. chr(hexdec(substr($chrs, ($c + 4), 2)));
|
562 |
-
$utf8 .= $this->utf162utf8($utf16);
|
563 |
-
$c += 5;
|
564 |
-
break;
|
565 |
-
|
566 |
-
case ($ord_chrs_c >= 0x20) && ($ord_chrs_c <= 0x7F):
|
567 |
-
$utf8 .= $chrs{$c};
|
568 |
-
break;
|
569 |
-
|
570 |
-
case ($ord_chrs_c & 0xE0) == 0xC0:
|
571 |
-
// characters U-00000080 - U-000007FF, mask 110XXXXX
|
572 |
-
//see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
573 |
-
$utf8 .= substr($chrs, $c, 2);
|
574 |
-
++$c;
|
575 |
-
break;
|
576 |
-
|
577 |
-
case ($ord_chrs_c & 0xF0) == 0xE0:
|
578 |
-
// characters U-00000800 - U-0000FFFF, mask 1110XXXX
|
579 |
-
// see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
580 |
-
$utf8 .= substr($chrs, $c, 3);
|
581 |
-
$c += 2;
|
582 |
-
break;
|
583 |
-
|
584 |
-
case ($ord_chrs_c & 0xF8) == 0xF0:
|
585 |
-
// characters U-00010000 - U-001FFFFF, mask 11110XXX
|
586 |
-
// see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
587 |
-
$utf8 .= substr($chrs, $c, 4);
|
588 |
-
$c += 3;
|
589 |
-
break;
|
590 |
-
|
591 |
-
case ($ord_chrs_c & 0xFC) == 0xF8:
|
592 |
-
// characters U-00200000 - U-03FFFFFF, mask 111110XX
|
593 |
-
// see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
594 |
-
$utf8 .= substr($chrs, $c, 5);
|
595 |
-
$c += 4;
|
596 |
-
break;
|
597 |
-
|
598 |
-
case ($ord_chrs_c & 0xFE) == 0xFC:
|
599 |
-
// characters U-04000000 - U-7FFFFFFF, mask 1111110X
|
600 |
-
// see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
601 |
-
$utf8 .= substr($chrs, $c, 6);
|
602 |
-
$c += 5;
|
603 |
-
break;
|
604 |
-
|
605 |
-
}
|
606 |
-
|
607 |
-
}
|
608 |
-
|
609 |
-
return $utf8;
|
610 |
-
|
611 |
-
} elseif (preg_match('/^\[.*\]$/s', $str) || preg_match('/^\{.*\}$/s', $str)) {
|
612 |
-
// array, or object notation
|
613 |
-
|
614 |
-
if ($str{0} == '[') {
|
615 |
-
$stk = array(SERVICES_JSON_IN_ARR);
|
616 |
-
$arr = array();
|
617 |
-
} else {
|
618 |
-
if ($this->use & SERVICES_JSON_LOOSE_TYPE) {
|
619 |
-
$stk = array(SERVICES_JSON_IN_OBJ);
|
620 |
-
$obj = array();
|
621 |
-
} else {
|
622 |
-
$stk = array(SERVICES_JSON_IN_OBJ);
|
623 |
-
$obj = new stdClass();
|
624 |
-
}
|
625 |
-
}
|
626 |
-
|
627 |
-
array_push($stk, array('what' => SERVICES_JSON_SLICE,
|
628 |
-
'where' => 0,
|
629 |
-
'delim' => false));
|
630 |
-
|
631 |
-
$chrs = substr($str, 1, -1);
|
632 |
-
$chrs = $this->reduce_string($chrs);
|
633 |
-
|
634 |
-
if ($chrs == '') {
|
635 |
-
if (reset($stk) == SERVICES_JSON_IN_ARR) {
|
636 |
-
return $arr;
|
637 |
-
|
638 |
-
} else {
|
639 |
-
return $obj;
|
640 |
-
|
641 |
-
}
|
642 |
-
}
|
643 |
-
|
644 |
-
//print("\nparsing {$chrs}\n");
|
645 |
-
|
646 |
-
$strlen_chrs = strlen($chrs);
|
647 |
-
|
648 |
-
for ($c = 0; $c <= $strlen_chrs; ++$c) {
|
649 |
-
|
650 |
-
$top = end($stk);
|
651 |
-
$substr_chrs_c_2 = substr($chrs, $c, 2);
|
652 |
-
|
653 |
-
if (($c == $strlen_chrs) || (($chrs{$c} == ',') && ($top['what'] == SERVICES_JSON_SLICE))) {
|
654 |
-
// found a comma that is not inside a string, array, etc.,
|
655 |
-
// OR we've reached the end of the character list
|
656 |
-
$slice = substr($chrs, $top['where'], ($c - $top['where']));
|
657 |
-
array_push($stk, array('what' => SERVICES_JSON_SLICE, 'where' => ($c + 1), 'delim' => false));
|
658 |
-
//print("Found split at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n");
|
659 |
-
|
660 |
-
if (reset($stk) == SERVICES_JSON_IN_ARR) {
|
661 |
-
// we are in an array, so just push an element onto the stack
|
662 |
-
array_push($arr, $this->decode($slice));
|
663 |
-
|
664 |
-
} elseif (reset($stk) == SERVICES_JSON_IN_OBJ) {
|
665 |
-
// we are in an object, so figure
|
666 |
-
// out the property name and set an
|
667 |
-
// element in an associative array,
|
668 |
-
// for now
|
669 |
-
$parts = array();
|
670 |
-
|
671 |
-
if (preg_match('/^\s*(["\'].*[^\\\]["\'])\s*:\s*(\S.*),?$/Uis', $slice, $parts)) {
|
672 |
-
// "name":value pair
|
673 |
-
$key = $this->decode($parts[1]);
|
674 |
-
$val = $this->decode($parts[2]);
|
675 |
-
|
676 |
-
if ($this->use & SERVICES_JSON_LOOSE_TYPE) {
|
677 |
-
$obj[$key] = $val;
|
678 |
-
} else {
|
679 |
-
$obj->$key = $val;
|
680 |
-
}
|
681 |
-
} elseif (preg_match('/^\s*(\w+)\s*:\s*(\S.*),?$/Uis', $slice, $parts)) {
|
682 |
-
// name:value pair, where name is unquoted
|
683 |
-
$key = $parts[1];
|
684 |
-
$val = $this->decode($parts[2]);
|
685 |
-
|
686 |
-
if ($this->use & SERVICES_JSON_LOOSE_TYPE) {
|
687 |
-
$obj[$key] = $val;
|
688 |
-
} else {
|
689 |
-
$obj->$key = $val;
|
690 |
-
}
|
691 |
-
}
|
692 |
-
|
693 |
-
}
|
694 |
-
|
695 |
-
} elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != SERVICES_JSON_IN_STR)) {
|
696 |
-
// found a quote, and we are not inside a string
|
697 |
-
array_push($stk, array('what' => SERVICES_JSON_IN_STR, 'where' => $c, 'delim' => $chrs{$c}));
|
698 |
-
//print("Found start of string at {$c}\n");
|
699 |
-
|
700 |
-
} elseif (($chrs{$c} == $top['delim']) &&
|
701 |
-
($top['what'] == SERVICES_JSON_IN_STR) &&
|
702 |
-
((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
|
703 |
-
// found a quote, we're in a string, and it's not escaped
|
704 |
-
// we know that it's not escaped becase there is _not_ an
|
705 |
-
// odd number of backslashes at the end of the string so far
|
706 |
-
array_pop($stk);
|
707 |
-
//print("Found end of string at {$c}: ".substr($chrs, $top['where'], (1 + 1 + $c - $top['where']))."\n");
|
708 |
-
|
709 |
-
} elseif (($chrs{$c} == '[') &&
|
710 |
-
in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) {
|
711 |
-
// found a left-bracket, and we are in an array, object, or slice
|
712 |
-
array_push($stk, array('what' => SERVICES_JSON_IN_ARR, 'where' => $c, 'delim' => false));
|
713 |
-
//print("Found start of array at {$c}\n");
|
714 |
-
|
715 |
-
} elseif (($chrs{$c} == ']') && ($top['what'] == SERVICES_JSON_IN_ARR)) {
|
716 |
-
// found a right-bracket, and we're in an array
|
717 |
-
array_pop($stk);
|
718 |
-
//print("Found end of array at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n");
|
719 |
-
|
720 |
-
} elseif (($chrs{$c} == '{') &&
|
721 |
-
in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) {
|
722 |
-
// found a left-brace, and we are in an array, object, or slice
|
723 |
-
array_push($stk, array('what' => SERVICES_JSON_IN_OBJ, 'where' => $c, 'delim' => false));
|
724 |
-
//print("Found start of object at {$c}\n");
|
725 |
-
|
726 |
-
} elseif (($chrs{$c} == '}') && ($top['what'] == SERVICES_JSON_IN_OBJ)) {
|
727 |
-
// found a right-brace, and we're in an object
|
728 |
-
array_pop($stk);
|
729 |
-
//print("Found end of object at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n");
|
730 |
-
|
731 |
-
} elseif (($substr_chrs_c_2 == '/*') &&
|
732 |
-
in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) {
|
733 |
-
// found a comment start, and we are in an array, object, or slice
|
734 |
-
array_push($stk, array('what' => SERVICES_JSON_IN_CMT, 'where' => $c, 'delim' => false));
|
735 |
-
$c++;
|
736 |
-
//print("Found start of comment at {$c}\n");
|
737 |
-
|
738 |
-
} elseif (($substr_chrs_c_2 == '*/') && ($top['what'] == SERVICES_JSON_IN_CMT)) {
|
739 |
-
// found a comment end, and we're in one now
|
740 |
-
array_pop($stk);
|
741 |
-
$c++;
|
742 |
-
|
743 |
-
for ($i = $top['where']; $i <= $c; ++$i)
|
744 |
-
$chrs = substr_replace($chrs, ' ', $i, 1);
|
745 |
-
|
746 |
-
//print("Found end of comment at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n");
|
747 |
-
|
748 |
-
}
|
749 |
-
|
750 |
-
}
|
751 |
-
|
752 |
-
if (reset($stk) == SERVICES_JSON_IN_ARR) {
|
753 |
-
return $arr;
|
754 |
-
|
755 |
-
} elseif (reset($stk) == SERVICES_JSON_IN_OBJ) {
|
756 |
-
return $obj;
|
757 |
-
|
758 |
-
}
|
759 |
-
|
760 |
-
}
|
761 |
-
}
|
762 |
-
}
|
763 |
-
|
764 |
-
/**
|
765 |
-
* @todo Ultimately, this should just call PEAR::isError()
|
766 |
-
*/
|
767 |
-
function isError($data, $code = null)
|
768 |
-
{
|
769 |
-
if (class_exists('pear')) {
|
770 |
-
return PEAR::isError($data, $code);
|
771 |
-
} elseif (is_object($data) && (get_class($data) == 'services_json_error' ||
|
772 |
-
is_subclass_of($data, 'services_json_error'))) {
|
773 |
-
return true;
|
774 |
-
}
|
775 |
-
|
776 |
-
return false;
|
777 |
-
}
|
778 |
-
}
|
779 |
-
|
780 |
-
if (class_exists('PEAR_Error')) {
|
781 |
-
|
782 |
-
class Services_JSON_Error extends PEAR_Error
|
783 |
-
{
|
784 |
-
function Services_JSON_Error($message = 'unknown error', $code = null,
|
785 |
-
$mode = null, $options = null, $userinfo = null)
|
786 |
-
{
|
787 |
-
parent::PEAR_Error($message, $code, $mode, $options, $userinfo);
|
788 |
-
}
|
789 |
-
}
|
790 |
-
|
791 |
-
} else {
|
792 |
-
|
793 |
-
/**
|
794 |
-
* @todo Ultimately, this class shall be descended from PEAR_Error
|
795 |
-
*/
|
796 |
-
class Services_JSON_Error
|
797 |
-
{
|
798 |
-
function Services_JSON_Error($message = 'unknown error', $code = null,
|
799 |
-
$mode = null, $options = null, $userinfo = null)
|
800 |
-
{
|
801 |
-
|
802 |
-
}
|
803 |
-
}
|
804 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/bookmarks-data.php
DELETED
@@ -1,396 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* @desc Dynamic mister wong link generator
|
5 |
-
*/
|
6 |
-
|
7 |
-
$wong_id = 6; //default service id
|
8 |
-
|
9 |
-
if(WPLANG == 'de_DE'){
|
10 |
-
$wong_id = 298;
|
11 |
-
}elseif(WPLANG == 'zh_CN' || WPLANG == 'zh_HK' || WPLANG == 'zh_TW'){
|
12 |
-
$wong_id = 299;
|
13 |
-
}elseif(WPLANG == 'es_CL' || WPLANG == 'es_ES' || WPLANG == 'es_PE' || WPLANG == 'es_VE'){
|
14 |
-
$wong_id = 300;
|
15 |
-
}elseif(WPLANG == 'fr_FR' || WPLANG == 'fr_BE'){
|
16 |
-
$wong_id = 301;
|
17 |
-
}elseif(WPLANG =='ru_RU' || WPLANG == 'ru_MA'){
|
18 |
-
$wong_id = 302;
|
19 |
-
}
|
20 |
-
|
21 |
-
$checkthis_text = __('Check this box to include %s in your bookmarking menu', 'shrsb');
|
22 |
-
|
23 |
-
// array of bookmarks
|
24 |
-
$shrsb_bookmarks_data=array(
|
25 |
-
'shr-scriptstyle'=>array(
|
26 |
-
'id' => 278,
|
27 |
-
'check'=>sprintf($checkthis_text, 'Script & Style'),
|
28 |
-
'share'=>__('Submit this to ', 'shrsb').'Script & Style'
|
29 |
-
),
|
30 |
-
'shr-blinklist'=>array(
|
31 |
-
'id'=>48,
|
32 |
-
'check'=>sprintf($checkthis_text, 'Blinklist'),
|
33 |
-
'share'=>__('Share this on ', 'shrsb').'Blinklist'
|
34 |
-
),
|
35 |
-
'shr-delicious'=>array(
|
36 |
-
'id'=>2,
|
37 |
-
'check'=>sprintf($checkthis_text,'Delicious'),
|
38 |
-
'share'=>__('Share this on ', 'shrsb').'del.icio.us'
|
39 |
-
),
|
40 |
-
'shr-digg'=>array(
|
41 |
-
'id'=>3,
|
42 |
-
'check'=>sprintf($checkthis_text,'Digg'),
|
43 |
-
'share'=>__('Digg this!', 'shrsb')
|
44 |
-
),
|
45 |
-
'shr-diigo'=>array(
|
46 |
-
'id'=>24,
|
47 |
-
'check'=>sprintf($checkthis_text,'Diigo'),
|
48 |
-
'share'=>__('Post this on ', 'shrsb').'Diigo'
|
49 |
-
),
|
50 |
-
'shr-reddit'=>array(
|
51 |
-
'id'=>40,
|
52 |
-
'check'=>sprintf($checkthis_text,'Reddit'),
|
53 |
-
'share'=>__('Share this on ', 'shrsb').'Reddit'
|
54 |
-
),
|
55 |
-
'shr-stumbleupon'=>array(
|
56 |
-
'id'=>38,
|
57 |
-
'check'=>sprintf($checkthis_text,'Stumbleupon'),
|
58 |
-
'share'=>__('Stumble upon something good? Share it on StumbleUpon', 'shrsb')
|
59 |
-
),
|
60 |
-
'shr-myspace'=>array(
|
61 |
-
'id'=>39,
|
62 |
-
'check'=>sprintf($checkthis_text,'MySpace'),
|
63 |
-
'share'=>__('Post this to ', 'shrsb').'MySpace'
|
64 |
-
),
|
65 |
-
'shr-designfloat'=>array(
|
66 |
-
'id'=>106,
|
67 |
-
'check'=>sprintf($checkthis_text,'DesignFloat'),
|
68 |
-
'share'=>__('Submit this to ', 'shrsb').'DesignFloat'
|
69 |
-
),
|
70 |
-
'shr-facebook'=>array(
|
71 |
-
'id'=>5,
|
72 |
-
'check'=>sprintf($checkthis_text,'Facebook'),
|
73 |
-
'share'=>__('Share this on ', 'shrsb').'Facebook'
|
74 |
-
),
|
75 |
-
'shr-twitter'=>array(
|
76 |
-
'id'=>7,
|
77 |
-
'check'=>sprintf($checkthis_text,'Twitter'),
|
78 |
-
'share'=>__('Tweet This!', 'shrsb')
|
79 |
-
),
|
80 |
-
'shr-mail'=>array(
|
81 |
-
'id'=>201,
|
82 |
-
'check'=>sprintf($checkthis_text, __("an 'Email to a Friend' link", 'shrsb')),
|
83 |
-
'share'=>__('Email this to a friend?', 'shrsb')
|
84 |
-
),
|
85 |
-
'shr-tomuse'=>array(
|
86 |
-
'id'=>294,
|
87 |
-
'check'=>sprintf($checkthis_text,'ToMuse'),
|
88 |
-
'share'=>__('Suggest this article to ', 'shrsb').'ToMuse'
|
89 |
-
),
|
90 |
-
'shr-linkedin'=>array(
|
91 |
-
'id'=>88,
|
92 |
-
'check'=>sprintf($checkthis_text,'LinkedIn'),
|
93 |
-
'share'=>__('Share this on ', 'shrsb').'LinkedIn'
|
94 |
-
),
|
95 |
-
'shr-newsvine'=>array(
|
96 |
-
'id'=>41,
|
97 |
-
'check'=>sprintf($checkthis_text,'Newsvine'),
|
98 |
-
'share'=>__('Seed this on ', 'shrsb').'Newsvine'
|
99 |
-
),
|
100 |
-
'shr-googlebookmarks'=>array(
|
101 |
-
'id'=>74,
|
102 |
-
'check'=>sprintf($checkthis_text,'Google Bookmarks'),
|
103 |
-
'share'=>__('Add this to ', 'shrsb').'Google Bookmarks'
|
104 |
-
),
|
105 |
-
'shr-misterwong'=>array(
|
106 |
-
'id'=>$wong_id,
|
107 |
-
'check'=>sprintf($checkthis_text,'Mister Wong'),
|
108 |
-
'share'=>__('Add this to ', 'shrsb').'Mister Wong'
|
109 |
-
),
|
110 |
-
'shr-izeby'=>array(
|
111 |
-
'id'=>263,
|
112 |
-
'check'=>sprintf($checkthis_text,'Izeby'),
|
113 |
-
'share'=>__('Add this to ', 'shrsb').'Izeby'
|
114 |
-
),
|
115 |
-
'shr-pfbuzz'=>array(
|
116 |
-
'id'=>279,
|
117 |
-
'check'=>sprintf($checkthis_text,'PFBuzz'),
|
118 |
-
'share'=>__('Share this on ', 'shrsb').'PFBuzz'
|
119 |
-
),
|
120 |
-
'shr-friendfeed'=>array(
|
121 |
-
'id'=>43,
|
122 |
-
'check'=>sprintf($checkthis_text,'FriendFeed'),
|
123 |
-
'share'=>__('Share this on ', 'shrsb').'FriendFeed'
|
124 |
-
),
|
125 |
-
'shr-blogmarks'=>array(
|
126 |
-
'id'=>27,
|
127 |
-
'check'=>sprintf($checkthis_text,'BlogMarks'),
|
128 |
-
'share'=>__('Mark this on ', 'shrsb').'BlogMarks'
|
129 |
-
),
|
130 |
-
'shr-fwisp'=>array(
|
131 |
-
'id'=>280,
|
132 |
-
'check'=>sprintf($checkthis_text,'Fwisp'),
|
133 |
-
'share'=>__('Share this on ', 'shrsb').'Fwisp'
|
134 |
-
),
|
135 |
-
'shr-bobrdobr'=>array(
|
136 |
-
'id'=>266,
|
137 |
-
'check'=>sprintf($checkthis_text,'BobrDobr').__(' (Russian)', 'shrsb'),
|
138 |
-
'share'=>__('Share this on ', 'shrsb').'BobrDobr'
|
139 |
-
),
|
140 |
-
'shr-memoryru'=>array(
|
141 |
-
'id'=>269,
|
142 |
-
'check'=>sprintf($checkthis_text,'Memory.ru').__(' (Russian)', 'shrsb'),
|
143 |
-
'share'=>__('Add this to ', 'shrsb').'Memory.ru'
|
144 |
-
),
|
145 |
-
'shr-100zakladok'=>array(
|
146 |
-
'id'=>281,
|
147 |
-
'check'=>sprintf($checkthis_text,'100 bookmarks').__(' (Russian)', 'shrsb'),
|
148 |
-
'share'=>__('Add this to ', 'shrsb').'100 bookmarks'
|
149 |
-
),
|
150 |
-
'shr-moemesto'=>array(
|
151 |
-
'id'=>268,
|
152 |
-
'check'=>sprintf($checkthis_text,'MyPlace').__(' (Russian)', 'shrsb'),
|
153 |
-
'share'=>__('Add this to ', 'shrsb').'MyPlace'
|
154 |
-
),
|
155 |
-
'shr-hackernews'=>array(
|
156 |
-
'id'=>202,
|
157 |
-
'check'=>sprintf($checkthis_text,'Hacker News'),
|
158 |
-
'share'=>__('Submit this to ', 'shrsb').'Hacker News'
|
159 |
-
),
|
160 |
-
'shr-printfriendly'=>array(
|
161 |
-
'id'=>236,
|
162 |
-
'check'=>sprintf($checkthis_text,'Print Friendly'),
|
163 |
-
'share'=>__('Send this page to ', 'shrsb').'Print Friendly'
|
164 |
-
),
|
165 |
-
'shr-designbump'=>array(
|
166 |
-
'id'=>282,
|
167 |
-
'check'=>sprintf($checkthis_text,'Design Bump'),
|
168 |
-
'share'=>__('Bump this on ', 'shrsb').'DesignBump'
|
169 |
-
),
|
170 |
-
'shr-identica'=>array(
|
171 |
-
'id'=>205,
|
172 |
-
'check'=>sprintf($checkthis_text,'Identica'),
|
173 |
-
'share'=>__('Post this to ', 'shrsb').'Identica'
|
174 |
-
),
|
175 |
-
'shr-xerpi'=>array(
|
176 |
-
'id'=>20,
|
177 |
-
'check'=>sprintf($checkthis_text,'Xerpi'),
|
178 |
-
'share'=>__('Save this to ', 'shrsb').'Xerpi'
|
179 |
-
),
|
180 |
-
'shr-techmeme'=>array(
|
181 |
-
'id'=>204,
|
182 |
-
'check'=>sprintf($checkthis_text,'TechMeme'),
|
183 |
-
'share'=>__('Tip this to ', 'shrsb').'TechMeme'
|
184 |
-
),
|
185 |
-
'shr-globalgrind'=>array(
|
186 |
-
'id'=>89,
|
187 |
-
'check'=>sprintf($checkthis_text,'Global Grind'),
|
188 |
-
'share'=>__('Grind this! on ', 'shrsb').'Global Grind'
|
189 |
-
),
|
190 |
-
'shr-pingfm'=>array(
|
191 |
-
'id'=>45,
|
192 |
-
'check'=>sprintf($checkthis_text,'Ping.fm'),
|
193 |
-
'share'=>__('Ping this on ', 'shrsb').'Ping.fm'
|
194 |
-
),
|
195 |
-
'shr-nujij'=>array(
|
196 |
-
'id'=>238,
|
197 |
-
'check'=>sprintf($checkthis_text,'NUjij').__(' (Dutch)', 'shrsb'),
|
198 |
-
'share'=>__('Submit this to ', 'shrsb').'NUjij'
|
199 |
-
),
|
200 |
-
'shr-ekudos'=>array(
|
201 |
-
'id'=>283,
|
202 |
-
'check'=>sprintf($checkthis_text,'eKudos').__(' (Dutch)', 'shrsb'),
|
203 |
-
'share'=>__('Submit this to ', 'shrsb').'eKudos'
|
204 |
-
),
|
205 |
-
'shr-netvouz'=>array(
|
206 |
-
'id'=>21,
|
207 |
-
'check'=>sprintf($checkthis_text,'Netvouz'),
|
208 |
-
'share'=>__('Submit this to ', 'shrsb').'Netvouz'
|
209 |
-
),
|
210 |
-
'shr-webblend'=>array(
|
211 |
-
'id'=>284,
|
212 |
-
'check'=>sprintf($checkthis_text,'Web Blend'),
|
213 |
-
'share'=>__('Blend this!', 'shrsb')
|
214 |
-
),
|
215 |
-
'shr-wykop'=>array(
|
216 |
-
'id'=>285,
|
217 |
-
'check'=>sprintf($checkthis_text,'Wykop').__(' (Polish)', 'shrsb'),
|
218 |
-
'share'=>__('Add this to Wykop!', 'shrsb')
|
219 |
-
),
|
220 |
-
'shr-blogengage'=>array(
|
221 |
-
'id'=>286,
|
222 |
-
'check'=>sprintf($checkthis_text,'BlogEngage'),
|
223 |
-
'share'=>__('Engage with this article!', 'shrsb')
|
224 |
-
),
|
225 |
-
'shr-hyves'=>array(
|
226 |
-
'id'=>105,
|
227 |
-
'check'=>sprintf($checkthis_text,'Hyves'),
|
228 |
-
'share'=>__('Share this on ', 'shrsb').'Hyves'
|
229 |
-
),
|
230 |
-
'shr-pusha'=>array(
|
231 |
-
'id'=>59,
|
232 |
-
'check'=>sprintf($checkthis_text,'Pusha').__(' (Swedish)', 'shrsb'),
|
233 |
-
'share'=>__('Push this on ', 'shrsb').'Pusha'
|
234 |
-
),
|
235 |
-
'shr-hatena'=>array(
|
236 |
-
'id'=>246,
|
237 |
-
'check'=>sprintf($checkthis_text,'Hatena Bookmarks').__(' (Japanese)', 'shrsb'),
|
238 |
-
'share'=>__('Bookmarks this on ', 'shrsb').'Hatena Bookmarks'
|
239 |
-
),
|
240 |
-
'shr-mylinkvault'=>array(
|
241 |
-
'id'=>98,
|
242 |
-
'check'=>sprintf($checkthis_text,'MyLinkVault'),
|
243 |
-
'share'=>__('Store this link on ', 'shrsb').'MyLinkVault'
|
244 |
-
),
|
245 |
-
'shr-slashdot'=>array(
|
246 |
-
'id'=>61,
|
247 |
-
'check'=>sprintf($checkthis_text,'SlashDot'),
|
248 |
-
'share'=>__('Submit this to ', 'shrsb').'SlashDot'
|
249 |
-
),
|
250 |
-
'shr-evernote'=>array(
|
251 |
-
'id'=>191,
|
252 |
-
'check'=>sprintf($checkthis_text,'Evernote'),
|
253 |
-
'share'=>__('Clip this to ', 'shrsb').'Evernote'
|
254 |
-
),
|
255 |
-
'shr-meneame'=>array(
|
256 |
-
'id'=>33,
|
257 |
-
'check'=>sprintf($checkthis_text,'Meneame').__(' (Spanish)', 'shrsb'),
|
258 |
-
'share'=>__('Submit this to ', 'shrsb').'Meneame'
|
259 |
-
),
|
260 |
-
'shr-bitacoras'=>array(
|
261 |
-
'id'=>288,
|
262 |
-
'check'=>sprintf($checkthis_text,'Bitacoras').__(' (Spanish)', 'shrsb'),
|
263 |
-
'share'=>__('Submit this to ', 'shrsb').'Bitacoras'
|
264 |
-
),
|
265 |
-
'shr-jumptags'=>array(
|
266 |
-
'id'=>14,
|
267 |
-
'check'=>sprintf($checkthis_text,'JumpTags'),
|
268 |
-
'share'=>__('Submit this link to ', 'shrsb').'JumpTags'
|
269 |
-
),
|
270 |
-
'shr-bebo'=>array(
|
271 |
-
'id'=>196,
|
272 |
-
'check'=>sprintf($checkthis_text,'Bebo'),
|
273 |
-
'share'=>__('Share this on ', 'shrsb').'Bebo'
|
274 |
-
),
|
275 |
-
'shr-n4g'=>array(
|
276 |
-
'id'=>289,
|
277 |
-
'check'=>sprintf($checkthis_text,'N4G'),
|
278 |
-
'share'=>__('Submit tip to ', 'shrsb').'N4G'
|
279 |
-
),
|
280 |
-
'shr-orkut'=>array(
|
281 |
-
'id'=>247,
|
282 |
-
'check'=>sprintf($checkthis_text,'Orkut'),
|
283 |
-
'share'=>__('Promote this on ', 'shrsb').'Orkut'
|
284 |
-
),
|
285 |
-
'shr-tumblr'=>array(
|
286 |
-
'id'=>78,
|
287 |
-
'check'=>sprintf($checkthis_text,'Tumblr'),
|
288 |
-
'share'=>__('Share this on ', 'shrsb').'Tumblr'
|
289 |
-
),
|
290 |
-
'shr-stumpedia'=>array(
|
291 |
-
'id'=>192,
|
292 |
-
'check'=>sprintf($checkthis_text,'Stumpedia'),
|
293 |
-
'share'=>__('Add this to ', 'shrsb').'Stumpedia'
|
294 |
-
),
|
295 |
-
'shr-current'=>array(
|
296 |
-
'id'=>80,
|
297 |
-
'check'=>sprintf($checkthis_text,'Current'),
|
298 |
-
'share'=>__('Post this to ', 'shrsb').'Current'
|
299 |
-
),
|
300 |
-
'shr-blogger'=>array(
|
301 |
-
'id'=>219,
|
302 |
-
'check'=>sprintf($checkthis_text,'Blogger'),
|
303 |
-
'share'=>__('Blog this on ', 'shrsb').'Blogger'
|
304 |
-
),
|
305 |
-
'shr-plurk'=>array(
|
306 |
-
'id'=>218,
|
307 |
-
'check'=>sprintf($checkthis_text,'Plurk'),
|
308 |
-
'share'=>__('Share this on ', 'shrsb').'Plurk'
|
309 |
-
),
|
310 |
-
'shr-dzone'=>array(
|
311 |
-
'id'=>102,
|
312 |
-
'check'=>sprintf($checkthis_text,'DZone'),
|
313 |
-
'share'=>__('Add this to ', 'shrsb').'DZone'
|
314 |
-
),
|
315 |
-
'shr-kaevur'=>array(
|
316 |
-
'id'=>290,
|
317 |
-
'check'=>sprintf($checkthis_text,'Kaevur').__(' (Estonian)', 'shrsb'),
|
318 |
-
'share'=>__('Share this on ', 'shrsb').'Kaevur'
|
319 |
-
),
|
320 |
-
'shr-virb'=>array(
|
321 |
-
'id'=>291,
|
322 |
-
'check'=>sprintf($checkthis_text,'Virb'),
|
323 |
-
'share'=>__('Share this on ', 'shrsb').'Virb'
|
324 |
-
),
|
325 |
-
'shr-box'=>array(
|
326 |
-
'id'=>240,
|
327 |
-
'check'=>sprintf($checkthis_text,'Box.net'),
|
328 |
-
'share'=>__('Add this link to ', 'shrsb').'Box.net'
|
329 |
-
),
|
330 |
-
'shr-oknotizie'=>array(
|
331 |
-
'id'=>243,
|
332 |
-
'check'=>sprintf($checkthis_text,'OkNotizie').__('(Italian)', 'shrsb'),
|
333 |
-
'share'=>__('Share this on ', 'shrsb').'OkNotizie'
|
334 |
-
),
|
335 |
-
'shr-bonzobox'=>array(
|
336 |
-
'id'=>292,
|
337 |
-
'check'=>sprintf($checkthis_text,'BonzoBox'),
|
338 |
-
'share'=>__('Add this to ', 'shrsb').'BonzoBox'
|
339 |
-
),
|
340 |
-
'shr-plaxo'=>array(
|
341 |
-
'id'=>44,
|
342 |
-
'check'=>sprintf($checkthis_text,'Plaxo'),
|
343 |
-
'share'=>__('Share this on ', 'shrsb').'Plaxo'
|
344 |
-
),
|
345 |
-
'shr-springpad'=>array(
|
346 |
-
'id'=>265,
|
347 |
-
'check'=>sprintf($checkthis_text,'SpringPad'),
|
348 |
-
'share'=>__('Spring this on ', 'shrsb').'SpringPad',
|
349 |
-
),
|
350 |
-
'shr-zabox'=>array(
|
351 |
-
'id'=>293,
|
352 |
-
'check'=>sprintf($checkthis_text,'Zabox'),
|
353 |
-
'share'=>__('Box this on ', 'shrsb').'Zabox'
|
354 |
-
),
|
355 |
-
'shr-viadeo'=>array(
|
356 |
-
'id'=>92,
|
357 |
-
'check'=>sprintf($checkthis_text,'Viadeo'),
|
358 |
-
'share'=>__('Share this on ', 'shrsb').'Viadeo'
|
359 |
-
),
|
360 |
-
'shr-gmail'=>array(
|
361 |
-
'id'=>52,
|
362 |
-
'check'=>sprintf($checkthis_text,'Gmail'),
|
363 |
-
'share'=>__('Email this via ', 'shrsb').'Gmail'
|
364 |
-
),
|
365 |
-
'shr-hotmail'=>array(
|
366 |
-
'id'=>53,
|
367 |
-
'check'=>sprintf($checkthis_text,'Hotmail'),
|
368 |
-
'share'=>__('Email this via ', 'shrsb').'Hotmail'
|
369 |
-
),
|
370 |
-
'shr-yahoomail'=>array(
|
371 |
-
'id'=>54,
|
372 |
-
'check'=>sprintf($checkthis_text,'Yahoo! Mail'),
|
373 |
-
'share'=>__('Email this via ', 'shrsb').'Yahoo! Mail'
|
374 |
-
),
|
375 |
-
'shr-buzzster'=>array(
|
376 |
-
'id'=>1,
|
377 |
-
'check'=>sprintf($checkthis_text,'Buzzster!'),
|
378 |
-
'share'=>__('Share this via ', 'shrsb').'Buzzster!'
|
379 |
-
),'shr-pinterest'=>array(
|
380 |
-
'id'=>309,
|
381 |
-
'check'=>sprintf($checkthis_text,'Pinterest'),
|
382 |
-
'share'=>__('Pin this to ', 'shrsb').'Pinterest'
|
383 |
-
),
|
384 |
-
'shr-googleplus'=>array(
|
385 |
-
'id'=>304,
|
386 |
-
'check'=>sprintf($checkthis_text, 'Google+'),
|
387 |
-
'share'=>__('Share this on ', 'shrsb').'Google+'
|
388 |
-
),
|
389 |
-
'shr-fastmail'=>array(
|
390 |
-
'id'=>313,
|
391 |
-
'check'=>sprintf($checkthis_text,'Email'),
|
392 |
-
'share'=>__('Send via ', 'shrsb').'Email'
|
393 |
-
),
|
394 |
-
);
|
395 |
-
ksort($shrsb_bookmarks_data, SORT_STRING); //sort array by keys
|
396 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/helper-functions.php
DELETED
@@ -1,149 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Returns the translated role of the current user. If that user has
|
5 |
-
* no role for the current blog, it returns false.
|
6 |
-
*
|
7 |
-
* @return string The name of the current role
|
8 |
-
* @notes older versions of WP return "Administrator|User role" which we strip down to "Administrator"
|
9 |
-
**/
|
10 |
-
function shrsb_get_current_user_role() {
|
11 |
-
global $wp_roles;
|
12 |
-
$current_user = wp_get_current_user();
|
13 |
-
$roles = $current_user->roles;
|
14 |
-
$role = array_shift($roles);
|
15 |
-
return isset($wp_roles->role_names[$role]) ? preg_replace("/\|User role$/","",$wp_roles->role_names[$role]) : false;
|
16 |
-
}
|
17 |
-
|
18 |
-
/**
|
19 |
-
* Warning : Please go through the code first before reusing the function
|
20 |
-
* Append the character at the end of the string.
|
21 |
-
* For Windows Servers, replace backward slashes to forward
|
22 |
-
*
|
23 |
-
* @param <type> $string
|
24 |
-
* @param <type> $char
|
25 |
-
* @return <type> string
|
26 |
-
*/
|
27 |
-
function shrb_addTrailingChar($string, $char){
|
28 |
-
// For window based servers
|
29 |
-
if($char == '/'){
|
30 |
-
$string = shrb_convertBackToForwardSlash($string);
|
31 |
-
}
|
32 |
-
|
33 |
-
//Appending the charachter at end if it already deoes not exist.
|
34 |
-
if(substr($string, -1) != $char){
|
35 |
-
$string .= $char;
|
36 |
-
}
|
37 |
-
return $string;
|
38 |
-
}
|
39 |
-
|
40 |
-
function shrb_convertBackToForwardSlash($string){
|
41 |
-
|
42 |
-
$exp = array('\\','\\/', '\\\\','///');
|
43 |
-
$string = str_replace($exp, '/', $string);
|
44 |
-
|
45 |
-
return $string;
|
46 |
-
}
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Return Google Analytics for Admin Pages
|
50 |
-
*
|
51 |
-
* @return string
|
52 |
-
* @author Jay Meattle
|
53 |
-
**/
|
54 |
-
|
55 |
-
function get_googleanalytics() {
|
56 |
-
$google_analytics = <<<EOD
|
57 |
-
<script type="text/javascript">
|
58 |
-
var _gaq = _gaq || [];
|
59 |
-
_gaq.push(['_setAccount', 'UA-12964573-5']);
|
60 |
-
_gaq.push(['_trackPageview']);
|
61 |
-
(function() {
|
62 |
-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
63 |
-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
64 |
-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
65 |
-
})();
|
66 |
-
</script>
|
67 |
-
EOD;
|
68 |
-
return $google_analytics;
|
69 |
-
}
|
70 |
-
|
71 |
-
/**
|
72 |
-
* @desc dump the sexybookmark settings from the database
|
73 |
-
**/
|
74 |
-
function shrsb_dump_settings(){
|
75 |
-
|
76 |
-
global $shrsb_debug;
|
77 |
-
//data to dump
|
78 |
-
$data = array(
|
79 |
-
"siteurl" => get_option('siteurl'),
|
80 |
-
"version_database" => get_option('SHRSBvNum'),
|
81 |
-
"version_plugin" => SHRSB_vNum,
|
82 |
-
"apikey" => get_option('SHRSB_apikey'),
|
83 |
-
"custom_sprite" => get_option('SHRSB_CustomSprite'),
|
84 |
-
"default_spritegen" => get_option('SHRSB_DefaultSprite'),
|
85 |
-
"sb_plugopts" => get_option('SexyBookmarks'),
|
86 |
-
"tb_plugopts" => get_option('ShareaholicTopbar')
|
87 |
-
);
|
88 |
-
|
89 |
-
if($shrsb_debug['dump_type'])
|
90 |
-
switch($shrsb_debug['dump_type']){
|
91 |
-
case "json":
|
92 |
-
echo json_encode($data);
|
93 |
-
break;
|
94 |
-
case "tree":
|
95 |
-
echo shrsb_displayTree($data);
|
96 |
-
break;
|
97 |
-
default :
|
98 |
-
var_export($data);
|
99 |
-
}
|
100 |
-
$shrsb_debug['sb_die'] && die();
|
101 |
-
}
|
102 |
-
|
103 |
-
//Change the directory path to webpath
|
104 |
-
function shr_dir_to_path($dir){
|
105 |
-
if(!$dir){
|
106 |
-
return false;
|
107 |
-
}
|
108 |
-
//If its is a symlink, it will be resolved to origonal dir path
|
109 |
-
$dir = shrb_addTrailingChar(realpath($dir), '/' );
|
110 |
-
$path = get_option("siteurl");
|
111 |
-
if(substr($path, -1) != '/'){
|
112 |
-
$path .= '/';
|
113 |
-
}
|
114 |
-
$path .= substr($dir , strlen(ABSPATH));
|
115 |
-
return $path;
|
116 |
-
}
|
117 |
-
|
118 |
-
/**
|
119 |
-
* @desc check for the attributes in the get and post
|
120 |
-
**/
|
121 |
-
function shrsb_get_value($method =NULL, $attr = NULL, $def=false){
|
122 |
-
if(!$method && !$attr){
|
123 |
-
return $def;
|
124 |
-
}
|
125 |
-
|
126 |
-
switch($method){
|
127 |
-
case "get":
|
128 |
-
if(isset($_GET) && isset($_GET[$attr]) )
|
129 |
-
return $_GET[$attr];
|
130 |
-
break;
|
131 |
-
case "post":
|
132 |
-
if(isset($_POST) && isset($_POST[$attr]) )
|
133 |
-
return $_POST[$attr];
|
134 |
-
break;
|
135 |
-
default :
|
136 |
-
}
|
137 |
-
|
138 |
-
return $def;
|
139 |
-
}
|
140 |
-
|
141 |
-
/**
|
142 |
-
* @desc log the message if logging is enabled
|
143 |
-
**/
|
144 |
-
function shrsb_log($msg){
|
145 |
-
global $shrsb_debug;
|
146 |
-
if(isset($shrsb_debug) && isset($shrsb_debug['sb_log']) && $shrsb_debug['sb_log'] !== false){
|
147 |
-
echo '<!-- log:start --><span style=color:red>'.$msg.'</span><br><!-- log:end -->';
|
148 |
-
}
|
149 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/html-helpers.php
DELETED
@@ -1,174 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// Converts http to https iff current page is being accessed over https.
|
4 |
-
function shrsb_correct_protocol($url) {
|
5 |
-
if (is_ssl()) {
|
6 |
-
return preg_replace('#^http://#', 'https://', $url);
|
7 |
-
}
|
8 |
-
else {
|
9 |
-
return $url;
|
10 |
-
}
|
11 |
-
}
|
12 |
-
|
13 |
-
function shrsb_is_mobile_browser() {
|
14 |
-
$useragent=$_SERVER['HTTP_USER_AGENT'];
|
15 |
-
$isMobile = false;
|
16 |
-
if(preg_match('/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i',substr($useragent,0,4))) {
|
17 |
-
$isMobile = true;
|
18 |
-
}
|
19 |
-
return $isMobile;
|
20 |
-
|
21 |
-
}
|
22 |
-
|
23 |
-
// function to list bookmarks that have been chosen by admin
|
24 |
-
function bookmark_list_item($name, $opts=array()) {
|
25 |
-
global $shrsb_plugopts, $shrsb_bookmarks_data, $post;
|
26 |
-
$onclick = "";
|
27 |
-
$post_info = shrsb_get_params($post->ID);
|
28 |
-
// If Twitter, check for custom tweet configuration and modify tweet accordingly
|
29 |
-
if($name == 'shr-twitter') {
|
30 |
-
|
31 |
-
if(!shrsb_is_mobile_browser()) {
|
32 |
-
$clickHandler = '
|
33 |
-
if(typeof(SHR_config) == "undefined" || !SHR_config) {
|
34 |
-
window["SHR_config"] = {};
|
35 |
-
}
|
36 |
-
|
37 |
-
window["__shr_service"] = "twitter";
|
38 |
-
window["__shr_log"] = true;
|
39 |
-
window["__shr_center"] = true;
|
40 |
-
|
41 |
-
|
42 |
-
SHR_config["shortener"] ="'.$post_info['shortener'].'";
|
43 |
-
SHR_config["shortener_key"] ="'.$post_info['shortener_key'].'";
|
44 |
-
SHR_config["apikey"] = "'.$shrsb_plugopts['apikey'].'";
|
45 |
-
SHR_config["twitter_template"] = "'.$shrsb_plugopts['tweetconfig'].'";
|
46 |
-
SHR_config["link"] = "PERMALINK";
|
47 |
-
SHR_config["title"] = "TITLE";
|
48 |
-
SHR_config["short_link"] = "'.$post_info['short_link'].'";
|
49 |
-
|
50 |
-
if(!window.SHR || !window.SHR.Servicelet) {
|
51 |
-
var d = document;
|
52 |
-
var s=d.createElement("script");
|
53 |
-
s.setAttribute("language","javascript");
|
54 |
-
s.id="shr-servicelet";
|
55 |
-
s.setAttribute("src", "'.shrsb_correct_protocol($shrsb_plugopts['shrbase']).'" + "/media/js/servicelet.min.js");
|
56 |
-
d.body.appendChild(s);
|
57 |
-
} else{
|
58 |
-
SHR.Servicelet.show();
|
59 |
-
}
|
60 |
-
return false;
|
61 |
-
';
|
62 |
-
|
63 |
-
foreach ($opts as $key=>$value) {
|
64 |
-
$clickHandler = str_replace(strtoupper($key), $value, $clickHandler);
|
65 |
-
}
|
66 |
-
$clickHandler = str_replace('"',"'",$clickHandler);
|
67 |
-
$clickHandler = str_replace(array("\n","\r"),"",$clickHandler);
|
68 |
-
$onclick = " onclick=\"$clickHandler\"";
|
69 |
-
}
|
70 |
-
|
71 |
-
$url = shrsb_correct_protocol($shrsb_plugopts['shrbase']).'/api/share/?'.implode('&',array(
|
72 |
-
'title=TITLE',
|
73 |
-
'link=PERMALINK',
|
74 |
-
'notes='.$post_info['notes'],
|
75 |
-
'short_link='.$post_info['short_link'],
|
76 |
-
'shortener='.$post_info['shortener'],
|
77 |
-
'shortener_key='.$post_info['shortener_key'],
|
78 |
-
'v=1',
|
79 |
-
'apitype=1',
|
80 |
-
'apikey='.$shrsb_plugopts['apikey'],
|
81 |
-
'source=Shareaholic',
|
82 |
-
'template='.urlencode($shrsb_plugopts['tweetconfig']),
|
83 |
-
'service='.$shrsb_bookmarks_data[$name]['id'],
|
84 |
-
'tags='.$post_info['d_tags'],
|
85 |
-
'ctype='
|
86 |
-
));
|
87 |
-
}
|
88 |
-
|
89 |
-
else {
|
90 |
-
$url = shrsb_correct_protocol($shrsb_plugopts['shrbase']).'/api/share/?'.implode('&',array(
|
91 |
-
'title=TITLE',
|
92 |
-
'link=PERMALINK',
|
93 |
-
'notes='.$post_info['notes'],
|
94 |
-
'short_link='.$post_info['short_link'],
|
95 |
-
'shortener='.$post_info['shortener'],
|
96 |
-
'shortener_key='.$post_info['shortener_key'],
|
97 |
-
'v=1',
|
98 |
-
'apitype=1',
|
99 |
-
'apikey='.$shrsb_plugopts['apikey'],
|
100 |
-
'source=Shareaholic',
|
101 |
-
'template=',
|
102 |
-
'service='.$shrsb_bookmarks_data[$name]['id'],
|
103 |
-
'tags='.$post_info['d_tags'],
|
104 |
-
'ctype='
|
105 |
-
));
|
106 |
-
}
|
107 |
-
|
108 |
-
$topt = '';
|
109 |
-
if($name == 'shr-facebook') {
|
110 |
-
$onclick = " onclick=\"window.open(this.href,'sharer','toolbar=0,status=0,width=626,height=436'); return false;\"";
|
111 |
-
}
|
112 |
-
else {
|
113 |
-
if($shrsb_plugopts['targetopt'] == '_blank') {
|
114 |
-
$topt = ' class="external"';
|
115 |
-
}
|
116 |
-
}
|
117 |
-
foreach ($opts as $key=>$value) {
|
118 |
-
$url=str_replace(strtoupper($key), $value, preg_replace('/\s+/', '%20', $url));
|
119 |
-
}
|
120 |
-
if(is_feed()) {
|
121 |
-
return sprintf(
|
122 |
-
"\t\t".'<li class="%s">'."\n\t\t\t".'<a href="%s" rel="%s"%s title="%s">%s</a>'."\n\t\t".'</li>'."\n",
|
123 |
-
$name,
|
124 |
-
$url,
|
125 |
-
$shrsb_plugopts['reloption'],
|
126 |
-
$topt,
|
127 |
-
$shrsb_bookmarks_data[$name]['share'],
|
128 |
-
$shrsb_bookmarks_data[$name]['share']
|
129 |
-
);
|
130 |
-
}
|
131 |
-
else {
|
132 |
-
return sprintf(
|
133 |
-
"\t\t".'<li class="%s">'."\n\t\t\t".'<a href="%s" rel="%s"%s title="%s"%s> </a>'."\n\t\t".'</li>'."\n",
|
134 |
-
$name,
|
135 |
-
$url,
|
136 |
-
$shrsb_plugopts['reloption'],
|
137 |
-
$topt,
|
138 |
-
$shrsb_bookmarks_data[$name]['share'],
|
139 |
-
$onclick
|
140 |
-
);
|
141 |
-
}
|
142 |
-
}
|
143 |
-
|
144 |
-
|
145 |
-
// Displays a multi-dimensional array as a HTML List (Tree structure).
|
146 |
-
function shrsb_displayTree($var) {
|
147 |
-
$newline = "\n";
|
148 |
-
$output = "";
|
149 |
-
foreach($var as $key => $value) {
|
150 |
-
if (is_array($value) || is_object($value)) {
|
151 |
-
$value = $newline . "<ul>" . shrsb_displayTree($value) . "</ul>";
|
152 |
-
}
|
153 |
-
|
154 |
-
if (is_array($var)) {
|
155 |
-
if (!stripos($value, "<li class=")) {
|
156 |
-
$output .= "<li class=\"file\">" ."$key = $value" . "</li>" . $newline;
|
157 |
-
}
|
158 |
-
else {
|
159 |
-
$output .= "$key = $value" . $newline;
|
160 |
-
}
|
161 |
-
|
162 |
-
}
|
163 |
-
else { // is_object
|
164 |
-
if (!stripos($value, "<li class=")) {
|
165 |
-
$value = "<ul><li class=\"file\">" . $value . "</li></ul>" . $newline;
|
166 |
-
}
|
167 |
-
|
168 |
-
$output .= "<li class=\"folder\">" . $key . $value . "</li>" . $newline;
|
169 |
-
}
|
170 |
-
|
171 |
-
}
|
172 |
-
|
173 |
-
return $output;
|
174 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/index.php
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
//Source of plugin
|
3 |
-
header("Location: https://shareaholic.com");
|
4 |
-
?>
|
|
|
|
|
|
|
|
includes/mobile.php
DELETED
@@ -1,89 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
//Checking for bots
|
4 |
-
function shrsb_is_bot() {
|
5 |
-
$ua = strtolower($_SERVER['HTTP_USER_AGENT']);
|
6 |
-
$ip = $_SERVER['REMOTE_ADDR'];
|
7 |
-
$isBot = $ip == '66.249.65.39'
|
8 |
-
|| strpos($ua, 'googlebot') !== false
|
9 |
-
|| strpos($ua, 'mediapartners') !== false
|
10 |
-
|| strpos($ua, 'yahooysmcm') !== false
|
11 |
-
|| strpos($ua, 'baiduspider') !== false
|
12 |
-
|| strpos($ua, 'msnbot') !== false
|
13 |
-
|| strpos($ua, 'slurp') !== false
|
14 |
-
|| strpos($ua, 'ask') !== false
|
15 |
-
|| strpos($ua, 'teoma') !== false
|
16 |
-
|| strpos($ua, 'spider') !== false
|
17 |
-
|| strpos($ua, 'heritrix') !== false
|
18 |
-
|| strpos($ua, 'attentio') !== false
|
19 |
-
|| strpos($ua, 'twiceler') !== false
|
20 |
-
|| strpos($ua, 'irlbot') !== false
|
21 |
-
|| strpos($ua, 'fast crawler') !== false
|
22 |
-
|| strpos($ua, 'fastmobilecrawl') !== false
|
23 |
-
|| strpos($ua, 'jumpbot') !== false
|
24 |
-
|| strpos($ua, 'googlebot-mobile') !== false
|
25 |
-
|| strpos($ua, 'yahooseeker') !== false
|
26 |
-
|| strpos($ua, 'motionbot') !== false
|
27 |
-
|| strpos($ua, 'mediobot') !== false
|
28 |
-
|| strpos($ua, 'chtml generic') !== false
|
29 |
-
|| strpos($ua, 'nokia6230i/. fast crawler') !== false
|
30 |
-
; // $isBot
|
31 |
-
return $isBot;
|
32 |
-
}
|
33 |
-
|
34 |
-
//Checking for mobile browsers
|
35 |
-
function shrsb_is_mobile() {
|
36 |
-
if (isset($_SERVER['HTTP_X_OPERAMINI_PHONE'])){
|
37 |
-
$op = strtolower($_SERVER['HTTP_X_OPERAMINI_PHONE']);
|
38 |
-
} else {
|
39 |
-
$op = '';
|
40 |
-
}
|
41 |
-
$ua = strtolower($_SERVER['HTTP_USER_AGENT']);
|
42 |
-
$ac = strtolower($_SERVER['HTTP_ACCEPT']);
|
43 |
-
$isMobile = strpos($ac, 'application/vnd.wap.xhtml+xml') !== false
|
44 |
-
|| $op != ''
|
45 |
-
|| strpos($ua, 'sony') !== false
|
46 |
-
|| strpos($ua, 'symbian') !== false
|
47 |
-
|| strpos($ua, 'nokia') !== false
|
48 |
-
|| strpos($ua, 'samsung') !== false
|
49 |
-
|| strpos($ua, 'mobile') !== false
|
50 |
-
|| strpos($ua, 'windows ce') !== false
|
51 |
-
|| strpos($ua, 'epoc') !== false
|
52 |
-
|| strpos($ua, 'opera mini') !== false
|
53 |
-
|| strpos($ua, 'nitro') !== false
|
54 |
-
|| strpos($ua, 'j2me') !== false
|
55 |
-
|| strpos($ua, 'midp-') !== false
|
56 |
-
|| strpos($ua, 'cldc-') !== false
|
57 |
-
|| strpos($ua, 'netfront') !== false
|
58 |
-
|| strpos($ua, 'mot') !== false
|
59 |
-
|| strpos($ua, 'up.browser') !== false
|
60 |
-
|| strpos($ua, 'up.link') !== false
|
61 |
-
|| strpos($ua, 'audiovox') !== false
|
62 |
-
|| strpos($ua, 'blackberry') !== false
|
63 |
-
|| strpos($ua, 'ericsson,') !== false
|
64 |
-
|| strpos($ua, 'panasonic') !== false
|
65 |
-
|| strpos($ua, 'philips') !== false
|
66 |
-
|| strpos($ua, 'sanyo') !== false
|
67 |
-
|| strpos($ua, 'sharp') !== false
|
68 |
-
|| strpos($ua, 'sie-') !== false
|
69 |
-
|| strpos($ua, 'portalmmm') !== false
|
70 |
-
|| strpos($ua, 'blazer') !== false
|
71 |
-
|| strpos($ua, 'avantgo') !== false
|
72 |
-
|| strpos($ua, 'danger') !== false
|
73 |
-
|| strpos($ua, 'palm') !== false
|
74 |
-
|| strpos($ua, 'series60') !== false
|
75 |
-
|| strpos($ua, 'palmsource') !== false
|
76 |
-
|| strpos($ua, 'pocketpc') !== false
|
77 |
-
|| strpos($ua, 'smartphone') !== false
|
78 |
-
|| strpos($ua, 'rover') !== false
|
79 |
-
|| strpos($ua, 'ipaq') !== false
|
80 |
-
|| strpos($ua, 'au-mic,') !== false
|
81 |
-
|| strpos($ua, 'alcatel') !== false
|
82 |
-
|| strpos($ua, 'ericy') !== false
|
83 |
-
|| strpos($ua, 'up.link') !== false
|
84 |
-
|| strpos($ua, 'vodafone/') !== false
|
85 |
-
|| strpos($ua, 'wap1.') !== false
|
86 |
-
|| strpos($ua, 'wap2.') !== false
|
87 |
-
; // $isMobile
|
88 |
-
return $isMobile;
|
89 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/public.php
DELETED
@@ -1,1188 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// Functions related to mobile.
|
4 |
-
require_once 'mobile.php';
|
5 |
-
$shrsb_is_mobile = shrsb_is_mobile();
|
6 |
-
$shrsb_is_bot = shrsb_is_bot();
|
7 |
-
|
8 |
-
// Written in the footer if shareaholic-javascript is on
|
9 |
-
$shrsb_js_params = array();
|
10 |
-
$shrsb_tb_js_params = array();
|
11 |
-
$shrsb_rd_js_params = array();
|
12 |
-
$shrsb_cb_js_params = array();
|
13 |
-
|
14 |
-
$shrsb_bgimg_map = array(
|
15 |
-
'shr' => array(
|
16 |
-
'url' => SHRSB_PLUGPATH.'images/sharing-shr.png',
|
17 |
-
'padding' => '28px 0 0 10px',
|
18 |
-
'class' => 'shr-bookmarks-bg-shr',
|
19 |
-
),
|
20 |
-
'caring' => array(
|
21 |
-
'url' => SHRSB_PLUGPATH.'images/sharing-caring-hearts.png',
|
22 |
-
'padding' => '26px 0 0 10px',
|
23 |
-
'class' => 'shr-bookmarks-bg-caring',
|
24 |
-
),
|
25 |
-
'care-old' => array(
|
26 |
-
'url' => SHRSB_PLUGPATH.'images/sharing-caring.png',
|
27 |
-
'padding' => '26px 0 0 10px',
|
28 |
-
'class' => 'shr-bookmarks-bg-care-old',
|
29 |
-
),
|
30 |
-
'love' => array(
|
31 |
-
'url' => SHRSB_PLUGPATH.'images/share-love-hearts.png',
|
32 |
-
'padding' => '26px 0 0 10px',
|
33 |
-
'class' => 'shr-bookmarks-bg-love',
|
34 |
-
),
|
35 |
-
'wealth' => array(
|
36 |
-
'url' => SHRSB_PLUGPATH.'images/share-wealth.png',
|
37 |
-
'padding' => '35px 0 0 20px',
|
38 |
-
'class' => 'shr-bookmarks-bg-wealth',
|
39 |
-
),
|
40 |
-
'enjoy' => array(
|
41 |
-
'url' => SHRSB_PLUGPATH.'images/share-enjoy.png',
|
42 |
-
'padding' => '26px 0 0 10px',
|
43 |
-
'class' => 'shr-bookmarks-bg-enjoy',
|
44 |
-
),
|
45 |
-
'german' => array(
|
46 |
-
'url' => SHRSB_PLUGPATH.'images/share-german.png',
|
47 |
-
'padding' => '35px 0 0 20px',
|
48 |
-
'class' => 'shr-bookmarks-bg-german',
|
49 |
-
),
|
50 |
-
'knowledge' => array(
|
51 |
-
'url' => SHRSB_PLUGPATH.'images/share-knowledge.png',
|
52 |
-
'padding' => '35px 0 0 10px',
|
53 |
-
'class' => 'shr-bookmarks-bg-knowledge',
|
54 |
-
),
|
55 |
-
);
|
56 |
-
|
57 |
-
/**
|
58 |
-
* Helper method that returns array for the current post of
|
59 |
-
* array(
|
60 |
-
* 'link' => ..,
|
61 |
-
* 'title' => ..,
|
62 |
-
* 'mail_subject' => ..
|
63 |
-
* )
|
64 |
-
*/
|
65 |
-
function shrsb_post_info($post) {
|
66 |
-
global $shrsb_plugopts, $shrsb_bgimg_map;
|
67 |
-
|
68 |
-
//Just so you don't forget, $r means "results"
|
69 |
-
$r = array();
|
70 |
-
|
71 |
-
// if (position == manual or (home and index)) and no post_title
|
72 |
-
// then we are "Outside the loop".
|
73 |
-
$ismanual = $shrsb_plugopts['position'] == 'manual';
|
74 |
-
$ishome = is_home() &&
|
75 |
-
false!==strpos($shrsb_plugopts['pageorpost'],"index");
|
76 |
-
$isemptytitle = empty($post->post_title);
|
77 |
-
if($ismanual || ($ishome && $isemptytitle) || !in_the_loop()) {
|
78 |
-
|
79 |
-
if(!in_the_loop()) {
|
80 |
-
$link= 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
|
81 |
-
}
|
82 |
-
//Otherwise, it must be inside the loop
|
83 |
-
else {
|
84 |
-
if(($link = get_permalink($post->ID)) == false){
|
85 |
-
$link = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
|
86 |
-
}
|
87 |
-
}
|
88 |
-
$link = trim($link);
|
89 |
-
shrsb_log('Manual: Link Generation '.$link);
|
90 |
-
$r['link'] = $link;
|
91 |
-
$r['title'] = get_bloginfo('name') . wp_title('-', false);
|
92 |
-
$r['mail_subject'] = urlencode(get_bloginfo('name') . wp_title('-', false));
|
93 |
-
|
94 |
-
}
|
95 |
-
//We are "in the loop"
|
96 |
-
else {
|
97 |
-
$r['link'] = trim(get_permalink($post->ID));
|
98 |
-
shrsb_log("Loop mode Link Generation ".$r['link']);
|
99 |
-
$r['title'] = $post->post_title;
|
100 |
-
$r['mail_subject'] = urlencode($post->post_title);
|
101 |
-
}
|
102 |
-
|
103 |
-
// Determine how to handle post titles for Twitter
|
104 |
-
if (strlen($r['title']) >= 80) {
|
105 |
-
$r['short_title'] = urlencode(substr($r['title'], 0, 80)."[..]");
|
106 |
-
}
|
107 |
-
else {
|
108 |
-
$r['short_title'] = urlencode($r['title']);
|
109 |
-
}
|
110 |
-
return $r;
|
111 |
-
}
|
112 |
-
|
113 |
-
/**
|
114 |
-
* Returns array of values that should be used in recommendations js
|
115 |
-
*/
|
116 |
-
function shrsb_get_rd_config($post_id) {
|
117 |
-
|
118 |
-
global $shrsb_recommendations;
|
119 |
-
|
120 |
-
$r = shrsb_get_params($post_id);
|
121 |
-
|
122 |
-
$params = array(
|
123 |
-
'link' => $r['link'],
|
124 |
-
'apikey' => $r['apikey'] ? $r['apikey'] : '8afa39428933be41f8afdb8ea21a495c',
|
125 |
-
'number' => $shrsb_recommendations['num'],
|
126 |
-
'style' => $shrsb_recommendations['style']
|
127 |
-
);
|
128 |
-
|
129 |
-
return array_filter($params);
|
130 |
-
}
|
131 |
-
/**
|
132 |
-
* Returns array of values that should be used in classicbookmarks js
|
133 |
-
*/
|
134 |
-
function shrsb_get_cb_config($post_id) {
|
135 |
-
|
136 |
-
global $shrsb_cb;
|
137 |
-
|
138 |
-
$r = shrsb_get_params($post_id);
|
139 |
-
|
140 |
-
$params = array(
|
141 |
-
'link' => $r['link'],
|
142 |
-
'apikey' => $r['apikey'] ? $r['apikey'] : '8afa39428933be41f8afdb8ea21a495c',
|
143 |
-
'size' => $shrsb_cb['size']
|
144 |
-
);
|
145 |
-
|
146 |
-
return array_filter($params);
|
147 |
-
}
|
148 |
-
|
149 |
-
/**
|
150 |
-
* Returns array of values that should be used in shareaholic-publishers.js
|
151 |
-
*/
|
152 |
-
function shrsb_get_publisher_config($post_id) {
|
153 |
-
shrsb_log("get_publisher_config started");
|
154 |
-
global $default_spritegen;
|
155 |
-
$spritegen = $default_spritegen ? 'spritegen_default' : 'spritegen';
|
156 |
-
$spritegen_basepath = shrsb_correct_protocol($default_spritegen ? SHRSB_PLUGPATH : SHRSB_UPLOADPATH);
|
157 |
-
|
158 |
-
$r = shrsb_get_params($post_id);
|
159 |
-
|
160 |
-
//set default values if not set
|
161 |
-
if (!isset($r['spriteimg'])){$r['spriteimg'] = '';}
|
162 |
-
if (!isset($r['bgimg-padding'])){$r['bgimg-padding'] = '';}
|
163 |
-
|
164 |
-
$params = array(
|
165 |
-
'link' => $r['link'],
|
166 |
-
'short_link' => $r['short_link'],
|
167 |
-
'shortener' => $r['shortener'],
|
168 |
-
'shortener_key' => $r['shortener_key'],
|
169 |
-
'title' => $r['title'],
|
170 |
-
'notes' => $r['notes'],
|
171 |
-
'service' => $r['service'],
|
172 |
-
'apikey' => $r['apikey'] ? $r['apikey'] : '8afa39428933be41f8afdb8ea21a495c',
|
173 |
-
// we need this because wordpress won't pass it at all if it's FALSE
|
174 |
-
// and the default value for expand is true. We convert it to boolean in javascript
|
175 |
-
'expand' => $r['expand'] ? true : 'false',
|
176 |
-
'src' => $spritegen_basepath.$spritegen,
|
177 |
-
'localize' => true,
|
178 |
-
'share_src' => shrsb_correct_protocol($r['shrbase']),
|
179 |
-
'rel' => $r['reloption'],
|
180 |
-
'target' => $r['targetopt'] == '_blank' ? '_blank' : '_top',
|
181 |
-
'bgimg' => $r['bgimg-url'],
|
182 |
-
'bgimg_padding' => $r['bgimg-padding'],
|
183 |
-
'center' => $r['autocenter'] == 1,
|
184 |
-
'spaced' => $r['autocenter'] == 2,
|
185 |
-
'twitter_template' => $r['tweetconfig'],
|
186 |
-
'mode' => 'inject',
|
187 |
-
'spriteimg' => $r['spriteimg'],
|
188 |
-
'designer_toolTips' => $r['designer_toolTips'],
|
189 |
-
'tip_bg_color' => $r['tip_bg_color'], // tooltip background color
|
190 |
-
'tip_text_color' => $r['tip_text_color'], // tooltip text color
|
191 |
-
'dontShowShareCount' => $r['showShareCount'] == "0",
|
192 |
-
'shrlink' => $r['shrlink'],
|
193 |
-
);
|
194 |
-
|
195 |
-
shrsb_log("get_publisher_config completed");
|
196 |
-
return array_filter($params);
|
197 |
-
}
|
198 |
-
|
199 |
-
|
200 |
-
function shrsb_get_shortener_settings(){
|
201 |
-
global $shrsb_plugopts;
|
202 |
-
$shorty = @$shrsb_plugopts['shorty'];
|
203 |
-
$shortyapi = @$shrsb_plugopts['shortyapi'];
|
204 |
-
$shortener_key = '';
|
205 |
-
|
206 |
-
if (isset( $shorty ) ){
|
207 |
-
switch( $shorty ) {
|
208 |
-
case 'bitly':
|
209 |
-
case 'jmp':
|
210 |
-
$user = $shortyapi[$shorty]['user'];
|
211 |
-
$api = $shortyapi[$shorty]['key'];
|
212 |
-
$shortener_key = $user ? ($user.'%7c'.$api) : '';
|
213 |
-
break;
|
214 |
-
default:
|
215 |
-
}
|
216 |
-
}
|
217 |
-
return $shortener_key;
|
218 |
-
}
|
219 |
-
|
220 |
-
/**
|
221 |
-
* Returns array of all relevant information about the current post for sexy
|
222 |
-
*/
|
223 |
-
function shrsb_get_params($post_id) {
|
224 |
-
|
225 |
-
if(isset($shrsb_plugopts['sexybookmark']) && $shrsb_plugopts['sexybookmark'] != '1') {
|
226 |
-
return array();
|
227 |
-
}
|
228 |
-
|
229 |
-
shrsb_log("get_params start");
|
230 |
-
global $shrsb_plugopts, $shrsb_bgimg_map;
|
231 |
-
|
232 |
-
|
233 |
-
if($post_id >= 0){
|
234 |
-
$post = get_post($post_id);
|
235 |
-
}else{
|
236 |
-
//For handling the (manual mode && outside the loop)
|
237 |
-
$post = "";
|
238 |
-
}
|
239 |
-
|
240 |
-
|
241 |
-
// response parameters
|
242 |
-
$post_info = shrsb_post_info($post);
|
243 |
-
$r = array_merge($shrsb_plugopts, $post_info);
|
244 |
-
|
245 |
-
// Grab the short URL
|
246 |
-
$r['short_link'] = shrsb_get_fetch_url();
|
247 |
-
$r['shortener'] = $r['shorty'];
|
248 |
-
$r['shortener_key'] = shrsb_get_shortener_settings();
|
249 |
-
|
250 |
-
if($post_id >= 0){
|
251 |
-
$r['post_summary'] = urlencode(strip_tags(
|
252 |
-
strip_shortcodes($post->post_excerpt)));
|
253 |
-
|
254 |
-
if ($r['post_summary'] == "") {
|
255 |
-
$r['post_summary'] = urlencode(substr(strip_tags(strip_shortcodes($post->post_content)),0,300));
|
256 |
-
}
|
257 |
-
|
258 |
-
$r['shrsb_content'] = urlencode(strip_tags(strip_shortcodes($post->post_excerpt)));
|
259 |
-
if ($r['shrsb_content'] == "") {
|
260 |
-
$r['shrsb_content'] = urlencode(substr(strip_tags(strip_shortcodes($post->post_content)),0,300));
|
261 |
-
}
|
262 |
-
$r['shrsb_content'] = str_replace('+','%20',$r['shrsb_content']);
|
263 |
-
$r['post_summary'] = stripslashes(str_replace('+','%20',$r['post_summary']));
|
264 |
-
}
|
265 |
-
|
266 |
-
|
267 |
-
$r['site_name'] = get_bloginfo('name');
|
268 |
-
$r['mail_subject'] = str_replace("’","'",str_replace('+','%20',$r['mail_subject']));
|
269 |
-
|
270 |
-
// Grab post tags for Twittley tags. If there aren't any, use default tags
|
271 |
-
// set in plugin options page
|
272 |
-
$getkeywords = get_the_tags();
|
273 |
-
$r['d_tags'] = "";
|
274 |
-
$tags = array();
|
275 |
-
if (!empty($getkeywords) && !empty($d_tags)) {
|
276 |
-
foreach($getkeywords as $tag) {
|
277 |
-
$tags[] = $tag->name;
|
278 |
-
}
|
279 |
-
$r['d_tags'] = implode(',', $tags);
|
280 |
-
}
|
281 |
-
|
282 |
-
if($post_id >= 0){
|
283 |
-
// Compatibility fix for NextGen Gallery Plugin...
|
284 |
-
if( (strpos($r['post_summary'], '[') || strpos($r['post_summary'], ']')) ) {
|
285 |
-
$r['post_summary'] = "";
|
286 |
-
}
|
287 |
-
if((strpos($r['shrsb_content'], '[') || strpos($r['shrsb_content'],']'))) {
|
288 |
-
$r['shrsb_content'] = "";
|
289 |
-
}
|
290 |
-
}
|
291 |
-
$r['bgimg-url'] = '';
|
292 |
-
if(isset($shrsb_plugopts['bgimg-yes'])) {
|
293 |
-
$r['bgimg-url'] = $shrsb_bgimg_map[$shrsb_plugopts['bgimg']]['url'];
|
294 |
-
$r['bgimg-padding'] = $shrsb_bgimg_map[$shrsb_plugopts['bgimg']]['padding'];
|
295 |
-
}
|
296 |
-
|
297 |
-
// Select the background image
|
298 |
-
$bclasses = array('shr-bookmarks');
|
299 |
-
if (isset($shrsb_plugopts['bgimg-yes'])) {
|
300 |
-
$bclasses[] = $shrsb_bgimg_map[$shrsb_plugopts['bgimg']]['class'];
|
301 |
-
}
|
302 |
-
if ($shrsb_plugopts['expand'] == 1) {
|
303 |
-
$r['expand'] = true;
|
304 |
-
$bclasses[] = 'shr-bookmarks-expand';
|
305 |
-
}
|
306 |
-
if ($shrsb_plugopts['autocenter'] == 1) {
|
307 |
-
$bclasses[] = 'shr-bookmarks-center';
|
308 |
-
}
|
309 |
-
elseif ($shrsb_plugopts['autocenter'] == 2) {
|
310 |
-
$bclasses[] = 'shr-bookmarks-spaced';
|
311 |
-
}
|
312 |
-
$r['bookmarks-class'] = implode(' ', $bclasses);
|
313 |
-
|
314 |
-
if($post_id >= 0){
|
315 |
-
$r['notes'] = $r['post_summary'];
|
316 |
-
}else{
|
317 |
-
$r['notes'] = "";
|
318 |
-
}
|
319 |
-
|
320 |
-
shrsb_log("get_params completed");
|
321 |
-
return $r;
|
322 |
-
}
|
323 |
-
|
324 |
-
|
325 |
-
function shrsb_get_fetch_url() {
|
326 |
-
shrsb_log("get_fetch_url start");
|
327 |
-
global $post, $shrsb_plugopts, $wp_query; //globals
|
328 |
-
|
329 |
-
//get link but first check if inside or outside loop and what page it's on
|
330 |
-
$spost = $wp_query->post;
|
331 |
-
|
332 |
-
if($shrsb_plugopts['position'] == 'manual') {
|
333 |
-
//Check if outside the loop
|
334 |
-
if(!in_the_loop()) {
|
335 |
-
$perms= 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
|
336 |
-
}
|
337 |
-
//Otherwise, it must be inside the loop
|
338 |
-
else {
|
339 |
-
$perms = get_permalink($post->ID);
|
340 |
-
}
|
341 |
-
}
|
342 |
-
//Check if index page...
|
343 |
-
elseif(is_home() && false!==strpos($shrsb_plugopts['pageorpost'],"index")) {
|
344 |
-
//Check if outside the loop
|
345 |
-
if(!in_the_loop()) {
|
346 |
-
$perms= 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] ;
|
347 |
-
}
|
348 |
-
//Otherwise, it must be inside the loop
|
349 |
-
else {
|
350 |
-
$perms = get_permalink($post->ID);
|
351 |
-
}
|
352 |
-
}
|
353 |
-
//Apparently isn't on index page...
|
354 |
-
else {
|
355 |
-
$perms = get_permalink($post->ID);
|
356 |
-
}
|
357 |
-
$perms = trim($perms);
|
358 |
-
shrsb_log("URL ".$perms);
|
359 |
-
//if is post, and post is not published then return permalink and go back
|
360 |
-
if($post && get_post_status($post->ID) != 'publish') {
|
361 |
-
return $perms;
|
362 |
-
}
|
363 |
-
//if user chose not to use shortener, return nothing
|
364 |
-
if($shrsb_plugopts['shorty'] == 'none') {
|
365 |
-
// return no short_link
|
366 |
-
}
|
367 |
-
if ($shrsb_plugopts['shorty'] == 'tflp' && function_exists('permalink_to_twitter_link')) {
|
368 |
-
$fetch_url = permalink_to_twitter_link($perms);
|
369 |
-
}
|
370 |
-
elseif ($shrsb_plugopts['shorty'] == 'yourls' && function_exists('wp_ozh_yourls_raw_url')) {
|
371 |
-
$fetch_url = wp_ozh_yourls_raw_url();
|
372 |
-
}
|
373 |
-
|
374 |
-
if (!empty($fetch_url)) {
|
375 |
-
return $fetch_url;
|
376 |
-
}
|
377 |
-
shrsb_log("get_fetch_url start completed");
|
378 |
-
}
|
379 |
-
|
380 |
-
|
381 |
-
// Create an auto-insertion function
|
382 |
-
function shrsb_position_menu($post_content) {
|
383 |
-
global $post, $shrsb_plugopts, $shrsb_is_mobile, $shrsb_is_bot, $shrsb_js_params, $shrsb_rd_js_params, $shrsb_cb_js_params;
|
384 |
-
|
385 |
-
if(isset($shrsb_plugopts['sexybookmark']) && $shrsb_plugopts['sexybookmark'] != '1') {
|
386 |
-
return $post_content;
|
387 |
-
}
|
388 |
-
|
389 |
-
shrsb_log("Content Analysis started");
|
390 |
-
// If user selected manual positioning, get out.
|
391 |
-
if ($shrsb_plugopts['position']=='manual') {
|
392 |
-
if ($shrsb_plugopts['shareaholic-javascript'] == '1') {
|
393 |
-
|
394 |
-
|
395 |
-
if(in_the_loop()){
|
396 |
-
$config = shrsb_get_publisher_config($post->ID);
|
397 |
-
$shrsb_js_params['shr-publisher-'.$post->ID] = $config;
|
398 |
-
}else{
|
399 |
-
shrsb_log("Error: the function should not be called outside the loop");
|
400 |
-
}
|
401 |
-
|
402 |
-
}
|
403 |
-
shrsb_log("Manual:Content Analysis returning ");
|
404 |
-
return $post_content;
|
405 |
-
}
|
406 |
-
|
407 |
-
// If user selected hide from mobile and is mobile, get out.
|
408 |
-
elseif ($shrsb_plugopts['mobile-hide']=='yes' && false!==$shrsb_is_mobile || $shrsb_plugopts['mobile-hide']=='yes' && false!==$shrsb_is_bot) {
|
409 |
-
shrsb_log("Not Manual:Content Analysis returning");
|
410 |
-
return $post_content;
|
411 |
-
}
|
412 |
-
|
413 |
-
$output = "";
|
414 |
-
$likeButtonSetTop = "";
|
415 |
-
$likeButtonSetBottom = "";
|
416 |
-
|
417 |
-
// Decide whether or not to generate the bookmarks.
|
418 |
-
if ( (is_single() && false!==strpos($shrsb_plugopts['pageorpost'],"post")) ||
|
419 |
-
(is_page() && false!==strpos($shrsb_plugopts['pageorpost'],"page")) ||
|
420 |
-
(is_home() && false!==strpos($shrsb_plugopts['pageorpost'],"index")) ||
|
421 |
-
(is_category() && false!==strpos($shrsb_plugopts['pageorpost'],"category") ) ||
|
422 |
-
(is_feed() && !empty($shrsb_plugopts['feed']))) {
|
423 |
-
|
424 |
-
// socials should be generated and added
|
425 |
-
if( ($hide_sexy = get_post_meta($post->ID, 'Hide SexyBookmarks', true)) != 1 ){
|
426 |
-
// Checking for new Mode
|
427 |
-
if ($shrsb_plugopts['shareaholic-javascript'] == '1') {
|
428 |
-
$output = '<div class="shr-publisher-'.$post->ID.'"></div>';
|
429 |
-
$likeButtonSetTop = get_shr_like_buttonset('Top', 1);
|
430 |
-
$likeButtonSetBottom = get_shr_like_buttonset('Bottom', 1);
|
431 |
-
$config = shrsb_get_publisher_config($post->ID);
|
432 |
-
|
433 |
-
$shrsb_js_params['shr-publisher-'.$post->ID] = $config;
|
434 |
-
}
|
435 |
-
else {
|
436 |
-
$output=get_sexy();
|
437 |
-
}
|
438 |
-
shrsb_log("Sexybookmark HTML here <!-- ".$output.$likeButtonSetTop.$likeButtonSetBottom."--> Inspect me check the html");
|
439 |
-
}
|
440 |
-
}
|
441 |
-
// Place of bookmarks and return w/ post content.
|
442 |
-
$r = $post_content;
|
443 |
-
if (!empty($output)) {
|
444 |
-
|
445 |
-
switch($shrsb_plugopts['position']) {
|
446 |
-
case 'above':
|
447 |
-
$r = $output.$post_content;
|
448 |
-
break;
|
449 |
-
case 'both':
|
450 |
-
$r = $output.$post_content.$output;
|
451 |
-
break;
|
452 |
-
case 'below':
|
453 |
-
$r = $post_content.$output;
|
454 |
-
break;
|
455 |
-
default:
|
456 |
-
error_log(__('An unknown error occurred in SexyBookmarks','shrsb'));
|
457 |
-
}
|
458 |
-
|
459 |
-
$r = $likeButtonSetTop.$r.$likeButtonSetBottom;
|
460 |
-
}
|
461 |
-
|
462 |
-
shrsb_log("Content Analysis Completed");
|
463 |
-
return $r;
|
464 |
-
} // End shrsb_position_menu...
|
465 |
-
|
466 |
-
|
467 |
-
function get_shr_like_buttonset($pos = 'Bottom', $return_type = NULL, $settings = NULL) { // $pos = 'Bottom'/'Top' Case sensitive
|
468 |
-
global $shrsb_plugopts, $post;
|
469 |
-
|
470 |
-
if(!$settings) $settings = $shrsb_plugopts;
|
471 |
-
|
472 |
-
$usage = "Manual";
|
473 |
-
if($return_type) $usage = "Automatic";
|
474 |
-
|
475 |
-
if(in_the_loop()){
|
476 |
-
$href = get_permalink($post->ID);
|
477 |
-
$title = urlencode($post->post_title);
|
478 |
-
}else{
|
479 |
-
$href = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
|
480 |
-
$title = urlencode(wp_title("",false));
|
481 |
-
}
|
482 |
-
|
483 |
-
if(is_single()){
|
484 |
-
$href = get_permalink($post->ID);
|
485 |
-
$title = urlencode($post->post_title);
|
486 |
-
}
|
487 |
-
|
488 |
-
if(empty($title)) {
|
489 |
-
$title = get_bloginfo('name') . wp_title('-', false);
|
490 |
-
}
|
491 |
-
|
492 |
-
$output = "";
|
493 |
-
$float = "none";
|
494 |
-
|
495 |
-
if($settings['likeButtonSetAlignment'.$pos] == '1') {
|
496 |
-
$float = "right";
|
497 |
-
}
|
498 |
-
|
499 |
-
if($settings['likeButtonSet'.$pos] &&
|
500 |
-
($settings['fbLikeButton'.$pos] == '1' || $settings['fbSendButton'.$pos] == '1' || $settings['googlePlusOneButton'.$pos] == '1' || $settings['tweetButton'.$pos] == '1')) {
|
501 |
-
|
502 |
-
$spacer = '<div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>';
|
503 |
-
$like_layout = $settings['likeButtonSetSize'.$pos];
|
504 |
-
$height = "";
|
505 |
-
switch($like_layout) {
|
506 |
-
case '2':
|
507 |
-
$height = "height:60px";
|
508 |
-
break;
|
509 |
-
default:
|
510 |
-
$height = "height:30px";
|
511 |
-
break;
|
512 |
-
}
|
513 |
-
$output .= "<div class='shareaholic-like-buttonset' style='float:$float;$height;'>";
|
514 |
-
$plusOneHTML = "";
|
515 |
-
$fbLikeHTML = "";
|
516 |
-
$fbSendHTML = "";
|
517 |
-
$tweetButtonHTML = "";
|
518 |
-
|
519 |
-
if($settings['googlePlusOneButton'.$pos] == '1') {
|
520 |
-
$plusoneSize = $like_layout;
|
521 |
-
switch($plusoneSize) {
|
522 |
-
case '1':
|
523 |
-
$plusoneSize = "medium";
|
524 |
-
break;
|
525 |
-
case '2':
|
526 |
-
$plusoneSize = "tall";
|
527 |
-
break;
|
528 |
-
default:
|
529 |
-
$plusoneSize = "standard";
|
530 |
-
break;
|
531 |
-
}
|
532 |
-
$plusoneCount = $settings['likeButtonSetCount'.$pos];
|
533 |
-
$plusOneHTML = "<a class='shareaholic-googleplusone' data-shr_size='$plusoneSize' data-shr_count='$plusoneCount' data-shr_href='$href' data-shr_title='$title'></a>";
|
534 |
-
}
|
535 |
-
|
536 |
-
if($settings['tweetButton'.$pos] == '1'){
|
537 |
-
$tweetButtonSize = $like_layout;
|
538 |
-
$tweetButtonCount = $settings['likeButtonSetCount'.$pos];
|
539 |
-
|
540 |
-
switch($tweetButtonSize) {
|
541 |
-
case '1':
|
542 |
-
$tweetButtonSize = "horizontal";
|
543 |
-
if(!$tweetButtonCount && $tweetButtonCount != "false") $tweetButtonSize = "horizontal";
|
544 |
-
break;
|
545 |
-
case '2':
|
546 |
-
$tweetButtonSize = "vertical";
|
547 |
-
break;
|
548 |
-
default:
|
549 |
-
$tweetButtonSize = "none";
|
550 |
-
if(!$tweetButtonCount && $tweetButtonCount != "false") $tweetButtonSize = "horizontal";
|
551 |
-
break;
|
552 |
-
}
|
553 |
-
|
554 |
-
if ($tweetButtonCount === "false") {
|
555 |
-
$tweetButtonSize = "none";
|
556 |
-
}
|
557 |
-
|
558 |
-
$tweetButtonHTML = "<a class='shareaholic-tweetbutton' data-shr_count='$tweetButtonSize' data-shr_href='$href' data-shr_title='$title'></a>";
|
559 |
-
}
|
560 |
-
|
561 |
-
if($settings['fbLikeButton'.$pos] == '1') {
|
562 |
-
//$like_layout = $settings['likeButtonSetSize'.$pos];
|
563 |
-
switch($like_layout) {
|
564 |
-
case '1':
|
565 |
-
$like_layout = "button_count";
|
566 |
-
break;
|
567 |
-
case '2':
|
568 |
-
$like_layout = "box_count";
|
569 |
-
break;
|
570 |
-
default:
|
571 |
-
$like_layout = "standard";
|
572 |
-
break;
|
573 |
-
}
|
574 |
-
$fbLikeHTML = "<a class='shareaholic-fblike' data-shr_layout='$like_layout' data-shr_showfaces='false' data-shr_href='$href' data-shr_title='$title'></a>";
|
575 |
-
}
|
576 |
-
|
577 |
-
if($settings['fbSendButton'.$pos] == '1') {
|
578 |
-
$fbSendHTML = "<a class='shareaholic-fbsend' data-shr_href='$href'></a>";
|
579 |
-
}
|
580 |
-
|
581 |
-
foreach($settings['likeButtonOrder'.$pos] as $likeOption) {
|
582 |
-
switch($likeOption) {
|
583 |
-
case "shr-fb-like":
|
584 |
-
$output .= $fbLikeHTML;
|
585 |
-
break;
|
586 |
-
case "shr-plus-one":
|
587 |
-
$output .= $plusOneHTML;
|
588 |
-
break;
|
589 |
-
case "shr-fb-send":
|
590 |
-
$output .= $fbSendHTML;
|
591 |
-
break;
|
592 |
-
case "shr-tw-button":
|
593 |
-
$output .= $tweetButtonHTML;
|
594 |
-
break;
|
595 |
-
}
|
596 |
-
}
|
597 |
-
$output .= '</div>';
|
598 |
-
$output = $spacer.$output.$spacer;
|
599 |
-
}
|
600 |
-
shrsb_log("<!-- $output -->");
|
601 |
-
$output = "<!-- Start Shareaholic LikeButtonSet$pos $usage -->".$output."<!-- End Shareaholic LikeButtonSet$pos $usage -->";
|
602 |
-
|
603 |
-
if ($return_type == 1){
|
604 |
-
return $output;
|
605 |
-
}else{
|
606 |
-
echo $output;
|
607 |
-
}
|
608 |
-
}
|
609 |
-
|
610 |
-
function selfserv_topbar(){
|
611 |
-
shrsb_get_topbar("Manual");
|
612 |
-
}
|
613 |
-
/*
|
614 |
-
* Sample Html
|
615 |
-
* <div class="shr-toolbox" shr_form_factor="shareaholic-top-bar">
|
616 |
-
* <div class="shareaholic-like-buttonset" >
|
617 |
-
* <a class="shareaholic-fblike" data-shr_layout="button_count" data-shr_showfaces="false" data-shr_href="http%3A%2F%2Flocalhost%2Fwordpress%2F%3Fp%3D1" data-shr_title="Hello+world%21"></a>
|
618 |
-
* <a class="shareaholic-fbsend" data-shr_href="http%3A%2F%2Flocalhost%2Fwordpress%2F%3Fp%3D1"></a>
|
619 |
-
* <a class="shareaholic-googleplusone" data-shr_size="medium" data-shr_count="true" data-shr_href="http%3A%2F%2Flocalhost%2Fwordpress%2F%3Fp%3D1" data-shr_title="Hello+world%21"></a>
|
620 |
-
* <a class="shareaholic-tweetbutton" data-shr_count="horizontal" data-shr_href="http%3A%2F%2Flocalhost%2Fwordpress%2F%3Fp%3D1" data-shr_title="Hello+world%21"></a>
|
621 |
-
* </div>
|
622 |
-
* </div>
|
623 |
-
*/
|
624 |
-
function shrsb_get_topbar($usage = NULL){
|
625 |
-
|
626 |
-
if(empty($usage)) $usage = "Automatic";
|
627 |
-
|
628 |
-
shrsb_log("get_topbar started");
|
629 |
-
global $shrsb_plugopts,$shrsb_tb_plugopts;
|
630 |
-
|
631 |
-
$output = "";
|
632 |
-
$html = "";
|
633 |
-
//Decide whether to display
|
634 |
-
|
635 |
-
if ($shrsb_plugopts['shareaholic-javascript'] == '1' && isset($shrsb_tb_plugopts['topbar']) && ($shrsb_tb_plugopts['topbar'] == '1') &&(is_single() && false!==strpos($shrsb_tb_plugopts['pageorpost'],"post")) ||
|
636 |
-
(is_page() && false!==strpos($shrsb_tb_plugopts['pageorpost'],"page")) ||
|
637 |
-
(is_home() && false!==strpos($shrsb_tb_plugopts['pageorpost'],"index")) ||
|
638 |
-
(is_category() && false!==strpos($shrsb_tb_plugopts['pageorpost'],"category") )) {
|
639 |
-
$likeButtonSet = get_shr_like_buttonset('Top', 1, $shrsb_tb_plugopts);
|
640 |
-
$html = <<<EOH
|
641 |
-
<div class="shr-toolbox" shr_form_factor="shareaholic-top-bar">
|
642 |
-
$likeButtonSet
|
643 |
-
</div>
|
644 |
-
EOH;
|
645 |
-
|
646 |
-
}
|
647 |
-
shrsb_log("Topbar HTML here <!-- $html --> Inspect me check the html");
|
648 |
-
$output = "<!-- Start Shareaholic TopSharingBar $usage -->$html<!-- End Shareaholic TopSharingBar $usage -->";
|
649 |
-
shrsb_log("get_topbar completed");
|
650 |
-
echo $output;
|
651 |
-
|
652 |
-
}
|
653 |
-
|
654 |
-
function shrsb_get_recommendations($post_content){
|
655 |
-
|
656 |
-
if(empty($usage)) $usage = "Automatic";
|
657 |
-
|
658 |
-
shrsb_log("get_recommendations started");
|
659 |
-
global $shrsb_plugopts,$shrsb_recommendations,$post, $shrsb_rd_js_params;
|
660 |
-
|
661 |
-
$output = "";
|
662 |
-
$html = "";
|
663 |
-
//Decide whether to display
|
664 |
-
|
665 |
-
if ($shrsb_plugopts['shareaholic-javascript'] == '1' && isset($shrsb_recommendations['recommendations']) && ($shrsb_recommendations['recommendations'] == '1') &&(is_single() && false!==strpos($shrsb_recommendations['pageorpost'],"post")) ||
|
666 |
-
(is_page() && false!==strpos($shrsb_recommendations['pageorpost'],"page")) ||
|
667 |
-
(is_home() && false!==strpos($shrsb_recommendations['pageorpost'],"index")) ||
|
668 |
-
(is_category() && false!==strpos($shrsb_recommendations['pageorpost'],"category") )) {
|
669 |
-
|
670 |
-
if(in_the_loop()){
|
671 |
-
$shrsb_rd_js_params['shr_rd-'.$post->ID] = shrsb_get_rd_config($post->ID);
|
672 |
-
$shrsb_cb_js_params['shr_cb-'.$post->ID] = shrsb_get_cb_config($post->ID);
|
673 |
-
$html .= '<div class="shr_rd-'.$post->ID.'"></div>';
|
674 |
-
shrsb_log("Loop:get_sexy new mode found, returning ");
|
675 |
-
}else{
|
676 |
-
$shrsb_rd_js_params['shr_rd-'.$post->ID] = shrsb_get_rd_config($post->ID);
|
677 |
-
$html .= '<div class="shr_rd"></div>';
|
678 |
-
shrsb_log("Not Loop:get_sexy new mode found, returning ");
|
679 |
-
}
|
680 |
-
|
681 |
-
}
|
682 |
-
shrsb_log("Recommendations HTML here <!-- $html --> Inspect me check the html");
|
683 |
-
$output = "<!-- Start Shareaholic Recommendations $usage -->$html<!-- End Shareaholic Recommendations $usage -->";
|
684 |
-
|
685 |
-
return $post_content.$output;
|
686 |
-
}
|
687 |
-
function shrsb_get_cb($post_content){
|
688 |
-
|
689 |
-
if(empty($usage)) $usage = "Automatic";
|
690 |
-
|
691 |
-
shrsb_log("get_cb started");
|
692 |
-
global $shrsb_plugopts,$shrsb_cb,$post, $shrsb_cb_js_params;
|
693 |
-
|
694 |
-
$output = "";
|
695 |
-
$html = "";
|
696 |
-
//Decide whether to display
|
697 |
-
|
698 |
-
if ($shrsb_plugopts['shareaholic-javascript'] == '1' && isset($shrsb_cb['cb']) && ($shrsb_cb['cb'] == '1') &&(is_single() && false!==strpos($shrsb_cb['pageorpost'],"post")) ||
|
699 |
-
(is_page() && false!==strpos($shrsb_cb['pageorpost'],"page")) ||
|
700 |
-
(is_home() && false!==strpos($shrsb_cb['pageorpost'],"index")) ||
|
701 |
-
(is_category() && false!==strpos($shrsb_cb['pageorpost'],"category") )) {
|
702 |
-
|
703 |
-
$html .= "<div style='clear:both'></div>" ;
|
704 |
-
if(in_the_loop()){
|
705 |
-
$shrsb_cb_js_params['shr_cb-'.$post->ID] = shrsb_get_cb_config($post->ID);
|
706 |
-
$html .= '<div class="shr_cb-'.$post->ID.'"></div>';
|
707 |
-
shrsb_log("Loop:get_cb new mode found, returning ");
|
708 |
-
}else{
|
709 |
-
$shrsb_cb_js_params['shr_cb-'.$post->ID] = shrsb_get_cb_config($post->ID);
|
710 |
-
$html .= '<div class="shr_cb"></div>';
|
711 |
-
shrsb_log("Not Loop:get_cb new mode found, returning ");
|
712 |
-
}
|
713 |
-
$html .= "<div style='clear:both'></div>" ;
|
714 |
-
|
715 |
-
|
716 |
-
}
|
717 |
-
shrsb_log("Classic Bookmarks HTML here <!-- $html --> Inspect me check the html");
|
718 |
-
$output = "<!-- Start Shareaholic ClassicBookmarks $usage -->$html<!-- End Shareaholic ClassicBookmarks $usage -->";
|
719 |
-
|
720 |
-
return $post_content.$output;
|
721 |
-
}
|
722 |
-
|
723 |
-
|
724 |
-
function get_sexy() {
|
725 |
-
shrsb_log("get_sexy started");
|
726 |
-
global $shrsb_plugopts, $wp_query, $post;
|
727 |
-
|
728 |
-
$output = "";
|
729 |
-
|
730 |
-
// If sexybookmark is disabled then return empty html
|
731 |
-
if(isset($shrsb_plugopts['sexybookmark']) && $shrsb_plugopts['sexybookmark'] != '1') {
|
732 |
-
return $output;
|
733 |
-
}
|
734 |
-
|
735 |
-
$spost = $wp_query->post;
|
736 |
-
|
737 |
-
|
738 |
-
if ($shrsb_plugopts['shareaholic-javascript'] == '1') {
|
739 |
-
|
740 |
-
if(in_the_loop()){
|
741 |
-
$output .= '<div class="shr-publisher-'.$post->ID.'"></div>';
|
742 |
-
shrsb_log("Loop:get_sexy new mode found, returning ");
|
743 |
-
return $output;
|
744 |
-
}else{
|
745 |
-
$output .= '<div class="shr_class shareaholic-show-on-load"></div>';
|
746 |
-
shrsb_log("Not Loop:get_sexy new mode found, returning ");
|
747 |
-
return $output;
|
748 |
-
}
|
749 |
-
}
|
750 |
-
|
751 |
-
//For Old Mode Only
|
752 |
-
if($shrsb_plugopts['position'] == 'manual') {
|
753 |
-
|
754 |
-
//Check if outside the loop
|
755 |
-
if(!in_the_loop()) {
|
756 |
-
$perms= 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] ;
|
757 |
-
//$perms = "";
|
758 |
-
shrsb_log("Manual:Not in Loop: ".$perms);
|
759 |
-
$title = urlencode(get_bloginfo('name') . wp_title('-', false));
|
760 |
-
$feedperms = strtolower('http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
|
761 |
-
$mail_subject = urlencode(get_bloginfo('name') . wp_title('-', false));
|
762 |
-
}
|
763 |
-
|
764 |
-
//Otherwise, it must be inside the loop
|
765 |
-
else {
|
766 |
-
$perms = get_permalink($post->ID);
|
767 |
-
shrsb_log("Manual:In Loop: ".$perms);
|
768 |
-
$title = urlencode($post->post_title);
|
769 |
-
$feedperms = strtolower($perms);
|
770 |
-
$mail_subject = urlencode($post->post_title);
|
771 |
-
}
|
772 |
-
|
773 |
-
}//manual mode
|
774 |
-
|
775 |
-
//Check if index page...
|
776 |
-
elseif(is_home() && false!==strpos($shrsb_plugopts['pageorpost'],"index")) {
|
777 |
-
|
778 |
-
//Check if outside the loop
|
779 |
-
if(!in_the_loop()) {
|
780 |
-
$perms= 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
|
781 |
-
//$perms= "";
|
782 |
-
shrsb_log("NotManualqqqq:Not in Loop: ".$perms);
|
783 |
-
$title = get_bloginfo('name') . wp_title('-', false);
|
784 |
-
$feedperms = strtolower('http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] );
|
785 |
-
$mail_subject = urlencode(get_bloginfo('name') . wp_title('-', false));
|
786 |
-
}
|
787 |
-
|
788 |
-
//Otherwise, it must be inside the loop
|
789 |
-
else {
|
790 |
-
$perms = get_permalink($post->ID);
|
791 |
-
shrsb_log("NotManual:In Loop: ".$perms);
|
792 |
-
$title = $post->post_title;
|
793 |
-
$feedperms = strtolower($perms);
|
794 |
-
$mail_subject = urlencode($post->post_title);
|
795 |
-
}
|
796 |
-
}
|
797 |
-
//Apparently isn't on index page...
|
798 |
-
else {
|
799 |
-
$perms = get_permalink($post->ID);
|
800 |
-
shrsb_log("Dont know in loop or not: ".$perms);
|
801 |
-
$title = $post->post_title;
|
802 |
-
$feedperms = strtolower($perms);
|
803 |
-
$mail_subject = urlencode($post->post_title);
|
804 |
-
}
|
805 |
-
|
806 |
-
// Grab the short URL
|
807 |
-
$fetch_url = shrsb_get_fetch_url();
|
808 |
-
|
809 |
-
|
810 |
-
//Determine how to handle post titles for Twitter
|
811 |
-
if (strlen($title) >= 80) {
|
812 |
-
$short_title = urlencode(substr($title, 0, 80)."[..]");
|
813 |
-
}
|
814 |
-
else {
|
815 |
-
$short_title = urlencode($title);
|
816 |
-
}
|
817 |
-
|
818 |
-
$title=urlencode($title);
|
819 |
-
|
820 |
-
$shrsb_content = urlencode(strip_tags(strip_shortcodes($post->post_excerpt)));
|
821 |
-
|
822 |
-
if ($shrsb_content == "") { $shrsb_content = urlencode(substr(strip_tags(strip_shortcodes($post->post_content)),0,300)); }
|
823 |
-
|
824 |
-
$shrsb_content = str_replace('+','%20',$shrsb_content);
|
825 |
-
$post_summary = stripslashes($shrsb_content);
|
826 |
-
$site_name = get_bloginfo('name');
|
827 |
-
$mail_subject = str_replace('+','%20',$mail_subject);
|
828 |
-
$mail_subject = str_replace("’","'",$mail_subject);
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
// Grab post tags for Twittley tags. If there aren't any, use default tags set in plugin options page
|
833 |
-
$getkeywords = get_the_tags();
|
834 |
-
if($getkeywords) {
|
835 |
-
foreach($getkeywords as $tag) {
|
836 |
-
$keywords[]=$tag->name;
|
837 |
-
}
|
838 |
-
$keywords = implode(',', $keywords);
|
839 |
-
if(!empty($getkeywords) && !empty($d_tags)) {
|
840 |
-
$d_tags=substr($d_tags, 0, count($d_tags)-2);
|
841 |
-
}
|
842 |
-
}
|
843 |
-
|
844 |
-
|
845 |
-
// Check permalink setup for proper feed link
|
846 |
-
if (false !== strpos($feedperms,'?') || false !== strpos($feedperms,'.php', max(0,strlen($feedperms) - 4))) {
|
847 |
-
$feedstructure = '&feed=comments-rss2';
|
848 |
-
}
|
849 |
-
else {
|
850 |
-
if ('/' == $feedperms[strlen($feedperms) - 1]) {
|
851 |
-
$feedstructure = 'feed';
|
852 |
-
}
|
853 |
-
else {
|
854 |
-
$feedstructure = '/feed';
|
855 |
-
}
|
856 |
-
}
|
857 |
-
|
858 |
-
|
859 |
-
// Compatibility fix for NextGen Gallery Plugin...
|
860 |
-
if( (strpos($post_summary, '[') || strpos($post_summary, ']')) ) {
|
861 |
-
$post_summary = "";
|
862 |
-
}
|
863 |
-
if( (strpos($shrsb_content, '[') || strpos($shrsb_content,']')) ) {
|
864 |
-
$shrsb_content = "";
|
865 |
-
}
|
866 |
-
|
867 |
-
|
868 |
-
// Select the background image
|
869 |
-
if(!isset($shrsb_plugopts['bgimg-yes'])) {
|
870 |
-
$bgchosen = '';
|
871 |
-
}
|
872 |
-
else {
|
873 |
-
$bgchosen = ' shr-bookmarks-bg-';
|
874 |
-
|
875 |
-
switch($shrsb_plugopts['bgimg']) {
|
876 |
-
case 'care-old':
|
877 |
-
$bgchosen .= 'caring-old';
|
878 |
-
break;
|
879 |
-
default:
|
880 |
-
$bgchosen .= $shrsb_plugopts['bgimg'];
|
881 |
-
}
|
882 |
-
}
|
883 |
-
|
884 |
-
|
885 |
-
$expand=$shrsb_plugopts['expand']?' shr-bookmarks-expand':'';
|
886 |
-
switch($shrsb_plugopts['autocenter']) {
|
887 |
-
case 1:
|
888 |
-
$autocenter = ' shr-bookmarks-center';
|
889 |
-
break;
|
890 |
-
case 2:
|
891 |
-
$autocenter = ' shr-bookmarks-spaced';
|
892 |
-
break;
|
893 |
-
default:
|
894 |
-
$autocenter = '';
|
895 |
-
}
|
896 |
-
|
897 |
-
|
898 |
-
//Write the sexybookmarks menu
|
899 |
-
$socials = "\n\n";
|
900 |
-
$socials .= '<div class="shr-bookmarks'.$expand.$autocenter.$bgchosen.'">'."\n".'<ul class="socials">'."\n";
|
901 |
-
foreach ($shrsb_plugopts['bookmark'] as $name) {
|
902 |
-
switch ($name) {
|
903 |
-
case 'shr-twitter':
|
904 |
-
$socials.=bookmark_list_item($name, array(
|
905 |
-
'permalink'=>$perms,
|
906 |
-
'title'=>$title,
|
907 |
-
));
|
908 |
-
break;
|
909 |
-
case 'shr-identica':
|
910 |
-
$socials.=bookmark_list_item($name, array(
|
911 |
-
'short_title'=>$short_title,
|
912 |
-
'fetch_url'=>$fetch_url,
|
913 |
-
));
|
914 |
-
break;
|
915 |
-
case 'shr-mail':
|
916 |
-
$socials.=bookmark_list_item($name, array(
|
917 |
-
'title'=>$mail_subject,
|
918 |
-
'post_summary'=>$post_summary,
|
919 |
-
'permalink'=>$perms,
|
920 |
-
));
|
921 |
-
break;
|
922 |
-
case 'shr-tomuse':
|
923 |
-
$socials.=bookmark_list_item($name, array(
|
924 |
-
'title'=>$mail_subject,
|
925 |
-
'post_summary'=>$post_summary,
|
926 |
-
'permalink'=>$perms,
|
927 |
-
));
|
928 |
-
break;
|
929 |
-
case 'shr-diigo':
|
930 |
-
$socials.=bookmark_list_item($name, array(
|
931 |
-
'sexy_teaser'=>$shrsb_content,
|
932 |
-
'permalink'=>$perms,
|
933 |
-
'title'=>$title,
|
934 |
-
));
|
935 |
-
break;
|
936 |
-
case 'shr-linkedin':
|
937 |
-
$socials.=bookmark_list_item($name, array(
|
938 |
-
'post_summary'=>$post_summary,
|
939 |
-
'site_name'=>$site_name,
|
940 |
-
'permalink'=>$perms,
|
941 |
-
'title'=>$title,
|
942 |
-
));
|
943 |
-
break;
|
944 |
-
case 'shr-tumblr':
|
945 |
-
$socials.=bookmark_list_item($name, array(
|
946 |
-
'permalink'=>urlencode($perms),
|
947 |
-
'title'=>$title,
|
948 |
-
));
|
949 |
-
break;
|
950 |
-
default:
|
951 |
-
$socials.=bookmark_list_item($name, array(
|
952 |
-
'post_summary'=>$post_summary,
|
953 |
-
'permalink'=>$perms,
|
954 |
-
'title'=>$title,
|
955 |
-
));
|
956 |
-
break;
|
957 |
-
}
|
958 |
-
}
|
959 |
-
$socials.='</ul>';
|
960 |
-
if ($shrsb_plugopts['shrlink'] == 1) {
|
961 |
-
$socials.= '<div style="clear: both;"></div>';
|
962 |
-
$socials.= '<div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="https://shareaholic.com/?src=pub">Get Shareaholic</a></div>';
|
963 |
-
}
|
964 |
-
$socials.= '<div style="clear: both;"></div></div>';
|
965 |
-
$socials.="\n\n";
|
966 |
-
shrsb_log("get_sexy completed");
|
967 |
-
return $socials;
|
968 |
-
}
|
969 |
-
|
970 |
-
// This function is what allows people to insert the menu wherever they please rather than above/below a post... (depreciated)
|
971 |
-
function selfserv_sexy() {
|
972 |
-
global $post;
|
973 |
-
if(($hide_sexy = get_post_meta($post->ID, 'Hide SexyBookmarks', true)) != 1 ){
|
974 |
-
echo "<!-- Start Shareaholic Sexybookmarks Manual -->";
|
975 |
-
echo get_sexy();
|
976 |
-
echo "<!-- End Shareaholic Sexybookmarks Manual -->";
|
977 |
-
}
|
978 |
-
|
979 |
-
|
980 |
-
}
|
981 |
-
|
982 |
-
//Same as above function, just a diff name
|
983 |
-
function selfserv_shareaholic() {
|
984 |
-
global $post;
|
985 |
-
|
986 |
-
if(in_the_loop()){
|
987 |
-
if(($hide_sexy = get_post_meta($post->ID, 'Hide SexyBookmarks', true)) != 1 )
|
988 |
-
echo get_sexy();
|
989 |
-
}else{
|
990 |
-
echo get_sexy();
|
991 |
-
}
|
992 |
-
|
993 |
-
}
|
994 |
-
|
995 |
-
// Write the <head> code only on pages that the menu is set to display
|
996 |
-
function shrsb_publicStyles() {
|
997 |
-
global $shrsb_plugopts, $post, $shrsb_custom_sprite;
|
998 |
-
|
999 |
-
// If custom field is set, do not display sexybookmarks
|
1000 |
-
if ($post && ($hide_sexy = get_post_meta($post->ID, 'Hide SexyBookmarks', true)) == 1) {
|
1001 |
-
echo "\n\n".'<!-- '.__('SexyBookmarks has been disabled on this page', 'shrsb').' -->'."\n\n";
|
1002 |
-
}
|
1003 |
-
elseif ($shrsb_plugopts['shareaholic-javascript'] != '1') {
|
1004 |
-
//custom mods rule over custom css
|
1005 |
-
if ($shrsb_plugopts['custom-mods'] != 'yes') {
|
1006 |
-
if($shrsb_custom_sprite != '') {
|
1007 |
-
$surl = $shrsb_custom_sprite;
|
1008 |
-
}
|
1009 |
-
else {
|
1010 |
-
$surl = SHRSB_PLUGPATH.'css/style.css';
|
1011 |
-
}
|
1012 |
-
}
|
1013 |
-
elseif ($shrsb_plugopts['custom-mods'] == 'yes') {
|
1014 |
-
$surl = WP_CONTENT_URL.'/sexy-mods/css/style.css';
|
1015 |
-
}
|
1016 |
-
wp_enqueue_style('sexy-bookmarks', $surl, false, SHRSB_vNum, 'all');
|
1017 |
-
}
|
1018 |
-
}
|
1019 |
-
function shrsb_publicScripts() {
|
1020 |
-
global $shrsb_plugopts, $post, $default_spritegen, $shrsb_debug,$shrsb_tb_plugopts, $shrsb_analytics, $shrsb_recommendations, $shrsb_cb;
|
1021 |
-
|
1022 |
-
$spritegen = $default_spritegen ? 'spritegen_default' : 'spritegen';
|
1023 |
-
$spritegen_basepath = $default_spritegen ? SHRSB_PLUGPATH : SHRSB_UPLOADPATH;
|
1024 |
-
|
1025 |
-
// Always Enqueue global settings as it can be used by all Apps
|
1026 |
-
$shr_global_params["src"] = shrsb_correct_protocol($spritegen_basepath.$spritegen);
|
1027 |
-
$shr_global_params["perfoption"] = $shrsb_plugopts['perfoption'];
|
1028 |
-
$shr_global_params["twitter_template"] = $shrsb_plugopts['tweetconfig'];
|
1029 |
-
$shr_global_params["locale"] = $shrsb_plugopts['locale'];
|
1030 |
-
$shr_global_params["shortener"] = $shrsb_plugopts['shorty'];
|
1031 |
-
$shr_global_params["shortener_key"] = shrsb_get_shortener_settings();
|
1032 |
-
$shr_global_params["pubGaSocial"] = $shrsb_analytics['pubGaSocial'];
|
1033 |
-
$shr_global_params["pubGaKey"] = $shrsb_analytics['pubGaKey'];
|
1034 |
-
|
1035 |
-
$js = 'var SHRSB_Globals = '.json_encode($shr_global_params);
|
1036 |
-
echo '<script type="text/javascript">/* <![CDATA[ */ ' . $js . '; /* ]]> */</script>';
|
1037 |
-
|
1038 |
-
// Beta script
|
1039 |
-
if ($shrsb_plugopts['shareaholic-javascript'] == '1' && !is_admin()){// && !get_post_meta($post->ID, 'Hide SexyBookmarks')) {
|
1040 |
-
$infooter = ($shrsb_plugopts['scriptInFooter'] == '1')?true:false;
|
1041 |
-
|
1042 |
-
// Enqueue SexyBookmarks JavaScript only if enabled
|
1043 |
-
if(isset($shrsb_plugopts['sexybookmark']) && $shrsb_plugopts['sexybookmark'] == '1' && shrsb_check_activation() == true){
|
1044 |
-
wp_enqueue_script('shareaholic-sb-js', (empty($shrsb_debug['sb_script'])) ? shrsb_correct_protocol('http://dtym7iokkjlif.cloudfront.net/media/js/jquery.shareaholic-publishers-sb.min.js') : $shrsb_debug['sb_script'], null, SHRSB_vNum, $infooter);
|
1045 |
-
$localize_to = 'shareaholic-sb-js';
|
1046 |
-
}
|
1047 |
-
|
1048 |
-
// Enqueue Tob Bar JavaScript only if enabled
|
1049 |
-
if(isset($shrsb_tb_plugopts) && isset($shrsb_tb_plugopts['topbar']) && $shrsb_tb_plugopts['topbar'] == '1' && shrsb_check_activation() == true){
|
1050 |
-
wp_enqueue_script('shareaholic-topbar-js',(empty($shrsb_debug['tb_script'])) ? shrsb_correct_protocol('http://dtym7iokkjlif.cloudfront.net/media/js/jquery.shareaholic-share-buttons.min.js'): $shrsb_debug['tb_script'], null, SHRSB_vNum, $infooter);
|
1051 |
-
$localize_to = 'shareaholic-topbar-js';
|
1052 |
-
}
|
1053 |
-
|
1054 |
-
// Enqueue Recommendations JavaScript only if enabled
|
1055 |
-
if(isset($shrsb_recommendations) && isset($shrsb_recommendations['recommendations']) && $shrsb_recommendations['recommendations'] == '1' && shrsb_check_activation() == true){
|
1056 |
-
wp_enqueue_script('shareaholic-recommendations-js',(empty($shrsb_debug['rd_script'])) ? shrsb_correct_protocol("http://dtym7iokkjlif.cloudfront.net/media/js/jquery.shareaholic-publishers-rd.min.js"): $shrsb_debug['rd_script'], null, SHRSB_vNum, $infooter);
|
1057 |
-
$localize_to = 'shareaholic-recommendations-js';
|
1058 |
-
}
|
1059 |
-
|
1060 |
-
// Enqueue Classic Bookmarks JavaScript only if enabled
|
1061 |
-
if(isset($shrsb_cb) && isset($shrsb_cb['cb']) && $shrsb_cb['cb'] == '1' && shrsb_check_activation() == true){
|
1062 |
-
wp_enqueue_script('shareaholic-cb-js',(empty($shrsb_debug['cb_script'])) ? shrsb_correct_protocol("http://dtym7iokkjlif.cloudfront.net/media/js/jquery.shareaholic-publishers-cb.min.js"): $shrsb_debug['cb_script'], null, SHRSB_vNum, $infooter);
|
1063 |
-
$localize_to = 'shareaholic-cb-js';
|
1064 |
-
}
|
1065 |
-
} else {
|
1066 |
-
// If any javascript dependent options are selected, load the scripts
|
1067 |
-
if (($shrsb_plugopts['expand'] || $shrsb_plugopts['autocenter'] || $shrsb_plugopts['targetopt']=='_blank') && $post && (($hide_sexy = get_post_meta($post->ID, 'Hide SexyBookmarks', true)) != 1 )) {
|
1068 |
-
// If custom mods is selected, pull files from new location
|
1069 |
-
if($shrsb_plugopts['custom-mods'] == 'yes') {
|
1070 |
-
$surl = WP_CONTENT_URL.'/sexy-mods/js/sexy-bookmarks-public.js';
|
1071 |
-
} else {
|
1072 |
-
$surl = SHRSB_PLUGPATH.'js/sexy-bookmarks-public.min.js';
|
1073 |
-
}
|
1074 |
-
// If jQuery compatibility fix is not selected, go ahead and load jQuery
|
1075 |
-
$jquery = ($shrsb_plugopts['doNotIncludeJQuery'] != '1') ? array('jquery') : array();
|
1076 |
-
$infooter = ($shrsb_plugopts['scriptInFooter'] == '1')?true:false;
|
1077 |
-
wp_enqueue_script('sexy-bookmarks-public-js', $surl, $jquery, SHRSB_vNum, $infooter);
|
1078 |
-
}
|
1079 |
-
}
|
1080 |
-
|
1081 |
-
// Perf tracking for old mode only.For New mode tracking is moved to javascript
|
1082 |
-
if ( ($shrsb_plugopts['perfoption'] == '1' || $shrsb_plugopts['perfoption'] == '') && (!is_admin() && $shrsb_plugopts['shareaholic-javascript'] !== '1' )) {
|
1083 |
-
wp_enqueue_script('shareaholic-perf', SHRSB_PLUGPATH.'js/shareaholic-perf.min.js', null, SHRSB_vNum, false);
|
1084 |
-
wp_enqueue_script("shr_dough_recipe", shrsb_correct_protocol("http://dtym7iokkjlif.cloudfront.net/dough/1.0/shareaholic-analytics.js"), null, null);
|
1085 |
-
}
|
1086 |
-
}
|
1087 |
-
|
1088 |
-
/*
|
1089 |
-
* @desc Populate javascript settings in the footer for Sexybookmarks
|
1090 |
-
*/
|
1091 |
-
function shrsb_write_js_params() {
|
1092 |
-
global $shrsb_plugopts, $shrsb_js_params;
|
1093 |
-
if(isset($shrsb_plugopts['sexybookmark']) && $shrsb_plugopts['sexybookmark'] == '1' && $shrsb_plugopts['shareaholic-javascript'] == '1') {
|
1094 |
-
//For manual mode, when no config is defined
|
1095 |
-
if($shrsb_plugopts['position'] == 'manual' && !in_the_loop()){
|
1096 |
-
$shrsb_js_params['shr_class'] = shrsb_get_publisher_config(-1);
|
1097 |
-
}
|
1098 |
-
|
1099 |
-
echo '<script type="text/javascript">var SHRSB_Settings = ';
|
1100 |
-
echo json_encode($shrsb_js_params);
|
1101 |
-
echo ';</script>';
|
1102 |
-
}
|
1103 |
-
}
|
1104 |
-
|
1105 |
-
/*
|
1106 |
-
* @desc Populate javascript settings in the footer for topbar
|
1107 |
-
*/
|
1108 |
-
function shrsb_tb_write_js_params() {
|
1109 |
-
global $shrsb_plugopts, $shrsb_tb_js_params,$shrsb_tb_plugopts;
|
1110 |
-
if ($shrsb_plugopts['shareaholic-javascript'] == '1' && $shrsb_tb_plugopts['topbar'] == '1') {
|
1111 |
-
|
1112 |
-
$js = "";
|
1113 |
-
//if ($shrsb_tb_plugopts['useSbSettings'] != '1'){
|
1114 |
-
$shrsb_tb_js_params["topBarBgColor"] = $shrsb_tb_plugopts["tb_bg_color"];
|
1115 |
-
$shrsb_tb_js_params["topBarBorderColor"] = $shrsb_tb_plugopts["tb_border_color"];
|
1116 |
-
$shrsb_tb_js_params["showAddv"] = $shrsb_tb_plugopts["addv"];
|
1117 |
-
$shrsb_tb_js_params["apiKey"] = "e3c665c2eb6785741cea4515633f1d86b";
|
1118 |
-
if ( ( is_home() || is_front_page() ) && have_posts() )
|
1119 |
-
$shrsb_tb_js_params["isIndexPage"] = "indexPage";
|
1120 |
-
$js = 'var SHRTB_Settings = '.json_encode($shrsb_tb_js_params);
|
1121 |
-
//}
|
1122 |
-
|
1123 |
-
echo '<script type="text/javascript">';
|
1124 |
-
echo $js;
|
1125 |
-
echo ';</script>';
|
1126 |
-
}
|
1127 |
-
}
|
1128 |
-
|
1129 |
-
/*
|
1130 |
-
* @desc Populate javascript settings in the footer for classicbookmarks
|
1131 |
-
*/
|
1132 |
-
function shrsb_cb_write_js_params() {
|
1133 |
-
global $shrsb_plugopts, $shrsb_cb_js_params,$shrsb_cb;
|
1134 |
-
|
1135 |
-
|
1136 |
-
if ($shrsb_plugopts['shareaholic-javascript'] == '1' && $shrsb_cb['cb'] == '1') {
|
1137 |
-
|
1138 |
-
$js = 'var SHRCB_Settings = '.json_encode($shrsb_cb_js_params);
|
1139 |
-
|
1140 |
-
echo '<script type="text/javascript">';
|
1141 |
-
echo $js;
|
1142 |
-
echo ';</script>';
|
1143 |
-
}
|
1144 |
-
}
|
1145 |
-
|
1146 |
-
/*
|
1147 |
-
* @desc Populate javascript settings in the footer for recommendations
|
1148 |
-
*/
|
1149 |
-
function shrsb_rd_write_js_params() {
|
1150 |
-
global $shrsb_plugopts, $shrsb_rd_js_params,$shrsb_recommendations;
|
1151 |
-
|
1152 |
-
|
1153 |
-
if ($shrsb_plugopts['shareaholic-javascript'] == '1' && $shrsb_recommendations['recommendations'] == '1') {
|
1154 |
-
|
1155 |
-
$js = 'var SHRRD_Settings = '.json_encode($shrsb_rd_js_params);
|
1156 |
-
|
1157 |
-
echo '<script type="text/javascript">';
|
1158 |
-
echo $js;
|
1159 |
-
echo ';</script>';
|
1160 |
-
}
|
1161 |
-
}
|
1162 |
-
|
1163 |
-
// Add the scripts and Global setting on the page
|
1164 |
-
add_action('wp_print_scripts', 'shrsb_publicScripts');
|
1165 |
-
|
1166 |
-
// Add the hook only when sexybokmark is enabled
|
1167 |
-
if(isset($shrsb_plugopts['sexybookmark']) && $shrsb_plugopts['sexybookmark'] == '1') {
|
1168 |
-
add_filter('the_content', 'shrsb_position_menu');
|
1169 |
-
add_action('wp_print_styles', 'shrsb_publicStyles');
|
1170 |
-
add_action('wp_footer', 'shrsb_write_js_params');
|
1171 |
-
}
|
1172 |
-
|
1173 |
-
// Add the hook only when topbar is enabled
|
1174 |
-
if(isset($shrsb_tb_plugopts['topbar']) && ($shrsb_tb_plugopts['topbar'] == '1')){
|
1175 |
-
add_action('wp_footer', 'shrsb_get_topbar');
|
1176 |
-
add_action('wp_footer', 'shrsb_tb_write_js_params');
|
1177 |
-
}
|
1178 |
-
|
1179 |
-
// Add the hook only when recommendations is enabled
|
1180 |
-
if(isset($shrsb_recommendations['recommendations']) && ($shrsb_recommendations['recommendations'] == '1')){
|
1181 |
-
add_filter('the_content', 'shrsb_get_recommendations');
|
1182 |
-
add_action('wp_footer', 'shrsb_rd_write_js_params');
|
1183 |
-
}
|
1184 |
-
|
1185 |
-
if(isset($shrsb_cb['cb']) && ($shrsb_cb['cb'] == '1')){
|
1186 |
-
add_filter('the_content', 'shrsb_get_cb');
|
1187 |
-
add_action('wp_footer', 'shrsb_cb_write_js_params');
|
1188 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/shr_pub_pro.php
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class SHR_PUB_PRO {
|
4 |
-
protected $authenicate_url = "https://shareaholic.com/api/auth/apikey/";
|
5 |
-
protected $install_url;
|
6 |
-
protected $apikey;
|
7 |
-
protected $default_apikey = '8afa39428933be41f8afdb8ea21a495c';
|
8 |
-
protected static $_instance = null;
|
9 |
-
|
10 |
-
public static function getInstance() {
|
11 |
-
if(!self::$_instance instanceof self) {
|
12 |
-
self::$_instance = new self;
|
13 |
-
}
|
14 |
-
return self::$_instance;
|
15 |
-
}
|
16 |
-
|
17 |
-
protected function __construct() {
|
18 |
-
$this->apikey = get_option('SHRSB_apikey');
|
19 |
-
$this->install_url = get_option('siteurl');
|
20 |
-
}
|
21 |
-
|
22 |
-
public function set_api_key($apikey) {
|
23 |
-
$bRet = false;
|
24 |
-
if($apikey) {
|
25 |
-
$auth = $this->authenticate($apikey);
|
26 |
-
if($auth->plan_id > -2) {
|
27 |
-
update_option('SHRSB_apikey', $apikey);
|
28 |
-
$bRet = true;
|
29 |
-
}
|
30 |
-
}
|
31 |
-
return $bRet;
|
32 |
-
}
|
33 |
-
|
34 |
-
public function delete_api_key() {
|
35 |
-
update_option('SHRSB_apikey',$this->default_apikey);
|
36 |
-
$this->apikey = get_option('apikey');
|
37 |
-
}
|
38 |
-
|
39 |
-
public function authenticate($apikey = null) {
|
40 |
-
$response_obj = null;
|
41 |
-
$args = array('body' => array(
|
42 |
-
"install_url" => $this->install_url,
|
43 |
-
"api_key" => $apikey ? $apikey : $this->apikey
|
44 |
-
));
|
45 |
-
if(function_exists(wp_remote_post)) {
|
46 |
-
$response = wp_remote_post($this->authenicate_url, $args);
|
47 |
-
$response_obj = json_decode($response['body']);
|
48 |
-
}
|
49 |
-
return $response_obj;
|
50 |
-
}
|
51 |
-
}
|
52 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/shrsb_activation_page.php
DELETED
@@ -1,41 +0,0 @@
|
|
1 |
-
<?php function shrsb_display_activation(){ ?>
|
2 |
-
|
3 |
-
<div class="clearbig"></div>
|
4 |
-
<form name="activation" id="shrsb-activation" action="" method="post">
|
5 |
-
|
6 |
-
<div style="clear:both;height:10px;"></div>
|
7 |
-
|
8 |
-
<img src="<?php echo SHRSB_PLUGPATH; ?>images/shareaholic-220.png" />
|
9 |
-
|
10 |
-
<div style="clear:both;height:5px;"></div>
|
11 |
-
|
12 |
-
|
13 |
-
<div id="shr-activation-header">
|
14 |
-
<div id="shr-activation-notice" style="padding-right:10px;">
|
15 |
-
|
16 |
-
<p style="font-size: 26px; color: #454B4C; text-shadow: 0pt 1px 0pt white;"><?php _e("Your Shareaholic Plugin is almost ready!", 'shrsb'); ?></p>
|
17 |
-
|
18 |
-
<p style="font-size: 15px; line-height: 24px; color: #454B4C; text-shadow: 0pt 1px 0pt white;"><?php _e("Activate by clicking the green \"Enable\" button below. Once you’ve enabled Shareaholic, you will enjoy all the delightful goodness of Shareaholic.", 'shrsb'); ?></p>
|
19 |
-
</div>
|
20 |
-
</div>
|
21 |
-
|
22 |
-
<div style="background: url('<?php echo SHRSB_PLUGPATH; ?>images/orange_arrow.gif') no-repeat;height: 70px;width: 50px; float:left;"></div>
|
23 |
-
|
24 |
-
<input type="hidden" name="activate" value="1" />
|
25 |
-
<div class="shrsbsubmit" style="margin: 38px 8px 10px!important;">
|
26 |
-
<input type="submit" id="activate" value="<?php _e('Click here to enable Shareaholic now »', 'shrsb'); ?>" />
|
27 |
-
</div>
|
28 |
-
</form>
|
29 |
-
|
30 |
-
<div style="clear:both;height:15px;"></div>
|
31 |
-
|
32 |
-
<div style="display:block; font-size: 11px; color: #777777; width: 960px;">
|
33 |
-
|
34 |
-
<?php echo sprintf(__('<p>By enabling Shareaholic, you are accepting our %sTerms of Service%s and %sPrivacy Policy%s. Shareaholic is trusted by over 200,000 websites like yours and touches almost 300 million people each month. Designed and built with all the love in the world in Boston, Massachusetts.</p>', 'shrsb'), '<a href="https://shareaholic.com/terms/" target="_new">', '</a>', '<a href="https://shareaholic.com/privacy/" target="_new">', '</a>'); ?>
|
35 |
-
|
36 |
-
</div>
|
37 |
-
|
38 |
-
<?php
|
39 |
-
// shrsb_getfooter();
|
40 |
-
}
|
41 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/shrsb_analytics_page.php
DELETED
@@ -1,54 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* @desc Analytics Settings
|
5 |
-
*/
|
6 |
-
|
7 |
-
$shrsb_analytics = shrsb_analytics_set_options();
|
8 |
-
|
9 |
-
/*
|
10 |
-
* @desc Set the analytics settings either from database or default
|
11 |
-
*/
|
12 |
-
function shrsb_analytics_set_options( $action = NULL ) {
|
13 |
-
|
14 |
-
$option_name = 'ShareaholicAnalytics';
|
15 |
-
|
16 |
-
$shrsb_analytics_default = array(
|
17 |
-
'pubGaSocial' => 0
|
18 |
-
, 'pubGaKey' => ''
|
19 |
-
);
|
20 |
-
|
21 |
-
//Return default settings
|
22 |
-
if( $action == "reset" ) {
|
23 |
-
delete_option($option_name);
|
24 |
-
add_option($option_name,$shrsb_analytics_default);
|
25 |
-
return $shrsb_analytics_default;
|
26 |
-
}
|
27 |
-
|
28 |
-
//Get the settings from the database
|
29 |
-
$database_Settings = get_option($option_name);
|
30 |
-
|
31 |
-
if( $database_Settings ) {//got the settings in the database
|
32 |
-
|
33 |
-
// Check only when upgrading
|
34 |
-
if( SHRSB_UPGRADING == TRUE ) {
|
35 |
-
$need_to_update = false;
|
36 |
-
|
37 |
-
//Check whether all the settings are present or not
|
38 |
-
foreach( $shrsb_analytics_default as $k => $v ){
|
39 |
-
if( !array_key_exists( $k, $database_Settings )) {
|
40 |
-
$database_Settings[$k] = $v;
|
41 |
-
$need_to_update = true;
|
42 |
-
}
|
43 |
-
}
|
44 |
-
if( $need_to_update ) update_option( $option_name, $database_Settings );
|
45 |
-
}
|
46 |
-
return $database_Settings;
|
47 |
-
|
48 |
-
} else {
|
49 |
-
//Add the settings to the database
|
50 |
-
add_option( $option_name, $shrsb_analytics_default );
|
51 |
-
return $shrsb_analytics_default;
|
52 |
-
}
|
53 |
-
}
|
54 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/shrsb_analytics_settings_page.php
DELETED
@@ -1,214 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* @desc Topbar Settings page
|
5 |
-
*/
|
6 |
-
|
7 |
-
function shrsb_analytics_settings_page() {
|
8 |
-
global $shrsb_analytics;
|
9 |
-
// Add all the global varaible declarations for the $shrsb_tb_plugopts
|
10 |
-
echo '<div class="wrap""><div class="icon32" id="icon-options-general"><br></div><h2>'.__('Social Analytics Settings', 'shrsb').'</h2></div>';
|
11 |
-
//Defaults - set if not present
|
12 |
-
if (!isset($_POST['reset_all_options_analytics'])){$_POST['reset_all_options_analytics'] = '1';}
|
13 |
-
if (!isset($_POST['shrsbresetallwarn-choice'])){$_POST['shrsbresetallwarn-choice'] = 'no';}
|
14 |
-
|
15 |
-
if($_POST['reset_all_options_analytics'] == '0') {
|
16 |
-
echo '
|
17 |
-
<div id="shrsbresetallwarn" class="dialog-box-warning" style="float:none;width:97%;margin-top:20px;">
|
18 |
-
<div class="dialog-left fugue f-warn">
|
19 |
-
'.__("WARNING: You are about to reset all plugin settings to their default state! Do you wish to continue?", "shrsb").'
|
20 |
-
</div>
|
21 |
-
<div class="dialog-right">
|
22 |
-
<form action="" method="post" id="resetalloptionsaccept">
|
23 |
-
<label><input name="shrsbresetallwarn-choice" id="shrsbresetallwarn-yes" type="radio" value="yes" />'.__('Yes', 'shrsb').'</label> <label><input name="shrsbresetallwarn-choice" id="shrsbresetallwarn-cancel" type="radio" value="cancel" />'.__('Cancel', 'shrsb').'</label>
|
24 |
-
</form>
|
25 |
-
</div>
|
26 |
-
</div>';
|
27 |
-
}
|
28 |
-
|
29 |
-
//Reset all options to default settings if user clicks the reset button
|
30 |
-
if($_POST['shrsbresetallwarn-choice'] == "yes") { //check for reset button click
|
31 |
-
|
32 |
-
$shrsb_analytics = shrsb_analytics_set_options('reset');
|
33 |
-
|
34 |
-
//delete_option('SHRSB_CustomSprite');
|
35 |
-
echo '
|
36 |
-
<div id="statmessage" class="shrsb-success">
|
37 |
-
<div class="dialog-left fugue f-success">
|
38 |
-
'.__('All settings have been reset to their default values.', 'shrsb').'
|
39 |
-
</div>
|
40 |
-
<div class="dialog-right">
|
41 |
-
<img src="'.SHRSB_PLUGPATH.'images/success-delete.jpg" class="del-x" alt=""/>
|
42 |
-
</div>
|
43 |
-
</div>';
|
44 |
-
}
|
45 |
-
|
46 |
-
// processing form submission
|
47 |
-
$status_message = "";
|
48 |
-
$error_message = "";
|
49 |
-
$setting_changed = false;
|
50 |
-
|
51 |
-
if(isset($_POST['save_changes_sa'])) {
|
52 |
-
|
53 |
-
// Set success message
|
54 |
-
$status_message = __('Your changes have been saved successfully!', 'shrsb');
|
55 |
-
|
56 |
-
foreach (array(
|
57 |
-
'pubGaSocial', 'pubGaKey'
|
58 |
-
)as $field) {
|
59 |
-
if(isset($_POST[$field])) { // this is to prevent warning if $_POST[$field] is not defined
|
60 |
-
$fieldval = $_POST[$field];
|
61 |
-
if($field == 'pubGaSocial' && $fieldval != $shrsb_analytics[$field]) {
|
62 |
-
$setting_changed = true;
|
63 |
-
}
|
64 |
-
$shrsb_analytics[$field] = $fieldval;
|
65 |
-
} else {
|
66 |
-
$shrsb_analytics[$field] = NULL;
|
67 |
-
}
|
68 |
-
}
|
69 |
-
|
70 |
-
update_option('ShareaholicAnalytics',$shrsb_analytics);
|
71 |
-
|
72 |
-
if ($setting_changed == true){
|
73 |
-
shr_sendTrackingEvent('FeatureToggle', array('f_updated' => 'f_analytics', 'enabled' => ($shrsb_analytics['pubGaSocial'] == '1' ? 'true' : 'false')));
|
74 |
-
}
|
75 |
-
|
76 |
-
}//Closed Save
|
77 |
-
|
78 |
-
//if there was an error, construct error messages
|
79 |
-
if ($error_message != '') {
|
80 |
-
echo '
|
81 |
-
<div id="errmessage" class="shrsb-error">
|
82 |
-
<div class="dialog-left fugue f-error">
|
83 |
-
'.$error_message.'
|
84 |
-
</div>
|
85 |
-
<div class="dialog-right">
|
86 |
-
<img src="'.SHRSB_PLUGPATH.'images/error-delete.jpg" class="del-x" alt=""/>
|
87 |
-
</div>
|
88 |
-
</div>';
|
89 |
-
} elseif ($status_message != '') {
|
90 |
-
echo '<style type="text/css">#update_sb{display:none !important;}</style>
|
91 |
-
<div id="statmessage" class="shrsb-success">
|
92 |
-
<div class="dialog-left fugue f-success">
|
93 |
-
'.$status_message.'
|
94 |
-
</div>
|
95 |
-
<div class="dialog-right">
|
96 |
-
<img src="'.SHRSB_PLUGPATH.'images/success-delete.jpg" class="del-x" alt=""/>
|
97 |
-
</div>
|
98 |
-
</div>';
|
99 |
-
}
|
100 |
-
?>
|
101 |
-
|
102 |
-
<form name="sexy-bookmarks" id="sexy-bookmarks" action="" method="post">
|
103 |
-
<div id="shrsb-col-left" style="width:100%">
|
104 |
-
<ul id="shrsb-sortables">
|
105 |
-
|
106 |
-
<li>
|
107 |
-
<div class="box-mid-head">
|
108 |
-
<h2 class="fugue f-status"><?php _e('Shareaholic Social Analytics - Grow Your Traffic and Referrals', 'shrsb'); ?></h2>
|
109 |
-
</div>
|
110 |
-
<div class="box-mid-body">
|
111 |
-
<div style="padding:8px;background:#FDF6E5;"><img src="<?php echo SHRSB_PLUGPATH; ?>images/chart.png" align="right" alt="New!" />
|
112 |
-
<?php $parse = parse_url(get_bloginfo('url')); ?>
|
113 |
-
|
114 |
-
<?php echo sprintf(__('<span style="font-size: 12px;">Shareaholic reports all of your important social media metrics including popular pages on your website, referral channels, and who are making referrals and spreading your webpages on the internet on your behalf bringing you back more traffic and new visitors for free.</span> <br><br> <b><span style="color:#CC1100;">What are you waiting for?</span> You can access detailed %ssocial engagement analytics%s about your website right now.</b>', 'shrsb'), '<a href="https://shareaholic.com/publishers/analytics/'.$parse['host'].'/">', '</a>');
|
115 |
-
?>
|
116 |
-
|
117 |
-
</div>
|
118 |
-
</div>
|
119 |
-
</li>
|
120 |
-
|
121 |
-
|
122 |
-
<?php if (shrsb_get_current_user_role()=="Administrator"){ ?>
|
123 |
-
|
124 |
-
<li>
|
125 |
-
<div class="box-mid-head">
|
126 |
-
<h2><img src="<?php echo SHRSB_PLUGPATH; ?>/images/ga-icon.png" style="float:left;margin-top:2px;margin-right:10px;" alt="Google Analytics" /> <?php _e('Google Analytics', 'shrsb'); ?></h2>
|
127 |
-
</div>
|
128 |
-
<div class="box-mid-body" id="toggle5">
|
129 |
-
|
130 |
-
<div class="padding">
|
131 |
-
<div id="genopts">
|
132 |
-
<table>
|
133 |
-
<tbody>
|
134 |
-
<tr>
|
135 |
-
<td><span class="shrsb_option"><?php _e('Enable Google Analytics Social Tracking', 'shrsb'); ?> (<a href="http://code.google.com/apis/analytics/docs/tracking/gaTrackingSocial.html" target="_blank">?</a>)</span></td>
|
136 |
-
<td WIDTH="120"><label><input <?php echo ((@$shrsb_analytics['pubGaSocial'] == "1")? 'checked="checked"' : ""); ?> name="pubGaSocial" id="pubGaSocial-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label></td>
|
137 |
-
<td WIDTH="120"><label><input <?php echo ((@$shrsb_analytics['pubGaSocial'] == "0")? 'checked="checked"' : ""); ?> name="pubGaSocial" id="pubGaSocial-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label></td>
|
138 |
-
</tr>
|
139 |
-
|
140 |
-
<tr class="pubGaSocial_prefs" style="display:none;">
|
141 |
-
<td><label class="tab" for="pubGaKey" style="margin-top:7px;"><?php _e('Your Google Analytics Property ID:', 'shrsb'); ?></label></td>
|
142 |
-
<td colspan="2"><input style="margin-top:7px;" type="text" id="pubGaKey" name="pubGaKey" size="35" placeholder="ex. UA-XXXXXXXX-X" value="<?php echo @$shrsb_analytics['pubGaKey']; ?>" /></td>
|
143 |
-
</tr>
|
144 |
-
|
145 |
-
</tbody>
|
146 |
-
</table>
|
147 |
-
</div>
|
148 |
-
</div>
|
149 |
-
</li>
|
150 |
-
|
151 |
-
<?php } ?>
|
152 |
-
|
153 |
-
</ul>
|
154 |
-
|
155 |
-
<?php if (shrsb_get_current_user_role()=="Administrator"){ ?>
|
156 |
-
|
157 |
-
<div style="clear:both;"></div>
|
158 |
-
<input type="hidden" name="save_changes_sa" value="1" />
|
159 |
-
<div class="shrsbsubmit"><input type="submit" id="save_changes_sa" value="<?php _e('Save Changes', 'shrsb'); ?>" /></div>
|
160 |
-
</form>
|
161 |
-
<form action="" method="post">
|
162 |
-
<input type="hidden" name="reset_all_options_analytics" id="reset_all_options_analytics" value="0" />
|
163 |
-
<!-- <div class="shrsbreset"><input type="submit" value="<?php _e('Reset Settings', 'shrsb'); ?>" /></div> -->
|
164 |
-
</form>
|
165 |
-
|
166 |
-
<?php } ?>
|
167 |
-
|
168 |
-
<?php echo shrsb_getfooter(); ?>
|
169 |
-
|
170 |
-
</div>
|
171 |
-
|
172 |
-
<?php
|
173 |
-
|
174 |
-
//Right Side helpful links
|
175 |
-
echo shrsb_right_side_menu();
|
176 |
-
//Snap Engage
|
177 |
-
echo get_snapengage();
|
178 |
-
|
179 |
-
}//closing brace for function "shrsb_settings_page"
|
180 |
-
|
181 |
-
|
182 |
-
// Old analytics Page
|
183 |
-
function shrsb_analytics_page() {
|
184 |
-
?>
|
185 |
-
<h2 class="shrsblogo"><span class="sh-logo"></span></h2>
|
186 |
-
|
187 |
-
<div id="shrsb-col-left" style="width:100%;">
|
188 |
-
|
189 |
-
<ul id="shrsb-sortables">
|
190 |
-
<li>
|
191 |
-
<div class="box-mid-head">
|
192 |
-
<h2 class="fugue f-status"><?php _e('Shareaholic Analtyics', 'shrsb'); ?></h2>
|
193 |
-
</div>
|
194 |
-
<div class="box-mid-body">
|
195 |
-
<div class="padding">
|
196 |
-
<div style="position:relative;width:80%;">
|
197 |
-
<p><strong>
|
198 |
-
<?php _e('Shareaholic Analtyics is coming soon!', 'shrsb'); ?>
|
199 |
-
</strong>
|
200 |
-
<br><br>
|
201 |
-
<?php _e('Register your account today to recieve update info via email.', 'shrsb'); ?>
|
202 |
-
<div class="shrsbsubmit">
|
203 |
-
<input type="button" onclick ="window.open('https://shareaholic.com/publishers_apps/new_publishers_app')" value="<?php _e('Get Share Pro', 'shrsb'); ?>" />
|
204 |
-
</div>
|
205 |
-
</p>
|
206 |
-
</div>
|
207 |
-
</div>
|
208 |
-
</div>
|
209 |
-
</li>
|
210 |
-
</ul>
|
211 |
-
</div>
|
212 |
-
<?php
|
213 |
-
}
|
214 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/shrsb_authentication_page.php
DELETED
@@ -1,141 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function shrsb_authentication_page($apikey = null) {
|
4 |
-
global $shrsb_plugopts;
|
5 |
-
?>
|
6 |
-
<script type ="text/javascript">
|
7 |
-
function authenticate(apikey,callback) {
|
8 |
-
if(!apikey) {
|
9 |
-
return false;
|
10 |
-
}
|
11 |
-
var args = {};
|
12 |
-
args["install_url"] = '<?php echo get_option('siteurl')?>';
|
13 |
-
args["api_key"] = apikey;
|
14 |
-
var validation_url = <?php echo '"'.$shrsb_plugopts['shrbase'].'"' ?> +"/api/auth/apikey/";
|
15 |
-
jQuery.ajax({
|
16 |
-
url : validation_url,
|
17 |
-
type: 'get',
|
18 |
-
data: args,
|
19 |
-
success: authHandler,
|
20 |
-
dataType:'jsonp'
|
21 |
-
});
|
22 |
-
}
|
23 |
-
|
24 |
-
function authHandler(obj) {
|
25 |
-
var imgSrc = <?php echo '"'.$shrsb_plugopts['shrbase'].'"' ?> +"/media/images/" + (obj["auth"]?"pass":"fail") + ".png";
|
26 |
-
var dispText = "Authentication " + (obj["auth"]?"Succeeded":"Failed") + ".";
|
27 |
-
if(obj["auth"]) {
|
28 |
-
jQuery("#sexy-bookmark-pro-authenticate").get(0).submit();
|
29 |
-
}
|
30 |
-
jQuery("#auth-status-img").get(0).src = imgSrc;
|
31 |
-
jQuery("#auth-status-text").text(dispText);
|
32 |
-
}
|
33 |
-
|
34 |
-
function submitHandler() {
|
35 |
-
var api = jQuery("#apikey").get(0).value;
|
36 |
-
authenticate(api);
|
37 |
-
}
|
38 |
-
|
39 |
-
</script>
|
40 |
-
|
41 |
-
<h2 class="shrsblogo"><span class="sh-logo"></span></h2>
|
42 |
-
<iframe style ="display:none" name ="_formtarget" id ="_formtarget"></iframe>
|
43 |
-
|
44 |
-
<div id="shrsb-col-left" style="width:100%;">
|
45 |
-
<ul id="shrsb-sortables">
|
46 |
-
<li>
|
47 |
-
<div class="box-mid-head">
|
48 |
-
<h2 class="fugue f-status"><?php _e('Shareaholic Pro', 'shrsb'); ?></h2>
|
49 |
-
</div>
|
50 |
-
<div class="box-mid-body">
|
51 |
-
<div class="padding">
|
52 |
-
<div style="position:relative;width:80%;">
|
53 |
-
<p><strong>
|
54 |
-
<?php _e('Shareaholic Professional is coming!!!!', 'shrsb'); ?>
|
55 |
-
</strong>
|
56 |
-
<br><br>
|
57 |
-
<?php _e('We are excited to offer you a host of features like Analytics to give you insight about your website traffic and user activity.'.
|
58 |
-
'Be the first one to grab the opportunity and register for a free account today!!', 'shrsb'); ?>
|
59 |
-
</p>
|
60 |
-
</div>
|
61 |
-
</div>
|
62 |
-
<div class="shrsbsubmit">
|
63 |
-
<input type="button" onclick ="window.open(<?php echo '\"'.$shrsb_plugopts['shrbase'].'\"' ?> +'/publishers_apps/new_publishers_app')" value="<?php _e('Get Share Pro', 'shrsb'); ?>" />
|
64 |
-
</div>
|
65 |
-
</div>
|
66 |
-
</li>
|
67 |
-
|
68 |
-
<li>
|
69 |
-
<div class="box-mid-head">
|
70 |
-
<h2 class="fugue f-status"><?php _e('Authenticate', 'shrsb'); ?></h2>
|
71 |
-
</div>
|
72 |
-
<div class="box-mid-body">
|
73 |
-
<form target="_formtarget" name="sexy-bookmark-pro-authenticate" id="sexy-bookmark-pro-authenticate" action="" method="post">
|
74 |
-
<div class="padding">
|
75 |
-
<div>
|
76 |
-
<strong><?php _e('Status','shrsb')?></strong>
|
77 |
-
<div style="padding: 2px;">
|
78 |
-
<div style="float: left; margin-right: 5px; padding-top: 1px;">
|
79 |
-
<img id="auth-status-img" alt = "" src=<?php $status = $apikey?"pass.png":"transparent.gif"; echo $shrsb_plugopts['shrbase']."/media/images/".$status?>
|
80 |
-
style="width: 12px; height: 12px;">
|
81 |
-
</div>
|
82 |
-
<span id="auth-status-text"><?php $status = $apikey?_e('Authenticated','shrsb'):"";?></span>
|
83 |
-
</div>
|
84 |
-
</div>
|
85 |
-
<br>
|
86 |
-
<div style="position:relative;width:80%;">
|
87 |
-
<label for="apikey"><?php _e('Enter the API key that you registered for your application.', 'shrsb'); ?></label><br />
|
88 |
-
<input type ="text" id="apikey" name="apikey" value ="<?php $status = $apikey ? $apikey : ''; echo $status;?>"/>
|
89 |
-
</div>
|
90 |
-
</div>
|
91 |
-
<div class="shrsbsubmit"><input type="button" onclick ="submitHandler()" value="<?php _e('Authenticate', 'shrsb'); ?>" /></div>
|
92 |
-
</form>
|
93 |
-
</div>
|
94 |
-
</li>
|
95 |
-
</ul>
|
96 |
-
</div>
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
<div id="shrsb-col-right">
|
102 |
-
<div class="box-right">
|
103 |
-
<div class="box-right-head">
|
104 |
-
<h3><?php _e('Why Register ?', 'shrsb'); ?></h3>
|
105 |
-
</div>
|
106 |
-
<div class="box-right-body">
|
107 |
-
<div class="padding">
|
108 |
-
<ul class="infolinks">
|
109 |
-
<li>Analytics to increase website traffic</li>
|
110 |
-
<li>Advance UI features</li>
|
111 |
-
<li>It's fast, secure, & free to signup!</li>
|
112 |
-
</ul>
|
113 |
-
</div>
|
114 |
-
</div>
|
115 |
-
</div>
|
116 |
-
<div class="box-right">
|
117 |
-
<div class="box-right-head">
|
118 |
-
<h3 class="fugue f-info-frame"><?php _e('Helpful Plugin Links', 'shrsb'); ?></h3>
|
119 |
-
</div>
|
120 |
-
<div class="box-right-body">
|
121 |
-
<div class="padding">
|
122 |
-
<ul class="infolinks">
|
123 |
-
<li><a href="https://shareaholic.com/tools/wordpress/usage-installation" target="_blank"><?php _e('Installation & Usage Guide', 'shrsb'); ?></a></li>
|
124 |
-
<li><a href="https://shareaholic.com/tools/wordpress/faq" target="_blank"><?php _e('Frequently Asked Questions', 'shrsb'); ?></a></li>
|
125 |
-
<li><a href="http://support.shareaholic.com/" target="_blank"><?php _e('Bug Submission Form', 'shrsb'); ?></a></li>
|
126 |
-
<li><a href="http://support.shareaholic.com/" target="_blank"><?php _e('Feature Request Form', 'shrsb'); ?></a></li>
|
127 |
-
<li><a href="https://shareaholic.com/tools/wordpress/translations" target="_blank"><?php _e('Submit a Translation', 'shrsb'); ?></a></li>
|
128 |
-
<li><a href="https://shareaholic.com/tools/browser/" target="_blank"><?php _e('Shareaholic Browsers Add-ons', 'shrsb'); ?></a></li>
|
129 |
-
<li><a href="https://shareaholic.com/tools/wordpress/credits" target="_blank"><?php _e('Thanks & Credits', 'shrsb'); ?></a></li>
|
130 |
-
</ul>
|
131 |
-
</div>
|
132 |
-
</div>
|
133 |
-
</div>
|
134 |
-
|
135 |
-
<div style="padding:15px;"><iframe src="https://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2FShareaholic&layout=standard&show_faces=true&width=240&action=like&font=lucida+grande&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:240px; height:80px;" allowTransparency="true"></iframe>
|
136 |
-
</div>
|
137 |
-
|
138 |
-
</div>
|
139 |
-
<?php
|
140 |
-
}
|
141 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/shrsb_classicbookmarks_page.php
DELETED
@@ -1,59 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* @desc Classic Bookmarks Settings
|
5 |
-
*/
|
6 |
-
|
7 |
-
$shrsb_cb= shrsb_cb_set_options();
|
8 |
-
|
9 |
-
/*
|
10 |
-
* @desc Set the classicbookmarks settings either from database or default
|
11 |
-
*/
|
12 |
-
function shrsb_cb_set_options( $action = NULL ) {
|
13 |
-
|
14 |
-
$option_name = 'ShareaholicClassicBookmarks';
|
15 |
-
|
16 |
-
$shrsb_cb_default = array(
|
17 |
-
'cb' => '0'
|
18 |
-
, 'size' => '32'
|
19 |
-
, 'pageorpost' => 'postpageindexcategory'
|
20 |
-
);
|
21 |
-
|
22 |
-
//Return default settings
|
23 |
-
if( $action == "reset" ) {
|
24 |
-
delete_option($option_name);
|
25 |
-
add_option($option_name,$shrsb_cb_default);
|
26 |
-
return $shrsb_cb_default;
|
27 |
-
}
|
28 |
-
|
29 |
-
//Get the settings from the database
|
30 |
-
$database_Settings = get_option($option_name);
|
31 |
-
|
32 |
-
|
33 |
-
if( $database_Settings ) {//got the settings in the database
|
34 |
-
|
35 |
-
// Check only when upgrading
|
36 |
-
if( SHRSB_UPGRADING == TRUE) {
|
37 |
-
$need_to_update = false;
|
38 |
-
|
39 |
-
//Check whether all the settings are present or not
|
40 |
-
foreach( $shrsb_cb_default as $k => $v ){
|
41 |
-
if( !array_key_exists( $k, $database_Settings )) {
|
42 |
-
$database_Settings[$k] = $v;
|
43 |
-
$need_to_update = true;
|
44 |
-
}
|
45 |
-
}
|
46 |
-
|
47 |
-
if( $need_to_update ) update_option( $option_name, $database_Settings );
|
48 |
-
|
49 |
-
}
|
50 |
-
|
51 |
-
return $database_Settings;
|
52 |
-
|
53 |
-
} else {
|
54 |
-
//Add the settings to the database
|
55 |
-
add_option( $option_name, $shrsb_cb_default );
|
56 |
-
return $shrsb_cb_default;
|
57 |
-
}
|
58 |
-
}
|
59 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/shrsb_classicbookmarks_settings_page.php
DELETED
@@ -1,173 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* @desc Classic Bookmarks Settings page
|
5 |
-
*/
|
6 |
-
|
7 |
-
function shrsb_cb_settings_page() {
|
8 |
-
global $shrsb_cb;
|
9 |
-
|
10 |
-
// Add all the global varaible declarations for the $shrsb_cb_plugopts
|
11 |
-
echo '<div class="wrap""><div class="icon32" id="icon-options-general"><br></div><h2>'.__('Share Buttons: ClassicBookmarks Settings', 'shrsb').'</h2></div>';
|
12 |
-
//Defaults - set if not present
|
13 |
-
if (!isset($_POST['reset_all_options_cb'])){$_POST['reset_all_options_cb'] = '1';}
|
14 |
-
if (!isset($_POST['shrsbresetallwarn-choice'])){$_POST['shrsbresetallwarn-choice'] = 'no';}
|
15 |
-
|
16 |
-
if($_POST['reset_all_options_cb'] == '0') {
|
17 |
-
echo '
|
18 |
-
<div id="shrsbresetallwarn" class="dialog-box-warning" style="float:none;width:97%;margin-top:20px;">
|
19 |
-
<div class="dialog-left fugue f-warn">
|
20 |
-
'.__("WARNING: You are about to reset all plugin settings to their default state! Do you wish to continue?", "shrsb").'
|
21 |
-
</div>
|
22 |
-
<div class="dialog-right">
|
23 |
-
<form action="" method="post" id="resetalloptionsaccept">
|
24 |
-
<label><input name="shrsbresetallwarn-choice" id="shrsbresetallwarn-yes" type="radio" value="yes" />'.__('Yes', 'shrsb').'</label> <label><input name="shrsbresetallwarn-choice" id="shrsbresetallwarn-cancel" type="radio" value="cancel" />'.__('Cancel', 'shrsb').'</label>
|
25 |
-
</form>
|
26 |
-
</div>
|
27 |
-
</div>';
|
28 |
-
}
|
29 |
-
|
30 |
-
//Reset all options to default settings if user clicks the reset button
|
31 |
-
if($_POST['shrsbresetallwarn-choice'] == "yes") { //check for reset button click
|
32 |
-
|
33 |
-
$shrsb_cb = shrsb_cb_set_options('reset');
|
34 |
-
|
35 |
-
//delete_option('SHRSB_CustomSprite');
|
36 |
-
echo '
|
37 |
-
<div id="statmessage" class="shrsb-success">
|
38 |
-
<div class="dialog-left fugue f-success">
|
39 |
-
'.__('All settings have been reset to their default values.', 'shrsb').'
|
40 |
-
</div>
|
41 |
-
<div class="dialog-right">
|
42 |
-
<img src="'.SHRSB_PLUGPATH.'images/success-delete.jpg" class="del-x" alt=""/>
|
43 |
-
</div>
|
44 |
-
</div>';
|
45 |
-
}
|
46 |
-
|
47 |
-
// processing form submission
|
48 |
-
$status_message = "";
|
49 |
-
$error_message = "";
|
50 |
-
$setting_changed = false;
|
51 |
-
|
52 |
-
if(isset($_POST['save_changes_cb'])) {
|
53 |
-
|
54 |
-
// Set success message
|
55 |
-
$status_message = __('Your changes have been saved successfully!', 'shrsb');
|
56 |
-
$_POST['pageorpost'] = shrsb_set_content_type();
|
57 |
-
foreach (array(
|
58 |
-
'cb', 'size', 'pageorpost'
|
59 |
-
)as $field) {
|
60 |
-
if(isset($_POST[$field])) { // this is to prevent warning if $_POST[$field] is not defined
|
61 |
-
$fieldval = $_POST[$field];
|
62 |
-
if($field == 'cb' && $fieldval != $shrsb_cb[$field]) {
|
63 |
-
$setting_changed = true;
|
64 |
-
}
|
65 |
-
$shrsb_cb[$field] = $fieldval;
|
66 |
-
} else {
|
67 |
-
$shrsb_cb[$field] = NULL;
|
68 |
-
}
|
69 |
-
}
|
70 |
-
|
71 |
-
update_option('ShareaholicClassicBookmarks',$shrsb_cb);
|
72 |
-
|
73 |
-
if ($setting_changed == true){
|
74 |
-
shr_sendTrackingEvent('FeatureToggle', array('f_updated' => 'f_classic', 'enabled' => ($shrsb_cb['cb'] == '1' ? 'true' : 'false')));
|
75 |
-
}
|
76 |
-
|
77 |
-
}//Closed Save
|
78 |
-
|
79 |
-
//if there was an error, construct error messages
|
80 |
-
if ($error_message != '') {
|
81 |
-
echo '
|
82 |
-
<div id="errmessage" class="shrsb-error">
|
83 |
-
<div class="dialog-left fugue f-error">
|
84 |
-
'.$error_message.'
|
85 |
-
</div>
|
86 |
-
<div class="dialog-right">
|
87 |
-
<img src="'.SHRSB_PLUGPATH.'images/error-delete.jpg" class="del-x" alt=""/>
|
88 |
-
</div>
|
89 |
-
</div>';
|
90 |
-
} elseif ($status_message != '') {
|
91 |
-
echo '<style type="text/css">#update_sb{display:none !important;}</style>
|
92 |
-
<div id="statmessage" class="shrsb-success">
|
93 |
-
<div class="dialog-left fugue f-success">
|
94 |
-
'.$status_message.'
|
95 |
-
</div>
|
96 |
-
<div class="dialog-right">
|
97 |
-
<img src="'.SHRSB_PLUGPATH.'images/success-delete.jpg" class="del-x" alt=""/>
|
98 |
-
</div>
|
99 |
-
</div>';
|
100 |
-
}
|
101 |
-
?>
|
102 |
-
|
103 |
-
<form name="sexy-bookmarks" id="sexy-bookmarks" action="" method="post">
|
104 |
-
<div id="shrsb-col-left" style="width:100%">
|
105 |
-
<ul id="shrsb-sortables">
|
106 |
-
|
107 |
-
<?php if (shrsb_get_current_user_role()=="Administrator"){ ?>
|
108 |
-
|
109 |
-
<li>
|
110 |
-
<div class="box-mid-head">
|
111 |
-
<h2><img src="<?php echo SHRSB_PLUGPATH; ?>/images/thumbs-icon.png" style="float:left;margin-top:2px;margin-right:10px;" alt="cb" /> <?php _e('Classic Bookmarks', 'shrsb'); ?></h2>
|
112 |
-
</div>
|
113 |
-
|
114 |
-
<div class="box-mid-body" id="toggle5">
|
115 |
-
<div class="padding">
|
116 |
-
<div id="genopts">
|
117 |
-
<table><tbody>
|
118 |
-
<tr class="alert-success">
|
119 |
-
<td><span class="shrsb_option"><?php _e('Enable Classic Bookmarks', 'shrsb'); ?> </span></td>
|
120 |
-
<td WIDTH="120"><label><input <?php echo ((@$shrsb_cb['cb'] == "1")? 'checked="checked"' : ""); ?> name="cb" id="cb-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label></td>
|
121 |
-
<td WIDTH="120"><label><input <?php echo ((@$shrsb_cb['cb'] == "0")? 'checked="checked"' : ""); ?> name="cb" id="cb-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label></td>
|
122 |
-
</tr>
|
123 |
-
<tr class="cb_prefs" style="display:none">
|
124 |
-
<td><label class="tab" for="num" style="margin-top:7px;"><?php _e('Size :', 'shrsb'); ?></label></td>
|
125 |
-
<td WIDTH="300"><label><input <?php echo ((@$shrsb_cb['size'] == "16")? 'checked="checked"' : ""); ?> name="size" id="cb-yes" type="radio" value="16" /><img src="<?php echo SHRSB_PLUGPATH; ?>/images/classicbookmark_16x16.png" alt="cb16x16" /></label>
|
126 |
-
<br/>
|
127 |
-
<label><input <?php echo ((@$shrsb_cb['size'] == "32")? 'checked="checked"' : ""); ?> name="size" id="cb-no" type="radio" value="32" /><img src="<?php echo SHRSB_PLUGPATH; ?>/images/classicbookmark_32x32.png" alt="cb32X32" /></label></td>
|
128 |
-
<td></td>
|
129 |
-
</tr>
|
130 |
-
</tbody></table>
|
131 |
-
</div>
|
132 |
-
</div>
|
133 |
-
</li>
|
134 |
-
<li>
|
135 |
-
<div class="box-mid-head">
|
136 |
-
<h2 class="fugue f-footer"><?php _e('Classic Bookmarks Placement', 'shrsb'); ?></h2>
|
137 |
-
</div>
|
138 |
-
<div class="box-mid-body" id="toggle5">
|
139 |
-
<div class="padding">
|
140 |
-
<?php shrsb_options_menu_type(@$shrsb_cb['pageorpost']); ?><br />
|
141 |
-
</div>
|
142 |
-
</div>
|
143 |
-
</li>
|
144 |
-
<?php } ?>
|
145 |
-
</ul>
|
146 |
-
|
147 |
-
<?php if (shrsb_get_current_user_role()=="Administrator"){ ?>
|
148 |
-
|
149 |
-
<div style="clear:both;"></div>
|
150 |
-
<input type="hidden" name="save_changes_cb" value="1" />
|
151 |
-
<div class="shrsbsubmit"><input type="submit" id="save_changes_cb" value="<?php _e('Save Changes', 'shrsb'); ?>" /></div>
|
152 |
-
</form>
|
153 |
-
<form action="" method="post">
|
154 |
-
<input type="hidden" name="reset_all_options_cb" id="reset_all_options_cb" value="0" />
|
155 |
-
<!-- <div class="shrsbreset"><input type="submit" value="<?php _e('Reset Settings', 'shrsb'); ?>" /></div> -->
|
156 |
-
</form>
|
157 |
-
|
158 |
-
<?php } ?>
|
159 |
-
|
160 |
-
<?php echo shrsb_getfooter(); ?>
|
161 |
-
|
162 |
-
</div>
|
163 |
-
|
164 |
-
<?php
|
165 |
-
|
166 |
-
//Right Side helpful links
|
167 |
-
echo shrsb_right_side_menu();
|
168 |
-
//Snap Engage
|
169 |
-
echo get_snapengage();
|
170 |
-
|
171 |
-
}//closing brace for function "shrsb_settings_page"
|
172 |
-
|
173 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/shrsb_landing_page.php
DELETED
@@ -1,72 +0,0 @@
|
|
1 |
-
<?php function shrsb_landing_page() { ?>
|
2 |
-
|
3 |
-
<form name="sexy-bookmarks" id="sexy-bookmarks" action="" method="post">
|
4 |
-
|
5 |
-
<div class="wrap""><div class="icon32" id="icon-options-general"><br></div><h2>Shareaholic Dashboard</h2></div>
|
6 |
-
|
7 |
-
<div id="shrsb-col-left" style="width:100%;">
|
8 |
-
<ul id="shrsb-sortables">
|
9 |
-
|
10 |
-
<li>
|
11 |
-
<div class="page-header" style="margin-top:20px;">
|
12 |
-
<h1 class="grey_light">Enable Discovery:</h1>
|
13 |
-
</div>
|
14 |
-
|
15 |
-
<div id="rec_box" class="select_product">
|
16 |
-
<img style="float:left; margin-left:-25px;margin-top:-19px;" src="<?php echo SHRSB_PLUGPATH."images/new_badge.png" ?>">
|
17 |
-
<div class="shr-landing-product-icon"><img src="<?php echo SHRSB_PLUGPATH."images/thumbs.png" ?>"></div>
|
18 |
-
<div class="shr-landing-product-name"><h2>Recommendations / Related Content</h2><span class="shr-landing-product-desc">Proven to drive more pageviews by helping your readers discover more of your amazing content.</span></div>
|
19 |
-
<div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_recommendations.php" class="btn btn-large <?php global $shrsb_recommendations; echo ((@$shrsb_recommendations['recommendations'] == "1")? '' : "btn-primary");?>"><?php echo ((@$shrsb_recommendations['recommendations'] == "1")? '<i class="icon-cog" style="margin-top:2px;"></i> Settings' : "Enable");?></a></div>
|
20 |
-
</div>
|
21 |
-
|
22 |
-
<div class="page-header" style="margin-top:40px;"">
|
23 |
-
<h1 class="grey_light">Enable Sharing:</h1>
|
24 |
-
</div>
|
25 |
-
|
26 |
-
<div id="sb_box" class="select_product">
|
27 |
-
<img style="float:left; margin-left:-25px;margin-top:-19px;visibility:hidden;" src="<?php echo SHRSB_PLUGPATH."images/new_badge.png" ?>">
|
28 |
-
<div class="shr-landing-product-icon"><img src="<?php echo SHRSB_PLUGPATH."images/sbm.png" ?>"></div>
|
29 |
-
<div class="shr-landing-product-name"><h2>SexyBookmarks</h2><span class="shr-landing-product-desc">Have your content shared more with the sexiest sharing buttons on the web.</span></div>
|
30 |
-
<div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_sexybookmarks.php" class="btn btn-large <?php global $shrsb_plugopts; echo ((@$shrsb_plugopts['sexybookmark'] == "1")? '' : "btn-primary");?>"><?php echo ((@$shrsb_plugopts['sexybookmark'] == "1")? '<i class="icon-cog" style="margin-top:2px;"></i> Settings' : "Enable");?></a></div>
|
31 |
-
</div>
|
32 |
-
|
33 |
-
<div id="topbar_box" class="select_product">
|
34 |
-
<img style="float:left; margin-left:-25px;margin-top:-19px;visibility:hidden;" src="<?php echo SHRSB_PLUGPATH."images/new_badge.png" ?>">
|
35 |
-
<div class="shr-landing-product-icon"><img src="<?php echo SHRSB_PLUGPATH."images/tophat.jpg" ?>"></div>
|
36 |
-
<div class="shr-landing-product-name"><h2>Top Bar</h2><span class="shr-landing-product-desc">Make sure your readers always have a share button nearby.</span></div>
|
37 |
-
<div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_topbar.php" class="btn btn-large <?php global $shrsb_tb_plugopts; echo ((@$shrsb_tb_plugopts['topbar'] == "1")? '' : "btn-primary");?>"><?php echo ((@$shrsb_tb_plugopts['topbar'] == "1")? '<i class="icon-cog" style="margin-top:2px;"></i> Settings' : "Enable");?></a></div>
|
38 |
-
</div>
|
39 |
-
|
40 |
-
<div id="sb_box" class="select_product">
|
41 |
-
<div class="shr-landing-product-icon"><img src="<?php echo SHRSB_PLUGPATH."images/cbm.png" ?>"></div>
|
42 |
-
<div class="shr-landing-product-name"><h2>ClassicBookmarks</h2><span class="shr-landing-product-desc">Beautiful, elegant, classic styled sharing buttons.</span></div>
|
43 |
-
<div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_classicbookmarks.php" class="btn btn-large <?php global $shrsb_cb; echo ((@$shrsb_cb['cb'] == "1")? '' : "btn-primary");?>"><?php echo ((@$shrsb_cb['cb'] == "1")? '<i class="icon-cog" style="margin-top:2px;"></i> Settings' : "Enable");?></a></div>
|
44 |
-
</div>
|
45 |
-
|
46 |
-
<div class="page-header" style="margin-top:40px;">
|
47 |
-
<h1 class="grey_light">Analyze:</h1>
|
48 |
-
</div>
|
49 |
-
|
50 |
-
<div id="soc_box" class="select_product">
|
51 |
-
<img style="float:left; margin-left:-25px;margin-top:-19px;visibility:hidden;" src="<?php echo SHRSB_PLUGPATH."images/new_badge.png" ?>">
|
52 |
-
<div class="shr-landing-product-icon"><img src="<?php echo SHRSB_PLUGPATH."images/chart.png" ?>"></div>
|
53 |
-
<div class="shr-landing-product-name"><h2>Social Analytics</h2><span class="shr-landing-product-desc">Discover and connect with who is reading and sharing your content.</span></div>
|
54 |
-
<div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_analytics.php" class="btn btn-large"><i class="icon-cog" style="margin-top:2px;"></i> Settings</a></div>
|
55 |
-
</div>
|
56 |
-
<div style="margin-top:45px;"></div>
|
57 |
-
|
58 |
-
<?php echo shrsb_getfooter(); ?>
|
59 |
-
</div>
|
60 |
-
|
61 |
-
</form>
|
62 |
-
|
63 |
-
<?php
|
64 |
-
|
65 |
-
//Right Side helpful links
|
66 |
-
echo shrsb_right_side_menu();
|
67 |
-
//Snap Engage
|
68 |
-
echo get_snapengage();
|
69 |
-
|
70 |
-
}//closing brace for function "shrsb_settings_page"
|
71 |
-
|
72 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/shrsb_recommendations_page.php
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* @desc recommendations Settings
|
5 |
-
*/
|
6 |
-
|
7 |
-
$shrsb_recommendations = shrsb_recommendations_set_options();
|
8 |
-
|
9 |
-
/*
|
10 |
-
* @desc Set the recommendations settings either from database or default
|
11 |
-
*/
|
12 |
-
function shrsb_recommendations_set_options( $action = NULL ) {
|
13 |
-
|
14 |
-
$option_name = 'ShareaholicRecommendations';
|
15 |
-
|
16 |
-
$shrsb_recommendations_default = array(
|
17 |
-
'recommendations' => '1'
|
18 |
-
, 'num' => '3'
|
19 |
-
, 'pageorpost' => 'postpageindexcategory'
|
20 |
-
, 'style' => 'image'
|
21 |
-
);
|
22 |
-
|
23 |
-
//Return default settings
|
24 |
-
if( $action == "reset" ) {
|
25 |
-
delete_option($option_name);
|
26 |
-
add_option($option_name,$shrsb_recommendations_default);
|
27 |
-
return $shrsb_recommendations_default;
|
28 |
-
}
|
29 |
-
|
30 |
-
//Get the settings from the database
|
31 |
-
$database_Settings = get_option($option_name);
|
32 |
-
|
33 |
-
|
34 |
-
if( $database_Settings ) {//got the settings in the database
|
35 |
-
|
36 |
-
// Check only when upgrading
|
37 |
-
if( SHRSB_UPGRADING == TRUE) {
|
38 |
-
$need_to_update = false;
|
39 |
-
|
40 |
-
//Check whether all the settings are present or not
|
41 |
-
foreach( $shrsb_recommendations_default as $k => $v ){
|
42 |
-
if( !array_key_exists( $k, $database_Settings )) {
|
43 |
-
$database_Settings[$k] = $v;
|
44 |
-
$need_to_update = true;
|
45 |
-
}
|
46 |
-
}
|
47 |
-
|
48 |
-
if( $need_to_update ) update_option( $option_name, $database_Settings );
|
49 |
-
|
50 |
-
}
|
51 |
-
|
52 |
-
return $database_Settings;
|
53 |
-
|
54 |
-
} else {
|
55 |
-
//Add the settings to the database
|
56 |
-
add_option( $option_name, $shrsb_recommendations_default );
|
57 |
-
return $shrsb_recommendations_default;
|
58 |
-
}
|
59 |
-
}
|
60 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/shrsb_recommendations_settings_page.php
DELETED
@@ -1,205 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* @desc Recommendations Settings page
|
5 |
-
*/
|
6 |
-
|
7 |
-
function shrsb_recommendations_settings_page() {
|
8 |
-
global $shrsb_recommendations;
|
9 |
-
|
10 |
-
// Add all the global varaible declarations for the $shrsb_recommendations_plugopts
|
11 |
-
echo '<div class="wrap""><div class="icon32" id="icon-options-general"><br></div><h2>'.__('Recommendations: Related Content Settings', 'shrsb').'</h2></div>';
|
12 |
-
//Defaults - set if not present
|
13 |
-
if (!isset($_POST['reset_all_options_recommendations'])){$_POST['reset_all_options_recommendations'] = '1';}
|
14 |
-
if (!isset($_POST['shrsbresetallwarn-choice'])){$_POST['shrsbresetallwarn-choice'] = 'no';}
|
15 |
-
|
16 |
-
if($_POST['reset_all_options_recommendations'] == '0') {
|
17 |
-
echo '
|
18 |
-
<div id="shrsbresetallwarn" class="dialog-box-warning" style="float:none;width:97%;margin-top:20px;">
|
19 |
-
<div class="dialog-left fugue f-warn">
|
20 |
-
'.__("WARNING: You are about to reset all plugin settings to their default state! Do you wish to continue?", "shrsb").'
|
21 |
-
</div>
|
22 |
-
<div class="dialog-right">
|
23 |
-
<form action="" method="post" id="resetalloptionsaccept">
|
24 |
-
<label><input name="shrsbresetallwarn-choice" id="shrsbresetallwarn-yes" type="radio" value="yes" />'.__('Yes', 'shrsb').'</label> <label><input name="shrsbresetallwarn-choice" id="shrsbresetallwarn-cancel" type="radio" value="cancel" />'.__('Cancel', 'shrsb').'</label>
|
25 |
-
</form>
|
26 |
-
</div>
|
27 |
-
</div>';
|
28 |
-
}
|
29 |
-
|
30 |
-
//Reset all options to default settings if user clicks the reset button
|
31 |
-
if($_POST['shrsbresetallwarn-choice'] == "yes") { //check for reset button click
|
32 |
-
|
33 |
-
$shrsb_recommendations = shrsb_recommendations_set_options('reset');
|
34 |
-
|
35 |
-
//delete_option('SHRSB_CustomSprite');
|
36 |
-
echo '
|
37 |
-
<div id="statmessage" class="shrsb-success">
|
38 |
-
<div class="dialog-left fugue f-success">
|
39 |
-
'.__('All settings have been reset to their default values.', 'shrsb').'
|
40 |
-
</div>
|
41 |
-
<div class="dialog-right">
|
42 |
-
<img src="'.SHRSB_PLUGPATH.'images/success-delete.jpg" class="del-x" alt=""/>
|
43 |
-
</div>
|
44 |
-
</div>';
|
45 |
-
}
|
46 |
-
|
47 |
-
// processing form submission
|
48 |
-
$status_message = "";
|
49 |
-
$error_message = "";
|
50 |
-
$setting_changed = false;
|
51 |
-
|
52 |
-
if(isset($_POST['save_changes_rd'])) {
|
53 |
-
|
54 |
-
// Set success message
|
55 |
-
$status_message = __('Your changes have been saved successfully!', 'shrsb');
|
56 |
-
$_POST['pageorpost'] = shrsb_set_content_type();
|
57 |
-
foreach (array(
|
58 |
-
'recommendations', 'num', 'pageorpost','style'
|
59 |
-
)as $field) {
|
60 |
-
if(isset($_POST[$field])) { // this is to prevent warning if $_POST[$field] is not defined
|
61 |
-
$fieldval = $_POST[$field];
|
62 |
-
if($field == 'recommendations' && $fieldval != $shrsb_recommendations[$field]) {
|
63 |
-
$setting_changed = true;
|
64 |
-
}
|
65 |
-
$shrsb_recommendations[$field] = $fieldval;
|
66 |
-
} else {
|
67 |
-
$shrsb_recommendations[$field] = NULL;
|
68 |
-
}
|
69 |
-
}
|
70 |
-
|
71 |
-
if($shrsb_recommendations['style']=='text')
|
72 |
-
$shrsb_recommendations['num']=5;
|
73 |
-
|
74 |
-
update_option('ShareaholicRecommendations',$shrsb_recommendations);
|
75 |
-
|
76 |
-
if ($setting_changed == true){
|
77 |
-
shr_sendTrackingEvent('FeatureToggle', array('f_updated' => 'f_rec', 'enabled' => ($shrsb_recommendations['recommendations'] == '1' ? 'true' : 'false')));
|
78 |
-
shr_recommendationsStatus();
|
79 |
-
}
|
80 |
-
|
81 |
-
}//Closed Save
|
82 |
-
|
83 |
-
//if there was an error, construct error messages
|
84 |
-
if ($error_message != '') {
|
85 |
-
echo '
|
86 |
-
<div id="errmessage" class="shrsb-error">
|
87 |
-
<div class="dialog-left fugue f-error">
|
88 |
-
'.$error_message.'
|
89 |
-
</div>
|
90 |
-
<div class="dialog-right">
|
91 |
-
<img src="'.SHRSB_PLUGPATH.'images/error-delete.jpg" class="del-x" alt=""/>
|
92 |
-
</div>
|
93 |
-
</div>';
|
94 |
-
} elseif ($status_message != '') {
|
95 |
-
echo '<style type="text/css">#update_sb{display:none !important;}</style>
|
96 |
-
<div id="statmessage" class="shrsb-success">
|
97 |
-
<div class="dialog-left fugue f-success">
|
98 |
-
'.$status_message.'
|
99 |
-
</div>
|
100 |
-
<div class="dialog-right">
|
101 |
-
<img src="'.SHRSB_PLUGPATH.'images/success-delete.jpg" class="del-x" alt=""/>
|
102 |
-
</div>
|
103 |
-
</div>';
|
104 |
-
}
|
105 |
-
?>
|
106 |
-
|
107 |
-
<form name="sexy-bookmarks" id="sexy-bookmarks" action="" method="post">
|
108 |
-
<div id="shrsb-col-left" style="width:100%">
|
109 |
-
<ul id="shrsb-sortables">
|
110 |
-
|
111 |
-
<?php if (shrsb_get_current_user_role()=="Administrator"){ ?>
|
112 |
-
|
113 |
-
<li>
|
114 |
-
<div class="box-mid-head">
|
115 |
-
<h2><img src="<?php echo SHRSB_PLUGPATH; ?>/images/thumbs-icon.png" style="float:left;margin-top:2px;margin-right:10px;" alt="Recommendations" /> <?php _e('Recommendations', 'shrsb'); ?></h2>
|
116 |
-
</div>
|
117 |
-
<div class="box-mid-body" id="toggle5">
|
118 |
-
|
119 |
-
<div class="padding">
|
120 |
-
<div id="genopts">
|
121 |
-
<table><tbody>
|
122 |
-
<tr class="alert-success">
|
123 |
-
<td><span class="shrsb_option"><?php _e('Enable Recommendations', 'shrsb'); ?> </span></td>
|
124 |
-
<td WIDTH="120"><label><input <?php echo ((@$shrsb_recommendations['recommendations'] == "1")? 'checked="checked"' : ""); ?> name="recommendations" id="recommendations-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label></td>
|
125 |
-
<td WIDTH="120"><label><input <?php echo ((@$shrsb_recommendations['recommendations'] == "0")? 'checked="checked"' : ""); ?> name="recommendations" id="recommendations-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label></td>
|
126 |
-
</tr>
|
127 |
-
|
128 |
-
<tr class="recommendations_prefs-1" style="display:none">
|
129 |
-
<td><label class="tab" for="style" style="margin-top:7px;"><?php _e('Display thumbnails for each recommendation? </br>(If most posts on your blog don\'t include images, you should set this to \'No\'):', 'shrsb'); ?></label></td>
|
130 |
-
<td WIDTH="120"><label><input <?php echo ((@$shrsb_recommendations['style'] == "image")? 'checked="checked"' : ""); ?> name="style" id="recommendations-style-image" type="radio" value="image" /> <?php _e('Yes', 'shrsb'); ?></label></td>
|
131 |
-
<td WIDTH="120"><label><input <?php echo ((@$shrsb_recommendations['style'] == "text")? 'checked="checked"' : ""); ?> name="style" id="recommendations-style-text" type="radio" value="text" /> <?php _e('No', 'shrsb'); ?></label></td>
|
132 |
-
<!-- <td colspan="2"><input style="margin-top:7px;" type="text" id="num" name="num" size="35" placeholder="ex. UA-XXXXXXXX-X" value="<?php echo @$shrsb_recommendations['style']; ?>" /></td>-->
|
133 |
-
|
134 |
-
</tr>
|
135 |
-
|
136 |
-
<tr class="recommendations_prefs-2" style="display:none;">
|
137 |
-
<td><label class="tab" for="num" style="margin-top:7px;"><?php _e('Number of recommendations displayed:', 'shrsb'); ?></label></td>
|
138 |
-
<td WIDTH="120"><label><input <?php echo ((@$shrsb_recommendations['num'] == "3")? 'checked="checked"' : ""); ?> name="num" id="recommendations-yes" type="radio" value="3" /> <?php _e('3', 'shrsb'); ?></label></td>
|
139 |
-
<td WIDTH="120"><label><input <?php echo ((@$shrsb_recommendations['num'] == "4")? 'checked="checked"' : ""); ?> name="num" id="recommendations-no" type="radio" value="4" /> <?php _e('4', 'shrsb'); ?></label></td>
|
140 |
-
</tr>
|
141 |
-
|
142 |
-
<tr>
|
143 |
-
<td colspan="3"><br />
|
144 |
-
<p>Once enabled, we will analyze your content and begin generating recommended posts to display. This may take up to several hours if you are a new Shareaholic user and depending on the number of posts on your blog. The quality of recommended stories will improve once we complete our crawl of your website. <a href="http://support.shareaholic.com/forums/21886992-Recommendations-Related-Content" target="_new">Learn more.</a></p><p><span class="label label-info">Tip</span> we recommend using Shareaholic sharing tools as they help boost the quality of your recommendations.</p>
|
145 |
-
<p>
|
146 |
-
<strong>Data Status:</strong>
|
147 |
-
<?php
|
148 |
-
$status = shr_recommendationsStatus_code();
|
149 |
-
if ($status == "processing" || $status == 'unknown'){
|
150 |
-
echo '<img class="shrsb_health_icon" align="top" src="'.SHRSB_PLUGPATH.'/images/circle_yellow.png" /> Processing';
|
151 |
-
} else {
|
152 |
-
echo '<img class="shrsb_health_icon" align="top" src="'.SHRSB_PLUGPATH.'/images/circle_green.png" /> Ready';
|
153 |
-
}
|
154 |
-
?>
|
155 |
-
</p></td>
|
156 |
-
</tr>
|
157 |
-
</tbody></table>
|
158 |
-
</div>
|
159 |
-
</div>
|
160 |
-
</li>
|
161 |
-
<li>
|
162 |
-
<div class="box-mid-head">
|
163 |
-
<h2 class="fugue f-footer"><?php _e('Recommendations Placement', 'shrsb'); ?></h2>
|
164 |
-
</div>
|
165 |
-
<div class="box-mid-body" id="toggle5">
|
166 |
-
<div class="padding">
|
167 |
-
|
168 |
-
<?php shrsb_options_menu_type(@$shrsb_recommendations['pageorpost']); ?>
|
169 |
-
|
170 |
-
<br />
|
171 |
-
</div>
|
172 |
-
</div>
|
173 |
-
</li>
|
174 |
-
|
175 |
-
<?php } ?>
|
176 |
-
|
177 |
-
</ul>
|
178 |
-
|
179 |
-
<?php if (shrsb_get_current_user_role()=="Administrator"){ ?>
|
180 |
-
|
181 |
-
<div style="clear:both;"></div>
|
182 |
-
<input type="hidden" name="save_changes_rd" value="1" />
|
183 |
-
<div class="shrsbsubmit"><input type="submit" id="save_changes_rd" value="<?php _e('Save Changes', 'shrsb'); ?>" /></div>
|
184 |
-
</form>
|
185 |
-
<form action="" method="post">
|
186 |
-
<input type="hidden" name="reset_all_options_recommendations" id="reset_all_options_recommendations" value="0" />
|
187 |
-
<!-- <div class="shrsbreset"><input type="submit" value="<?php _e('Reset Settings', 'shrsb'); ?>" /></div> -->
|
188 |
-
</form>
|
189 |
-
|
190 |
-
<?php } ?>
|
191 |
-
|
192 |
-
<?php echo shrsb_getfooter(); ?>
|
193 |
-
|
194 |
-
</div>
|
195 |
-
|
196 |
-
<?php
|
197 |
-
|
198 |
-
//Right Side helpful links
|
199 |
-
echo shrsb_right_side_menu();
|
200 |
-
//Snap Engage
|
201 |
-
echo get_snapengage();
|
202 |
-
|
203 |
-
}//closing brace for function "shrsb_settings_page"
|
204 |
-
|
205 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/shrsb_settings_page.php
DELETED
@@ -1,633 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* @desc Like button Set Settings
|
5 |
-
*/
|
6 |
-
|
7 |
-
function shrsb_likeButtonSetHTML($settings,$pos = 'Bottom') { // $pos = Bottom/Top
|
8 |
-
|
9 |
-
?>
|
10 |
-
|
11 |
-
<table><tbody style ="display:none" class="likeButtonsAvailable<?php echo $pos;?>">
|
12 |
-
<tr class="tabForTr">
|
13 |
-
<td><span class="shrsb_option"><?php _e('Include Facebook Like Button', 'shrsb'); ?></span>
|
14 |
-
</td>
|
15 |
-
<td style="width:125px"><label><input <?php echo (($settings["fbLikeButton$pos"] == "1")? 'checked="checked"' : ""); ?> name="fbLikeButton<?php echo $pos;?>" id="fbLikeButton<?php echo $pos;?>-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label>
|
16 |
-
</td><td><label><input <?php echo (($settings["fbLikeButton$pos"] == "0")? 'checked="checked"' : ""); ?> name="fbLikeButton<?php echo $pos;?>" id="fbLikeButton<?php echo $pos;?>-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label>
|
17 |
-
</td>
|
18 |
-
</tr>
|
19 |
-
<tr class="tabForTr">
|
20 |
-
<td><span class="shrsb_option"><?php _e('Include Facebook Send Button', 'shrsb'); ?></span>
|
21 |
-
</td>
|
22 |
-
<td style="width:125px"><label><input <?php echo (($settings["fbSendButton$pos"] == "1")? 'checked="checked"' : ""); ?> name="fbSendButton<?php echo $pos;?>" id="fbSendButton<?php echo $pos;?>-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label>
|
23 |
-
</td><td><label><input <?php echo (($settings["fbSendButton$pos"] == "0")? 'checked="checked"' : ""); ?> name="fbSendButton<?php echo $pos;?>" id="fbSendButton<?php echo $pos;?>-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label>
|
24 |
-
</td>
|
25 |
-
</tr>
|
26 |
-
<tr class="tabForTr">
|
27 |
-
<td><span class="shrsb_option"><?php _e('Include Google +1 Button', 'shrsb'); ?></span>
|
28 |
-
</td>
|
29 |
-
<td style="width:125px"><label><input <?php echo (($settings["googlePlusOneButton$pos"] == "1")? 'checked="checked"' : ""); ?> name="googlePlusOneButton<?php echo $pos;?>" id="googlePlusOneButton<?php echo $pos;?>-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label>
|
30 |
-
</td><td><label><input <?php echo (($settings["googlePlusOneButton$pos"] == "0")? 'checked="checked"' : ""); ?> name="googlePlusOneButton<?php echo $pos;?>" id="googlePlusOneButton<?php echo $pos;?>-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label>
|
31 |
-
</td>
|
32 |
-
</tr>
|
33 |
-
<tr class="tabForTr">
|
34 |
-
<td><span class="shrsb_option"><?php _e('Include Tweet Button', 'shrsb'); ?></span>
|
35 |
-
</td>
|
36 |
-
<td style="width:125px"><label><input <?php echo (($settings["tweetButton$pos"] == "1")? 'checked="checked"' : ""); ?> name="tweetButton<?php echo $pos;?>" id="tweetButton<?php echo $pos;?>-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label>
|
37 |
-
</td><td><label><input <?php echo (($settings["tweetButton$pos"] == "0")? 'checked="checked"' : ""); ?> name="tweetButton<?php echo $pos;?>" id="tweetButton<?php echo $pos;?>-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label>
|
38 |
-
</td>
|
39 |
-
</tr>
|
40 |
-
|
41 |
-
<tr class="tabForTr likeButtonSetOptions<?php echo $pos;?>" id="likeButtonSetAlignment<?php echo $pos;?>" style="display:none">
|
42 |
-
<td>
|
43 |
-
<span class="tab shrsb_option" style="display:block"><?php _e('Button Alignment (w.r.t post)', 'shrsb'); ?></span>
|
44 |
-
</td>
|
45 |
-
<td colspan="2">
|
46 |
-
<select name="likeButtonSetAlignment<?php echo $pos;?>">
|
47 |
-
<?php
|
48 |
-
print shrsb_select_option_group(
|
49 |
-
'likeButtonSetAlignment'.$pos,
|
50 |
-
array(
|
51 |
-
'0'=>__('Left Aligned', 'shrsb'),
|
52 |
-
'1'=>__('Right Aligned', 'shrsb')
|
53 |
-
),
|
54 |
-
$settings
|
55 |
-
);
|
56 |
-
?>
|
57 |
-
</select>
|
58 |
-
</td>
|
59 |
-
</tr>
|
60 |
-
<tr class ="tabForTr likeButtonSetOptions<?php echo $pos;?>" style="display:none">
|
61 |
-
<td>
|
62 |
-
<span class="tab shrsb_option" style="display:block"><?php _e('Button Style', 'shrsb'); ?></span>
|
63 |
-
</td>
|
64 |
-
<td style="width:125px">
|
65 |
-
<select name="likeButtonSetSize<?php echo $pos;?>">
|
66 |
-
<?php
|
67 |
-
print shrsb_select_option_group(
|
68 |
-
"likeButtonSetSize$pos", array(
|
69 |
-
'0'=>__('Standard', 'shrsb'),
|
70 |
-
'1'=>__('Buttons', 'shrsb'),
|
71 |
-
'2'=>__('Box', 'shrsb'),
|
72 |
-
),
|
73 |
-
$settings
|
74 |
-
);
|
75 |
-
?>
|
76 |
-
</select>
|
77 |
-
</td>
|
78 |
-
|
79 |
-
</tr>
|
80 |
-
|
81 |
-
<tr class ="tabForTr likeButtonSetOptions<?php echo $pos;?>" style="display:none">
|
82 |
-
<td>
|
83 |
-
<span class="tab shrsb_option" style="display:block"><?php _e('Show share counters:', 'shrsb'); ?></span>
|
84 |
-
</td>
|
85 |
-
<td style="width:125px">
|
86 |
-
<select name="likeButtonSetCount<?php echo $pos;?>">
|
87 |
-
<?php
|
88 |
-
print shrsb_select_option_group(
|
89 |
-
"likeButtonSetCount$pos", array(
|
90 |
-
'true'=>__('Yes', 'shrsb'),
|
91 |
-
'false'=>__('No', 'shrsb'),
|
92 |
-
),
|
93 |
-
$settings
|
94 |
-
);
|
95 |
-
?>
|
96 |
-
</select>
|
97 |
-
</td>
|
98 |
-
|
99 |
-
</tr>
|
100 |
-
|
101 |
-
<tr class ="tabForTr likeButtonSetOptions<?php echo $pos;?>" style="display:none">
|
102 |
-
<td rowspan="4" colspan="3" >
|
103 |
-
<small><?php _e('Drag to reorder.', 'shrsb'); ?></small>
|
104 |
-
|
105 |
-
<div style="clear: both; min-height: 1px; height: 5px; width: 100%;"></div>
|
106 |
-
<div id="buttonPreviews<?php echo $pos;?>" style="clear: both; max-height: 100px !important; max-width: 600px !important;"><ul>
|
107 |
-
<?php
|
108 |
-
$fbLikeHTML = '<li ><div style="display:none; cursor:move;" class="likebuttonpreview'.$pos.'">
|
109 |
-
<input name="likeButtonOrder'.$pos.'[]" type="hidden" value="shr-fb-like"/>
|
110 |
-
</div></li>';
|
111 |
-
$plusOneHTML = '<li><div style=" display:none; cursor:move;" class="plusonepreview'.$pos.'">
|
112 |
-
<input name="likeButtonOrder'.$pos.'[]" type="hidden" value="shr-plus-one"/>
|
113 |
-
</div></li>';
|
114 |
-
|
115 |
-
$fbSendHTML = '<li><div style = "display:none; cursor:move;" class="sendbuttonpreview'.$pos.' shr-fb-send">
|
116 |
-
<input name="likeButtonOrder'.$pos.'[]" type="hidden" value="shr-fb-send"/>
|
117 |
-
</div></li>';
|
118 |
-
$tweetButtonHTML = '<li><div style = "display:none; cursor:move;" class="tweetbuttonpreview'.$pos.' shr-tw-button">
|
119 |
-
<input name="likeButtonOrder'.$pos.'[]" type="hidden" value="shr-tw-button"/>
|
120 |
-
</div></li>';
|
121 |
-
|
122 |
-
foreach($settings['likeButtonOrder'.$pos] as $likeOption) {
|
123 |
-
switch($likeOption) {
|
124 |
-
case "shr-fb-like":
|
125 |
-
echo $fbLikeHTML;
|
126 |
-
break;
|
127 |
-
case "shr-plus-one":
|
128 |
-
echo $plusOneHTML;
|
129 |
-
break;
|
130 |
-
case "shr-fb-send":
|
131 |
-
echo $fbSendHTML;
|
132 |
-
break;
|
133 |
-
case "shr-tw-button":
|
134 |
-
echo $tweetButtonHTML;
|
135 |
-
break;
|
136 |
-
}
|
137 |
-
}
|
138 |
-
?>
|
139 |
-
</ul></div>
|
140 |
-
</td>
|
141 |
-
</tr>
|
142 |
-
<tr height="60px">
|
143 |
-
<script>
|
144 |
-
(function ($) {
|
145 |
-
var renderPlusOnes = function () {
|
146 |
-
var size = $('select[name$="likeButtonSetSize<?php echo $pos;?>"]').val();
|
147 |
-
switch(size) {
|
148 |
-
case '1':
|
149 |
-
size = "button";
|
150 |
-
break;
|
151 |
-
case '2':
|
152 |
-
size = "box";
|
153 |
-
break;
|
154 |
-
default:
|
155 |
-
size = "standard";
|
156 |
-
break;
|
157 |
-
}
|
158 |
-
var count = $('select[name$="likeButtonSetCount<?php echo $pos;?>"]').val();
|
159 |
-
switch(count) {
|
160 |
-
case 'false':
|
161 |
-
count = '';
|
162 |
-
break;
|
163 |
-
default:
|
164 |
-
count = '-count';
|
165 |
-
break;
|
166 |
-
}
|
167 |
-
var classN = 'shr-plus-one-' + size + count;
|
168 |
-
classN = "plusonepreview<?php echo $pos;?> " + classN;
|
169 |
-
$('.plusonepreview<?php echo $pos;?>').removeClass().addClass(classN);
|
170 |
-
|
171 |
-
};
|
172 |
-
$('select[name$="likeButtonSetCount<?php echo $pos;?>"],select[name$="likeButtonSetSize<?php echo $pos;?>"]').change(function () {
|
173 |
-
renderPlusOnes();
|
174 |
-
});
|
175 |
-
|
176 |
-
renderPlusOnes();
|
177 |
-
|
178 |
-
var renderTweetButton = function () {
|
179 |
-
var layout = $('select[name$="likeButtonSetSize<?php echo $pos;?>"]').val();
|
180 |
-
switch(layout) {
|
181 |
-
case '1':
|
182 |
-
layout = "button";
|
183 |
-
break;
|
184 |
-
case '2':
|
185 |
-
layout = "box";
|
186 |
-
break;
|
187 |
-
default:
|
188 |
-
layout = "standard";
|
189 |
-
break;
|
190 |
-
}
|
191 |
-
var count = $('select[name$="likeButtonSetCount<?php echo $pos;?>"]').val();
|
192 |
-
switch(count) {
|
193 |
-
case 'false':
|
194 |
-
count = '';
|
195 |
-
break;
|
196 |
-
default:
|
197 |
-
count = '-count';
|
198 |
-
break;
|
199 |
-
}
|
200 |
-
var classN = 'shr-tw-button-' + layout + count;
|
201 |
-
classN = "tweetbuttonpreview<?php echo $pos;?> " + classN;
|
202 |
-
$('.tweetbuttonpreview<?php echo $pos;?>').removeClass().addClass(classN);
|
203 |
-
};
|
204 |
-
|
205 |
-
$('select[name$="likeButtonSetCount<?php echo $pos;?>"],select[name$="likeButtonSetSize<?php echo $pos;?>"]').change(function () {
|
206 |
-
renderTweetButton();
|
207 |
-
});
|
208 |
-
renderTweetButton();
|
209 |
-
|
210 |
-
|
211 |
-
var renderLikeButtonPreview = function () {
|
212 |
-
var layout = $('select[name$="likeButtonSetSize<?php echo $pos;?>"]').val();
|
213 |
-
switch(layout) {
|
214 |
-
case '1':
|
215 |
-
layout = "button";
|
216 |
-
break;
|
217 |
-
case '2':
|
218 |
-
layout = "box";
|
219 |
-
break;
|
220 |
-
default:
|
221 |
-
layout = "standard";
|
222 |
-
break;
|
223 |
-
}
|
224 |
-
var classN = 'shr-fb-like-' + layout;
|
225 |
-
classN = "likebuttonpreview<?php echo $pos;?> " + classN;
|
226 |
-
$('.likebuttonpreview<?php echo $pos;?>').removeClass().addClass(classN);
|
227 |
-
};
|
228 |
-
|
229 |
-
$('select[name$="likeButtonSetSize<?php echo $pos;?>"]').change(function () {
|
230 |
-
renderLikeButtonPreview();
|
231 |
-
});
|
232 |
-
renderLikeButtonPreview();
|
233 |
-
})(jQuery);
|
234 |
-
</script>
|
235 |
-
</tr>
|
236 |
-
<tr></tr>
|
237 |
-
<tr></tr>
|
238 |
-
|
239 |
-
|
240 |
-
<?php
|
241 |
-
|
242 |
-
}
|
243 |
-
|
244 |
-
function shrsb_right_side_menu(){
|
245 |
-
?>
|
246 |
-
|
247 |
-
<div id="shrsb-col-right">
|
248 |
-
|
249 |
-
<h2 class="sh-logo"></h2>
|
250 |
-
|
251 |
-
<div class="box-right">
|
252 |
-
<div class="box-right-head">
|
253 |
-
<h3 class="fugue f-info-frame"><?php _e('Helpful Plugin Links', 'shrsb'); ?></h3>
|
254 |
-
</div>
|
255 |
-
<div class="box-right-body">
|
256 |
-
<div class="padding">
|
257 |
-
<ul class="infolinks">
|
258 |
-
<li><a href="https://shareaholic.com/tools/wordpress/usage-installation" target="_blank"><?php _e('Installation & Usage Guide', 'shrsb'); ?></a></li>
|
259 |
-
<li><a href="https://shareaholic.com/tools/wordpress/faq" target="_blank"><?php _e('Frequently Asked Questions', 'shrsb'); ?></a></li>
|
260 |
-
<li><a href="http://support.shareaholic.com/" target="_blank"><?php _e('Bug Submission Form', 'shrsb'); ?></a></li>
|
261 |
-
<li><a href="http://support.shareaholic.com/" target="_blank"><?php _e('Feature Request Form', 'shrsb'); ?></a></li>
|
262 |
-
<li><a href="https://shareaholic.com/tools/wordpress/translations" target="_blank"><?php _e('Submit a Translation', 'shrsb'); ?></a></li>
|
263 |
-
<li><a href="https://shareaholic.com/tools/browser/" target="_blank"><?php _e('Shareaholic Browsers Add-ons', 'shrsb'); ?></a></li>
|
264 |
-
<li><a href="https://shareaholic.com/tools/wordpress/credits" target="_blank"><?php _e('Thanks & Credits', 'shrsb'); ?></a></li>
|
265 |
-
</ul>
|
266 |
-
</div>
|
267 |
-
</div>
|
268 |
-
</div>
|
269 |
-
|
270 |
-
<div style="clear:both;"></div>
|
271 |
-
|
272 |
-
<div style="padding:15px; margin-bottom: 20px;">
|
273 |
-
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2FShareaholic&layout=standard&show_faces=true&width=240&action=like&font=lucida+grande&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:240px; height:80px;" allowTransparency="true"></iframe>
|
274 |
-
</div>
|
275 |
-
|
276 |
-
<div id="shrsb-updates">
|
277 |
-
<div id="shrsb-updates-container"></div>
|
278 |
-
<script async="true" type="text/javascript" src="//dtym7iokkjlif.cloudfront.net/media/js/platforms/wordpress/wordpress-admin.js"></script>
|
279 |
-
</div>
|
280 |
-
|
281 |
-
</div>
|
282 |
-
|
283 |
-
<?php
|
284 |
-
}
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
/**
|
289 |
-
* Return SnapEngage Help Tab
|
290 |
-
*
|
291 |
-
* @return string
|
292 |
-
* @author Jay Meattle
|
293 |
-
**/
|
294 |
-
|
295 |
-
function get_snapengage() {
|
296 |
-
$snapengage = <<<EOD
|
297 |
-
<!-- SnapEngage -->
|
298 |
-
<script type="text/javascript">
|
299 |
-
document.write(unescape("%3Cscript src='" + ((document.location.protocol=="https:")?"https://snapabug.appspot.com":"http://www.snapengage.com") + "/snapabug.js' type='text/javascript'%3E%3C/script%3E"));</script><script type="text/javascript">
|
300 |
-
SnapABug.setDomain('shareaholic.com');
|
301 |
-
SnapABug.addButton("62fa2e8b-38a9-4304-ba5c-86503444d30c","1","85%");
|
302 |
-
</script>
|
303 |
-
<!-- SnapEngage End -->
|
304 |
-
EOD;
|
305 |
-
return $snapengage;
|
306 |
-
}
|
307 |
-
|
308 |
-
function shrsb_getfooter(){
|
309 |
-
|
310 |
-
?>
|
311 |
-
<div style="clear:both;"></div>
|
312 |
-
<ul id="shrsb-sortables" style="width:96%;">
|
313 |
-
<li style="margin:0px;">
|
314 |
-
<div class="footer">
|
315 |
-
<a href="https://shareaholic.com/?src=wp_admin" target="_blank">Shareaholic for WordPress <?php echo SHRSB_vNum; ?></a> <span class="grey_light">|</span> <a href="https://shareaholic.com/privacy/?src=wp_admin" target="_blank">Privacy Policy</a> <span class="grey_light">|</span> <a href="https://shareaholic.com/terms/?src=wp_admin" target="_blank">Terms of Service</a> <span class="grey_light">|</span> <a href="http://support.shareaholic.com/" target="_blank">Support</a> <span class="grey_light">|</span> <a href="https://shareaholic.com/api/?src=wp_admin" target="_blank">API</a> <span class="grey_light">|</span> <a href="https://shareaholic.com/publishers/analytics/<?php $parse = parse_url(get_bloginfo('url')); echo $parse['host']; ?>/" target="_blank">Social Analytics</a> <br /> If you like this plugin and find it useful, please consider showing your support by <a href="http://wordpress.org/support/view/plugin-reviews/shareaholic" target="_blank" style="font-weight:bold;">giving us a good rating</a> on WordPress.org. Thank you for using <a href="">Shareaholic</a>.
|
316 |
-
</div>
|
317 |
-
<br />
|
318 |
-
<div style="display:block; font-size: 11px; color: #777777;">
|
319 |
-
<?php _e("Shareaholic is trusted by over 200 thousand publishers and touches almost 300 million people each month. Designed and built with all the love in the world in Boston, Massachusetts."); ?>
|
320 |
-
</div>
|
321 |
-
</li>
|
322 |
-
</ul>
|
323 |
-
<?php
|
324 |
-
}
|
325 |
-
|
326 |
-
/**
|
327 |
-
* Gets the contents of a url on www.shareaholic.com. We use shrbase as the
|
328 |
-
* URL base path. The caller is responsible for keeping track of whether the
|
329 |
-
* cache is up-to-date or not. If the cache is stale (because some argument
|
330 |
-
* has changed), then the caller should pass true as the second argument.
|
331 |
-
*
|
332 |
-
* @url - the partial url without base. ex. /publishers
|
333 |
-
* @path - path to cache result to, under spritegen.
|
334 |
-
* ex. /publishers.html
|
335 |
-
* pass null to use the path part of url
|
336 |
-
* @clearcache - force call and overwrite cache.
|
337 |
-
*/
|
338 |
-
function _shrsb_fetch_content($url, $path, $clearcache=false) {
|
339 |
-
global $shrsb_plugopts;
|
340 |
-
|
341 |
-
$shrbase = $shrsb_plugopts['shrbase']?$shrsb_plugopts['shrbase']:'http://www.shareaholic.com';
|
342 |
-
|
343 |
-
if (!preg_match('|^/|', $url)) {
|
344 |
-
@error_log("url must start with '/' in _shrsb_fetch_content");
|
345 |
-
return FALSE;
|
346 |
-
}
|
347 |
-
|
348 |
-
// default path
|
349 |
-
if (null === $path) {
|
350 |
-
$url_parts = explode('?', $url);
|
351 |
-
$path = rtrim($url_parts[0], '/');
|
352 |
-
}
|
353 |
-
|
354 |
-
$base_path = path_join(SHRSB_UPLOADDIR, 'spritegen');
|
355 |
-
$abs_path = $base_path.$path;
|
356 |
-
|
357 |
-
if ($clearcache || !($retval = _shrsb_read_file($abs_path))) {
|
358 |
-
$response = wp_remote_get($shrbase.$url);
|
359 |
-
if (is_wp_error($response)) {
|
360 |
-
@error_log("Failed to fetch ".$shrbase.$url);
|
361 |
-
$retval = FALSE;
|
362 |
-
} else {
|
363 |
-
$retval = $response['body'];
|
364 |
-
}
|
365 |
-
|
366 |
-
$write_succeed = _shrsb_write_file($abs_path, $retval);
|
367 |
-
if(!$write_succeed) {
|
368 |
-
$retval = FALSE;
|
369 |
-
}
|
370 |
-
}
|
371 |
-
|
372 |
-
return $retval;
|
373 |
-
}
|
374 |
-
|
375 |
-
|
376 |
-
//Copy the file in to the requested folder
|
377 |
-
function _shrsb_copy_file($des , $src){
|
378 |
-
if(!$des || !$src )
|
379 |
-
return false;
|
380 |
-
return _shrsb_write_file($des ,_shrsb_read_file($src));
|
381 |
-
}
|
382 |
-
|
383 |
-
function _shrsb_write_file($path, $content) {
|
384 |
-
$dir = dirname($path);
|
385 |
-
$return = false;
|
386 |
-
if(!wp_mkdir_p(dirname($path))) {
|
387 |
-
@error_log("Failed to create path ".dirname($path));
|
388 |
-
}
|
389 |
-
$fh = fopen($path, 'w+');
|
390 |
-
if (!$fh) {
|
391 |
-
@error_log("Failed to open ".$path);
|
392 |
-
}
|
393 |
-
else {
|
394 |
-
if (!fwrite($fh, $content)) {
|
395 |
-
@error_log("Failed to write to ".$path);
|
396 |
-
} else {
|
397 |
-
$return = true;
|
398 |
-
}
|
399 |
-
@fclose($fh);
|
400 |
-
}
|
401 |
-
return $return;
|
402 |
-
}
|
403 |
-
|
404 |
-
function _shrsb_read_file($path) {
|
405 |
-
$content = FALSE;
|
406 |
-
|
407 |
-
$fh = @fopen($path, 'r');
|
408 |
-
if (!$fh) {
|
409 |
-
@error_log("Failed to open ".$path);
|
410 |
-
}
|
411 |
-
else {
|
412 |
-
if (!$content = fread($fh, filesize($path))) {
|
413 |
-
@error_log("Failed to read from ".$path);
|
414 |
-
}
|
415 |
-
@fclose($fh);
|
416 |
-
}
|
417 |
-
|
418 |
-
return $content;
|
419 |
-
}
|
420 |
-
|
421 |
-
|
422 |
-
function get_sprite_file($opts, $type) {
|
423 |
-
global $shrsb_plugopts;
|
424 |
-
$shrbase = $shrsb_plugopts['shrbase']?$shrsb_plugopts['shrbase']:'http://www.shareaholic.com';
|
425 |
-
$spritegen = $shrbase.'/api/sprite/?v=1&apikey=8afa39428933be41f8afdb8ea21a495c&imageset=60'.$opts.'&apitype='.$type;
|
426 |
-
$filename = SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.'.$type;
|
427 |
-
$content = FALSE;
|
428 |
-
|
429 |
-
if (!is_writable(SHRSB_UPLOADDIR.'spritegen')) {
|
430 |
-
// the spritegen folder isn't writable. Try changing it to writable
|
431 |
-
@chmod(SHRSB_UPLOADDIR.'spritegen', 0775);
|
432 |
-
// may or may not work
|
433 |
-
}
|
434 |
-
if ( $type == 'png' ) {
|
435 |
-
$fp_opt = 'rb';
|
436 |
-
}
|
437 |
-
else {
|
438 |
-
$fp_opt = 'r';
|
439 |
-
}
|
440 |
-
|
441 |
-
if(function_exists('wp_remote_retrieve_body') && function_exists('wp_remote_get') && function_exists('wp_remote_retrieve_response_code')) {
|
442 |
-
$request = wp_remote_get(
|
443 |
-
$spritegen,
|
444 |
-
array(
|
445 |
-
'user-agent' => "shr-wpspritebot-fopen/v" . SHRSB_vNum,
|
446 |
-
'headers' => array(
|
447 |
-
'Referer' => get_bloginfo('url')
|
448 |
-
)
|
449 |
-
)
|
450 |
-
);
|
451 |
-
$response = wp_remote_retrieve_response_code($request);
|
452 |
-
if($response == 200 || $response == '200') {
|
453 |
-
$content = wp_remote_retrieve_body($request);
|
454 |
-
}
|
455 |
-
else {
|
456 |
-
$content = FALSE;
|
457 |
-
}
|
458 |
-
}
|
459 |
-
|
460 |
-
if ( $content === FALSE && function_exists('curl_init') && function_exists('curl_exec') ) {
|
461 |
-
$ch = curl_init();
|
462 |
-
curl_setopt($ch, CURLOPT_URL, $spritegen);
|
463 |
-
curl_setopt($ch, CURLOPT_FAILONERROR, TRUE);
|
464 |
-
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
|
465 |
-
curl_setopt($ch, CURLOPT_TIMEOUT, 6);
|
466 |
-
curl_setopt($ch, CURLOPT_USERAGENT, "shr-wpspritebot-cURL/v" . SHRSB_vNum);
|
467 |
-
curl_setopt($ch, CURLOPT_REFERER, get_bloginfo('url'));
|
468 |
-
curl_setopt($ch, CURLOPT_HEADER, FALSE);
|
469 |
-
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
|
470 |
-
curl_setopt($ch, CURLOPT_BINARYTRANSFER, TRUE);
|
471 |
-
|
472 |
-
$content = curl_exec($ch);
|
473 |
-
|
474 |
-
if ( curl_errno($ch) != 0 ) {
|
475 |
-
$content = FALSE;
|
476 |
-
}
|
477 |
-
curl_close($ch);
|
478 |
-
}
|
479 |
-
|
480 |
-
if ( $content !== FALSE ) {
|
481 |
-
if ( $type == 'png' ) {
|
482 |
-
$fp_opt = 'w+b';
|
483 |
-
}
|
484 |
-
else {
|
485 |
-
$fp_opt = 'w+';
|
486 |
-
}
|
487 |
-
|
488 |
-
|
489 |
-
$fp = @fopen($filename, $fp_opt);
|
490 |
-
|
491 |
-
if ( $fp !== FALSE ) {
|
492 |
-
$ret = @fwrite($fp, $content);
|
493 |
-
@fclose($fp);
|
494 |
-
}
|
495 |
-
else {
|
496 |
-
$ret = @file_put_contents($filename, $content);
|
497 |
-
}
|
498 |
-
|
499 |
-
if ( $ret !== FALSE ) {
|
500 |
-
@chmod($filename, 0666);
|
501 |
-
return 0;
|
502 |
-
}
|
503 |
-
else {
|
504 |
-
return 1;
|
505 |
-
}
|
506 |
-
}
|
507 |
-
else {
|
508 |
-
return 2;
|
509 |
-
}
|
510 |
-
}
|
511 |
-
|
512 |
-
|
513 |
-
function shrsb_preFlight_Checks() {
|
514 |
-
global $shrsb_plugopts;
|
515 |
-
|
516 |
-
//Check for the directory exists or not
|
517 |
-
if(!wp_mkdir_p(SHRSB_UPLOADDIR.'spritegen/')) {
|
518 |
-
@error_log("Failed to create path ".dirname($path));
|
519 |
-
}
|
520 |
-
if (!is_writable(SHRSB_UPLOADDIR.'spritegen')) {
|
521 |
-
// the spritegen folder isn't writable. Try changing it to writable
|
522 |
-
@chmod(SHRSB_UPLOADDIR.'spritegen/', 0775);
|
523 |
-
// may or may not work
|
524 |
-
}
|
525 |
-
|
526 |
-
if( ((function_exists('curl_init') && function_exists('curl_exec')) || function_exists('file_get_contents'))
|
527 |
-
&& (is_dir(SHRSB_UPLOADDIR) && is_writable(SHRSB_UPLOADDIR))
|
528 |
-
&& ((isset($_POST['bookmark']) && is_array($_POST['bookmark']) && sizeof($_POST['bookmark']) > 0 ) || (isset($shrsb_plugopts['bookmark']) && is_array($shrsb_plugopts['bookmark']) && sizeof($shrsb_plugopts['bookmark']) > 0 ))
|
529 |
-
&& (!isset($shrsb_plugopts['custom-mods']) || isset($shrsb_plugopts['custom-mods']) && $shrsb_plugopts['custom-mods'] !== 'yes') ) {
|
530 |
-
|
531 |
-
return true;
|
532 |
-
}
|
533 |
-
else {
|
534 |
-
return false;
|
535 |
-
}
|
536 |
-
}
|
537 |
-
|
538 |
-
/* Adds FB Namespace */
|
539 |
-
function shrsb_addFBNameSpace($attr) {
|
540 |
-
$attr .= "\n xmlns:og=\"http://opengraphprotocol.org/schema/\"";
|
541 |
-
$attr .= "\n xmlns:fb=\"http://www.facebook.com/2008/fbml\"";
|
542 |
-
return $attr;
|
543 |
-
}
|
544 |
-
|
545 |
-
//list all bookmarks in the plugin options page
|
546 |
-
function shrsb_network_input_select($name, $id, $hint) {
|
547 |
-
global $shrsb_plugopts;
|
548 |
-
return sprintf('<li class="%s" title="%s"><input %sname="bookmark[]" type="checkbox" value="%s" id="%s" /><div style="margin-top:-8px;"></div>%s</li>',
|
549 |
-
"shr-".$id,
|
550 |
-
$hint,
|
551 |
-
@in_array($name, $shrsb_plugopts['bookmark'])?'checked="checked" ':"",
|
552 |
-
$name,
|
553 |
-
$name,
|
554 |
-
shrsb_truncate_text(end(explode('-', $name)), 9)
|
555 |
-
);
|
556 |
-
}
|
557 |
-
|
558 |
-
function shrsb_truncate_text($text, $nbrChar, $append='..') {
|
559 |
-
if(strlen($text) > $nbrChar) {
|
560 |
-
$text = substr($text, 0, $nbrChar);
|
561 |
-
$text .= $append;
|
562 |
-
}
|
563 |
-
return $text;
|
564 |
-
}
|
565 |
-
|
566 |
-
// returns the option tag for a form select element
|
567 |
-
// $opts array expecting keys: field, value, text
|
568 |
-
function shrsb_form_select_option($opts,$settings = NULL) {
|
569 |
-
global $shrsb_plugopts;
|
570 |
-
|
571 |
-
if($settings == NULL) $settings = $shrsb_plugopts;
|
572 |
-
|
573 |
-
$opts=array_merge(
|
574 |
-
array(
|
575 |
-
'field'=>'',
|
576 |
-
'value'=>'',
|
577 |
-
'text'=>'',
|
578 |
-
),
|
579 |
-
$opts
|
580 |
-
);
|
581 |
-
return sprintf('<option%s value="%s">%s</option>',
|
582 |
-
($settings[$opts['field']]==$opts['value'])?' selected="selected"':"",
|
583 |
-
$opts['value'],
|
584 |
-
$opts['text']
|
585 |
-
);
|
586 |
-
}
|
587 |
-
|
588 |
-
// given an array $options of data and $field to feed into shrsb_form_select_option
|
589 |
-
function shrsb_select_option_group($field, $options,$settings = NULL) {
|
590 |
-
$h='';
|
591 |
-
foreach ($options as $value=>$text) {
|
592 |
-
$h.=shrsb_form_select_option(
|
593 |
-
array(
|
594 |
-
'field'=>$field,
|
595 |
-
'value'=>$value,
|
596 |
-
'text'=>$text,
|
597 |
-
),
|
598 |
-
$settings
|
599 |
-
);
|
600 |
-
}
|
601 |
-
return $h;
|
602 |
-
}
|
603 |
-
|
604 |
-
// returns the HTML of options for menu display in type
|
605 |
-
function shrsb_options_menu_type($pageorpost){
|
606 |
-
?>
|
607 |
-
|
608 |
-
<span class="shrsb_option"><?php _e('Posts, pages, categories or the whole shebang?', 'shrsb'); ?></span>
|
609 |
-
<input type="checkbox" id="type_post" name="content_type[]" value="post" <?php echo (false!==strpos($pageorpost,"post"))? 'checked' : ""; ?>/><label for="type_post" class="padding"><?php _e('posts', 'shrsb'); ?></label>
|
610 |
-
<input type="checkbox" id="type_page" name="content_type[]" value="page" <?php echo (false!==strpos($pageorpost,"page"))? 'checked' : ""; ?>/><label for="type_page" class="padding"><?php _e('pages', 'shrsb'); ?></label>
|
611 |
-
<input type="checkbox" id="type_index" name="content_type[]" value="index" <?php echo (false!==strpos($pageorpost,"index"))? 'checked' : ""; ?>/><label for="type_index" class="padding"><?php _e('main index', 'shrsb'); ?></label>
|
612 |
-
<input type="checkbox" id="type_category" name="content_type[]" value="category" <?php echo (false!==strpos($pageorpost,"category"))? 'checked' : ""; ?>/><label for="type_category" class="padding"><?php _e('category index', 'shrsb'); ?></label>
|
613 |
-
|
614 |
-
<?php
|
615 |
-
}
|
616 |
-
|
617 |
-
/*
|
618 |
-
* @desc For setting the content type which are enabled
|
619 |
-
*/
|
620 |
-
function shrsb_set_content_type() {
|
621 |
-
$type = "";
|
622 |
-
$content = @$_POST['content_type'];
|
623 |
-
if(empty ($content)){
|
624 |
-
$type = "postpageindexcategory";
|
625 |
-
}else{
|
626 |
-
$n = count($content);
|
627 |
-
for($i = 0; $i < $n; $i++){
|
628 |
-
$type .= $content[$i];
|
629 |
-
}
|
630 |
-
}
|
631 |
-
return $type;
|
632 |
-
}
|
633 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/shrsb_sexybookmarks_page.php
DELETED
@@ -1,242 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* @desc Set default options
|
5 |
-
*/
|
6 |
-
|
7 |
-
$shrsb_plugopts = shrsb_sb_set_options();
|
8 |
-
|
9 |
-
/*
|
10 |
-
* @desc Set the settings either from database or default
|
11 |
-
*/
|
12 |
-
function shrsb_sb_set_options($action = NULL){
|
13 |
-
|
14 |
-
/*
|
15 |
-
* @desc Most Popular Services List
|
16 |
-
* @note To change the most popular list also change the "Most Popular" link click handler in shareaholic-admin.js
|
17 |
-
*/
|
18 |
-
|
19 |
-
$shrsb_most_popular = array (
|
20 |
-
'shr-facebook',
|
21 |
-
'shr-twitter',
|
22 |
-
'shr-linkedin',
|
23 |
-
'shr-googleplus',
|
24 |
-
'shr-googlebookmarks',
|
25 |
-
'shr-stumbleupon',
|
26 |
-
'shr-fastmail',
|
27 |
-
'shr-printfriendly'
|
28 |
-
);
|
29 |
-
|
30 |
-
$defaultLikeButtonOrder = array(
|
31 |
-
'shr-fb-like',
|
32 |
-
'shr-fb-send',
|
33 |
-
'shr-plus-one',
|
34 |
-
'shr-tw-button'
|
35 |
-
);
|
36 |
-
|
37 |
-
$shrsb_sb_plugopts_default = array(
|
38 |
-
'sexybookmark' => '1',
|
39 |
-
'firstrun' => '1',
|
40 |
-
'position' => 'below', // below, above, or manual
|
41 |
-
'reloption' => 'nofollow', // 'nofollow', or ''
|
42 |
-
'targetopt' => '_blank', // 'blank' or 'self'
|
43 |
-
'perfoption' => '1', // Third party Content
|
44 |
-
'showShareCount' => '1', // fb/twit share count
|
45 |
-
'likeButtonSetTop' => '0', // Include like button below the Post Title
|
46 |
-
'fbLikeButtonTop' => '0', // Include fb like button
|
47 |
-
'fbSendButtonTop' => '0', // Include fb like button
|
48 |
-
'googlePlusOneButtonTop' => '0', // Include Google Plus One button
|
49 |
-
'tweetButtonTop' => '0', // Include Tweet button
|
50 |
-
'likeButtonSetSizeTop' => "1", // Size of like buttons
|
51 |
-
'likeButtonSetCountTop' => "true", // Show count with +1 button
|
52 |
-
'likeButtonOrderTop' => $defaultLikeButtonOrder,
|
53 |
-
'likeButtonSetAlignmentTop' => '0', // Alignment 0 => left, 1 => right
|
54 |
-
'likeButtonSetBottom' => '1', // Include like button below the Post
|
55 |
-
'fbLikeButtonBottom' => '0', // Include fb like button
|
56 |
-
'fbSendButtonBottom' => '0', // Include fb like button
|
57 |
-
'googlePlusOneButtonBottom' => '0', // Include Google Plus One button
|
58 |
-
'tweetButtonBottom' => '0', // Include Tweet button
|
59 |
-
'likeButtonSetSizeBottom' => "1", // Size of like buttons
|
60 |
-
'likeButtonSetCountBottom' => "true", // Show count with +1 button
|
61 |
-
'likeButtonOrderBottom' => $defaultLikeButtonOrder,
|
62 |
-
'likeButtonSetAlignmentBottom' => '0', // Alignment 0 => left, 1 => right
|
63 |
-
'locale'=> '0', //Default locale set to 0
|
64 |
-
'fbNameSpace' => '1', // Add fb name space to the html
|
65 |
-
'preventminify' => '1', // prevent wp_minify from minifying the js
|
66 |
-
'shrlink' => '0', // show promo link
|
67 |
-
'bgimg-yes' => 'yes', // 'yes' or blank
|
68 |
-
'mobile-hide' => '', // 'yes' or blank
|
69 |
-
'bgimg' => 'caring', // default bg image
|
70 |
-
'shorty' => 'shrlc', // default shortener
|
71 |
-
'pageorpost' => 'postpageindexcategory',
|
72 |
-
'bookmark' => $shrsb_most_popular ,//array_keys($shrsb_bookmarks_data),
|
73 |
-
'feed' => '0', // 1 or 0
|
74 |
-
'expand' => '1',
|
75 |
-
'autocenter' => '1',
|
76 |
-
'tweetconfig' => urlencode('${title} - ${short_link} via @Shareaholic'), // Custom configuration of tweet
|
77 |
-
'warn-choice' => '',
|
78 |
-
'doNotIncludeJQuery' => '',
|
79 |
-
'custom-mods' => '',
|
80 |
-
'scriptInFooter' => '',
|
81 |
-
'shareaholic-javascript' => '1',
|
82 |
-
'shrbase' => 'http://www.shareaholic.com',
|
83 |
-
'apikey' => '8afa39428933be41f8afdb8ea21a495c',
|
84 |
-
'service' => '5,7,309,88,304',
|
85 |
-
'designer_toolTips' => '1',
|
86 |
-
'tip_bg_color' => '#000000', // tooltip background color
|
87 |
-
'tip_text_color' => '#ffffff', // tooltip text color
|
88 |
-
'spritegen_path' => SHRSB_UPLOADDIR_DEFAULT,
|
89 |
-
'ogtags' => '1', //Open Graph Tags
|
90 |
-
'promo' => '1'
|
91 |
-
);
|
92 |
-
|
93 |
-
//Return default settings
|
94 |
-
if($action == "reset"){
|
95 |
-
delete_option("SexyBookmarks");
|
96 |
-
add_option("SexyBookmarks",$shrsb_sb_plugopts_default);
|
97 |
-
return $shrsb_sb_plugopts_default;
|
98 |
-
}
|
99 |
-
|
100 |
-
//Get the settings from the database
|
101 |
-
$database_Settings = get_option('SexyBookmarks');
|
102 |
-
|
103 |
-
if($database_Settings){//got the settings in the database
|
104 |
-
|
105 |
-
// Check only when upgrading
|
106 |
-
if(SHRSB_UPGRADING == TRUE) {
|
107 |
-
$need_to_update = false;
|
108 |
-
|
109 |
-
if(!isset($database_Settings['sexybookmark']) ){
|
110 |
-
$database_Settings['sexybookmark'] = '1';
|
111 |
-
$database_Settings['firstrun'] = '0';
|
112 |
-
$need_to_update = true;
|
113 |
-
}
|
114 |
-
|
115 |
-
//For first time activation
|
116 |
-
update_option("SHR_activate", 1);
|
117 |
-
|
118 |
-
//Check whether all the settings are present or not
|
119 |
-
foreach($shrsb_sb_plugopts_default as $k => $v){
|
120 |
-
if( !array_key_exists( $k, $database_Settings)) {
|
121 |
-
$database_Settings[$k] = $v;
|
122 |
-
$need_to_update = true;
|
123 |
-
}
|
124 |
-
}
|
125 |
-
|
126 |
-
//Check for the tweetbutton in likebutton set
|
127 |
-
if(!in_array("shr-tw-button", $database_Settings["likeButtonOrderTop"]) ) array_push($database_Settings["likeButtonOrderTop"],"shr-tw-button");
|
128 |
-
|
129 |
-
if(!in_array("shr-tw-button", $database_Settings["likeButtonOrderBottom"]) ) array_push($database_Settings["likeButtonOrderBottom"],"shr-tw-button");
|
130 |
-
|
131 |
-
if($need_to_update) update_option("SexyBookmarks",$database_Settings);
|
132 |
-
|
133 |
-
}
|
134 |
-
|
135 |
-
return $database_Settings;
|
136 |
-
|
137 |
-
}else{
|
138 |
-
//Add the settings
|
139 |
-
add_option('SexyBookmarks',$shrsb_sb_plugopts_default);
|
140 |
-
|
141 |
-
// Forcing the value for sexybookmark to be 1 for the first run
|
142 |
-
$shrsb_sb_plugopts_default['firstrun'] = '1';
|
143 |
-
return $shrsb_sb_plugopts_default;
|
144 |
-
}
|
145 |
-
}
|
146 |
-
|
147 |
-
|
148 |
-
add_option('SHRSB_apikey', $shrsb_plugopts['apikey']);
|
149 |
-
add_option('SHRSB_CustomSprite', '');
|
150 |
-
add_option('SHRSB_DefaultSprite',true);
|
151 |
-
|
152 |
-
// If plugin is upgrading
|
153 |
-
if(SHRSB_UPGRADING == TRUE) {
|
154 |
-
|
155 |
-
//Remove the Disabled Services
|
156 |
-
if(isset ($shrsb_plugopts) && isset($shrsb_plugopts['service'])){
|
157 |
-
$services = explode(',', $shrsb_plugopts['service']);
|
158 |
-
|
159 |
-
if(!empty($services)){
|
160 |
-
// Removing blocked services from sb services list
|
161 |
-
$disable_services = array( '4', '12', '68', '77', '159', '185', '186', '195', '207', '237', '257', '264', '190', '10', '287', '188', '100', '277', '48', '210', '267' );
|
162 |
-
$services = array_diff($services, $disable_services);
|
163 |
-
$shrsb_plugopts['service'] = implode(',', $services );
|
164 |
-
}
|
165 |
-
}
|
166 |
-
|
167 |
-
if(isset ($shrsb_plugopts) && isset($shrsb_plugopts['bookmark'])){
|
168 |
-
// Removing blocked services from bookmarks list
|
169 |
-
|
170 |
-
$shrsb_plugopts['bookmark'] = array_diff($shrsb_plugopts['bookmark'], array( 'shr-twittley', 'shr-comfeed', 'shr-ning', 'shr-strands', 'shr-sphinn', 'shr-tipd', 'shr-faqpal', 'shr-technorati', 'shr-yahoobuzz', 'shr-posterous', 'shr-squidoo', 'shr-yandex' ));
|
171 |
-
}
|
172 |
-
|
173 |
-
if(isset ($shrsb_plugopts) && isset($shrsb_plugopts['reloption']) && $shrsb_plugopts['reloption'] === "" ){
|
174 |
-
$shrsb_plugopts['reloption'] = '1';
|
175 |
-
}
|
176 |
-
|
177 |
-
// Some databases got corrupted. This will set things in place.
|
178 |
-
if($shrsb_plugopts['shrbase'] != 'http://www.shareaholic.com'){
|
179 |
-
$shrsb_plugopts['shrbase'] = 'http://www.shareaholic.com';
|
180 |
-
}
|
181 |
-
|
182 |
-
// Reset depreciated url shorteners
|
183 |
-
if($shrsb_plugopts['shorty'] == 'slly' || $shrsb_plugopts['shorty'] == 'cligs' || $shrsb_plugopts['shorty'] == 'snip' || $shrsb_plugopts['shorty'] == 'tinyarrow' || $shrsb_plugopts['shorty'] == 'b2l' || $shrsb_plugopts['shorty'] == 'trim' || $shrsb_plugopts['shorty'] == 'e7t' || $shrsb_plugopts['shorty'] == 'awesm' || $shrsb_plugopts['shorty'] == 'supr' || $shrsb_plugopts['shorty'] == 'googl') {
|
184 |
-
$shrsb_plugopts['shorty'] = 'shrlc';
|
185 |
-
|
186 |
-
//reset depreciated settings
|
187 |
-
$shrsb_plugopts['shortyapi']['snip']['user'] = '';
|
188 |
-
$shrsb_plugopts['shortyapi']['snip']['key'] = '';
|
189 |
-
$shrsb_plugopts['shortyapi']['trim']['chk'] = '';
|
190 |
-
$shrsb_plugopts['shortyapi']['trim']['user'] = '';
|
191 |
-
$shrsb_plugopts['shortyapi']['trim']['pass'] = '';
|
192 |
-
$shrsb_plugopts['shortyapi']['tinyarrow']['chk'] = '';
|
193 |
-
$shrsb_plugopts['shortyapi']['tinyarrow']['user'] = '';
|
194 |
-
$shrsb_plugopts['shortyapi']['cligs']['chk'] = '';
|
195 |
-
$shrsb_plugopts['shortyapi']['cligs']['key'] = '';
|
196 |
-
$shrsb_plugopts['shortyapi']['supr']['chk'] = '';
|
197 |
-
$shrsb_plugopts['shortyapi']['supr']['user'] = '';
|
198 |
-
$shrsb_plugopts['shortyapi']['supr']['key'] = '';
|
199 |
-
$shrsb_plugopts['shortyapi']['awesm']['user'] = '';
|
200 |
-
$shrsb_plugopts['shortyapi']['awesm']['key'] = '';
|
201 |
-
}
|
202 |
-
|
203 |
-
if($shrsb_plugopts['shorty'] == 'tiny') {
|
204 |
-
$shrsb_plugopts['shorty'] = 'tinyurl';
|
205 |
-
}
|
206 |
-
|
207 |
-
update_option('SexyBookmarks', $shrsb_plugopts);
|
208 |
-
}
|
209 |
-
|
210 |
-
/*
|
211 |
-
* @note Make sure spritegen_path is defined
|
212 |
-
*/
|
213 |
-
|
214 |
-
//Check for POST
|
215 |
-
if(isset($_POST['save_changes_sb']) ){
|
216 |
-
//Define the default path for Spritegen Directory
|
217 |
-
if(isset($_POST['spritegen_path']) && $_POST['spritegen_path'] != SHRSB_UPLOADDIR_DEFAULT){
|
218 |
-
//Create the Directory
|
219 |
-
$p = shrb_addTrailingChar(stripslashes($_POST['spritegen_path']),"/");
|
220 |
-
|
221 |
-
define('SHRSB_UPLOADDIR', $p);
|
222 |
-
define('SHRSB_UPLOADPATH', shr_dir_to_path($p));
|
223 |
-
}else{
|
224 |
-
define('SHRSB_UPLOADDIR', SHRSB_UPLOADDIR_DEFAULT);
|
225 |
-
define('SHRSB_UPLOADPATH', SHRSB_UPLOADPATH_DEFAULT);
|
226 |
-
}
|
227 |
-
}else{
|
228 |
-
if( isset($_POST['reset_all_options_sb'])|| (isset($shrsb_plugopts['spritegen_path']) && $shrsb_plugopts['spritegen_path'] == SHRSB_UPLOADDIR_DEFAULT) ){
|
229 |
-
// For Reseting the data Or First Time Install
|
230 |
-
define('SHRSB_UPLOADDIR', SHRSB_UPLOADDIR_DEFAULT);
|
231 |
-
define('SHRSB_UPLOADPATH', SHRSB_UPLOADPATH_DEFAULT);
|
232 |
-
}else{
|
233 |
-
$p = shrb_addTrailingChar(stripslashes($shrsb_plugopts['spritegen_path']),"/");
|
234 |
-
define('SHRSB_UPLOADDIR', $p);
|
235 |
-
define('SHRSB_UPLOADPATH', shr_dir_to_path($p));
|
236 |
-
}
|
237 |
-
}
|
238 |
-
|
239 |
-
$shrsb_plugopts['apikey'] = get_option('SHRSB_apikey');
|
240 |
-
$shrsb_custom_sprite = get_option('SHRSB_CustomSprite');
|
241 |
-
|
242 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/shrsb_sexybookmarks_settings_page.php
DELETED
@@ -1,1050 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
//write settings page
|
4 |
-
function shrsb_sb_settings_page() {
|
5 |
-
global $shrsb_plugopts, $shrsb_bookmarks_data, $wpdb, $shrsb_custom_sprite,$shrsb_analytics;
|
6 |
-
// Add all the global varaible declarations for the $shrsb_plugopts default options e.g.,
|
7 |
-
|
8 |
-
echo '<div class="wrap""><div class="icon32" id="icon-options-general"><br></div><h2>Share Buttons: SexyBookmarks Settings</h2></div>';
|
9 |
-
|
10 |
-
//Defaults - set if not present
|
11 |
-
if (!isset($_POST['reset_all_options_sb'])){$_POST['reset_all_options_sb'] = '1';}
|
12 |
-
if (!isset($_POST['shrsbresetallwarn-choice'])){$_POST['shrsbresetallwarn-choice'] = 'no';}
|
13 |
-
if (!isset($_POST['custom-mods']) || $shrsb_plugopts['custom-mods'] == ""){$_POST['custom-mods'] = 'no';}
|
14 |
-
|
15 |
-
if($_POST['reset_all_options_sb'] == '0') {
|
16 |
-
echo '
|
17 |
-
<div id="shrsbresetallwarn" class="dialog-box-warning" style="float:none;width:97%;">
|
18 |
-
<div class="dialog-left fugue f-warn">
|
19 |
-
'.__("WARNING: You are about to reset all settings to their default state! Do you wish to continue?", "shrsb").'
|
20 |
-
</div>
|
21 |
-
<div class="dialog-right">
|
22 |
-
<form action="" method="post" id="resetalloptionsaccept">
|
23 |
-
<label><input name="shrsbresetallwarn-choice" id="shrsbresetallwarn-yes" type="radio" value="yes" />'.__('Yes', 'shrsb').'</label> <label><input name="shrsbresetallwarn-choice" id="shrsbresetallwarn-cancel" type="radio" value="cancel" />'.__('Cancel', 'shrsb').'</label>
|
24 |
-
</form>
|
25 |
-
</div>
|
26 |
-
</div>';
|
27 |
-
}
|
28 |
-
|
29 |
-
//Reset all options to default settings if user clicks the reset button
|
30 |
-
if($_POST['shrsbresetallwarn-choice'] == "yes") { //check for reset button click
|
31 |
-
|
32 |
-
// Resting the settings
|
33 |
-
$shrsb_plugopts = shrsb_sb_set_options('reset');
|
34 |
-
|
35 |
-
//$shrsb_plugopts['tweetconfig'] = urlencode($shrsb_plugopts['tweetconfig']);
|
36 |
-
|
37 |
-
if($shrsb_plugopts['preventminify'] == '1') {
|
38 |
-
exclude_from_minify_list();
|
39 |
-
}
|
40 |
-
|
41 |
-
/* Short URLs */
|
42 |
-
$shrsb_plugopts['shortyapi']['bitly']['user'] = "";
|
43 |
-
$shrsb_plugopts['shortyapi']['bitly']['key'] = "";
|
44 |
-
$shrsb_plugopts['shortyapi']['awesm']['user'] = "";
|
45 |
-
$shrsb_plugopts['shortyapi']['awesm']['key'] = "";
|
46 |
-
$shrsb_plugopts['shortyapi']['jmp']['user'] = "";
|
47 |
-
$shrsb_plugopts['shortyapi']['jmp']['key'] = "";
|
48 |
-
$shrsb_plugopts['shortyapi']['supr']['chk'] = "0";
|
49 |
-
$shrsb_plugopts['shortyapi']['supr']['user'] = "";
|
50 |
-
$shrsb_plugopts['shortyapi']['supr']['key'] = "";
|
51 |
-
/* Short URLs End */
|
52 |
-
|
53 |
-
update_option('SexyBookmarks', $shrsb_plugopts);
|
54 |
-
$shrsb_plugopts['tweetconfig'] = urldecode($shrsb_plugopts['tweetconfig']);
|
55 |
-
delete_option('SHRSB_CustomSprite');
|
56 |
-
|
57 |
-
echo '
|
58 |
-
<div id="statmessage" class="shrsb-success">
|
59 |
-
<div class="dialog-left fugue f-success">
|
60 |
-
'.__('All settings have been reset to their default values.', 'shrsb').'
|
61 |
-
</div>
|
62 |
-
<div class="dialog-right">
|
63 |
-
<img src="'.SHRSB_PLUGPATH.'images/success-delete.jpg" class="del-x" alt=""/>
|
64 |
-
</div>
|
65 |
-
</div>';
|
66 |
-
}
|
67 |
-
|
68 |
-
// create folders for custom mods
|
69 |
-
// then copy original files into new folders
|
70 |
-
if($_POST['custom-mods'] == 'yes' || $shrsb_plugopts['custom-mods'] == 'yes') {
|
71 |
-
if(is_admin() === true && !is_dir(WP_CONTENT_DIR.'/sexy-mods')) {
|
72 |
-
$shrsb_oldloc = SHRSB_PLUGDIR;
|
73 |
-
$shrsb_newloc = WP_CONTENT_DIR.'/sexy-mods/';
|
74 |
-
|
75 |
-
wp_mkdir_p(WP_CONTENT_DIR.'/sexy-mods');
|
76 |
-
wp_mkdir_p(WP_CONTENT_DIR.'/sexy-mods/css');
|
77 |
-
wp_mkdir_p(WP_CONTENT_DIR.'/sexy-mods/images');
|
78 |
-
wp_mkdir_p(WP_CONTENT_DIR.'/sexy-mods/js');
|
79 |
-
|
80 |
-
copy($shrsb_oldloc.'css/style.dev.css', $shrsb_newloc.'css/style.css');
|
81 |
-
copy($shrsb_oldloc.'js/sexy-bookmarks-public.js', $shrsb_newloc.'js/sexy-bookmarks-public.js');
|
82 |
-
copy($shrsb_oldloc.'images/shr-sprite.png', $shrsb_newloc.'images/shr-sprite.png');
|
83 |
-
copy($shrsb_oldloc.'images/share-enjoy.png', $shrsb_newloc.'images/share-enjoy.png');
|
84 |
-
copy($shrsb_oldloc.'images/share-german.png', $shrsb_newloc.'images/share-german.png');
|
85 |
-
copy($shrsb_oldloc.'images/share-love-hearts.png', $shrsb_newloc.'images/share-love-hearts.png');
|
86 |
-
copy($shrsb_oldloc.'images/share-wealth.png', $shrsb_newloc.'images/share-wealth.png');
|
87 |
-
copy($shrsb_oldloc.'images/sharing-caring-hearts.png', $shrsb_newloc.'images/sharing-caring-hearts.png');
|
88 |
-
copy($shrsb_oldloc.'images/sharing-caring.png', $shrsb_newloc.'images/sharing-caring.png');
|
89 |
-
copy($shrsb_oldloc.'images/sharing-shr.png', $shrsb_newloc.'images/sharing-shr.png');
|
90 |
-
}
|
91 |
-
}
|
92 |
-
|
93 |
-
// processing form submission
|
94 |
-
$status_message = "";
|
95 |
-
$error_message = "";
|
96 |
-
$setting_changed = false;
|
97 |
-
|
98 |
-
if(isset($_POST['save_changes_sb'])) {
|
99 |
-
|
100 |
-
if(isset($_POST['bookmark']['shr-fleck'])) {
|
101 |
-
unset($_POST['bookmark']['shr-fleck']);
|
102 |
-
}
|
103 |
-
$_POST['pageorpost'] = shrsb_set_content_type();
|
104 |
-
// Set success message
|
105 |
-
$status_message = __('Your changes have been saved successfully!', 'shrsb');
|
106 |
-
|
107 |
-
$errmsgmap = array(
|
108 |
-
'position'=>__('Please choose where you would like the menu to be displayed.', 'shrsb'),
|
109 |
-
'bookmark'=>__("You can't display the menu if you don't choose a few sites to add to it!", 'shrsb'),
|
110 |
-
'pageorpost'=>__('Please choose where you want the menu displayed.', 'shrsb'),
|
111 |
-
);
|
112 |
-
foreach ($errmsgmap as $field=>$msg) {
|
113 |
-
if ($_POST[$field] == '') {
|
114 |
-
$error_message = $msg;
|
115 |
-
break;
|
116 |
-
}
|
117 |
-
}
|
118 |
-
// Twitter friendly Links & YOURLs Plugins: check to see if they have the plugin activated
|
119 |
-
if ($_POST['shorty'] == 'tflp' && !function_exists('permalink_to_twitter_link')) {
|
120 |
-
$error_message = sprintf(__('You must first download and activate the %sTwitter Friendly Links Plugin%s before hosting your own short URLs...', 'shrsb'), '<a href="http://wordpress.org/extend/plugins/twitter-friendly-links/">', '</a>');
|
121 |
-
} elseif ($_POST['shorty'] == 'yourls' && !function_exists('wp_ozh_yourls_raw_url')) {
|
122 |
-
$error_message = sprintf(__('You must first download and activate the %sYOURLS Plugin%s before hosting your own short URLs...', 'shrsb'), '<a href="http://wordpress.org/extend/plugins/yourls-wordpress-to-twitter/">', '</a>');
|
123 |
-
}
|
124 |
-
|
125 |
-
if ( isset($_POST['bookmark']) && is_array($_POST['bookmark']) && sizeof($_POST['bookmark']) > 0 && $shrsb_plugopts['shareaholic-javascript'] == '1') {
|
126 |
-
$service_ids = array();
|
127 |
-
foreach ( $_POST['bookmark'] as $bm ) {
|
128 |
-
if ($this_id = $shrsb_bookmarks_data[$bm]['id']) {
|
129 |
-
$service_ids[] = $this_id;
|
130 |
-
}
|
131 |
-
}
|
132 |
-
$shrsb_plugopts['service'] = implode(',', $service_ids);
|
133 |
-
shrsb_refresh_cache();
|
134 |
-
_shrsb_copy_file(SHRSB_UPLOADDIR.'index.html', SHRSB_PLUGDIR.'spritegen_default/index.html');
|
135 |
-
_shrsb_copy_file(SHRSB_UPLOADDIR.'spritegen/index.html', SHRSB_PLUGDIR.'spritegen_default/index.html');
|
136 |
-
}
|
137 |
-
|
138 |
-
if (!$error_message) {
|
139 |
-
//generate a new sprite, to reduce the size of the image
|
140 |
-
if(shrsb_preFlight_Checks()) {
|
141 |
-
if ( isset($_POST['bookmark']) && is_array($_POST['bookmark']) and sizeof($_POST['bookmark']) > 0 ) {
|
142 |
-
$spritegen_opts = '&service=';
|
143 |
-
foreach ( $_POST['bookmark'] as $bm ) {
|
144 |
-
$spritegen_opts .= substr($bm, 4) . ',';
|
145 |
-
}
|
146 |
-
$spritegen_opts = substr($spritegen_opts,0,-1);
|
147 |
-
$spritegen_opts .= '&bgimg=' . $_POST['bgimg'] . '&expand=' . $_POST['expand'];
|
148 |
-
$save_return[0] = get_sprite_file($spritegen_opts, 'png');
|
149 |
-
$save_return[1] = get_sprite_file($spritegen_opts, 'css');
|
150 |
-
}
|
151 |
-
if($save_return[0] == 2 || $save_return[1] == 2) {
|
152 |
-
echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.__('WARNING: The request for a custom sprite has timed out. Reverting to default sprite files.', 'shrsb').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
|
153 |
-
$shrsb_custom_sprite = '';
|
154 |
-
$status_message = __('Changes saved successfully. However, you should try to generate a custom sprite again later.', 'shrsb');
|
155 |
-
}
|
156 |
-
elseif($save_return[0] == 1 || $save_return[1] == 1) {
|
157 |
-
if (!is_writable(SHRSB_UPLOADDIR.'spritegen')) {
|
158 |
-
echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: Your %sspritegen folder%s is not writeable by the server! %sNeed Help?%s', 'shrsb'), '<a href="'.SHRSB_UPLOADPATH.'spritegen" target="_blank">','</a>','<a href="https://shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
|
159 |
-
$shrsb_custom_sprite = '';
|
160 |
-
$status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
|
161 |
-
}
|
162 |
-
elseif(file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png') && is_writable(SHRSB_UPLOADDIR.'spritegen') && !is_writable(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png')) {
|
163 |
-
echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: You need to delete the current custom sprite %s before the plugin can write to the folder. %sNeed Help?%s', 'shrsb'), '(<a href="'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png" target="_blank">'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png</a>)','<a href="https://shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
|
164 |
-
$shrsb_custom_sprite = '';
|
165 |
-
$status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
|
166 |
-
}
|
167 |
-
elseif(file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css') && is_writable(SHRSB_UPLOADDIR.'spritegen') && !is_writable(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css')) {
|
168 |
-
echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: You need to delete the current custom stylesheet %s before the plugin can write to the folder. %sNeed Help?%s', 'shrsb'), '(<a href="'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css" target="_blank">'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css</a>)','<a href="https://shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
|
169 |
-
$shrsb_custom_sprite = '';
|
170 |
-
$status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
|
171 |
-
}
|
172 |
-
}
|
173 |
-
else {
|
174 |
-
$shrsb_custom_sprite = SHRSB_UPLOADPATH.'spritegen/shr-custom-sprite.css';
|
175 |
-
}
|
176 |
-
}
|
177 |
-
else{
|
178 |
-
if (!is_writable(SHRSB_UPLOADDIR.'spritegen')) {
|
179 |
-
echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: Your %sspritegen folder%s is not writeable by the server! %sNeed Help?%s', 'shrsb'), '<a href="'.SHRSB_UPLOADPATH.'spritegen" target="_blank">','</a>','<a href="https://shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
|
180 |
-
$status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
|
181 |
-
}
|
182 |
-
elseif(file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png') && is_writable(SHRSB_UPLOADDIR.'spritegen') && !is_writable(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png')) {
|
183 |
-
echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: You need to delete the current custom sprite %s before the plugin can write to the folder. %sNeed Help?%s', 'shrsb'), '(<a href="'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png" target="_blank">'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png</a>)','<a href="https://shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
|
184 |
-
$status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
|
185 |
-
}
|
186 |
-
elseif(file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css') && is_writable(SHRSB_UPLOADDIR.'spritegen') && !is_writable(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css')) {
|
187 |
-
echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: You need to delete the current custom stylesheet %s before the plugin can write to the folder. %sNeed Help?%s', 'shrsb'), '(<a href="'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css" target="_blank">'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css</a>)','<a href="https://shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
|
188 |
-
$status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
|
189 |
-
}
|
190 |
-
}
|
191 |
-
|
192 |
-
foreach (array(
|
193 |
-
|
194 |
-
'sexybookmark',
|
195 |
-
|
196 |
-
'position', 'reloption', 'targetopt', 'bookmark',
|
197 |
-
'shorty', 'pageorpost', 'tweetconfig', 'bgimg-yes', 'mobile-hide', 'bgimg',
|
198 |
-
'feed', 'expand', 'doNotIncludeJQuery', 'autocenter', 'custom-mods',
|
199 |
-
'scriptInFooter', 'shareaholic-javascript', 'shrbase', 'showShareCount',
|
200 |
-
'likeButtonSetTop','fbLikeButtonTop','fbSendButtonTop','googlePlusOneButtonTop','tweetButtonTop','likeButtonSetSizeTop','likeButtonSetCountTop',
|
201 |
-
'likeButtonOrderTop','likeButtonSetAlignmentTop',
|
202 |
-
'likeButtonSetBottom','fbLikeButtonBottom','fbSendButtonBottom','googlePlusOneButtonBottom','tweetButtonBottom','likeButtonSetSizeBottom','likeButtonSetCountBottom',
|
203 |
-
'likeButtonOrderBottom','likeButtonSetAlignmentBottom','locale',
|
204 |
-
|
205 |
-
'fbNameSpace','designer_toolTips' , 'tip_bg_color',
|
206 |
-
'tip_text_color' , 'preventminify', 'shrlink', 'perfoption','spritegen_path', 'apikey','ogtags' , 'promo'
|
207 |
-
)as $field) {
|
208 |
-
if(isset($_POST[$field])) { // this is to prevent warning if $_POST[$field] is not defined
|
209 |
-
|
210 |
-
$fieldval = $_POST[$field];
|
211 |
-
|
212 |
-
if ($field == 'sexybookmark' && $fieldval != $shrsb_plugopts[$field]) {
|
213 |
-
$setting_changed = true;
|
214 |
-
}
|
215 |
-
$shrsb_plugopts[$field] = $fieldval;
|
216 |
-
} else {
|
217 |
-
$shrsb_plugopts[$field] = NULL;
|
218 |
-
}
|
219 |
-
}
|
220 |
-
|
221 |
-
/*
|
222 |
-
* @note WordPress autoescapes (= adds slashes) to all post data. This is a workaround for that.
|
223 |
-
*/
|
224 |
-
|
225 |
-
$shrsb_plugopts['tweetconfig'] = stripslashes($shrsb_plugopts['tweetconfig']);
|
226 |
-
$shrsb_plugopts['spritegen_path'] = shrb_addTrailingChar(stripslashes($shrsb_plugopts['spritegen_path']),'/');
|
227 |
-
|
228 |
-
/* Short URLs */
|
229 |
-
//trim also at the same time as at times while copying, some whitespace also gets copied
|
230 |
-
//check fields dont need trim function
|
231 |
-
|
232 |
-
$shrsb_plugopts['shortyapi']['bitly']['user'] = trim(htmlspecialchars($_POST['shortyapiuser-bitly'], ENT_QUOTES));
|
233 |
-
$shrsb_plugopts['shortyapi']['bitly']['key'] = trim(htmlspecialchars($_POST['shortyapikey-bitly'], ENT_QUOTES));
|
234 |
-
$shrsb_plugopts['shortyapi']['jmp']['user'] = trim(htmlspecialchars($_POST['shortyapiuser-jmp'], ENT_QUOTES));
|
235 |
-
$shrsb_plugopts['shortyapi']['jmp']['key'] = trim(htmlspecialchars($_POST['shortyapikey-jmp'], ENT_QUOTES));
|
236 |
-
|
237 |
-
/* Short URLs End */
|
238 |
-
|
239 |
-
$shrsb_plugopts['tweetconfig'] = urlencode($shrsb_plugopts['tweetconfig']);
|
240 |
-
if($shrsb_plugopts['preventminify'] == '1') {
|
241 |
-
exclude_from_minify_list();
|
242 |
-
}
|
243 |
-
|
244 |
-
$shrsb_plugopts['firstrun'] = '0';
|
245 |
-
update_option('SexyBookmarks', $shrsb_plugopts);
|
246 |
-
|
247 |
-
if ($setting_changed == true){
|
248 |
-
shr_sendTrackingEvent('FeatureToggle', array('f_updated' => 'f_sexy', 'enabled' => ($shrsb_plugopts['sexybookmark'] == '1' ? 'true' : 'false')));
|
249 |
-
}
|
250 |
-
|
251 |
-
$shrsb_plugopts['tweetconfig'] = urldecode($shrsb_plugopts['tweetconfig']);
|
252 |
-
|
253 |
-
update_option('SHRSB_CustomSprite', $shrsb_custom_sprite);
|
254 |
-
update_option('SHRSBvNum', SHRSB_vNum);
|
255 |
-
}
|
256 |
-
}//Closed Save
|
257 |
-
|
258 |
-
//if there was an error, construct error messages
|
259 |
-
if ($error_message != '') {
|
260 |
-
echo '
|
261 |
-
<div id="errmessage" class="shrsb-error">
|
262 |
-
<div class="dialog-left fugue f-error">
|
263 |
-
'.$error_message.'
|
264 |
-
</div>
|
265 |
-
<div class="dialog-right">
|
266 |
-
<img src="'.SHRSB_PLUGPATH.'images/error-delete.jpg" class="del-x" alt=""/>
|
267 |
-
</div>
|
268 |
-
</div>';
|
269 |
-
} elseif ($status_message != '') {
|
270 |
-
echo '<style type="text/css">#update_sb{display:none !important;}</style>
|
271 |
-
<div id="statmessage" class="shrsb-success">
|
272 |
-
<div class="dialog-left fugue f-success">
|
273 |
-
'.$status_message.'
|
274 |
-
</div>
|
275 |
-
<div class="dialog-right">
|
276 |
-
<img src="'.SHRSB_PLUGPATH.'images/success-delete.jpg" class="del-x" alt=""/>
|
277 |
-
</div>
|
278 |
-
</div>';
|
279 |
-
}
|
280 |
-
|
281 |
-
$parse = parse_url(get_bloginfo('url'));
|
282 |
-
?>
|
283 |
-
|
284 |
-
<form name="sexy-bookmarks" id="sexy-bookmarks" action="" method="post">
|
285 |
-
<div id="shrsb-col-left">
|
286 |
-
<ul id="shrsb-sortables">
|
287 |
-
|
288 |
-
<!--
|
289 |
-
<?php
|
290 |
-
$resave_required = shrsb_requires_resave();
|
291 |
-
$chmod_required = shrsb_requires_chmod($shrsb_plugopts['shareaholic-javascript']);
|
292 |
-
$phpupdate_required = shrsb_requires_phpupdate();
|
293 |
-
?>
|
294 |
-
-->
|
295 |
-
|
296 |
-
<li id="third-party-modal" class="">
|
297 |
-
<a name="3rdpartyservices"></a>
|
298 |
-
<div class="box-mid-head">
|
299 |
-
<h2 class="fugue f-wrench"><?php _e('Status', 'shrsb'); ?></h2>
|
300 |
-
|
301 |
-
</div>
|
302 |
-
<div class="box-mid-body" id="toggle2">
|
303 |
-
<div class="padding">
|
304 |
-
<div id="plugin_health">
|
305 |
-
<table>
|
306 |
-
<tbody>
|
307 |
-
<tr>
|
308 |
-
<td style="width: 22px;"><img class="shrsb_health_icon" src=
|
309 |
-
<?php
|
310 |
-
$color = $chmod_required ? "red":"green";
|
311 |
-
echo SHRSB_PLUGPATH."images/circle_$color.png";
|
312 |
-
?>
|
313 |
-
></td>
|
314 |
-
<td style="min-width: 240px;"><span class=""><?php _e('Directory Permissions', 'shrsb'); ?></span></td>
|
315 |
-
<td>
|
316 |
-
<?php
|
317 |
-
echo $chmod_required ? sprintf(__('To Fix: Please appropriately
|
318 |
-
%sCHMOD%s your /spritegen directory.', 'shrsb'),
|
319 |
-
'<a href="https://shareaholic.com/tools/wordpress/usage-installation#chmodinfo"
|
320 |
-
target = "_blank" style="color:#ca0c01">', '</a>') : "";
|
321 |
-
?>
|
322 |
-
</td>
|
323 |
-
</tr>
|
324 |
-
|
325 |
-
<tr>
|
326 |
-
<td class="" style="width: 22px;"><img class="shrsb_health_icon" src=
|
327 |
-
<?php
|
328 |
-
$color = $resave_required ? "yellow":"green";
|
329 |
-
echo SHRSB_PLUGPATH."images/circle_$color.png";
|
330 |
-
?>
|
331 |
-
></td>
|
332 |
-
<td><span class=""><?php _e('Load Time Optimized', 'shrsb'); ?></span></td>
|
333 |
-
<td><?php
|
334 |
-
echo $resave_required ? "To Do: click the \"Save Changes\" button at the bottom of this page." : "";
|
335 |
-
?>
|
336 |
-
</td>
|
337 |
-
</tr>
|
338 |
-
|
339 |
-
<tr>
|
340 |
-
<td class="" style="width: 22px;"><img class="shrsb_health_icon" src=
|
341 |
-
<?php
|
342 |
-
$color = $phpupdate_required ? "red":"green";
|
343 |
-
echo SHRSB_PLUGPATH."images/circle_$color.png";
|
344 |
-
?>
|
345 |
-
></td>
|
346 |
-
<td><span class=""><?php _e('Running PHP5+', 'shrsb'); ?></span></td>
|
347 |
-
<td>
|
348 |
-
<?php
|
349 |
-
echo $phpupdate_required ? 'To Fix: Upgrade to PHP 5 or higher.' : "" ;
|
350 |
-
?>
|
351 |
-
</td>
|
352 |
-
</tr>
|
353 |
-
|
354 |
-
</tbody>
|
355 |
-
</table>
|
356 |
-
</div>
|
357 |
-
<div id="genopts">
|
358 |
-
<table><tbody>
|
359 |
-
<tr class="alert-success">
|
360 |
-
<td><span class="shrsb_option"><?php _e('Enable the Sexybookmarks Sharing Bar?', 'shrsb'); ?> </span>
|
361 |
-
</td>
|
362 |
-
<td><label><input <?php echo (( @$shrsb_plugopts['firstrun'] == '1' || @$shrsb_plugopts['sexybookmark'] == "1") ? 'checked="checked"' : ""); ?> name="sexybookmark" id="sexybookmark-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label>
|
363 |
-
</td><td><label><input <?php echo (( @$shrsb_plugopts['firstrun'] !== '1' && $shrsb_plugopts['sexybookmark'] == "0")? 'checked="checked"' : ""); ?> name="sexybookmark" id="sexybookmark-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label>
|
364 |
-
</td>
|
365 |
-
</tr>
|
366 |
-
|
367 |
-
<tr>
|
368 |
-
<td><span class="shrsb_option"> <?php _e('Use "new mode"?') ?></span>
|
369 |
-
</td>
|
370 |
-
<td><label><input <?php echo (($shrsb_plugopts['shareaholic-javascript'] == "1")? 'checked="checked"' : ""); ?> name="shareaholic-javascript" id="shareaholic-javascript-1" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?> (recommended)</label></td>
|
371 |
-
<td><label><input <?php echo (($shrsb_plugopts['shareaholic-javascript'] != "1")? 'checked="checked"' : ""); ?> name="shareaholic-javascript" id="shareaholic-javascript-0" type="radio" value="" /> <?php _e('No', 'shrsb'); ?></label>
|
372 |
-
</td>
|
373 |
-
</tr>
|
374 |
-
|
375 |
-
<tr>
|
376 |
-
<td><span class="shrsb_option" style="padding-bottom: 10px"><?php _e('Enable 3rd Party Services to use the following features:', 'shrsb'); ?></span></td>
|
377 |
-
<td><label><input <?php echo (($shrsb_plugopts['perfoption'] == "1")? 'checked="checked"' : ""); ?> name="perfoption" id="perfoption-yes" type="radio" value="1" /> <?php _e('Yes (recommended)', 'shrsb'); ?></label></td>
|
378 |
-
<td><label><input <?php echo (($shrsb_plugopts['perfoption'] == "0")? 'checked="checked"' : ""); ?> name="perfoption" id="perfoption-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label></td>
|
379 |
-
</tr>
|
380 |
-
<tr>
|
381 |
-
<td><span class="tab" style="display:block; font-size: 11px; color: #666666;"><?php _e('Facebook, Twitter, LinkedIn and Delicious Share Counters', 'shrsb'); ?></span></td>
|
382 |
-
<td><div class="icon-ok"></div></td>
|
383 |
-
<td><div class="icon-remove"></div></td>
|
384 |
-
<td><a href="#functionality"> Configure </a></td>
|
385 |
-
</tr>
|
386 |
-
|
387 |
-
<!-- <tr>
|
388 |
-
<td><span class="tab" style="display:block; font-size: 11px; color: #666666;"><?php _e('Facebook Like & Send, Google +1 buttons', 'shrsb'); ?></span></td>
|
389 |
-
<td><div class="icon-ok"></div></td>
|
390 |
-
<td><div class="icon-remove"></div></td>
|
391 |
-
<td><a href="#likebuttonset">Configure</a></td>
|
392 |
-
</tr>-->
|
393 |
-
|
394 |
-
<tr>
|
395 |
-
<td><span class="tab" style="display:block; font-size: 11px; color: #666666;"><?php _e('Shareaholic Social Analytics', 'shrsb'); ?></span></td>
|
396 |
-
<td><div class="icon-ok"></div></td>
|
397 |
-
<td><div class="icon-remove"></div></td>
|
398 |
-
<td><a target="_blank" href="https://shareaholic.com/publishers/analytics/<?php echo $parse['host']?>/">Preview</a></td>
|
399 |
-
</tr>
|
400 |
-
|
401 |
-
<tr>
|
402 |
-
<td><span class="tab" style="display:block; font-size: 11px; color: #666666;"><?php _e('Google Analytics Social Tracking', 'shrsb'); ?></span></td>
|
403 |
-
<td><div class="icon-ok"></div></td>
|
404 |
-
<td><div class="icon-remove"></div></td>
|
405 |
-
<td><a href="./admin.php?page=shareaholic_analytics.php">Configure</a></td>
|
406 |
-
</tr>
|
407 |
-
|
408 |
-
</tbody></table>
|
409 |
-
</div>
|
410 |
-
</div>
|
411 |
-
</div>
|
412 |
-
</li>
|
413 |
-
|
414 |
-
<li>
|
415 |
-
<div class="box-mid-head" id="iconator">
|
416 |
-
<h2 class="fugue f-globe-plus"><?php _e('Enabled Networks', 'shrsb'); ?></h2>
|
417 |
-
</div>
|
418 |
-
<div class="box-mid-body iconator" id="toggle1">
|
419 |
-
<div class="padding">
|
420 |
-
<p><?php _e('Select the Networks to display. Drag to reorder.', 'shrsb'); ?></p>
|
421 |
-
<ul class="multi-selection">
|
422 |
-
<li><?php _e('Select', 'shrsb'); ?>: </li>
|
423 |
-
<li><a id="sel-all" href="javascript:void(0);"><?php _e('All', 'shrsb'); ?></a> | </li>
|
424 |
-
<li><a id="sel-none" href="javascript:void(0);"><?php _e('None', 'shrsb'); ?></a> | </li>
|
425 |
-
<li><a id="sel-pop" href="javascript:void(0);"><?php _e('Most Popular', 'shrsb'); ?></a> </li>
|
426 |
-
</ul>
|
427 |
-
<div id="shrsb-networks"><ul>
|
428 |
-
<?php
|
429 |
-
foreach ($shrsb_plugopts['bookmark'] as $name){if(array_key_exists($name, $shrsb_bookmarks_data)) {print shrsb_network_input_select($name, $shrsb_bookmarks_data[$name]['id'], $shrsb_bookmarks_data[$name]['check']);}}
|
430 |
-
$unused_networks=array_diff(array_keys($shrsb_bookmarks_data), $shrsb_plugopts['bookmark']);
|
431 |
-
foreach ($unused_networks as $name) print shrsb_network_input_select($name, $shrsb_bookmarks_data[$name]['id'], $shrsb_bookmarks_data[$name]['check']);
|
432 |
-
?>
|
433 |
-
</ul></div>
|
434 |
-
</div>
|
435 |
-
<div style="padding:10px; float:right;color:#999999;"><?php _e('Made with Much Love, these Icons are © Shareaholic', 'shrsb'); ?></div>
|
436 |
-
</div>
|
437 |
-
</li>
|
438 |
-
|
439 |
-
|
440 |
-
<li>
|
441 |
-
<div class="box-mid-head">
|
442 |
-
<h2 class="fugue f-globe-plus"><?php _e('Additional Buttons', 'shrsb'); ?> <span style="color:orange;">* <?php _e('switch on "new mode" above to enable these exclusive features', 'shrsb'); ?></span></h2>
|
443 |
-
<a name="likebuttonset"></a>
|
444 |
-
</div>
|
445 |
-
<div class="box-mid-body" id="toggle2">
|
446 |
-
<div class="padding">
|
447 |
-
<div id="genopts">
|
448 |
-
|
449 |
-
<table><tbody>
|
450 |
-
<tr>
|
451 |
-
<td><span class="shrsb_option"><?php _e('Include Open Graph Meta Tags?', 'shrsb'); ?></span>
|
452 |
-
</td>
|
453 |
-
<td style="width:125px"><label><input <?php echo (($shrsb_plugopts['ogtags'] == "1")? 'checked="checked"' : ""); ?> name="ogtags" id="ogtags-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label>
|
454 |
-
</td><td><label><input <?php echo (($shrsb_plugopts['ogtags'] == "0")? 'checked="checked"' : ""); ?> name="ogtags" id="ogtags-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label>
|
455 |
-
</td>
|
456 |
-
</tr>
|
457 |
-
<tr>
|
458 |
-
<td><span class="shrsb_option"><?php _e('Include the like button-set just above the post?', 'shrsb'); ?></span>
|
459 |
-
</td>
|
460 |
-
<td style="width:125px"><label><input <?php echo (($shrsb_plugopts['likeButtonSetTop'] == "1")? 'checked="checked"' : ""); ?> name="likeButtonSetTop" id="likeButtonSetTop-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label>
|
461 |
-
</td><td><label><input <?php echo (($shrsb_plugopts['likeButtonSetTop'] == "0")? 'checked="checked"' : ""); ?> name="likeButtonSetTop" id="likeButtonSetTop-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label>
|
462 |
-
</td>
|
463 |
-
</tr>
|
464 |
-
</tbody></table>
|
465 |
-
|
466 |
-
<?php
|
467 |
-
shrsb_likeButtonSetHTML($shrsb_plugopts,'Top');
|
468 |
-
?>
|
469 |
-
|
470 |
-
<table><tbody>
|
471 |
-
|
472 |
-
<tr>
|
473 |
-
<td><span class="shrsb_option"><?php _e('Include the like button-set below the post?', 'shrsb'); ?></span>
|
474 |
-
</td>
|
475 |
-
<td style="width:125px"><label><input <?php echo (($shrsb_plugopts['likeButtonSetBottom'] == "1")? 'checked="checked"' : ""); ?> name="likeButtonSetBottom" id="likeButtonSetBottom-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label>
|
476 |
-
</td><td><label><input <?php echo (($shrsb_plugopts['likeButtonSetBottom'] == "0")? 'checked="checked"' : ""); ?> name="likeButtonSetBottom" id="likeButtonSetBottom-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label>
|
477 |
-
</td>
|
478 |
-
</tr>
|
479 |
-
<?php
|
480 |
-
shrsb_likeButtonSetHTML($shrsb_plugopts,'Bottom');
|
481 |
-
?>
|
482 |
-
|
483 |
-
</tbody></table>
|
484 |
-
|
485 |
-
<br />
|
486 |
-
|
487 |
-
<span style="display:block;"><?php echo sprintf(__('Check out %sour support site%s for additional customization options.', 'shrsb'), '<a target="_blank" href="http://support.shareaholic.com/customer/portal/articles/656378-fb-like-send-google-1-sharing-buttons-support-">', '</a>'); ?></span>
|
488 |
-
</div>
|
489 |
-
</div>
|
490 |
-
</div>
|
491 |
-
|
492 |
-
</li>
|
493 |
-
|
494 |
-
<li>
|
495 |
-
<div class="box-mid-head">
|
496 |
-
<h2 class="fugue f-wrench"><?php _e('Functionality Settings', 'shrsb'); ?></h2>
|
497 |
-
<a name="functionality"></a>
|
498 |
-
</div>
|
499 |
-
<div class="box-mid-body" id="toggle2">
|
500 |
-
<div class="padding">
|
501 |
-
<div id="genopts">
|
502 |
-
<table><tbody>
|
503 |
-
<tr>
|
504 |
-
<td><span class="shrsb_option"><?php _e('Show Share Counters', 'shrsb'); ?> <span style="color:orange;">*</span><sup style="color:#08C;"> #</sup></span>
|
505 |
-
<span style="display:block; font-size: 11px; color: #666666;"><?php _e('For Facebook, LinkedIn, Twitter and Delicious', 'shrsb'); ?></span>
|
506 |
-
</td>
|
507 |
-
<td><label><input <?php echo (($shrsb_plugopts['showShareCount'] == "1")? 'checked="checked"' : ""); ?> name="showShareCount" id="showShareCount-yes" type="radio" value="1" /> <?php _e('Yes (recommended)', 'shrsb'); ?></label>
|
508 |
-
</td><td><label><input <?php echo (($shrsb_plugopts['showShareCount'] == "0")? 'checked="checked"' : ""); ?> name="showShareCount" id="showShareCount-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label>
|
509 |
-
</td>
|
510 |
-
</tr>
|
511 |
-
|
512 |
-
<tr>
|
513 |
-
<td><span class="shrsb_option"><?php _e('Use Designer Tooltips', 'shrsb'); ?> <span style="color:orange;">*</span></span></td>
|
514 |
-
<td><label><input <?php echo (($shrsb_plugopts['designer_toolTips'] == "1")? 'checked="checked"' : ""); ?> name="designer_toolTips" id="designer_toolTips-yes" type="radio" value="1" /> <?php _e('Yes (recommended)', 'shrsb'); ?></label></td>
|
515 |
-
<td><label><input <?php echo (($shrsb_plugopts['designer_toolTips'] == "0")? 'checked="checked"' : ""); ?> name="designer_toolTips" id="designer_toolTips-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label></td>
|
516 |
-
</tr>
|
517 |
-
|
518 |
-
<tr class="designer_toolTip_prefs" style="display:none">
|
519 |
-
<td><label class="tab" for="tip_bg_color" style="margin-top:7px;"><?php _e('Background Color for Tooltips:', 'shrsb'); ?></label></td>
|
520 |
-
<td><input style="margin-top:7px;" type="text" id="tip_bg_color" name="tip_bg_color" value="<?php echo $shrsb_plugopts['tip_bg_color']; ?>" /></td>
|
521 |
-
<td style="padding-bottom: 9px"><div id="tip_bg_color_picker" class ="color_selector">
|
522 |
-
<div style="background-color:<?php echo $shrsb_plugopts['tip_bg_color']; ?>; "></div>
|
523 |
-
</div>
|
524 |
-
</td>
|
525 |
-
<td><div id="tip_bg_color_picker_holder" style="display:none; margin-top: 5px; position: absolute;" ></div></td>
|
526 |
-
<td> <div id="tip_bg_color_reset" style="margin-left: 5px;"><a href="javascript:void(0);"><?php _e('reset', 'shrsb'); ?></a></div></td>
|
527 |
-
</tr>
|
528 |
-
<tr class="designer_toolTip_prefs" style="display:none">
|
529 |
-
<td><label class="tab" style="margin-top:7px;" for="tip_text_color"><?php _e('Text Color for Tooltips:', 'shrsb'); ?></label></td>
|
530 |
-
<td><input style="margin-top:7px;" type="text" id="tip_text_color" name="tip_text_color" value="<?php echo $shrsb_plugopts['tip_text_color']; ?>" /></td>
|
531 |
-
<td style="padding-bottom: 9px"><div id="tip_text_color_picker" class ="color_selector">
|
532 |
-
<div style="background-color: <?php echo $shrsb_plugopts['tip_text_color']; ?>; "></div>
|
533 |
-
</div>
|
534 |
-
</td>
|
535 |
-
<td><div id="tip_text_color_picker_holder" style="display:none; margin-top: 5px; position: absolute;"></div></td>
|
536 |
-
<td> <div id="tip_text_color_reset" style="margin-left: 5px;"><a href="javascript:void(0);"><?php _e('reset', 'shrsb'); ?></a></div></td>
|
537 |
-
</tr>
|
538 |
-
<tr class="designer_toolTip_prefs" style="display:none">
|
539 |
-
<td><label class="tab" style="margin-top:7px;" for="tip_text_color"><?php _e('Language for Tooltips:', 'shrsb'); ?> (<a href="http://blog.shareaholic.com/2011/05/shareaholic-for-publishers-now-features-automagic-translation/">?</a>)</label></td>
|
540 |
-
<td colspan="3"><select name="locale" id="locale">
|
541 |
-
<?php
|
542 |
-
$locales = array(
|
543 |
-
'0' => 'Automagic Translation (recommended)',
|
544 |
-
'en' => 'English',
|
545 |
-
'es' => 'Spanish',
|
546 |
-
'fr' => 'French',
|
547 |
-
'de' => 'German',
|
548 |
-
'tr' => 'Turkish',
|
549 |
-
'it' => 'Italian',
|
550 |
-
'pt' => 'Portugese',
|
551 |
-
//'pt_BR' => 'Portugese Brazil',
|
552 |
-
'et' => 'Estonian',
|
553 |
-
'hu' => 'Hungarian',
|
554 |
-
'bg' => 'Bulgarian',
|
555 |
-
'el' => 'Greek',
|
556 |
-
'lt' => 'Lithuanian',
|
557 |
-
'he' => 'Hebrew',
|
558 |
-
'nl' => 'Dutch'
|
559 |
-
);
|
560 |
-
|
561 |
-
//run translation on each value
|
562 |
-
foreach($locales as $value)
|
563 |
-
$value = __($value,'shrsb');
|
564 |
-
|
565 |
-
// output locale select options
|
566 |
-
print shrsb_select_option_group('locale', $locales, $shrsb_plugopts);
|
567 |
-
|
568 |
-
?>
|
569 |
-
|
570 |
-
</select></td>
|
571 |
-
<td style="padding-bottom: 9px"></td>
|
572 |
-
</tr>
|
573 |
-
|
574 |
-
<tr>
|
575 |
-
<td><span class="shrsb_option"><?php _e('Add Nofollow to Links', 'shrsb'); ?></span></td>
|
576 |
-
<td><label><input <?php echo (($shrsb_plugopts['reloption'] == "nofollow")? 'checked="checked"' : ""); ?> name="reloption" id="reloption-yes" type="radio" value="nofollow" /> <?php _e('Yes', 'shrsb'); ?></label>
|
577 |
-
</td><td><label><input <?php echo (($shrsb_plugopts['reloption'] == "1")? 'checked="checked"' : ""); ?> name="reloption" id="reloption-no" type="radio" value="1" /> <?php _e('No', 'shrsb'); ?></label>
|
578 |
-
</td>
|
579 |
-
</tr>
|
580 |
-
|
581 |
-
<tr>
|
582 |
-
<td><span class="shrsb_option"><?php _e('Open Links in New Window', 'shrsb'); ?></span></td>
|
583 |
-
<td><label><input <?php echo (($shrsb_plugopts['targetopt'] == "_blank")? 'checked="checked"' : ""); ?> name="targetopt" id="targetopt-blank" type="radio" value="_blank" /> <?php _e('Yes', 'shrsb'); ?></label>
|
584 |
-
</td><td><label><input <?php echo (($shrsb_plugopts['targetopt'] == "_self")? 'checked="checked"' : ""); ?> name="targetopt" id="targetopt-self" type="radio" value="_self" /> <?php _e('No', 'shrsb'); ?></label>
|
585 |
-
</td>
|
586 |
-
</tr>
|
587 |
-
|
588 |
-
<tr>
|
589 |
-
<td>
|
590 |
-
<span class="shrsb_option"><?php _e('Show Shareaholic Link', 'shrsb'); ?></span>
|
591 |
-
</td>
|
592 |
-
<td><label><input <?php echo (($shrsb_plugopts['shrlink'] == "1" || $shrsb_plugopts['shrlink'] == '')? 'checked="checked"' : ""); ?> name="shrlink" id="shrlink-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label>
|
593 |
-
</td><td><label><input <?php echo (($shrsb_plugopts['shrlink'] == "0")? 'checked="checked"' : ""); ?> name="shrlink" id="shrlink-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label>
|
594 |
-
</td>
|
595 |
-
</tr>
|
596 |
-
|
597 |
-
<tr>
|
598 |
-
<td><span class="shrsb_option"><?php _e('Want to know about new products?', 'shrsb'); ?></span></td>
|
599 |
-
<td><label><input <?php echo (($shrsb_plugopts['promo'] == "1")? 'checked="checked"' : ""); ?> name="promo" id="promo-1" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label></td>
|
600 |
-
<td><label><input <?php echo (($shrsb_plugopts['promo'] != "1")? 'checked="checked"' : ""); ?> name="promo" id="promo-0" type="radio" value="" /> <?php _e('No', 'shrsb'); ?></label></td>
|
601 |
-
</tr>
|
602 |
-
|
603 |
-
<input type="hidden" name="shrbase" value="<?php echo $shrsb_plugopts['shrbase'] ?>"/>
|
604 |
-
<input type="hidden" name="apikey" placeholder="8afa39428933be41f8afdb8ea21a495c" value="<?php echo $shrsb_plugopts['apikey']?$shrsb_plugopts['apikey']:'8afa39428933be41f8afdb8ea21a495c' ?>"/>
|
605 |
-
|
606 |
-
</tbody></table>
|
607 |
-
<br />
|
608 |
-
<span style="display:block;"><span style="color:orange;">* <?php _e('switch on "new" mode above to enable these exclusive features', 'shrsb'); ?></span></span>
|
609 |
-
<span style="display:block;"><span style="color:#08C;"># <?php echo sprintf( __('Click %shere%s to enable 3rd party services to use this feature', 'shrsb'), '<a href="#3rdpartyservices">', '</a>'); ?></span></span>
|
610 |
-
</div>
|
611 |
-
</div>
|
612 |
-
</div>
|
613 |
-
</li>
|
614 |
-
|
615 |
-
<li id="twitter-defaults" <?php if(!in_array('shr-twitter', $shrsb_plugopts['bookmark'])) { ?> class="hide"<?php } ?>>
|
616 |
-
<div class="box-mid-head" id="iconator">
|
617 |
-
<h2><img src="<?php echo SHRSB_PLUGPATH; ?>images/twitter-16x16.png" alt="Twitter!" align="absmiddle" style="margin-right: 8px;" /><?php _e('Twitter Options', 'shrsb'); ?></h2>
|
618 |
-
</div>
|
619 |
-
<div class="box-mid-body" id="toggle6">
|
620 |
-
<div class="padding">
|
621 |
-
|
622 |
-
<p id="tweetinstructions">
|
623 |
-
<strong><?php _e('Configuration Instructions:', 'shrsb'); ?></strong><br />
|
624 |
-
<?php echo sprintf(__('Using the strings %s and %s you can fully customize your tweet output.', 'shrsb'), '<strong>${title}</strong>', '<strong>${short_link}</strong>'); ?><br /><br />
|
625 |
-
<strong><?php _e('Example Configurations:', 'shrsb'); ?></strong><br />
|
626 |
-
<em>${title} - ${short_link} (via @Shareaholic)</em><br />
|
627 |
-
<?php _e('or', 'shrsb'); ?><br />
|
628 |
-
<em>RT @Shareaholic: ${title} - ${short_link}</em>
|
629 |
-
</p>
|
630 |
-
<div style="position:relative;width:80%;">
|
631 |
-
<label for="tweetconfig"><?php _e('Configure Custom Tweet Template:', 'shrsb'); ?></label><small id="tweetcounter"><?php _e('Characters:', 'shrsb'); ?> <span></span></small><br />
|
632 |
-
<textarea id="tweetconfig" name="tweetconfig"><?php if(!empty($shrsb_plugopts['tweetconfig'])) { echo urldecode($shrsb_plugopts['tweetconfig']); } else { echo '${title} - ${short_link} via @Shareaholic'; } ?></textarea>
|
633 |
-
</div>
|
634 |
-
<p id="tweetoutput"><strong><?php _e('Example Tweet Output:', 'shrsb'); ?></strong><br /><span></span></p>
|
635 |
-
|
636 |
-
<label for="shorty"><?php _e('Which URL Shortener?', 'shrsb'); ?></label><br />
|
637 |
-
<select name="shorty" id="shorty">
|
638 |
-
<?php
|
639 |
-
// output shorty select options
|
640 |
-
print shrsb_select_option_group('shorty',
|
641 |
-
array(
|
642 |
-
'none' =>__("Don't use a shortener", 'shrsb'),
|
643 |
-
'shrlc' => 'shr.lc',
|
644 |
-
'bitly' => 'bit.ly',
|
645 |
-
'jmp' => 'j.mp',
|
646 |
-
'google' => 'Google (goo.gl)',
|
647 |
-
'tinyurl' => 'tinyurl',
|
648 |
-
'tflp' => 'Twitter Friendly Links WP Plugin',
|
649 |
-
'yourls' => 'YOURLS WP Plugin'
|
650 |
-
),
|
651 |
-
$shrsb_plugopts
|
652 |
-
);
|
653 |
-
?>
|
654 |
-
|
655 |
-
</select>
|
656 |
-
<div id="shortyapimdiv-bitly"<?php if($shrsb_plugopts['shorty'] != "bitly") { ?> class="hidden"<?php } ?>>
|
657 |
-
<div id="shortyapidiv-bitly">
|
658 |
-
<label for="shortyapiuser-bitly"><?php _e('User ID:', 'shrsb'); ?></label>
|
659 |
-
<input type="text" id="shortyapiuser-bitly" name="shortyapiuser-bitly" value="<?php echo $shrsb_plugopts['shortyapi']['bitly']['user']; ?>" />
|
660 |
-
<label for="shortyapikey-bitly"><?php _e('API Key:', 'shrsb'); ?></label>
|
661 |
-
<input type="text" id="shortyapikey-bitly" name="shortyapikey-bitly" value="<?php echo $shrsb_plugopts['shortyapi']['bitly']['key']; ?>" />
|
662 |
-
</div>
|
663 |
-
</div>
|
664 |
-
|
665 |
-
<div id="shortyapimdiv-jmp"<?php if($shrsb_plugopts['shorty'] != "jmp") { ?> class="hidden"<?php } ?>>
|
666 |
-
<div id="shortyapidiv-jmp">
|
667 |
-
<label for="shortyapiuser-jmp"><?php _e('User ID:', 'shrsb'); ?></label>
|
668 |
-
<input type="text" id="shortyapiuser-jmp" name="shortyapiuser-jmp" value="<?php echo $shrsb_plugopts['shortyapi']['jmp']['user']; ?>" />
|
669 |
-
<label for="shortyapikey-jmp"><?php _e('API Key:', 'shrsb'); ?></label>
|
670 |
-
<input type="text" id="shortyapikey-jmp" name="shortyapikey-jmp" value="<?php echo $shrsb_plugopts['shortyapi']['jmp']['key']; ?>" />
|
671 |
-
</div>
|
672 |
-
</div>
|
673 |
-
|
674 |
-
<div class="clearbig"></div>
|
675 |
-
</div>
|
676 |
-
</div>
|
677 |
-
</li>
|
678 |
-
|
679 |
-
<li>
|
680 |
-
<div class="box-mid-head">
|
681 |
-
<h2 class="fugue f-pallette"><?php _e('Plugin Aesthetics', 'shrsb'); ?></h2>
|
682 |
-
</div>
|
683 |
-
<div class="box-mid-body" id="toggle3">
|
684 |
-
<div class="padding">
|
685 |
-
<div id="custom-mods-notice">
|
686 |
-
<h1><?php _e('Warning!', 'shrsb'); ?></h1>
|
687 |
-
<p><?php echo sprintf(__('This option is intended %STRICTLY%s for users who understand how to edit CSS/JS and intend to change/edit the associated images themselves. Unfortunately, no support will be offered for this feature, as I cannot be held accountable for your coding and/or image editing mistakes.', 'shrsb'), '<strong>', '</strong>'); ?></p>
|
688 |
-
<h3><?php _e('How it works...', 'shrsb'); ?></h3>
|
689 |
-
<p><?php _e('Since you have chosen for the plugin to override the style settings with your own custom mods, it will now pull the files from the new folders it is going to create on your server as soon as you save your changes. The file/folder locations should be as follows:', 'shrsb'); ?></p>
|
690 |
-
<ul>
|
691 |
-
<li class="custom-mods-folder"><a href="<?php echo WP_CONTENT_URL.'/sexy-mods'; ?>"><?php echo WP_CONTENT_URL.'/sexy-mods'; ?></a></li>
|
692 |
-
<li class="custom-mods-folder"><a href="<?php echo WP_CONTENT_URL.'/sexy-mods/css'; ?>"><?php echo WP_CONTENT_URL.'/sexy-mods/css'; ?></a></li>
|
693 |
-
<li class="custom-mods-folder"><a href="<?php echo WP_CONTENT_URL.'/sexy-mods/js'; ?>"><?php echo WP_CONTENT_URL.'/sexy-mods/js'; ?></a></li>
|
694 |
-
<li class="custom-mods-folder"><a href="<?php echo WP_CONTENT_URL.'/sexy-mods/images'; ?>"><?php echo WP_CONTENT_URL.'/sexy-mods/images'; ?></a></li>
|
695 |
-
<li class="custom-mods-code"><a href="<?php echo WP_CONTENT_URL.'/sexy-mods/js/sexy-bookmarks-public.js'; ?>"><?php echo WP_CONTENT_URL.'/sexy-mods/js/sexy-bookmarks-public.js'; ?></a></li>
|
696 |
-
<li class="custom-mods-code"><a href="<?php echo WP_CONTENT_URL.'/sexy-mods/css/style.css'; ?>"><?php echo WP_CONTENT_URL.'/sexy-mods/css/style.css'; ?></a></li>
|
697 |
-
<li class="custom-mods-image"><a href="<?php echo WP_CONTENT_URL.'/sexy-mods/images/shr-sprite.png'; ?>"><?php echo WP_CONTENT_URL.'/sexy-mods/images/shr-sprite.png'; ?></a></li>
|
698 |
-
<li class="custom-mods-image"><a href="<?php echo WP_CONTENT_URL.'/sexy-mods/images/share-enjoy.png'; ?>"><?php echo WP_CONTENT_URL.'/sexy-mods/images/share-enjoy.png'; ?></a></li>
|
699 |
-
<li class="custom-mods-image"><a href="<?php echo WP_CONTENT_URL.'/sexy-mods/images/share-german.png'; ?>"><?php echo WP_CONTENT_URL.'/sexy-mods/images/share-german.png'; ?></a></li>
|
700 |
-
<li class="custom-mods-image"><a href="<?php echo WP_CONTENT_URL.'/sexy-mods/images/share-love-hearts.png'; ?>"><?php echo WP_CONTENT_URL.'/sexy-mods/images/share-love-hearts.png'; ?></a></li>
|
701 |
-
<li class="custom-mods-image"><a href="<?php echo WP_CONTENT_URL.'/sexy-mods/images/share-wealth.png'; ?>"><?php echo WP_CONTENT_URL.'/sexy-mods/images/share-wealth.png'; ?></a></li>
|
702 |
-
<li class="custom-mods-image"><a href="<?php echo WP_CONTENT_URL.'/sexy-mods/images/sharing-caring-hearts.png'; ?>"><?php echo WP_CONTENT_URL.'/sexy-mods/images/sharing-caring-hearts.png'; ?></a></li>
|
703 |
-
<li class="custom-mods-image"><a href="<?php echo WP_CONTENT_URL.'/sexy-mods/images/sharing-caring.png'; ?>"><?php echo WP_CONTENT_URL.'/sexy-mods/images/sharing-caring.png'; ?></a></li>
|
704 |
-
<li class="custom-mods-image"><a href="<?php echo WP_CONTENT_URL.'/sexy-mods/images/sharing-shr.png'; ?>"><?php echo WP_CONTENT_URL.'/sexy-mods/images/sharing-shr.png'; ?></a></li>
|
705 |
-
</ul>
|
706 |
-
<p><?php _e('Once you have saved your changes, you will be able to edit the image sprite that holds all of the icons for Shareaholic as well as the CSS which accompanies it. Just be sure that you do in fact edit the CSS if you edit the images, as it is unlikely the heights, widths, and background positions of the images will stay the same after you are done.', 'shrsb'); ?></p>
|
707 |
-
<p><?php _e('Just a quick note... When you edit the styles and images to include your own custom backgrounds, icons, and CSS styles, be aware that those changes will not be reflected on the plugin options page. In other words: when you select your networks to be displayed, or when you select the background image to use, it will still be displaying the images from the original plugin directory.', 'shrsb'); ?></p>
|
708 |
-
<h3><?php _e('In Case of Emergency', 'shrsb'); ?></h3>
|
709 |
-
<p><?php _e('If you happen to mess things up, you can follow these directions to reset the plugin back to normal and try again if you wish:', 'shrsb'); ?></p>
|
710 |
-
<ol>
|
711 |
-
<li><?php _e('Login to your server via FTP or SSH. (whichever you are more comfortable with)', 'shrsb'); ?></li>
|
712 |
-
<li><?php _e('Navigate to your wp-content directory.', 'shrsb'); ?></li>
|
713 |
-
<li><?php _e('Delete the directory named "sexy-mods".', 'shrsb'); ?></li>
|
714 |
-
<li><?php _e('Login to your WordPress dashboard.', 'shrsb'); ?></li>
|
715 |
-
<li><?php _e('Go to the SexyBookmarks plugin options page. (Settings->SexyBookmarks)', 'shrsb'); ?></li>
|
716 |
-
<li><?php _e('Deselect the "Use custom mods" option.', 'shrsb'); ?></li>
|
717 |
-
<li><?php _e('Save your changes.', 'shrsb'); ?></li>
|
718 |
-
</ol>
|
719 |
-
<span class="fugue f-delete custom-mods-notice-close"><?php _e('Close Message', 'shrsb'); ?></span>
|
720 |
-
</div>
|
721 |
-
<div class="custom-mod-check fugue f-plugin">
|
722 |
-
<label for="custom-mods" class="shrsb_option" style="display:inline;">
|
723 |
-
<?php _e('Override Styles With Custom Mods Instead?', 'shrsb'); ?>
|
724 |
-
</label>
|
725 |
-
<input <?php echo (($shrsb_plugopts['custom-mods'] == "yes")? 'checked' : ""); ?> name="custom-mods" id="custom-mods" type="checkbox" value="yes" />
|
726 |
-
</div>
|
727 |
-
|
728 |
-
<span class="shrsb_option"><?php _e('Animate-expand multi-lined bookmarks?', 'shrsb'); ?></span>
|
729 |
-
<label><input <?php echo (($shrsb_plugopts['expand'] == "1")? 'checked="checked"' : ""); ?> name="expand" id="expand-yes" type="radio" value="1" /><?php _e('Yes', 'shrsb'); ?></label>
|
730 |
-
<label><input <?php echo (($shrsb_plugopts['expand'] != "1")? 'checked="checked"' : ""); ?> name="expand" id="expand-no" type="radio" value="0" /><?php _e('No', 'shrsb'); ?></label>
|
731 |
-
<span class="shrsb_option"><?php _e('Auto-space/center the bookmarks?', 'shrsb'); ?></span>
|
732 |
-
<label><input <?php echo (($shrsb_plugopts['autocenter'] == "2")? 'checked="checked"' : ""); ?> name="autocenter" id="autospace-yes" type="radio" value="2" /><?php _e('Space', 'shrsb'); ?></label>
|
733 |
-
<label><input <?php echo (($shrsb_plugopts['autocenter'] == "1")? 'checked="checked"' : ""); ?> name="autocenter" id="autocenter-yes" type="radio" value="1" /><?php _e('Center', 'shrsb'); ?></label>
|
734 |
-
<label><input <?php echo (($shrsb_plugopts['autocenter'] == "0")? 'checked="checked"' : ""); ?> name="autocenter" id="autocenter-no" type="radio" value="0" /><?php _e('No', 'shrsb'); ?></label>
|
735 |
-
|
736 |
-
<span class="shrsb_option">
|
737 |
-
<?php _e('Use a background image?', 'shrsb'); ?> <input <?php echo (($shrsb_plugopts['bgimg-yes'] == "yes")? 'checked' : ""); ?> name="bgimg-yes" id="bgimg-yes" type="checkbox" value="yes" />
|
738 |
-
</span>
|
739 |
-
<div id="bgimgs" class="<?php if(!isset($shrsb_plugopts['bgimg-yes'])) { ?>hidden<?php } else { echo ''; }?>">
|
740 |
-
<label class="share-sexy">
|
741 |
-
<input <?php echo (($shrsb_plugopts['bgimg'] == "shr")? 'checked="checked"' : ""); ?> id="bgimg-sexy" name="bgimg" type="radio" value="shr" />
|
742 |
-
</label>
|
743 |
-
<label class="share-care">
|
744 |
-
<input <?php echo (($shrsb_plugopts['bgimg'] == "caring")? 'checked="checked"' : ""); ?> id="bgimg-caring" name="bgimg" type="radio" value="caring" />
|
745 |
-
</label>
|
746 |
-
<label class="share-care-old">
|
747 |
-
<input <?php echo (($shrsb_plugopts['bgimg'] == "care-old")? 'checked="checked"' : ""); ?> id="bgimg-care-old" name="bgimg" type="radio" value="care-old" />
|
748 |
-
</label>
|
749 |
-
<label class="share-love">
|
750 |
-
<input <?php echo (($shrsb_plugopts['bgimg'] == "love")? 'checked="checked"' : ""); ?> id="bgimg-love" name="bgimg" type="radio" value="love" />
|
751 |
-
</label>
|
752 |
-
<label class="share-wealth">
|
753 |
-
<input <?php echo (($shrsb_plugopts['bgimg'] == "wealth")? 'checked="checked"' : ""); ?> id="bgimg-wealth" name="bgimg" type="radio" value="wealth" />
|
754 |
-
</label>
|
755 |
-
<label class="share-enjoy">
|
756 |
-
<input <?php echo (($shrsb_plugopts['bgimg'] == "enjoy")? 'checked="checked"' : ""); ?> id="bgimg-enjoy" name="bgimg" type="radio" value="enjoy" />
|
757 |
-
</label>
|
758 |
-
<label class="share-german">
|
759 |
-
<input <?php echo (($shrsb_plugopts['bgimg'] == "german")? 'checked="checked"' : ""); ?> id="bgimg-german" name="bgimg" type="radio" value="german" />
|
760 |
-
</label>
|
761 |
-
<label class="share-knowledge">
|
762 |
-
<input <?php echo (($shrsb_plugopts['bgimg'] == "knowledge")? 'checked="checked"' : ""); ?> id="bgimg-knowledge" name="bgimg" type="radio" value="knowledge" />
|
763 |
-
</label>
|
764 |
-
</div>
|
765 |
-
</div>
|
766 |
-
</div>
|
767 |
-
</li>
|
768 |
-
|
769 |
-
<li>
|
770 |
-
<div class="box-mid-head">
|
771 |
-
<h2 class="fugue f-wrench"><?php _e('Compatibility Settings', 'shrsb'); ?></h2>
|
772 |
-
</div>
|
773 |
-
<div class="box-mid-body" id="toggle2">
|
774 |
-
<div class="padding">
|
775 |
-
|
776 |
-
<?php if (class_exists('WPMinify')) { ?>
|
777 |
-
<span class="shrsb_option"><?php _e('WP-Minify Compatibility Mode', 'shrsb'); ?></span>
|
778 |
-
<label><input <?php echo (($shrsb_plugopts['preventminify'] == "1")? 'checked="checked"' : ""); ?> name="preventminify" id="preventminify-yes" type="radio" value="1" /> <?php _e('Enabled (recommended)', 'shrsb'); ?></label>
|
779 |
-
<label><input <?php echo (($shrsb_plugopts['preventminify'] == "0")? 'checked="checked"' : ""); ?> name="preventminify" id="preventminify-no" type="radio" value="0" /> <?php _e('Disabled', 'shrsb'); ?></label>
|
780 |
-
<span style="display:block;"><?php _e('(SexyBookmarks may not work with this option turned off)', 'shrsb'); ?></span>
|
781 |
-
<?php } ?>
|
782 |
-
<span class="shrsb_option"><input type="checkbox" id="doNotIncludeJQuery" name="doNotIncludeJQuery" <?php echo (($shrsb_plugopts['doNotIncludeJQuery'] == "1")? 'checked' : ""); ?> value="1" /> <?php _e('jQuery Compatibility Fix', 'shrsb'); ?></span>
|
783 |
-
<label for="doNotIncludeJQuery"><?php _e("Check this box ONLY if you notice jQuery being loaded twice in your source code!", "shrsb"); ?></label>
|
784 |
-
|
785 |
-
<span class="shrsb_option"><input type="checkbox" id="scriptInFooter" name="scriptInFooter" <?php echo (($shrsb_plugopts['scriptInFooter'] == "1")? 'checked' : ""); ?> value="1" /> <?php _e('Load scripts in Footer', 'shrsb'); ?></span>
|
786 |
-
<label for="scriptInFooter"><?php _e("Check this box if you want the SexyBookmarks javascript to be loaded in your blog's footer.", 'shrsb'); ?> (<a href="http://developer.yahoo.com/performance/rules.html#js_bottom" target="_blank">?</a>)</label>
|
787 |
-
|
788 |
-
<span class="shrsb_option"><input type="checkbox" id="fbNameSpace" name="fbNameSpace" <?php echo (($shrsb_plugopts['fbNameSpace'] == "1")? 'checked' : ""); ?> value="1" /> <?php _e('Add Facebook required namespaces to your HTML tag? (recommended)', 'shrsb'); ?></span>
|
789 |
-
<label for="fbNameSpace"><?php _e("Check this box if you include Facebook's Like/Send buttons. These buttons may not work with this option turned off.", 'shrsb'); ?></label>
|
790 |
-
|
791 |
-
|
792 |
-
<span class="shrsb_option"><?php _e('Custom Path to Shareaholic File Resources', 'shrsb'); ?></span>
|
793 |
-
<label for="spritegen_path"><?php _e("Set Custom Path:", "shrsb"); ?>
|
794 |
-
<input class="span12" style="margin-top:7px; min-width: 500px;" type="text" id="spritegen_path" name="spritegen_path" value="<?php echo shrb_addTrailingChar(stripslashes($shrsb_plugopts['spritegen_path']), '/'); ?>" /></label>
|
795 |
-
<p><?php _e("Default Path: ", "shrsb"); echo SHRSB_UPLOADDIR_DEFAULT; ?> </p>
|
796 |
-
</div>
|
797 |
-
</div>
|
798 |
-
</li>
|
799 |
-
|
800 |
-
<li>
|
801 |
-
<div class="box-mid-head">
|
802 |
-
<h2 class="fugue f-footer"><?php _e('Menu Placement', 'shrsb'); ?></h2>
|
803 |
-
</div>
|
804 |
-
<div class="box-mid-body" id="toggle5">
|
805 |
-
<div class="padding">
|
806 |
-
<div class="dialog-box-information" id="info-manual">
|
807 |
-
<div class="dialog-left fugue f-info">
|
808 |
-
<?php echo sprintf(__('Need help with this? Find it in the %sofficial install guide%s.', 'shrsb'), '<a href="https://shareaholic.com/tools/wordpress/usage-installation">', '</a>'); ?></a>
|
809 |
-
</div>
|
810 |
-
<div class="dialog-right">
|
811 |
-
<img src="<?php echo SHRSB_PLUGPATH; ?>images/information-delete.jpg" class="del-x" alt=""/>
|
812 |
-
</div>
|
813 |
-
</div>
|
814 |
-
<span class="shrsb_option"><?php _e('Menu Location (in relation to content):', 'shrsb'); ?></span>
|
815 |
-
<label><input <?php echo (($shrsb_plugopts['position'] == "above")? 'checked="checked"' : ""); ?> name="position" id="position-above" type="radio" value="above" /> <?php _e('Above Content', 'shrsb'); ?></label>
|
816 |
-
<label><input <?php echo (($shrsb_plugopts['position'] == "below")? 'checked="checked"' : ""); ?> name="position" id="position-below" type="radio" value="below" /> <?php _e('Below Content', 'shrsb'); ?></label>
|
817 |
-
<label><input <?php echo (($shrsb_plugopts['position'] == "both")? 'checked="checked"' : ""); ?> name="position" id="position-both" type="radio" value="both" /> <?php _e('Above & Below Content', 'shrsb'); ?></label>
|
818 |
-
<label><input <?php echo (($shrsb_plugopts['position'] == "manual")? 'checked="checked"' : ""); ?> name="position" id="position-manual" type="radio" value="manual" /> <?php _e('Manual Mode', 'shrsb'); ?></label>
|
819 |
-
|
820 |
-
<?php shrsb_options_menu_type($shrsb_plugopts['pageorpost']); ?>
|
821 |
-
|
822 |
-
<span class="shebang-info fugue f-question" title="<?php _e('Click here for help with this option', 'shrsb'); ?>"> </span>
|
823 |
-
<span class="shrsb_option"><?php _e('Show in RSS feed?', 'shrsb'); ?></span>
|
824 |
-
<label><input <?php echo (($shrsb_plugopts['feed'] == "1")? 'checked="checked"' : ""); ?> name="feed" id="feed-show" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label>
|
825 |
-
<label><input <?php echo (($shrsb_plugopts['feed'] == "0" || empty($shrsb_plugopts['feed']))? 'checked="checked"' : ""); ?> name="feed" id="feed-hide" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label>
|
826 |
-
<span class="shrsb_option" style="margin-top:12px;">
|
827 |
-
<?php _e('Hide menu from mobile browsers?', 'shrsb'); ?> <input <?php echo (($shrsb_plugopts['mobile-hide'] == "yes")? 'checked' : ""); ?> name="mobile-hide" id="mobile-hide" type="checkbox" value="yes" />
|
828 |
-
</span>
|
829 |
-
<br />
|
830 |
-
</div>
|
831 |
-
</div>
|
832 |
-
</li>
|
833 |
-
</ul>
|
834 |
-
<div style="clear:both;"></div>
|
835 |
-
<input type="hidden" name="save_changes_sb" value="1" />
|
836 |
-
<div class="shrsbsubmit"><input type="submit" id="save_changes_sb" value="<?php _e('Save Changes', 'shrsb'); ?>" /></div>
|
837 |
-
</form>
|
838 |
-
<form action="" method="post">
|
839 |
-
<input type="hidden" name="reset_all_options_sb" id="reset_all_options_sb" value="0" />
|
840 |
-
<div class="shrsbreset"><input type="submit" value="<?php _e('Reset Settings', 'shrsb'); ?>" /></div>
|
841 |
-
|
842 |
-
</form>
|
843 |
-
|
844 |
-
<div id="third-party-submit-modal" class="reveal-modal" style="width: 520px;">
|
845 |
-
|
846 |
-
<a class="close-reveal-modal hide-reveal-modal">×</a>
|
847 |
-
|
848 |
-
<h3><?php _e('3rd Party Features', 'shrsb'); ?></h3>
|
849 |
-
|
850 |
-
<div class="modal-body" style="padding-left: 0px;">
|
851 |
-
<h3><?php _e('You have chosen to enable features that are dependent on 3rd party services like Google. What would you like to do?', 'shrsb'); ?></h3>
|
852 |
-
</div>
|
853 |
-
<p>
|
854 |
-
<a href="#" id="enable3rdParty" class="pull-right btn btn-primary hide-reveal-modal"><?php _e('Enable 3rd Party Features (highly recommended)', 'shrsb'); ?></a>
|
855 |
-
<a href="#" id="disable3rdParty" class="pull-right hide-reveal-modal" style="padding: 7px 10px 0 0;"><?php _e('Disable', 'shrsb'); ?></a>
|
856 |
-
</p>
|
857 |
-
</div>
|
858 |
-
|
859 |
-
<script type="text/javascript">
|
860 |
-
|
861 |
-
function showModal(){
|
862 |
-
var $= jQuery;
|
863 |
-
|
864 |
-
var o = $('#third-party-submit-modal');
|
865 |
-
|
866 |
-
$('#enable3rdParty',o).click(function(){
|
867 |
-
$('input:radio[name=perfoption]').removeAttr('checked');
|
868 |
-
$('#perfoption-yes').attr('checked',true)
|
869 |
-
forceSubmit();
|
870 |
-
});
|
871 |
-
|
872 |
-
$('#disable3rdParty',o).click(function(){
|
873 |
-
$('input:radio[name=perfoption]').removeAttr('checked');
|
874 |
-
$('#perfoption-no').attr('checked',true)
|
875 |
-
forceSubmit();
|
876 |
-
});
|
877 |
-
|
878 |
-
o.reveal({
|
879 |
-
scrollheight:0
|
880 |
-
, closeonbackgroundclick: true
|
881 |
-
, dismissmodalclass:"hide-reveal-modal"
|
882 |
-
, animation:'fadeAndPop'
|
883 |
-
, backdrop: true
|
884 |
-
});
|
885 |
-
|
886 |
-
function forceSubmit(){
|
887 |
-
$('#sexy-bookmarks').submit();
|
888 |
-
}
|
889 |
-
|
890 |
-
}
|
891 |
-
|
892 |
-
function isRadioEnabled(name){
|
893 |
-
return jQuery('input:radio[name='+ name + ']:checked').val() == '1';
|
894 |
-
}
|
895 |
-
|
896 |
-
|
897 |
-
function is3rdPartyDependent() {
|
898 |
-
|
899 |
-
var shrsb_analytics = <?php echo json_encode($shrsb_analytics) ?> ;
|
900 |
-
|
901 |
-
return (shrsb_analytics.pubGaSocial == '1') || isRadioEnabled('showShareCount') ;
|
902 |
-
}
|
903 |
-
|
904 |
-
function handleSubmit(){
|
905 |
-
|
906 |
-
var $= jQuery;
|
907 |
-
|
908 |
-
// $('#sexy-bookmarks').submit(function(){
|
909 |
-
$('#save_changes_sb').click(function(){
|
910 |
-
|
911 |
-
// If 3rd party dependent
|
912 |
-
if( is3rdPartyDependent() && !isRadioEnabled('perfoption') ){
|
913 |
-
showModal();
|
914 |
-
return false;
|
915 |
-
}
|
916 |
-
})
|
917 |
-
}
|
918 |
-
|
919 |
-
handleSubmit();
|
920 |
-
|
921 |
-
</script>
|
922 |
-
|
923 |
-
|
924 |
-
<?php echo shrsb_getfooter(); ?>
|
925 |
-
|
926 |
-
</div>
|
927 |
-
|
928 |
-
|
929 |
-
<?php
|
930 |
-
|
931 |
-
//Right Side helpful links
|
932 |
-
echo shrsb_right_side_menu();
|
933 |
-
//Snap Engage
|
934 |
-
echo get_snapengage();
|
935 |
-
|
936 |
-
}//closing brace for function "shrsb_settings_page"
|
937 |
-
|
938 |
-
|
939 |
-
/*
|
940 |
-
* @desc Checks to see if wp-minify is installed, if so, whitelist our files
|
941 |
-
*/
|
942 |
-
function exclude_from_minify_list() {
|
943 |
-
$minify_opts = get_option("wp_minify");
|
944 |
-
|
945 |
-
if(is_array($minify_opts) && is_array($minify_opts["js_exclude"])) {
|
946 |
-
$sbfound = false;
|
947 |
-
$tbfound = false;
|
948 |
-
$shr_dough_recipe = false;
|
949 |
-
foreach($minify_opts["js_exclude"] as $url) {
|
950 |
-
if($url == 'jquery.shareaholic-publishers-sb.min.js') {
|
951 |
-
$sbfound = true;
|
952 |
-
}
|
953 |
-
if($url == 'jquery.shareaholic-share-buttons.min.js') {
|
954 |
-
$tbfound = true;
|
955 |
-
}
|
956 |
-
if($url == 'shareaholic-analytics.js') {
|
957 |
-
$shr_dough_recipe = true;
|
958 |
-
}
|
959 |
-
}
|
960 |
-
if(!$sbfound) {
|
961 |
-
array_push($minify_opts["js_exclude"],'jquery.shareaholic-publishers-sb.min.js');
|
962 |
-
}
|
963 |
-
if(!$tbfound) {
|
964 |
-
array_push($minify_opts["js_exclude"],'jquery.shareaholic-share-buttons.min.js');
|
965 |
-
}
|
966 |
-
if(!$shr_dough_recipe) {
|
967 |
-
array_push($minify_opts["js_exclude"],'shareaholic-analytics.js');
|
968 |
-
}
|
969 |
-
update_option("wp_minify", $minify_opts);
|
970 |
-
}
|
971 |
-
}
|
972 |
-
|
973 |
-
function _make_params($params) {
|
974 |
-
$pairs = array();
|
975 |
-
foreach ($params as $k => $v) {
|
976 |
-
$pairs[] = implode('=', array(urlencode($k), urlencode($v)));
|
977 |
-
}
|
978 |
-
return implode('&', $pairs);
|
979 |
-
}
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
/**
|
984 |
-
* Make a local copy of all shareaholic resources
|
985 |
-
*/
|
986 |
-
function shrsb_refresh_cache() {
|
987 |
-
global $shrsb_plugopts, $shrsb_bgimg_map, $default_spritegen;
|
988 |
-
|
989 |
-
$script_sb = _shrsb_fetch_content('/media/js/jquery.shareaholic-publishers-sb.min.js', '/jquery.shareaholic-publishers-sb.min.js', true);
|
990 |
-
$script_tb = _shrsb_fetch_content('/media/js/jquery.shareaholic-share-buttons.min.js', '/jquery.shareaholic-share-buttons.min.js', true);
|
991 |
-
|
992 |
-
// Sort services to make request more cacheable.
|
993 |
-
$services = explode(',', $shrsb_plugopts['service']);
|
994 |
-
sort($services, SORT_NUMERIC);
|
995 |
-
$services = implode(',', $services);
|
996 |
-
|
997 |
-
$sprite_opts = array(
|
998 |
-
'v' => 2,
|
999 |
-
'apikey' => $shrsb_plugopts['apikey'],
|
1000 |
-
'service' => $services,
|
1001 |
-
'bgimg' => $shrsb_bgimg_map[$shrsb_plugopts['bgimg']]['url'],
|
1002 |
-
'bgimg_padding' => $shrsb_bgimg_map[$shrsb_plugopts['bgimg']]['padding']
|
1003 |
-
);
|
1004 |
-
// save as css so mime types work on normal servers
|
1005 |
-
$css_sb = _shrsb_fetch_content('/api/sprite/?'._make_params($sprite_opts), '/sprite.css', true);
|
1006 |
-
$css_tb = _shrsb_fetch_content('/media/css/shareaholic-share-button.css', '/shareaholic-share-button.css', true);
|
1007 |
-
|
1008 |
-
$sprite_opts['apitype'] = 'png';
|
1009 |
-
$png_sb = _shrsb_fetch_content('/api/sprite/?'._make_params($sprite_opts), '/sprite.png', true);
|
1010 |
-
$png_tb = _shrsb_fetch_content('/media/images/styles/tb/shareaholic-publishers-mini.png', '/shareaholic-publishers-mini.png', true);
|
1011 |
-
$png_tb_arrow_up = _shrsb_fetch_content('/media/images/styles/tb/arrow_up.png', '/arrow_up.png', true);
|
1012 |
-
$png_tb_arrow_down = _shrsb_fetch_content('/media/images/styles/tb/arrow_down.png', '/arrow_down.png', true);
|
1013 |
-
|
1014 |
-
if(!$script_sb || !$script_tb || !$css_sb || !$css_tb || !$png_sb || !$png_tb || !$png_tb_arrow_up || !$png_tb_arrow_down) {
|
1015 |
-
update_option('SHRSB_DefaultSprite',true);
|
1016 |
-
$default_spritegen = true;
|
1017 |
-
} else {
|
1018 |
-
update_option('SHRSB_DefaultSprite',false);
|
1019 |
-
$default_spritegen = false;
|
1020 |
-
}
|
1021 |
-
}
|
1022 |
-
|
1023 |
-
function shrsb_requires_resave() {
|
1024 |
-
global $shrsb_plugopts,$default_spritegen;
|
1025 |
-
$resave_required = false;
|
1026 |
-
if(($shrsb_plugopts['shareaholic-javascript'] == '1' //new mode
|
1027 |
-
&& $default_spritegen)
|
1028 |
-
|| ($shrsb_plugopts['shareaholic-javascript'] != '1' //old mode
|
1029 |
-
&& !(file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png')
|
1030 |
-
&& file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css')
|
1031 |
-
)
|
1032 |
-
)
|
1033 |
-
){
|
1034 |
-
$resave_required = true;
|
1035 |
-
}
|
1036 |
-
|
1037 |
-
return $resave_required;
|
1038 |
-
}
|
1039 |
-
/*
|
1040 |
-
* @desc Check for chmod for new-custom and old-custom mode only
|
1041 |
-
*/
|
1042 |
-
function shrsb_requires_chmod($mode = NULL) {
|
1043 |
-
return !(is_writable(SHRSB_UPLOADDIR.'spritegen'));
|
1044 |
-
}
|
1045 |
-
|
1046 |
-
function shrsb_requires_phpupdate() {
|
1047 |
-
return (strnatcmp(phpversion(),'5.0') < 0);
|
1048 |
-
}
|
1049 |
-
|
1050 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/shrsb_topbar_page.php
DELETED
@@ -1,68 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* @desc All Topbar functions and values which are used on every page load
|
5 |
-
*/
|
6 |
-
|
7 |
-
//Initialing the topbar settings array
|
8 |
-
$shrsb_tb_plugopts = shrsb_tb_set_options();
|
9 |
-
|
10 |
-
/*
|
11 |
-
* @desc Set the settings either from database or default
|
12 |
-
*/
|
13 |
-
function shrsb_tb_set_options($action = NULL){
|
14 |
-
|
15 |
-
$defaultLikeButtonOrder = array(
|
16 |
-
'shr-fb-like',
|
17 |
-
'shr-fb-send',
|
18 |
-
'shr-plus-one',
|
19 |
-
'shr-tw-button'
|
20 |
-
);
|
21 |
-
|
22 |
-
//Default Settigs array
|
23 |
-
$shrsb_tb_plugopts_default = array(
|
24 |
-
'topbar' => '0',
|
25 |
-
'useSbSettings' => '1',
|
26 |
-
'tb_bg_color' => '#000000',
|
27 |
-
'tb_border_color' => '#000000',//#343434'
|
28 |
-
'addv' => '1',
|
29 |
-
'pageorpost' => 'postpageindexcategory',
|
30 |
-
'likeButtonSetTop' => '1', // Include like button below the Post Title
|
31 |
-
'fbLikeButtonTop' => '1', // Include fb like button
|
32 |
-
'fbSendButtonTop' => '1', // Include fb like button
|
33 |
-
'googlePlusOneButtonTop' => '1', // Include Google Plus One button
|
34 |
-
'tweetButtonTop' => '1', // Include Tweet button
|
35 |
-
'likeButtonSetSizeTop' => "1", // Size of like buttons
|
36 |
-
'likeButtonSetCountTop' => "true", // Show count with +1 button
|
37 |
-
'likeButtonOrderTop' => $defaultLikeButtonOrder,
|
38 |
-
'likeButtonSetAlignmentTop' => '0' // Alignment 0 => left, 1 => rights
|
39 |
-
);
|
40 |
-
|
41 |
-
//Return default settings
|
42 |
-
if($action == "reset"){
|
43 |
-
delete_option("ShareaholicTopbar");
|
44 |
-
add_option("ShareaholicTopbar",$shrsb_tb_plugopts_default);
|
45 |
-
return $shrsb_tb_plugopts_default;
|
46 |
-
}
|
47 |
-
|
48 |
-
//Get the settings from the database
|
49 |
-
$database_Settings = get_option('ShareaholicTopbar');
|
50 |
-
if($database_Settings){
|
51 |
-
$need_to_update = false;
|
52 |
-
|
53 |
-
//Check whether all the settings are present or not
|
54 |
-
foreach($shrsb_tb_plugopts_default as $k => $v){
|
55 |
-
if( !array_key_exists( $k, $database_Settings)) {
|
56 |
-
$database_Settings[$k] = $v;
|
57 |
-
$need_to_update = true;
|
58 |
-
}
|
59 |
-
}
|
60 |
-
if($need_to_update) update_option("ShareaholicTopbar",$database_Settings);
|
61 |
-
return $database_Settings;
|
62 |
-
}else{
|
63 |
-
//Add the settings
|
64 |
-
add_option('ShareaholicTopbar',$shrsb_tb_plugopts_default);
|
65 |
-
return $shrsb_tb_plugopts_default;
|
66 |
-
}
|
67 |
-
}
|
68 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/shrsb_topbar_settings_page.php
DELETED
@@ -1,230 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* @desc Topbar Settings page
|
5 |
-
*/
|
6 |
-
|
7 |
-
function shrsb_tb_settings_page() {
|
8 |
-
global $shrsb_tb_plugopts;
|
9 |
-
// Add all the global varaible declarations for the $shrsb_tb_plugopts
|
10 |
-
echo '<div class="wrap""><div class="icon32" id="icon-options-general"><br></div><h2>Share Buttons: Top Bar Settings</h2></div>';
|
11 |
-
//Defaults - set if not present
|
12 |
-
if (!isset($_POST['reset_all_options_tb'])){$_POST['reset_all_options_tb'] = '1';}
|
13 |
-
if (!isset($_POST['shrsbresetallwarn-choice'])){$_POST['shrsbresetallwarn-choice'] = 'no';}
|
14 |
-
|
15 |
-
if($_POST['reset_all_options_tb'] == '0') {
|
16 |
-
echo '
|
17 |
-
<div id="shrsbresetallwarn" class="dialog-box-warning" style="float:none;width:97%;">
|
18 |
-
<div class="dialog-left fugue f-warn">
|
19 |
-
'.__("WARNING: You are about to reset all settings to their default state! Do you wish to continue?", "shrsb").'
|
20 |
-
</div>
|
21 |
-
<div class="dialog-right">
|
22 |
-
<form action="" method="post" id="resetalloptionsaccept">
|
23 |
-
<label><input name="shrsbresetallwarn-choice" id="shrsbresetallwarn-yes" type="radio" value="yes" />'.__('Yes', 'shrsb').'</label> <label><input name="shrsbresetallwarn-choice" id="shrsbresetallwarn-cancel" type="radio" value="cancel" />'.__('Cancel', 'shrsb').'</label>
|
24 |
-
</form>
|
25 |
-
</div>
|
26 |
-
</div>';
|
27 |
-
}
|
28 |
-
|
29 |
-
//Reset all options to default settings if user clicks the reset button
|
30 |
-
if($_POST['shrsbresetallwarn-choice'] == "yes") { //check for reset button click
|
31 |
-
delete_option('ShareaholicTopbar');
|
32 |
-
$shrsb_tb_plugopts = shrsb_tb_set_options("reset");
|
33 |
-
|
34 |
-
//delete_option('SHRSB_CustomSprite');
|
35 |
-
echo '
|
36 |
-
<div id="statmessage" class="shrsb-success">
|
37 |
-
<div class="dialog-left fugue f-success">
|
38 |
-
'.__('All settings have been reset to their default values.', 'shrsb').'
|
39 |
-
</div>
|
40 |
-
<div class="dialog-right">
|
41 |
-
<img src="'.SHRSB_PLUGPATH.'images/success-delete.jpg" class="del-x" alt=""/>
|
42 |
-
</div>
|
43 |
-
</div>';
|
44 |
-
}
|
45 |
-
|
46 |
-
// processing form submission
|
47 |
-
$status_message = "";
|
48 |
-
$error_message = "";
|
49 |
-
if(isset($_POST['save_changes_tb'])) {
|
50 |
-
|
51 |
-
// Set success message
|
52 |
-
$status_message = __('Your changes have been saved successfully!', 'shrsb');
|
53 |
-
$_POST['pageorpost'] = shrsb_set_content_type();
|
54 |
-
foreach (array(
|
55 |
-
'topbar', 'useSbSettings' , 'tb_bg_color' ,'tb_border_color', 'addv',
|
56 |
-
|
57 |
-
'likeButtonSetTop','fbLikeButtonTop','fbSendButtonTop','googlePlusOneButtonTop','tweetButtonTop','likeButtonSetSizeTop','likeButtonSetCountTop',
|
58 |
-
'likeButtonOrderTop','likeButtonSetAlignmentTop','pageorpost'
|
59 |
-
|
60 |
-
)as $field) {
|
61 |
-
if(isset($_POST[$field])) { // this is to prevent warning if $_POST[$field] is not defined
|
62 |
-
$shrsb_tb_plugopts[$field] = $_POST[$field];
|
63 |
-
} else {
|
64 |
-
$shrsb_tb_plugopts[$field] = NULL;
|
65 |
-
}
|
66 |
-
}
|
67 |
-
|
68 |
-
update_option('ShareaholicTopbar', $shrsb_tb_plugopts);
|
69 |
-
|
70 |
-
|
71 |
-
}//Closed Save
|
72 |
-
|
73 |
-
//if there was an error, construct error messages
|
74 |
-
if ($error_message != '') {
|
75 |
-
echo '
|
76 |
-
<div id="errmessage" class="shrsb-error">
|
77 |
-
<div class="dialog-left fugue f-error">
|
78 |
-
'.$error_message.'
|
79 |
-
</div>
|
80 |
-
<div class="dialog-right">
|
81 |
-
<img src="'.SHRSB_PLUGPATH.'images/error-delete.jpg" class="del-x" alt=""/>
|
82 |
-
</div>
|
83 |
-
</div>';
|
84 |
-
} elseif ($status_message != '') {
|
85 |
-
echo '<style type="text/css">#update_sb{display:none !important;}</style>
|
86 |
-
<div id="statmessage" class="shrsb-success">
|
87 |
-
<div class="dialog-left fugue f-success">
|
88 |
-
'.$status_message.'
|
89 |
-
</div>
|
90 |
-
<div class="dialog-right">
|
91 |
-
<img src="'.SHRSB_PLUGPATH.'images/success-delete.jpg" class="del-x" alt=""/>
|
92 |
-
</div>
|
93 |
-
</div>';
|
94 |
-
}
|
95 |
-
?>
|
96 |
-
|
97 |
-
<form name="sexy-bookmarks" id="sexy-bookmarks" action="" method="post">
|
98 |
-
<div id="shrsb-col-left" style="width: 100%">
|
99 |
-
<ul id="shrsb-sortables">
|
100 |
-
|
101 |
-
<li>
|
102 |
-
<div class="box-mid-head">
|
103 |
-
<h2 class="fugue f-globe-plus"><?php _e('Top Bar', 'shrsb'); ?> <span style="color:orange;">* <?php _e('switch on "new mode" in the SexyBookmarks tab to enable', 'shrsb'); ?></span></h2>
|
104 |
-
</div>
|
105 |
-
<div class="box-mid-body" id="toggle2">
|
106 |
-
<div class="padding">
|
107 |
-
<div id="genopts">
|
108 |
-
|
109 |
-
<table><tbody>
|
110 |
-
<tr class="alert-success">
|
111 |
-
<td><span class="shrsb_option"><?php _e('Enable the Top Sharing Bar?', 'shrsb'); ?> </span>
|
112 |
-
</td>
|
113 |
-
<td style="width:125px"><label><input <?php echo (($shrsb_tb_plugopts['topbar'] == "1")? 'checked="checked"' : ""); ?> name="topbar" id="topbar-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label>
|
114 |
-
</td><td><label><input <?php echo (($shrsb_tb_plugopts['topbar'] == "0")? 'checked="checked"' : ""); ?> name="topbar" id="topbar-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label>
|
115 |
-
</td>
|
116 |
-
</tr>
|
117 |
-
|
118 |
-
<tr>
|
119 |
-
<td><span class="shrsb_option"><?php _e('Use Default Settings?', 'shrsb'); ?></span>
|
120 |
-
</td>
|
121 |
-
<td style="width:125px"><label><input <?php echo (($shrsb_tb_plugopts['useSbSettings'] == "1")? 'checked="checked"' : ""); ?> name="useSbSettings" id="useSbSettings-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label>
|
122 |
-
</td><td><label><input <?php echo (($shrsb_tb_plugopts['useSbSettings'] == "0")? 'checked="checked"' : ""); ?> name="useSbSettings" id="useSbSettings-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label>
|
123 |
-
</td>
|
124 |
-
</tr>
|
125 |
-
<tr class="topbar_prefs" style="display:none">
|
126 |
-
<td><label class="tab" for="tb_bg_color" style="margin-top:7px;"><?php _e('Background Color for Toolbar:', 'shrsb'); ?></label></td>
|
127 |
-
<td><input style="margin-top:7px;" type="text" id="tb_bg_color" name="tb_bg_color" value="<?php echo $shrsb_tb_plugopts['tb_bg_color']; ?>" /></td>
|
128 |
-
<td style="padding-bottom: 9px;"><div id="tb_bg_color_picker" class ="color_selector">
|
129 |
-
<div style="background-color:<?php echo $shrsb_tb_plugopts['tb_bg_color']; ?>; "></div>
|
130 |
-
</div>
|
131 |
-
</td>
|
132 |
-
<td><div id="tb_bg_color_picker_holder" style="display:none; margin-top: 5px; position: absolute;" ></div></td>
|
133 |
-
<td> <div id="tb_bg_color_reset" style="margin-left: 5px;"><a href="javascript:void(0);"><?php _e('reset', 'shrsb'); ?></a></div></td>
|
134 |
-
</tr>
|
135 |
-
<tr class="topbar_prefs" style="display:none">
|
136 |
-
<td><label class="tab" for="tb_border_color" style="margin-top:7px;"><?php _e('Bottom border color:', 'shrsb'); ?></label></td>
|
137 |
-
<td><input style="margin-top:7px;" type="text" id="tb_border_color" name="tb_border_color" value="<?php echo $shrsb_tb_plugopts['tb_border_color']; ?>" /></td>
|
138 |
-
<td style="padding-bottom: 9px;"><div id="tb_border_color_picker" class ="color_selector">
|
139 |
-
<div style="background-color:<?php echo $shrsb_tb_plugopts['tb_border_color']; ?>; "></div>
|
140 |
-
</div>
|
141 |
-
</td>
|
142 |
-
<td><div id="tb_border_color_picker_holder" style="display:none; margin-top: 5px; position: absolute;" ></div></td>
|
143 |
-
<td> <div id="tb_border_color_reset" style="margin-left: 5px;"><a href="javascript:void(0);"><?php _e('reset', 'shrsb'); ?></a></div></td>
|
144 |
-
</tr>
|
145 |
-
|
146 |
-
<tr>
|
147 |
-
<td><span class="shrsb_option"><?php _e('Show Message?', 'shrsb'); ?></span>
|
148 |
-
</td>
|
149 |
-
<td style="width:125px"><label><input <?php echo (($shrsb_tb_plugopts['addv'] == "1")? 'checked="checked"' : ""); ?> name="addv" id="addv-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label>
|
150 |
-
</td><td><label><input <?php echo (($shrsb_tb_plugopts['addv'] == "0")? 'checked="checked"' : ""); ?> name="addv" id="addv-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label>
|
151 |
-
</td>
|
152 |
-
</tr>
|
153 |
-
|
154 |
-
</tbody></table>
|
155 |
-
|
156 |
-
<br />
|
157 |
-
|
158 |
-
<!-- <span style="display:block;"><?php echo sprintf(__('Check out %sour blog%s for additional customization options.', 'shrsb'), '<a target="_blank" href="http://blog.shareaholic.com/?p=1917">', '</a>'); ?></span><br />-->
|
159 |
-
</div>
|
160 |
-
</div>
|
161 |
-
</div>
|
162 |
-
|
163 |
-
</li>
|
164 |
-
<li>
|
165 |
-
<div class="box-mid-head">
|
166 |
-
<h2 class="fugue f-globe-plus"><?php _e('Top Bar Sharing Buttons', 'shrsb'); ?></h2>
|
167 |
-
</div>
|
168 |
-
<div class="box-mid-body" id="toggle2">
|
169 |
-
<div class="padding">
|
170 |
-
<div id="genopts">
|
171 |
-
|
172 |
-
|
173 |
-
<table><tbody>
|
174 |
-
|
175 |
-
<tr>
|
176 |
-
<td><span class="shrsb_option"><?php _e('Customize the buttons to be shown in topbar?', 'shrsb'); ?> </span>
|
177 |
-
</td>
|
178 |
-
<td style="width:125px"><label><input <?php echo (($shrsb_tb_plugopts['likeButtonSetTop'] == "1")? 'checked="checked"' : ""); ?> name="likeButtonSetTop" id="likeButtonSetTop-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label>
|
179 |
-
</td><td><label><input <?php echo (($shrsb_tb_plugopts['likeButtonSetTop'] == "0")? 'checked="checked"' : ""); ?> name="likeButtonSetTop" id="likeButtonSetTop-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label>
|
180 |
-
</td>
|
181 |
-
|
182 |
-
</tr>
|
183 |
-
<?php
|
184 |
-
shrsb_likeButtonSetHTML($shrsb_tb_plugopts,'Top');
|
185 |
-
?>
|
186 |
-
|
187 |
-
</tbody></table>
|
188 |
-
|
189 |
-
</div>
|
190 |
-
</div>
|
191 |
-
</div>
|
192 |
-
|
193 |
-
</li>
|
194 |
-
<li>
|
195 |
-
<div class="box-mid-head">
|
196 |
-
<h2 class="fugue f-footer"><?php _e('Top Bar Placement', 'shrsb'); ?></h2>
|
197 |
-
</div>
|
198 |
-
<div class="box-mid-body" id="toggle5">
|
199 |
-
<div class="padding">
|
200 |
-
|
201 |
-
<?php shrsb_options_menu_type($shrsb_tb_plugopts['pageorpost']); ?>
|
202 |
-
|
203 |
-
<br />
|
204 |
-
</div>
|
205 |
-
</div>
|
206 |
-
</li>
|
207 |
-
</ul>
|
208 |
-
<div style="clear:both;"></div>
|
209 |
-
<input type="hidden" name="save_changes_tb" value="1" />
|
210 |
-
<div class="shrsbsubmit"><input type="submit" id="save_changes_tb" value="<?php _e('Save Changes', 'shrsb'); ?>" /></div>
|
211 |
-
</form>
|
212 |
-
<form action="" method="post">
|
213 |
-
<input type="hidden" name="reset_all_options_tb" id="reset_all_options_tb" value="0" />
|
214 |
-
<div class="shrsbreset"><input type="submit" value="<?php _e('Reset Settings', 'shrsb'); ?>" /></div>
|
215 |
-
</form>
|
216 |
-
|
217 |
-
<?php echo shrsb_getfooter(); ?>
|
218 |
-
|
219 |
-
</div>
|
220 |
-
|
221 |
-
<?php
|
222 |
-
|
223 |
-
//Right Side helpful links
|
224 |
-
echo shrsb_right_side_menu();
|
225 |
-
//Snap Engage
|
226 |
-
echo get_snapengage();
|
227 |
-
|
228 |
-
}//closing brace for function "shrsb_settings_page"
|
229 |
-
|
230 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/widget.php
DELETED
@@ -1,53 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* Creating the widget for the WordPress Dashboard
|
5 |
-
*/
|
6 |
-
|
7 |
-
class ShareaholicWidget extends WP_Widget{
|
8 |
-
|
9 |
-
function ShareaholicWidget(){
|
10 |
-
//Actula Widget Code goes here
|
11 |
-
parent::WP_Widget(false,$name = "Shareaholic");
|
12 |
-
}
|
13 |
-
|
14 |
-
function top_sharers($domain){
|
15 |
-
echo '<script type="text/javascript" src="//shareaholic.com/media/js/topsharers.js?domain='.$domain.'"></script>';
|
16 |
-
}
|
17 |
-
|
18 |
-
function widget($args,$instance){
|
19 |
-
//Output the Widget Contet
|
20 |
-
extract($args);
|
21 |
-
$this->top_sharers($this->get_domain());
|
22 |
-
}
|
23 |
-
|
24 |
-
function update($new_instance, $old_instance){
|
25 |
-
//process and save the widget options
|
26 |
-
return $new_instance;
|
27 |
-
}
|
28 |
-
|
29 |
-
function form($instance){
|
30 |
-
//Output the Options for admin
|
31 |
-
}
|
32 |
-
|
33 |
-
function get_domain(){
|
34 |
-
$site_url = get_option("siteurl");
|
35 |
-
preg_match("/^(http?:\/\/)?([^\/]+)/i",$site_url , $matches);
|
36 |
-
$host = $matches[2];
|
37 |
-
$new_url = ereg_replace('www\.','',$host);
|
38 |
-
$domain = parse_url($new_url);
|
39 |
-
if(!empty($domain["host"])){
|
40 |
-
return $domain["host"];
|
41 |
-
}else{
|
42 |
-
return $domain["path"];
|
43 |
-
}
|
44 |
-
return $domain;
|
45 |
-
}
|
46 |
-
}
|
47 |
-
|
48 |
-
function shrsb_register_widget() {
|
49 |
-
register_widget('ShareaholicWidget');
|
50 |
-
}
|
51 |
-
|
52 |
-
add_action( 'widgets_init', 'shrsb_register_widget' );
|
53 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/bootstrap/bootstrap.min.js
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Bootstrap.js by @fat & @mdo
|
3 |
-
* plugins: bootstrap-transition.js, bootstrap-modal.js, bootstrap-dropdown.js, bootstrap-scrollspy.js, bootstrap-tab.js, bootstrap-tooltip.js, bootstrap-popover.js, bootstrap-alert.js, bootstrap-button.js, bootstrap-collapse.js, bootstrap-carousel.js, bootstrap-typeahead.js
|
4 |
-
* Copyright 2012 Twitter, Inc.
|
5 |
-
* http://www.apache.org/licenses/LICENSE-2.0.txt
|
6 |
-
*/
|
7 |
-
!function(a){a(function(){"use strict",a.support.transition=function(){var b=document.body||document.documentElement,c=b.style,d=c.transition!==undefined||c.WebkitTransition!==undefined||c.MozTransition!==undefined||c.MsTransition!==undefined||c.OTransition!==undefined;return d&&{end:function(){var b="TransitionEnd";return a.browser.webkit?b="webkitTransitionEnd":a.browser.mozilla?b="transitionend":a.browser.opera&&(b="oTransitionEnd"),b}()}}()})}(window.jQuery),!function(a){function c(){var b=this,c=setTimeout(function(){b.$element.off(a.support.transition.end),d.call(b)},500);this.$element.one(a.support.transition.end,function(){clearTimeout(c),d.call(b)})}function d(a){this.$element.hide().trigger("hidden"),e.call(this)}function e(b){var c=this,d=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var e=a.support.transition&&d;this.$backdrop=a('<div class="modal-backdrop '+d+'" />').appendTo(document.body),this.options.backdrop!="static"&&this.$backdrop.click(a.proxy(this.hide,this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),e?this.$backdrop.one(a.support.transition.end,b):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,a.proxy(f,this)):f.call(this)):b&&b()}function f(){this.$backdrop.remove(),this.$backdrop=null}function g(){var b=this;this.isShown&&this.options.keyboard?a(document).on("keyup.dismiss.modal",function(a){a.which==27&&b.hide()}):this.isShown||a(document).off("keyup.dismiss.modal")}"use strict";var b=function(b,c){this.options=a.extend({},a.fn.modal.defaults,c),this.$element=a(b).delegate('[data-dismiss="modal"]',"click.dismiss.modal",a.proxy(this.hide,this))};b.prototype={constructor:b,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var b=this;if(this.isShown)return;a("body").addClass("modal-open"),this.isShown=!0,this.$element.trigger("show"),g.call(this),e.call(this,function(){var c=a.support.transition&&b.$element.hasClass("fade");!b.$element.parent().length&&b.$element.appendTo(document.body),b.$element.show(),c&&b.$element[0].offsetWidth,b.$element.addClass("in"),c?b.$element.one(a.support.transition.end,function(){b.$element.trigger("shown")}):b.$element.trigger("shown")})},hide:function(b){b&&b.preventDefault();if(!this.isShown)return;var e=this;this.isShown=!1,a("body").removeClass("modal-open"),g.call(this),this.$element.trigger("hide").removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?c.call(this):d.call(this)}},a.fn.modal=function(c){return this.each(function(){var d=a(this),e=d.data("modal"),f=typeof c=="object"&&c;e||d.data("modal",e=new b(this,f)),typeof c=="string"?e[c]():e.show()})},a.fn.modal.defaults={backdrop:!0,keyboard:!0},a.fn.modal.Constructor=b,a(function(){a("body").on("click.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d,e=a(c.attr("data-target")||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("modal")?"toggle":a.extend({},e.data(),c.data());b.preventDefault(),e.modal(f)})})}(window.jQuery),!function(a){function d(){a(b).parent().removeClass("open")}"use strict";var b='[data-toggle="dropdown"]',c=function(b){var c=a(b).on("click.dropdown.data-api",this.toggle);a("html").on("click.dropdown.data-api",function(){c.parent().removeClass("open")})};c.prototype={constructor:c,toggle:function(b){var c=a(this),e=c.attr("data-target"),f,g;return e||(e=c.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,"")),f=a(e),f.length||(f=c.parent()),g=f.hasClass("open"),d(),!g&&f.toggleClass("open"),!1}},a.fn.dropdown=function(b){return this.each(function(){var d=a(this),e=d.data("dropdown");e||d.data("dropdown",e=new c(this)),typeof b=="string"&&e[b].call(d)})},a.fn.dropdown.Constructor=c,a(function(){a("html").on("click.dropdown.data-api",d),a("body").on("click.dropdown.data-api",b,c.prototype.toggle)})}(window.jQuery),!function(a){function b(b,c){var d=a.proxy(this.process,this),e=a(b).is("body")?a(window):a(b),f;this.options=a.extend({},a.fn.scrollspy.defaults,c),this.$scrollElement=e.on("scroll.scroll.data-api",d),this.selector=(this.options.target||(f=a(b).attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=a("body").on("click.scroll.data-api",this.selector,d),this.refresh(),this.process()}"use strict",b.prototype={constructor:b,refresh:function(){this.targets=this.$body.find(this.selector).map(function(){var b=a(this).attr("href");return/^#\w/.test(b)&&a(b).length?b:null}),this.offsets=a.map(this.targets,function(b){return a(b).position().top})},process:function(){var a=this.$scrollElement.scrollTop()+this.options.offset,b=this.offsets,c=this.targets,d=this.activeTarget,e;for(e=b.length;e--;)d!=c[e]&&a>=b[e]&&(!b[e+1]||a<=b[e+1])&&this.activate(c[e])},activate:function(a){var b;this.activeTarget=a,this.$body.find(this.selector).parent(".active").removeClass("active"),b=this.$body.find(this.selector+'[href="'+a+'"]').parent("li").addClass("active"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active")}},a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("scrollspy"),f=typeof c=="object"&&c;e||d.data("scrollspy",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.defaults={offset:10},a(function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(window.jQuery),!function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype={constructor:b,show:function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.attr("data-target"),e,f;d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,""));if(b.parent("li").hasClass("active"))return;e=c.find(".active a").last()[0],b.trigger({type:"show",relatedTarget:e}),f=a(d),this.activate(b.parent("li"),c),this.activate(f,f.parent(),function(){b.trigger({type:"shown",relatedTarget:e})})},activate:function(b,c,d){function g(){e.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),f?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var e=c.find("> .active"),f=d&&a.support.transition&&e.hasClass("fade");f?e.one(a.support.transition.end,g):g(),e.removeClass("in")}},a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("tab");e||d.data("tab",e=new b(this)),typeof c=="string"&&e[c]()})},a.fn.tab.Constructor=b,a(function(){a("body").on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})})}(window.jQuery),!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.enabled=!0,this.options.trigger!="manual"&&(e=this.options.trigger=="hover"?"mouseenter":"focus",f=this.options.trigger=="hover"?"mouseleave":"blur",this.$element.on(e,this.options.selector,a.proxy(this.enter,this)),this.$element.on(f,this.options.selector,a.proxy(this.leave,this))),this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(b){return b=a.extend({},a.fn[this.type].defaults,b,this.$element.data()),b.delay&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay}),b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);!c.options.delay||!c.options.delay.show?c.show():(c.hoverState="in",setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show))},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);!c.options.delay||!c.options.delay.hide?c.hide():(c.hoverState="out",setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide))},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip(),this.setContent(),this.options.animation&&a.addClass("fade"),f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,b=/in/.test(f),a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body),c=this.getPosition(b),d=a[0].offsetWidth,e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).addClass("in")}},setContent:function(){var a=this.tip();a.find(".tooltip-inner").html(this.getTitle()),a.removeClass("fade in top bottom left right")},hide:function(){function d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b),c.remove()})}var b=this,c=this.tip();c.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&a.attr("data-original-title",a.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(b){return a.extend({},b?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title),a=a.toString().replace(/(^\s*|\s*$)/,""),a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(){this[this.tip().hasClass("in")?"hide":"show"]()}},a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'}}(window.jQuery),!function(a){"use strict";var b=function(a,b){this.init("popover",a,b)};b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype,{constructor:b,setContent:function(){var b=this.tip(),c=this.getTitle(),d=this.getContent();b.find(".popover-title")[a.type(c)=="object"?"append":"html"](c),b.find(".popover-content > *")[a.type(d)=="object"?"append":"html"](d),b.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-content")||(typeof c.content=="function"?c.content.call(b[0]):c.content),a=a.toString().replace(/(^\s*|\s*$)/,""),a},tip:function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip}}),a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("popover"),f=typeof c=="object"&&c;e||d.data("popover",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.defaults=a.extend({},a.fn.tooltip.defaults,{placement:"right",content:"",template:'<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'})}(window.jQuery),!function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype={constructor:c,close:function(b){function f(){e.remove(),e.trigger("closed")}var c=a(this),d=c.attr("data-target"),e;d||(d=c.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),e=a(d),e.trigger("close"),b&&b.preventDefault(),e.length||(e=c.hasClass("alert")?c:c.parent()),e.removeClass("in"),a.support.transition&&e.hasClass("fade")?e.on(a.support.transition.end,f):f()}},a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("alert");e||d.data("alert",e=new c(this)),typeof b=="string"&&e[b].call(d)})},a.fn.alert.Constructor=c,a(function(){a("body").on("click.alert.data-api",b,c.prototype.close)})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.button.defaults,c)};b.prototype={constructor:b,setState:function(a){var b="disabled",c=this.$element,d=c.data(),e=c.is("input")?"val":"html";a+="Text",d.resetText||c.data("resetText",c[e]()),c[e](d[a]||this.options[a]),setTimeout(function(){a=="loadingText"?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},toggle:function(){var a=this.$element.parent('[data-toggle="buttons-radio"]');a&&a.find(".active").removeClass("active"),this.$element.toggleClass("active")}},a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("button"),f=typeof c=="object"&&c;e||d.data("button",e=new b(this,f)),c=="toggle"?e.toggle():c&&e.setState(c)})},a.fn.button.defaults={loadingText:"loading..."},a.fn.button.Constructor=b,a(function(){a("body").on("click.button.data-api","[data-toggle^=button]",function(b){a(b.target).button("toggle")})})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.collapse.defaults,c),this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.prototype={constructor:b,dimension:function(){var a=this.$element.hasClass("width");return a?"width":"height"},show:function(){var b=this.dimension(),c=a.camelCase(["scroll",b].join("-")),d=this.$parent&&this.$parent.find(".in"),e;d&&d.length&&(e=d.data("collapse"),d.collapse("hide"),e||d.data("collapse",null)),this.$element[b](0),this.transition("addClass","show","shown"),this.$element[b](this.$element[0][c])},hide:function(){var a=this.dimension();this.reset(this.$element[a]()),this.transition("removeClass","hide","hidden"),this.$element[a](0)},reset:function(a){var b=this.dimension();this.$element.removeClass("collapse")[b](a||"auto")[0].offsetWidth,this.$element.addClass("collapse")},transition:function(b,c,d){var e=this,f=function(){c=="show"&&e.reset(),e.$element.trigger(d)};this.$element.trigger(c)[b]("in"),a.support.transition&&this.$element.hasClass("collapse")?this.$element.one(a.support.transition.end,f):f()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}},a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("collapse"),f=typeof c=="object"&&c;e||d.data("collapse",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.collapse.defaults={toggle:!0},a.fn.collapse.Constructor=b,a(function(){a("body").on("click.collapse.data-api","[data-toggle=collapse]",function(b){var c=a(this),d,e=c.attr("data-target")||b.preventDefault()||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),f=a(e).data("collapse")?"toggle":c.data();a(e).collapse(f)})})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.carousel.defaults,c),this.options.slide&&this.slide(this.options.slide)};b.prototype={cycle:function(){return this.interval=setInterval(a.proxy(this.next,this),this.options.interval),this},to:function(b){var c=this.$element.find(".active"),d=c.parent().children(),e=d.index(c),f=this;if(b>d.length-1||b<0)return;return this.sliding?this.$element.one("slid",function(){f.to(b)}):e==b?this.pause().cycle():this.slide(b>e?"next":"prev",a(d[b]))},pause:function(){return clearInterval(this.interval),this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(b,c){var d=this.$element.find(".active"),e=c||d[b](),f=this.interval,g=b=="next"?"left":"right",h=b=="next"?"first":"last",i=this;return this.sliding=!0,f&&this.pause(),e=e.length?e:this.$element.find(".item")[h](),!a.support.transition&&this.$element.hasClass("slide")?(this.$element.trigger("slide"),d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid")):(e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),this.$element.trigger("slide"),this.$element.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid")},0)})),f&&this.cycle(),this}},a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("carousel"),f=typeof c=="object"&&c;e||d.data("carousel",e=new b(this,f)),typeof c=="number"?e.to(c):typeof c=="string"||(c=f.slide)?e[c]():e.cycle()})},a.fn.carousel.defaults={interval:5e3},a.fn.carousel.Constructor=b,a(function(){a("body").on("click.carousel.data-api","[data-slide]",function(b){var c=a(this),d,e=a(c.attr("data-target")||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"")),f=!e.data("modal")&&a.extend({},e.data(),c.data());e.carousel(f),b.preventDefault()})})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.typeahead.defaults,c),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.$menu=a(this.options.menu).appendTo("body"),this.source=this.options.source,this.shown=!1,this.listen()};b.prototype={constructor:b,select:function(){var a=this.$menu.find(".active").attr("data-value");return this.$element.val(a),this.hide()},show:function(){var b=a.extend({},this.$element.offset(),{height:this.$element[0].offsetHeight});return this.$menu.css({top:b.top+b.height,left:b.left}),this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(b){var c=this,d,e;return this.query=this.$element.val(),this.query?(d=a.grep(this.source,function(a){if(c.matcher(a))return a}),d=this.sorter(d),d.length?this.render(d.slice(0,this.options.items)).show():this.shown?this.hide():this):this.shown?this.hide():this},matcher:function(a){return~a.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(a){var b=[],c=[],d=[],e;while(e=a.shift())e.toLowerCase().indexOf(this.query.toLowerCase())?~e.indexOf(this.query)?c.push(e):d.push(e):b.push(e);return b.concat(c,d)},highlighter:function(a){return a.replace(new RegExp("("+this.query+")","ig"),function(a,b){return"<strong>"+b+"</strong>"})},render:function(b){var c=this;return b=a(b).map(function(b,d){return b=a(c.options.item).attr("data-value",d),b.find("a").html(c.highlighter(d)),b[0]}),b.first().addClass("active"),this.$menu.html(b),this},next:function(b){var c=this.$menu.find(".active").removeClass("active"),d=c.next();d.length||(d=a(this.$menu.find("li")[0])),d.addClass("active")},prev:function(a){var b=this.$menu.find(".active").removeClass("active"),c=b.prev();c.length||(c=this.$menu.find("li").last()),c.addClass("active")},listen:function(){this.$element.on("blur",a.proxy(this.blur,this)).on("keypress",a.proxy(this.keypress,this)).on("keyup",a.proxy(this.keyup,this)),(a.browser.webkit||a.browser.msie)&&this.$element.on("keydown",a.proxy(this.keypress,this)),this.$menu.on("click",a.proxy(this.click,this)).on("mouseenter","li",a.proxy(this.mouseenter,this))},keyup:function(a){a.stopPropagation(),a.preventDefault();switch(a.keyCode){case 40:case 38:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:this.hide();break;default:this.lookup()}},keypress:function(a){a.stopPropagation();if(!this.shown)return;switch(a.keyCode){case 9:case 13:case 27:a.preventDefault();break;case 38:a.preventDefault(),this.prev();break;case 40:a.preventDefault(),this.next()}},blur:function(a){var b=this;a.stopPropagation(),a.preventDefault(),setTimeout(function(){b.hide()},150)},click:function(a){a.stopPropagation(),a.preventDefault(),this.select()},mouseenter:function(b){this.$menu.find(".active").removeClass("active"),a(b.currentTarget).addClass("active")}},a.fn.typeahead=function(c){return this.each(function(){var d=a(this),e=d.data("typeahead"),f=typeof c=="object"&&c;e||d.data("typeahead",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"></ul>',item:'<li><a href="#"></a></li>'},a.fn.typeahead.Constructor=b,a(function(){a("body").on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(b){var c=a(this);if(c.data("typeahead"))return;b.preventDefault(),c.typeahead(c.data())})})}(window.jQuery)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/index.php
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
//Source of plugin
|
4 |
-
header("Location: https://shareaholic.com");
|
5 |
-
|
6 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
js/reveal/jquery.reveal.min.js
DELETED
@@ -1,177 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* jQuery Reveal Plugin 1.0
|
3 |
-
* Copyright 2010, ZURB
|
4 |
-
* Free to use under the MIT license.
|
5 |
-
* http://www.opensource.org/licenses/mit-license.php
|
6 |
-
*
|
7 |
-
* Modified : Ankur Agarwal
|
8 |
-
*
|
9 |
-
* Added functionality to mention scrollheight in the config
|
10 |
-
*
|
11 |
-
*/
|
12 |
-
|
13 |
-
(function($) {
|
14 |
-
|
15 |
-
/*---------------------------
|
16 |
-
Defaults for Reveal
|
17 |
-
----------------------------*/
|
18 |
-
|
19 |
-
/*---------------------------
|
20 |
-
Listener for data-reveal-id attributes
|
21 |
-
----------------------------*/
|
22 |
-
|
23 |
-
$('a[data-reveal-id]').live('click', function(e) {
|
24 |
-
e.preventDefault();
|
25 |
-
var modalLocation = $(this).attr('data-reveal-id');
|
26 |
-
$('#'+modalLocation).reveal($(this).data());
|
27 |
-
});
|
28 |
-
|
29 |
-
/*---------------------------
|
30 |
-
Extend and Execute
|
31 |
-
----------------------------*/
|
32 |
-
|
33 |
-
$.fn.reveal = function(options) {
|
34 |
-
|
35 |
-
var defaults = {
|
36 |
-
animation: 'fadeAndPop' //fade, fadeAndPop, none
|
37 |
-
, animationspeed: 300 //how fast animtions are
|
38 |
-
, closeonbackgroundclick: true //if you click background will modal close?
|
39 |
-
, dismissmodalclass: 'close-reveal-modal' //the class of a button or element that will close an open modal
|
40 |
-
, backdrop: true //Show the modal by default or not
|
41 |
-
, autoshow: true //Show the modal by default or not
|
42 |
-
, showevent: 'show' // event to listen on the modal container to trigger show
|
43 |
-
, shownevent: 'shown' // event to listen on the modal container after the modal box is shown
|
44 |
-
, hideevent: 'hide' // event to listen on the modal container to trigger hide
|
45 |
-
, hiddenevent: 'hidden' // event to listen on the modal container after the modal is hidden
|
46 |
-
//scrollHeight: <integer> This attribute if not passed will be calculated at the runtime and used
|
47 |
-
};
|
48 |
-
|
49 |
-
//Extend dem' options
|
50 |
-
var options = $.extend({}, defaults, options);
|
51 |
-
return this.each(function() {
|
52 |
-
|
53 |
-
/*---------------------------
|
54 |
-
Global Variables
|
55 |
-
----------------------------*/
|
56 |
-
var modal = $(this),
|
57 |
-
topMeasure = parseInt(modal.css('top')),
|
58 |
-
topOffset = modal.height() + topMeasure,
|
59 |
-
locked = false,
|
60 |
-
modalBG = $('.reveal-modal-bg');
|
61 |
-
|
62 |
-
/*---------------------------
|
63 |
-
Create Modal BG
|
64 |
-
----------------------------*/
|
65 |
-
if(modalBG.length == 0) {
|
66 |
-
modalBG = $('<div class="reveal-modal-bg" />').insertAfter(modal);
|
67 |
-
}
|
68 |
-
|
69 |
-
/*---------------------------
|
70 |
-
Open & Close Animations
|
71 |
-
----------------------------*/
|
72 |
-
//Entrance Animations
|
73 |
-
modal.bind('reveal:open ' + options.showevent, function () {
|
74 |
-
$('.' + options.dismissmodalclass).unbind('click.modalEvent');
|
75 |
-
if(!locked) {
|
76 |
-
lockModal();
|
77 |
-
if(options.animation == "fadeAndPop") {
|
78 |
-
var h = typeof options.scrollheight !== "undefined" ? options.scrollheight : $(document).scrollTop();
|
79 |
-
modal.css({'top': h -topOffset, 'opacity' : 0, 'visibility' : 'visible'});
|
80 |
-
options.backdrop &&modalBG.fadeIn(options.animationspeed/2);
|
81 |
-
modal.delay(options.animationspeed/2).animate({
|
82 |
-
"top": h+topMeasure + 'px',
|
83 |
-
"opacity" : 1
|
84 |
-
}, options.animationspeed,shown());
|
85 |
-
}
|
86 |
-
if(options.animation == "fade") {
|
87 |
-
modal.css({'opacity' : 0, 'visibility' : 'visible', 'top': $(document).scrollTop()+topMeasure});
|
88 |
-
modalBG.fadeIn(options.animationspeed/2);
|
89 |
-
modal.delay(options.animationspeed/2).animate({
|
90 |
-
"opacity" : 1
|
91 |
-
}, options.animationspeed,shown());
|
92 |
-
}
|
93 |
-
if(options.animation == "none") {
|
94 |
-
modal.css({'visibility' : 'visible', 'top':$(document).scrollTop()+topMeasure});
|
95 |
-
modalBG.css({"display":"block"});
|
96 |
-
shown()
|
97 |
-
}
|
98 |
-
}
|
99 |
-
modal.unbind('reveal:open');
|
100 |
-
});
|
101 |
-
|
102 |
-
//Closing Animation
|
103 |
-
modal.bind('reveal:close ' + options.hideevent, function () {
|
104 |
-
if(!locked) {
|
105 |
-
lockModal();
|
106 |
-
if(options.animation == "fadeAndPop") {
|
107 |
-
var h = typeof options.scrollheight !== "undefined" ? options.scrollheight : $(document).scrollTop();
|
108 |
-
options.backdrop && modalBG.delay(options.animationspeed).fadeOut(options.animationspeed);
|
109 |
-
modal.animate({
|
110 |
-
"top": h - topOffset + 'px',
|
111 |
-
"opacity" : 0
|
112 |
-
}, options.animationspeed/2, function() {
|
113 |
-
modal.css({'top':topMeasure, 'opacity' : 1, 'visibility' : 'hidden'});
|
114 |
-
hidden();
|
115 |
-
|
116 |
-
});
|
117 |
-
}
|
118 |
-
if(options.animation == "fade") {
|
119 |
-
modalBG.delay(options.animationspeed).fadeOut(options.animationspeed);
|
120 |
-
modal.animate({
|
121 |
-
"opacity" : 0
|
122 |
-
}, options.animationspeed, function() {
|
123 |
-
modal.css({'opacity' : 1, 'visibility' : 'hidden', 'top' : topMeasure});
|
124 |
-
hidden();
|
125 |
-
});
|
126 |
-
}
|
127 |
-
if(options.animation == "none") {
|
128 |
-
modal.css({'visibility' : 'hidden', 'top' : topMeasure});
|
129 |
-
modalBG.css({'display' : 'none'});
|
130 |
-
}
|
131 |
-
}
|
132 |
-
modal.unbind('reveal:close');
|
133 |
-
});
|
134 |
-
|
135 |
-
/*---------------------------
|
136 |
-
Open and add Closing Listeners
|
137 |
-
----------------------------*/
|
138 |
-
//Open Modal Immediately
|
139 |
-
options.autoshow && modal.trigger('reveal:open')
|
140 |
-
|
141 |
-
//Close Modal Listeners
|
142 |
-
var closeButton = $('.' + options.dismissmodalclass).bind('click.modalEvent', function () {
|
143 |
-
modal.trigger('reveal:close')
|
144 |
-
});
|
145 |
-
|
146 |
-
if(options.closeonbackgroundclick) {
|
147 |
-
modalBG.css({"cursor":"pointer"})
|
148 |
-
modalBG.bind('click.modalEvent', function () {
|
149 |
-
modal.trigger(options.hideevent)
|
150 |
-
});
|
151 |
-
}
|
152 |
-
$('body').keyup(function(e) {
|
153 |
-
if(e.which===27){ modal.trigger('reveal:close'); } // 27 is the keycode for the Escape key
|
154 |
-
});
|
155 |
-
|
156 |
-
function shown () {
|
157 |
-
modal.trigger(options.shownevent);
|
158 |
-
unlockModal();
|
159 |
-
}
|
160 |
-
function hidden () {
|
161 |
-
modal.trigger(options.hiddenevent);
|
162 |
-
unlockModal();
|
163 |
-
}
|
164 |
-
|
165 |
-
/*---------------------------
|
166 |
-
Animations Locks
|
167 |
-
----------------------------*/
|
168 |
-
function unlockModal() {
|
169 |
-
locked = false;
|
170 |
-
}
|
171 |
-
function lockModal() {
|
172 |
-
locked = true;
|
173 |
-
}
|
174 |
-
|
175 |
-
});//each call
|
176 |
-
}//orbit plugin call
|
177 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/sexy-bookmarks-public.js
DELETED
@@ -1,81 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function() {
|
2 |
-
jQuery(".shr-bookmarks a.external").attr("target", "_blank");
|
3 |
-
|
4 |
-
var c = jQuery(".shr-bookmarks").height(),
|
5 |
-
d = jQuery(".shr-bookmarks ul.socials").height(),
|
6 |
-
h = jQuery(".shr-bookmarks div.shr-getshr").outerHeight(true);
|
7 |
-
|
8 |
-
d > c && jQuery(".shr-bookmarks-expand").hover(function() {
|
9 |
-
jQuery(this).animate({
|
10 |
-
height: (d + h) + "px"
|
11 |
-
}, {
|
12 |
-
duration: 400,
|
13 |
-
queue: false
|
14 |
-
})
|
15 |
-
}, function() {
|
16 |
-
jQuery(this).animate({
|
17 |
-
height: c + "px"
|
18 |
-
}, {
|
19 |
-
duration: 400,
|
20 |
-
queue: false
|
21 |
-
})
|
22 |
-
});
|
23 |
-
if (jQuery(".shr-bookmarks-center") || jQuery(".shr-bookmarks-spaced")) {
|
24 |
-
var a = jQuery(".shr-bookmarks").width(),
|
25 |
-
b = jQuery(".shr-bookmarks:first ul.socials li").width(),
|
26 |
-
e = jQuery(".shr-bookmarks:first ul.socials li").length,
|
27 |
-
f = Math.floor(a / b);
|
28 |
-
b = Math.min(f, e) * b;
|
29 |
-
if (jQuery(".shr-bookmarks-spaced").length > 0) {
|
30 |
-
a = Math.floor((a - b) / (Math.min(f, e) + 1));
|
31 |
-
jQuery(".shr-bookmarks ul.socials li").attr("style", 'margin-left:' + a + 'px !important')
|
32 |
-
} else if (jQuery(true)) {
|
33 |
-
a = (a - b) / 2;
|
34 |
-
jQuery(".shr-bookmarks-center").attr("style", 'margin-left:' + a + 'px !important')
|
35 |
-
}
|
36 |
-
}
|
37 |
-
|
38 |
-
if (h > 0 && (jQuery(".shr-bookmarks-expand").length == 0 || !(d > c))) {
|
39 |
-
jQuery(".shr-bookmarks").height(c + h);
|
40 |
-
}
|
41 |
-
|
42 |
-
var sText = getShareText();
|
43 |
-
if (sText != "") {
|
44 |
-
jQuery(".shr-bookmarks div.shr-getshr a").text(sText);
|
45 |
-
jQuery(".shr-bookmarks").hover(function() {
|
46 |
-
jQuery(".shr-bookmarks div.shr-getshr").css('visibility', 'visible');
|
47 |
-
}, function() {
|
48 |
-
jQuery(".shr-bookmarks div.shr-getshr").css('visibility', 'hidden');
|
49 |
-
});
|
50 |
-
}
|
51 |
-
});
|
52 |
-
|
53 |
-
function getShareText() {
|
54 |
-
var sName = getBrowser();
|
55 |
-
var sText = "";
|
56 |
-
if (sName != "") {
|
57 |
-
sText = "Get Shareaholic for " + sName;
|
58 |
-
}
|
59 |
-
return sText;
|
60 |
-
}
|
61 |
-
|
62 |
-
function getBrowser() {
|
63 |
-
var sUA = navigator.userAgent;
|
64 |
-
var sName = "";
|
65 |
-
if (sUA.indexOf("MSIE") != -1) {
|
66 |
-
sName = "Internet Explorer";
|
67 |
-
} else if (sUA.indexOf("Firefox") != -1) {
|
68 |
-
sName = "Firefox";
|
69 |
-
} else if (sUA.indexOf("Flock") != -1) {
|
70 |
-
sName = "Flock";
|
71 |
-
} else if (sUA.indexOf("Chrome") != -1) {
|
72 |
-
sName = "Google Chrome";
|
73 |
-
} else if (sUA.indexOf("Safari") != -1) {
|
74 |
-
sName = "Safari";
|
75 |
-
} else if (sUA.indexOf("Opera") != -1) {
|
76 |
-
sName = "Opera";
|
77 |
-
} else if (sUA.indexOf("Songbird") != -1) {
|
78 |
-
sName = "Songbird";
|
79 |
-
}
|
80 |
-
return sName;
|
81 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/sexy-bookmarks-public.min.js
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function(){jQuery(".shr-bookmarks a.external").attr("target","_blank");var a=jQuery(".shr-bookmarks").height(),b=jQuery(".shr-bookmarks ul.socials").height(),e=jQuery(".shr-bookmarks div.shr-getshr").outerHeight(!0);b>a&&jQuery(".shr-bookmarks-expand").hover(function(){jQuery(this).animate({height:b+e+"px"},{duration:400,queue:!1})},function(){jQuery(this).animate({height:a+"px"},{duration:400,queue:!1})});if(jQuery(".shr-bookmarks-center")||jQuery(".shr-bookmarks-spaced")){var c=
|
2 |
-
jQuery(".shr-bookmarks").width(),d=jQuery(".shr-bookmarks:first ul.socials li").width(),f=jQuery(".shr-bookmarks:first ul.socials li").length,g=Math.floor(c/d),d=Math.min(g,f)*d;0<jQuery(".shr-bookmarks-spaced").length?(c=Math.floor((c-d)/(Math.min(g,f)+1)),jQuery(".shr-bookmarks ul.socials li").attr("style","margin-left:"+c+"px !important")):jQuery(!0)&&(c=(c-d)/2,jQuery(".shr-bookmarks-center").attr("style","margin-left:"+c+"px !important"))}!(0<e)||0!=jQuery(".shr-bookmarks-expand").length&&b>
|
3 |
-
a||jQuery(".shr-bookmarks").height(a+e);c=getShareText();""!=c&&(jQuery(".shr-bookmarks div.shr-getshr a").text(c),jQuery(".shr-bookmarks").hover(function(){jQuery(".shr-bookmarks div.shr-getshr").css("visibility","visible")},function(){jQuery(".shr-bookmarks div.shr-getshr").css("visibility","hidden")}))});function getShareText(){var a=getBrowser(),b="";""!=a&&(b="Get Shareaholic for "+a);return b}
|
4 |
-
function getBrowser(){var a=navigator.userAgent,b="";-1!=a.indexOf("MSIE")?b="Internet Explorer":-1!=a.indexOf("Firefox")?b="Firefox":-1!=a.indexOf("Flock")?b="Flock":-1!=a.indexOf("Chrome")?b="Google Chrome":-1!=a.indexOf("Safari")?b="Safari":-1!=a.indexOf("Opera")?b="Opera":-1!=a.indexOf("Songbird")&&(b="Songbird");return b};
|
|
|
|
|
|
|
|
js/shareaholic-admin.js
DELETED
@@ -1,1190 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function() {
|
2 |
-
if (jQuery('#iconator')) jQuery('#shrsb-networks').sortable({
|
3 |
-
delay: 250,
|
4 |
-
cursor: 'move',
|
5 |
-
scroll: true,
|
6 |
-
revert: true,
|
7 |
-
opacity: 0.7,
|
8 |
-
placeholder: 'dropzoneNetworks',
|
9 |
-
forcePlaceholderSize: true,
|
10 |
-
items: 'li'
|
11 |
-
});
|
12 |
-
if (jQuery('.shrsb-bookmarks')) {
|
13 |
-
jQuery('#shrsb-sortables').sortable({
|
14 |
-
handle: '.box-mid-head',
|
15 |
-
delay: 250,
|
16 |
-
cursor: 'move',
|
17 |
-
scroll: true,
|
18 |
-
revert: true,
|
19 |
-
opacity: 0.7
|
20 |
-
});
|
21 |
-
|
22 |
-
jQuery('#buttonPreviewsTop,#buttonPreviewsBottom').sortable({
|
23 |
-
delay: 250,
|
24 |
-
cursor: 'move',
|
25 |
-
scroll: true,
|
26 |
-
revert: true,
|
27 |
-
opacity: 0.7,
|
28 |
-
placeholder: 'dropzone',
|
29 |
-
forcePlaceholderSize: true,
|
30 |
-
items: 'li'
|
31 |
-
});
|
32 |
-
|
33 |
-
//Select all icons upon clicking
|
34 |
-
jQuery('#sel-all').click(function() {
|
35 |
-
jQuery('#shrsb-networks').each(function() {
|
36 |
-
jQuery('#shrsb-networks input').attr('checked', 'checked');
|
37 |
-
});
|
38 |
-
});
|
39 |
-
|
40 |
-
//Deselect all icons upon clicking
|
41 |
-
jQuery('#sel-none').click(function() {
|
42 |
-
jQuery('#shrsb-networks').each(function() {
|
43 |
-
jQuery('#shrsb-networks input').removeAttr('checked');
|
44 |
-
});
|
45 |
-
});
|
46 |
-
|
47 |
-
//Select most popular icons upon clicking
|
48 |
-
jQuery('#sel-pop').click(function() {
|
49 |
-
jQuery('#shrsb-networks').each(function() {
|
50 |
-
jQuery('#shrsb-networks input').removeAttr('checked');
|
51 |
-
});
|
52 |
-
jQuery('#shrsb-networks').each(function() {
|
53 |
-
jQuery('#shr-facebook').attr('checked', 'checked');
|
54 |
-
jQuery('#shr-twitter').attr('checked', 'checked');
|
55 |
-
jQuery('#shr-linkedin').attr('checked', 'checked');
|
56 |
-
jQuery('#shr-googleplus').attr('checked', 'checked');
|
57 |
-
jQuery('#shr-googlebookmarks').attr('checked', 'checked');
|
58 |
-
jQuery('#shr-stumbleupon').attr('checked', 'checked');
|
59 |
-
jQuery('#shr-pinterest').attr('checked', 'checked');
|
60 |
-
jQuery('#shr-fastmail').attr('checked', 'checked');
|
61 |
-
jQuery('#shr-printfriendly').attr('checked', 'checked');
|
62 |
-
});
|
63 |
-
});
|
64 |
-
|
65 |
-
//Swap enabled/disabled between donation options onclick
|
66 |
-
jQuery('#preset-amounts').parent('label').click(function() {
|
67 |
-
jQuery('#custom-amounts').attr('disabled', 'disabled').css({
|
68 |
-
'cursor': 'none'
|
69 |
-
});
|
70 |
-
jQuery('#preset-amounts').removeAttr('disabled');
|
71 |
-
});
|
72 |
-
|
73 |
-
//Swap enabled/disabled between donation options onclick
|
74 |
-
jQuery('#custom-amounts').parent('label').click(function() {
|
75 |
-
jQuery('#preset-amounts').attr('disabled', 'disabled').css({
|
76 |
-
'cursor': 'none'
|
77 |
-
});
|
78 |
-
jQuery('#custom-amounts').removeAttr('disabled');
|
79 |
-
});
|
80 |
-
|
81 |
-
// Handle tiny form submission upon selecting option to hide sponsor messages
|
82 |
-
jQuery('#hide-sponsors').click(function() {
|
83 |
-
jQuery('#no-sponsors').submit();
|
84 |
-
});
|
85 |
-
|
86 |
-
// Create a universal click function to close status messages...
|
87 |
-
jQuery('.del-x').click(function() {
|
88 |
-
jQuery(this).parent('div').parent('div').fadeOut();
|
89 |
-
});
|
90 |
-
|
91 |
-
// if checkbox isn't already checked, open warning message...
|
92 |
-
jQuery("#custom-mods").click(function() {
|
93 |
-
if (jQuery(this).is(":not(:checked)")) {
|
94 |
-
jQuery("#custom-mods-notice").css("display", "none");
|
95 |
-
} else {
|
96 |
-
jQuery("#custom-mods-notice").fadeIn("fast");
|
97 |
-
jQuery("#custom-mods-notice").css("display", "table");
|
98 |
-
}
|
99 |
-
});
|
100 |
-
|
101 |
-
// close custom mods warning when they click the X
|
102 |
-
jQuery(".custom-mods-notice-close").click(function() {
|
103 |
-
jQuery("#custom-mods-notice").fadeOut('fast');
|
104 |
-
});
|
105 |
-
|
106 |
-
// Apply "smart options" to BG image
|
107 |
-
jQuery('#bgimg-yes').click(function() {
|
108 |
-
if (jQuery(this).is(':checked')) {
|
109 |
-
jQuery('#bgimgs').fadeIn('slow');
|
110 |
-
} else {
|
111 |
-
jQuery('#bgimgs').css('display', 'none');
|
112 |
-
}
|
113 |
-
});
|
114 |
-
|
115 |
-
// Apply "smart options" to Twitter
|
116 |
-
jQuery('#shr-twitter').click(function() {
|
117 |
-
if (jQuery(this).attr('checked')) {
|
118 |
-
jQuery('#twitter-defaults').fadeIn('fast');
|
119 |
-
} else {
|
120 |
-
jQuery('#twitter-defaults').fadeOut();
|
121 |
-
}
|
122 |
-
});
|
123 |
-
|
124 |
-
jQuery('#shorty').change(function() {
|
125 |
-
jQuery('#shortyapimdiv-bitly').fadeOut('fast');
|
126 |
-
jQuery('#shortyapimdiv-jmp').fadeOut('fast');
|
127 |
-
if (this.value == 'bitly') {
|
128 |
-
jQuery('#shortyapimdiv-bitly').fadeIn('fast');
|
129 |
-
} else if (this.value == 'jmp') {
|
130 |
-
jQuery('#shortyapimdiv-jmp').fadeIn('fast');
|
131 |
-
}
|
132 |
-
});
|
133 |
-
|
134 |
-
jQuery('#likeButtonSetTop-yes').click(function() {
|
135 |
-
if (this.checked) {
|
136 |
-
jQuery('.likeButtonsAvailableTop').fadeIn('fast');
|
137 |
-
}
|
138 |
-
});
|
139 |
-
jQuery('#likeButtonSetTop-no').click(function() {
|
140 |
-
if (this.checked) {
|
141 |
-
jQuery('.likeButtonsAvailableTop').fadeOut('fast');
|
142 |
-
}
|
143 |
-
});
|
144 |
-
|
145 |
-
jQuery('#likeButtonSetBottom-yes').click(function() {
|
146 |
-
if (this.checked) {
|
147 |
-
jQuery('.likeButtonsAvailableBottom').fadeIn('fast');
|
148 |
-
}
|
149 |
-
});
|
150 |
-
jQuery('#likeButtonSetBottom-no').click(function() {
|
151 |
-
if (this.checked) {
|
152 |
-
jQuery('.likeButtonsAvailableBottom').fadeOut('fast');
|
153 |
-
}
|
154 |
-
});
|
155 |
-
|
156 |
-
jQuery('#fbLikeButtonTop-yes').click(function() {
|
157 |
-
if (this.checked) {
|
158 |
-
jQuery('.likebuttonpreviewTop').fadeIn('fast');
|
159 |
-
}
|
160 |
-
});
|
161 |
-
jQuery('#fbLikeButtonBottom-yes').click(function() {
|
162 |
-
if (this.checked) {
|
163 |
-
jQuery('.likebuttonpreviewBottom').fadeIn('fast');
|
164 |
-
}
|
165 |
-
});
|
166 |
-
|
167 |
-
jQuery('#fbLikeButtonTop-no').click(function() {
|
168 |
-
if (this.checked) {
|
169 |
-
jQuery('.likebuttonpreviewTop').fadeOut('fast');
|
170 |
-
}
|
171 |
-
});
|
172 |
-
jQuery('#fbLikeButtonBottom-no').click(function() {
|
173 |
-
if (this.checked) {
|
174 |
-
jQuery('.likebuttonpreviewBottom').fadeOut('fast');
|
175 |
-
}
|
176 |
-
});
|
177 |
-
|
178 |
-
jQuery('#fbSendButtonBottom-yes').click(function() {
|
179 |
-
if (this.checked) {
|
180 |
-
jQuery('.sendbuttonpreviewBottom').fadeIn('fast');
|
181 |
-
}
|
182 |
-
});
|
183 |
-
jQuery('#fbSendButtonTop-yes').click(function() {
|
184 |
-
if (this.checked) {
|
185 |
-
jQuery('.sendbuttonpreviewTop').fadeIn('fast');
|
186 |
-
}
|
187 |
-
});
|
188 |
-
|
189 |
-
jQuery('#fbSendButtonTop-no').click(function() {
|
190 |
-
if (this.checked) {
|
191 |
-
jQuery('.sendbuttonpreviewTop').fadeOut('fast');
|
192 |
-
}
|
193 |
-
});
|
194 |
-
jQuery('#fbSendButtonBottom-no').click(function() {
|
195 |
-
if (this.checked) {
|
196 |
-
jQuery('.sendbuttonpreviewBottom').fadeOut('fast');
|
197 |
-
}
|
198 |
-
});
|
199 |
-
|
200 |
-
jQuery('#googlePlusOneButtonTop-yes').click(function() {
|
201 |
-
if (this.checked) {
|
202 |
-
jQuery('.plusonepreviewTop').fadeIn('fast');
|
203 |
-
}
|
204 |
-
});
|
205 |
-
|
206 |
-
jQuery('#googlePlusOneButtonTop-no').click(function() {
|
207 |
-
if (this.checked) {
|
208 |
-
jQuery('.plusonepreviewTop').fadeOut('fast');
|
209 |
-
}
|
210 |
-
});
|
211 |
-
jQuery('#googlePlusOneButtonBottom-yes').click(function() {
|
212 |
-
if (this.checked) {
|
213 |
-
jQuery('.plusonepreviewBottom').fadeIn('fast');
|
214 |
-
}
|
215 |
-
});
|
216 |
-
|
217 |
-
jQuery('#googlePlusOneButtonBottom-no').click(function() {
|
218 |
-
if (this.checked) {
|
219 |
-
jQuery('.plusonepreviewBottom').fadeOut('fast');
|
220 |
-
}
|
221 |
-
});
|
222 |
-
jQuery('#tweetButtonTop-yes').click(function() {
|
223 |
-
if (this.checked) {
|
224 |
-
jQuery('.tweetbuttonpreviewTop').fadeIn('fast');
|
225 |
-
}
|
226 |
-
});
|
227 |
-
|
228 |
-
jQuery('#tweetButtonTop-no').click(function() {
|
229 |
-
if (this.checked) {
|
230 |
-
jQuery('.tweetbuttonpreviewTop').fadeOut('fast');
|
231 |
-
}
|
232 |
-
});
|
233 |
-
jQuery('#tweetButtonBottom-yes').click(function() {
|
234 |
-
if (this.checked) {
|
235 |
-
jQuery('.tweetbuttonpreviewBottom').fadeIn('fast');
|
236 |
-
}
|
237 |
-
});
|
238 |
-
|
239 |
-
jQuery('#tweetButtonBottom-no').click(function() {
|
240 |
-
if (this.checked) {
|
241 |
-
jQuery('.tweetbuttonpreviewBottom').fadeOut('fast');
|
242 |
-
}
|
243 |
-
});
|
244 |
-
|
245 |
-
jQuery('#fbLikeButtonTop-yes,#googlePlusOneButtonTop-yes,#fbSendButtonTop-yes,#tweetButtonTop-yes').click(function() {
|
246 |
-
if (this.checked) {
|
247 |
-
jQuery('.likeButtonSetOptionsTop').fadeIn('fast');
|
248 |
-
}
|
249 |
-
});
|
250 |
-
jQuery('#fbLikeButtonBottom-yes,#googlePlusOneButtonBottom-yes,#fbSendButtonBottom-yes,#tweetButtonBottom-yes').click(function() {
|
251 |
-
if (this.checked) {
|
252 |
-
jQuery('.likeButtonSetOptionsBottom').fadeIn('fast');
|
253 |
-
}
|
254 |
-
});
|
255 |
-
|
256 |
-
jQuery('#fbLikeButtonTop-no,#googlePlusOneButtonTop-no,#fbSendButtonTop-no,#tweetButtonTop-no').click(function() {
|
257 |
-
if (jQuery('#fbLikeButtonTop-no').get(0).checked && jQuery('#googlePlusOneButtonTop-no').get(0).checked && jQuery('#tweetButtonTop-no').get(0).checked && jQuery('#fbSendButtonTop-no').get(0).checked) {
|
258 |
-
jQuery('.likeButtonSetOptionsTop').fadeOut('fast');
|
259 |
-
}
|
260 |
-
});
|
261 |
-
jQuery('#fbLikeButtonBottom-no,#googlePlusOneButtonBottom-no,#fbSendButtonBottom-no,#tweetButtonBottom-no').click(function() {
|
262 |
-
if (jQuery('#fbLikeButtonBottom-no').get(0).checked && jQuery('#googlePlusOneButtonBottom-no').get(0).checked && jQuery('#tweetButtonBottom-no').get(0).checked && jQuery('#fbSendButtonBottom-no').get(0).checked) {
|
263 |
-
jQuery('.likeButtonSetOptionsBottom').fadeOut('fast');
|
264 |
-
}
|
265 |
-
});
|
266 |
-
|
267 |
-
jQuery('#designer_toolTips-yes').click(function() {
|
268 |
-
if (this.checked) {
|
269 |
-
jQuery('.designer_toolTip_prefs').fadeIn('fast');
|
270 |
-
}
|
271 |
-
});
|
272 |
-
|
273 |
-
jQuery('#designer_toolTips-no').click(function() {
|
274 |
-
if (this.checked) {
|
275 |
-
jQuery('.designer_toolTip_prefs').fadeOut('fast');
|
276 |
-
}
|
277 |
-
});
|
278 |
-
|
279 |
-
jQuery('input[name="pubGaSocial"]').on('click', function() {
|
280 |
-
jQuery('.pubGaSocial_prefs')[jQuery('input[name="pubGaSocial"]:checked').val() == 1 ? "fadeIn" : "fadeOut"]('fast');
|
281 |
-
})
|
282 |
-
|
283 |
-
jQuery('#recommendations-yes').click(function() {
|
284 |
-
if (this.checked) {
|
285 |
-
jQuery('.recommendations_prefs-1').fadeIn('fast');
|
286 |
-
var thumbEnableChecked = jQuery('#recommendations-style-image').get(0).checked;
|
287 |
-
if (thumbEnableChecked) {
|
288 |
-
jQuery('.recommendations_prefs-2').fadeIn('fast');
|
289 |
-
}
|
290 |
-
}
|
291 |
-
});
|
292 |
-
|
293 |
-
jQuery('#recommendations-no').click(function() {
|
294 |
-
if (this.checked) {
|
295 |
-
jQuery('.recommendations_prefs-1').fadeOut('fast');
|
296 |
-
jQuery('.recommendations_prefs-2').fadeOut('fast');
|
297 |
-
}
|
298 |
-
});
|
299 |
-
|
300 |
-
jQuery('#recommendations-style-image').click(function() {
|
301 |
-
if (this.checked) {
|
302 |
-
jQuery('.recommendations_prefs-2').fadeIn('fast');
|
303 |
-
}
|
304 |
-
});
|
305 |
-
|
306 |
-
jQuery('#recommendations-style-text').click(function() {
|
307 |
-
if (this.checked) {
|
308 |
-
jQuery('.recommendations_prefs-2').fadeOut('fast');
|
309 |
-
}
|
310 |
-
});
|
311 |
-
|
312 |
-
jQuery('#cb-yes').click(function() {
|
313 |
-
if (this.checked) {
|
314 |
-
jQuery('.cb_prefs').fadeIn('fast');
|
315 |
-
}
|
316 |
-
});
|
317 |
-
|
318 |
-
jQuery('#cb-no').click(function() {
|
319 |
-
if (this.checked) {
|
320 |
-
jQuery('.cb_prefs').fadeOut('fast');
|
321 |
-
}
|
322 |
-
});
|
323 |
-
|
324 |
-
jQuery('#useSbSettings-yes').click(function() {
|
325 |
-
if (this.checked) {
|
326 |
-
jQuery('.topbar_prefs').fadeOut('fast');
|
327 |
-
}
|
328 |
-
});
|
329 |
-
|
330 |
-
jQuery('#useSbSettings-no').click(function() {
|
331 |
-
if (this.checked) {
|
332 |
-
jQuery('.topbar_prefs').fadeIn('fast');
|
333 |
-
}
|
334 |
-
});
|
335 |
-
|
336 |
-
jQuery('#position-above').click(function() {
|
337 |
-
if (jQuery('#info-manual').is(':visible')) {
|
338 |
-
jQuery('#info-manual').fadeOut();
|
339 |
-
}
|
340 |
-
});
|
341 |
-
|
342 |
-
jQuery('#position-below').click(function() {
|
343 |
-
if (jQuery('#info-manual').is(':visible')) {
|
344 |
-
jQuery('#info-manual').fadeOut();
|
345 |
-
}
|
346 |
-
});
|
347 |
-
|
348 |
-
jQuery('#position-manual').click(function() {
|
349 |
-
if (jQuery('#info-manual').is(':not(:visible)')) {
|
350 |
-
jQuery('#info-manual').fadeIn('slow');
|
351 |
-
}
|
352 |
-
});
|
353 |
-
|
354 |
-
jQuery('.dtags-info').click(function() {
|
355 |
-
jQuery('#tag-info').fadeIn('fast');
|
356 |
-
});
|
357 |
-
|
358 |
-
jQuery('.dtags-close').click(function() {
|
359 |
-
jQuery('#tag-info').fadeOut();
|
360 |
-
});
|
361 |
-
|
362 |
-
jQuery('.shebang-info').click(function() {
|
363 |
-
jQuery('#info-manual').fadeIn('fast');
|
364 |
-
});
|
365 |
-
|
366 |
-
jQuery('#shrsbresetallwarn-cancel').click(function() {
|
367 |
-
jQuery('#shrsbresetallwarn').fadeOut();
|
368 |
-
});
|
369 |
-
|
370 |
-
jQuery('#shrsbresetallwarn-yes').click(function() {
|
371 |
-
this.checked = jQuery('#shrsbresetallwarn').fadeOut();
|
372 |
-
this.checked = jQuery('#resetalloptionsaccept').submit();
|
373 |
-
this.checked = !this.checked;
|
374 |
-
});
|
375 |
-
|
376 |
-
|
377 |
-
// Load character count and tweet output demo onload
|
378 |
-
var dfaultload = 0;
|
379 |
-
var dfaulttitle = 8;
|
380 |
-
var dfaulturl = 13;
|
381 |
-
if (typeof(jQuery("#tweetconfig")) != "undefined" && jQuery("#tweetconfig").length > 0) {
|
382 |
-
if (jQuery("#tweetconfig").val().indexOf('${title}') != -1) {
|
383 |
-
dfaultload = Math.floor(dfaultload + dfaulttitle);
|
384 |
-
}
|
385 |
-
if (jQuery("#tweetconfig").val().indexOf('${short_link}') != -1) {
|
386 |
-
dfaultload = Math.floor(dfaultload + dfaulturl);
|
387 |
-
}
|
388 |
-
var mathdoneload = Math.floor(jQuery('#tweetconfig').val().length - dfaultload);
|
389 |
-
if (mathdoneload >= 50) {
|
390 |
-
jQuery('#tweetcounter span').addClass('error');
|
391 |
-
} else {
|
392 |
-
jQuery('#tweetcounter span').removeClass();
|
393 |
-
}
|
394 |
-
jQuery('#tweetcounter span').html(mathdoneload);
|
395 |
-
var endvalueload = jQuery('#tweetconfig').val();
|
396 |
-
endvalueload = endvalueload.replace('${title}', 'Some fancy post title');
|
397 |
-
endvalueload = endvalueload.replace('${short_link}', 'http://goo.gl/dbqlx');
|
398 |
-
var endtweetload = endvalueload;
|
399 |
-
jQuery('#tweetoutput span').html(endtweetload);
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
jQuery('#tweetconfig').keyup(function() {
|
404 |
-
var dfaults = 0;
|
405 |
-
var title = 8;
|
406 |
-
var url = 13;
|
407 |
-
|
408 |
-
if (jQuery("#tweetconfig").val().indexOf('${title}') != -1) {
|
409 |
-
dfaults = Math.floor(dfaults + title);
|
410 |
-
}
|
411 |
-
if (jQuery("#tweetconfig").val().indexOf('${short_link}') != -1) {
|
412 |
-
dfaults = Math.floor(dfaults + url);
|
413 |
-
}
|
414 |
-
|
415 |
-
var mathdone = Math.floor(jQuery(this).val().length - dfaults);
|
416 |
-
|
417 |
-
if (mathdone >= 50) {
|
418 |
-
jQuery('#tweetcounter span').addClass('error');
|
419 |
-
alert("You need to leave room for the short URL and/or post title...");
|
420 |
-
return false;
|
421 |
-
} else {
|
422 |
-
jQuery('#tweetcounter span').removeClass();
|
423 |
-
}
|
424 |
-
jQuery('#tweetcounter span').html(mathdone);
|
425 |
-
|
426 |
-
var endvalue = jQuery(this).val();
|
427 |
-
|
428 |
-
endvalue = endvalue.replace('${title}', 'Some fancy post title');
|
429 |
-
endvalue = endvalue.replace('${short_link}', 'http://goo.gl/dbqlx');
|
430 |
-
|
431 |
-
var endtweet = endvalue;
|
432 |
-
|
433 |
-
jQuery('#tweetoutput span').html(endtweet);
|
434 |
-
|
435 |
-
});
|
436 |
-
}
|
437 |
-
// Check if like button is included and show the position prefs
|
438 |
-
//var likeBtnChecked = jQuery('#fbLikeButton-yes').get(0).checked || jQuery('#googlePlusOneButton-yes').get(0).checked || jQuery('#fbSendButton-yes').get(0).checked;
|
439 |
-
|
440 |
-
if (typeof(jQuery('#likeButtonSetTop-yes')) != "undefined" && jQuery('#likeButtonSetTop-yes').length > 0) {
|
441 |
-
if (jQuery('#likeButtonSetTop-yes').get(0).checked) {
|
442 |
-
jQuery('.likeButtonsAvailableTop').fadeIn('fast');
|
443 |
-
}
|
444 |
-
|
445 |
-
|
446 |
-
if (jQuery('#fbLikeButtonTop-yes').get(0).checked || jQuery('#googlePlusOneButtonTop-yes').get(0).checked || jQuery('#tweetButtonTop-yes').get(0).checked || jQuery('#fbSendButtonTop-yes').get(0).checked) {
|
447 |
-
jQuery('.likeButtonSetOptionsTop').fadeIn('fast');
|
448 |
-
}
|
449 |
-
|
450 |
-
if (jQuery('#fbLikeButtonTop-yes').get(0).checked) {
|
451 |
-
jQuery('.likebuttonpreviewTop').fadeIn('fast');
|
452 |
-
}
|
453 |
-
|
454 |
-
if (jQuery('#fbSendButtonTop-yes').get(0).checked) {
|
455 |
-
jQuery('.sendbuttonpreviewTop').fadeIn('fast');
|
456 |
-
}
|
457 |
-
|
458 |
-
if (jQuery('#googlePlusOneButtonTop-yes').get(0).checked) {
|
459 |
-
jQuery('.plusonepreviewTop').fadeIn('fast');
|
460 |
-
}
|
461 |
-
|
462 |
-
if (jQuery('#tweetButtonTop-yes').get(0).checked) {
|
463 |
-
jQuery('.tweetbuttonpreviewTop').fadeIn('fast');
|
464 |
-
}
|
465 |
-
}
|
466 |
-
|
467 |
-
if (typeof(jQuery('#likeButtonSetBottom-yes')) != "undefined" && jQuery('#likeButtonSetBottom-yes').length > 0) {
|
468 |
-
if (jQuery('#likeButtonSetBottom-yes').get(0).checked) {
|
469 |
-
jQuery('.likeButtonsAvailableBottom').fadeIn('fast');
|
470 |
-
}
|
471 |
-
|
472 |
-
if (jQuery('#fbLikeButtonBottom-yes').get(0).checked || jQuery('#googlePlusOneButtonBottom-yes').get(0).checked || jQuery('#tweetButtonBottom-yes').get(0).checked || jQuery('#fbSendButtonBottom-yes').get(0).checked) {
|
473 |
-
jQuery('.likeButtonSetOptionsBottom').fadeIn('fast');
|
474 |
-
}
|
475 |
-
|
476 |
-
if (jQuery('#fbLikeButtonBottom-yes').get(0).checked) {
|
477 |
-
jQuery('.likebuttonpreviewBottom').fadeIn('fast');
|
478 |
-
}
|
479 |
-
|
480 |
-
if (jQuery('#fbSendButtonBottom-yes').get(0).checked) {
|
481 |
-
jQuery('.sendbuttonpreviewBottom').fadeIn('fast');
|
482 |
-
}
|
483 |
-
|
484 |
-
if (jQuery('#googlePlusOneButtonBottom-yes').get(0).checked) {
|
485 |
-
jQuery('.plusonepreviewBottom').fadeIn('fast');
|
486 |
-
}
|
487 |
-
if (jQuery('#tweetButtonBottom-yes').get(0).checked) {
|
488 |
-
jQuery('.tweetbuttonpreviewBottom').fadeIn('fast');
|
489 |
-
}
|
490 |
-
|
491 |
-
}
|
492 |
-
|
493 |
-
// Check if designer tooltips are included and show the color prefs
|
494 |
-
if (typeof(jQuery('#designer_toolTips-yes')) != "undefined" && jQuery('#designer_toolTips-yes').length > 0) {
|
495 |
-
var designerToolTipsChecked = jQuery('#designer_toolTips-yes').get(0).checked;
|
496 |
-
if (designerToolTipsChecked) {
|
497 |
-
jQuery('.designer_toolTip_prefs').fadeIn('fast');
|
498 |
-
}
|
499 |
-
|
500 |
-
jQuery('#tip_bg_color_picker_holder').ColorPicker({
|
501 |
-
flat: true,
|
502 |
-
color: jQuery("#tip_bg_color").val(),
|
503 |
-
onChange: function(hsb, hex, rgb, el) {
|
504 |
-
jQuery("#tip_bg_color").val('#' + hex);
|
505 |
-
jQuery('#tip_bg_color_picker div').css('backgroundColor', '#' + hex);
|
506 |
-
},
|
507 |
-
onSubmit: function(hsb, hex, rgb, el) {
|
508 |
-
jQuery("#tip_bg_color").val('#' + hex);
|
509 |
-
jQuery('#tip_bg_color_picker div').css('backgroundColor', '#' + hex);
|
510 |
-
jQuery('#tip_bg_color_picker_holder').toggle();
|
511 |
-
}
|
512 |
-
});
|
513 |
-
|
514 |
-
// The below lines are to prevent a nasty input form control not focussable error in chrome/safari
|
515 |
-
jQuery('#tip_bg_color_picker_holder').find('input').each(function(index) {
|
516 |
-
jQuery(this).attr("maxlength", "50");
|
517 |
-
});
|
518 |
-
|
519 |
-
jQuery('#tip_bg_color_picker div').bind('click', function() {
|
520 |
-
jQuery('#tip_bg_color_picker_holder').toggle();
|
521 |
-
jQuery('#tip_bg_color_picker_holder').ColorPickerSetColor(jQuery("#tip_bg_color").val());
|
522 |
-
// Attach click handler to the body to hide the color picker (if visible) for clicks outside the color picker
|
523 |
-
jQuery('body').trigger('click');
|
524 |
-
if (jQuery('#tip_bg_color_picker_holder').is(':visible')) {
|
525 |
-
jQuery('body').bind("click", function() {
|
526 |
-
jQuery('#tip_bg_color_picker_holder').hide();
|
527 |
-
jQuery('body').unbind("click");
|
528 |
-
});
|
529 |
-
}
|
530 |
-
return false;
|
531 |
-
});
|
532 |
-
|
533 |
-
jQuery('#tip_bg_color_reset').bind('click', function() {
|
534 |
-
jQuery("#tip_bg_color").val('#000000');
|
535 |
-
jQuery('#tip_bg_color_picker div').css('backgroundColor', '#000000');
|
536 |
-
});
|
537 |
-
// Prevent the body click handler from firing if the click is inside the color picker
|
538 |
-
jQuery('#tip_bg_color_picker_holder').click(function() {
|
539 |
-
return false;
|
540 |
-
});
|
541 |
-
|
542 |
-
jQuery('#tip_text_color_picker_holder').ColorPicker({
|
543 |
-
flat: true,
|
544 |
-
color: jQuery("#tip_text_color").val(),
|
545 |
-
onChange: function(hsb, hex, rgb, el) {
|
546 |
-
jQuery("#tip_text_color").val('#' + hex);
|
547 |
-
jQuery('#tip_text_color_picker div').css('backgroundColor', '#' + hex);
|
548 |
-
},
|
549 |
-
onSubmit: function(hsb, hex, rgb, el) {
|
550 |
-
jQuery("#tip_text_color").val('#' + hex);
|
551 |
-
jQuery('#tip_text_color_picker div').css('backgroundColor', '#' + hex);
|
552 |
-
jQuery('#tip_text_color_picker_holder').toggle();
|
553 |
-
}
|
554 |
-
});
|
555 |
-
// The below lines are to prevent a nasty input form control not focussable error in chrome/safari
|
556 |
-
jQuery('#tip_text_color_picker_holder').find('input').each(function(index) {
|
557 |
-
jQuery(this).attr("maxlength", "50");
|
558 |
-
});
|
559 |
-
|
560 |
-
jQuery('#tip_text_color_picker div').bind('click', function() {
|
561 |
-
jQuery('#tip_text_color_picker_holder').toggle();
|
562 |
-
jQuery('#tip_text_color_picker_holder').ColorPickerSetColor(jQuery("#tip_text_color").val());
|
563 |
-
// Attach click handler to the body to hide the color picker (if visible) for clicks outside the color picker
|
564 |
-
jQuery('body').trigger('click');
|
565 |
-
if (jQuery('#tip_text_color_picker_holder').is(':visible')) {
|
566 |
-
jQuery('body').bind("click", function() {
|
567 |
-
jQuery('#tip_text_color_picker_holder').hide();
|
568 |
-
jQuery('body').unbind("click");
|
569 |
-
});
|
570 |
-
}
|
571 |
-
return false;
|
572 |
-
});
|
573 |
-
// Prevent the body click handler from firing if the click is inside the color picker
|
574 |
-
jQuery('#tip_text_color_picker_holder').click(function() {
|
575 |
-
return false;
|
576 |
-
});
|
577 |
-
|
578 |
-
jQuery('#tip_text_color_reset').bind('click', function() {
|
579 |
-
jQuery("#tip_text_color").val('#ffffff');
|
580 |
-
jQuery('#tip_text_color_picker div').css('backgroundColor', '#ffffff');
|
581 |
-
});
|
582 |
-
|
583 |
-
}
|
584 |
-
|
585 |
-
// Check if social analytics is enabled or not, if enabled show the preferences
|
586 |
-
if (typeof(jQuery('#pubGaSocial-yes')) != "undefined" && jQuery('#pubGaSocial-yes').length > 0) {
|
587 |
-
var socialEnableChecked = jQuery('#pubGaSocial-yes').get(0).checked;
|
588 |
-
if (socialEnableChecked) {
|
589 |
-
jQuery('.pubGaSocial_prefs').fadeIn('fast');
|
590 |
-
}
|
591 |
-
}
|
592 |
-
|
593 |
-
// Check if social analytics is enabled or not, if enabled show the preferences
|
594 |
-
if (typeof(jQuery('#recommendations-yes')) != "undefined" && jQuery('#recommendations-yes').length > 0) {
|
595 |
-
var socialEnableChecked = jQuery('#recommendations-yes').get(0).checked;
|
596 |
-
if (socialEnableChecked) {
|
597 |
-
jQuery('.recommendations_prefs-1').fadeIn('fast');
|
598 |
-
var thumbEnableChecked = jQuery('#recommendations-style-image').get(0).checked;
|
599 |
-
if (thumbEnableChecked) {
|
600 |
-
jQuery('.recommendations_prefs-2').fadeIn('fast');
|
601 |
-
}
|
602 |
-
}
|
603 |
-
}
|
604 |
-
|
605 |
-
// Check if classic bookmarks is enabled or not, if enabled show the preferences
|
606 |
-
if (typeof(jQuery('#cb-yes')) != "undefined" && jQuery('#cb-yes').length > 0) {
|
607 |
-
var socialEnableChecked = jQuery('#cb-yes').get(0).checked;
|
608 |
-
if (socialEnableChecked) {
|
609 |
-
jQuery('.cb_prefs').fadeIn('fast');
|
610 |
-
}
|
611 |
-
}
|
612 |
-
|
613 |
-
//For the Top Sharebar custom background color option
|
614 |
-
if (typeof(jQuery('#useSbSettings-no')) != "undefined" && jQuery('#useSbSettings-no').length > 0) {
|
615 |
-
var useSbSettingsChecked = jQuery('#useSbSettings-no').get(0).checked;
|
616 |
-
if (useSbSettingsChecked) {
|
617 |
-
jQuery('.topbar_prefs').fadeIn('fast');
|
618 |
-
}
|
619 |
-
|
620 |
-
jQuery('#tb_bg_color_picker_holder').ColorPicker({
|
621 |
-
flat: true,
|
622 |
-
color: jQuery("#tb_bg_color").val(),
|
623 |
-
onChange: function(hsb, hex, rgb, el) {
|
624 |
-
jQuery("#tb_bg_color").val('#' + hex);
|
625 |
-
jQuery('#tb_bg_color_picker div').css('backgroundColor', '#' + hex);
|
626 |
-
},
|
627 |
-
onSubmit: function(hsb, hex, rgb, el) {
|
628 |
-
jQuery("#tb_bg_color").val('#' + hex);
|
629 |
-
jQuery('#tb_bg_color_picker div').css('backgroundColor', '#' + hex);
|
630 |
-
jQuery('#tb_bg_color_picker_holder').toggle();
|
631 |
-
}
|
632 |
-
});
|
633 |
-
|
634 |
-
// The below lines are to prevent a nasty input form control not focussable error in chrome/safari
|
635 |
-
jQuery('#tb_bg_color_picker_holder').find('input').each(function(index) {
|
636 |
-
jQuery(this).attr("maxlength", "50");
|
637 |
-
});
|
638 |
-
|
639 |
-
jQuery('#tb_bg_color_picker div').bind('click', function() {
|
640 |
-
jQuery('#tb_bg_color_picker_holder').toggle();
|
641 |
-
jQuery('#tb_bg_color_picker_holder').ColorPickerSetColor(jQuery("#tb_bg_color").val());
|
642 |
-
// Attach click handler to the body to hide the color picker (if visible) for clicks outside the color picker
|
643 |
-
jQuery('body').trigger('click');
|
644 |
-
if (jQuery('#tb_bg_color_picker_holder').is(':visible')) {
|
645 |
-
jQuery('body').bind("click", function() {
|
646 |
-
jQuery('#tb_bg_color_picker_holder').hide();
|
647 |
-
jQuery('body').unbind("click");
|
648 |
-
});
|
649 |
-
}
|
650 |
-
return false;
|
651 |
-
});
|
652 |
-
|
653 |
-
jQuery('#tb_bg_color_reset').bind('click', function() {
|
654 |
-
jQuery("#tb_bg_color").val('#000000');
|
655 |
-
jQuery('#tb_bg_color_picker div').css('backgroundColor', '#000000');
|
656 |
-
});
|
657 |
-
// Prevent the body click handler from firing if the click is inside the color picker
|
658 |
-
jQuery('#tb_bg_color_picker_holder').click(function() {
|
659 |
-
return false;
|
660 |
-
});
|
661 |
-
|
662 |
-
//For the Show/Hide Button color on the toolbar
|
663 |
-
jQuery('#tb_border_color_picker_holder').ColorPicker({
|
664 |
-
flat: true,
|
665 |
-
color: jQuery("#tb_border_color").val(),
|
666 |
-
onChange: function(hsb, hex, rgb, el) {
|
667 |
-
jQuery("#tb_border_color").val('#' + hex);
|
668 |
-
jQuery('#tb_border_color_picker div').css('backgroundColor', '#' + hex);
|
669 |
-
},
|
670 |
-
onSubmit: function(hsb, hex, rgb, el) {
|
671 |
-
jQuery("#tb_border_color").val('#' + hex);
|
672 |
-
jQuery('#tb_border_color_picker div').css('backgroundColor', '#' + hex);
|
673 |
-
jQuery('#tb_border_color_picker_holder').toggle();
|
674 |
-
}
|
675 |
-
});
|
676 |
-
|
677 |
-
// The below lines are to prevent a nasty input form control not focussable error in chrome/safari
|
678 |
-
jQuery('#tb_border_color_picker_holder').find('input').each(function(index) {
|
679 |
-
jQuery(this).attr("maxlength", "50");
|
680 |
-
});
|
681 |
-
|
682 |
-
jQuery('#tb_border_color_picker div').bind('click', function() {
|
683 |
-
jQuery('#tb_border_color_picker_holder').toggle();
|
684 |
-
jQuery('#tb_border_color_picker_holder').ColorPickerSetColor(jQuery("#tb_border_color").val());
|
685 |
-
// Attach click handler to the body to hide the color picker (if visible) for clicks outside the color picker
|
686 |
-
jQuery('body').trigger('click');
|
687 |
-
if (jQuery('#tb_border_color_picker_holder').is(':visible')) {
|
688 |
-
jQuery('body').bind("click", function() {
|
689 |
-
jQuery('#tb_border_color_picker_holder').hide();
|
690 |
-
jQuery('body').unbind("click");
|
691 |
-
});
|
692 |
-
}
|
693 |
-
return false;
|
694 |
-
});
|
695 |
-
|
696 |
-
jQuery('#tb_border_color_reset').bind('click', function() {
|
697 |
-
jQuery("#tb_border_color").val('#000000');
|
698 |
-
jQuery('#tb_border_color_picker div').css('backgroundColor', '#000000');
|
699 |
-
});
|
700 |
-
// Prevent the body click handler from firing if the click is inside the color picker
|
701 |
-
jQuery('#tb_border_color_picker_holder').click(function() {
|
702 |
-
return false;
|
703 |
-
});
|
704 |
-
|
705 |
-
}
|
706 |
-
}
|
707 |
-
});
|
708 |
-
|
709 |
-
|
710 |
-
/**
|
711 |
-
*
|
712 |
-
* Color picker
|
713 |
-
* Author: Stefan Petre www.eyecon.ro
|
714 |
-
*
|
715 |
-
* Dual licensed under the MIT and GPL licenses
|
716 |
-
*
|
717 |
-
*/
|
718 |
-
(function($) {
|
719 |
-
var ColorPicker = function() {
|
720 |
-
var
|
721 |
-
ids = {},
|
722 |
-
inAction, charMin = 65,
|
723 |
-
visible, tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>',
|
724 |
-
defaults = {
|
725 |
-
eventName: 'click',
|
726 |
-
onShow: function() {},
|
727 |
-
onBeforeShow: function() {},
|
728 |
-
onHide: function() {},
|
729 |
-
onChange: function() {},
|
730 |
-
onSubmit: function() {},
|
731 |
-
color: 'ff0000',
|
732 |
-
livePreview: true,
|
733 |
-
flat: false
|
734 |
-
},
|
735 |
-
fillRGBFields = function(hsb, cal) {
|
736 |
-
var rgb = HSBToRGB(hsb);
|
737 |
-
$(cal).data('colorpicker').fields.eq(1).val(rgb.r).end().eq(2).val(rgb.g).end().eq(3).val(rgb.b).end();
|
738 |
-
},
|
739 |
-
fillHSBFields = function(hsb, cal) {
|
740 |
-
$(cal).data('colorpicker').fields.eq(4).val(hsb.h).end().eq(5).val(hsb.s).end().eq(6).val(hsb.b).end();
|
741 |
-
},
|
742 |
-
fillHexFields = function(hsb, cal) {
|
743 |
-
$(cal).data('colorpicker').fields.eq(0).val(HSBToHex(hsb)).end();
|
744 |
-
},
|
745 |
-
setSelector = function(hsb, cal) {
|
746 |
-
$(cal).data('colorpicker').selector.css('backgroundColor', '#' + HSBToHex({
|
747 |
-
h: hsb.h,
|
748 |
-
s: 100,
|
749 |
-
b: 100
|
750 |
-
}));
|
751 |
-
$(cal).data('colorpicker').selectorIndic.css({
|
752 |
-
left: parseInt(150 * hsb.s / 100, 10),
|
753 |
-
top: parseInt(150 * (100 - hsb.b) / 100, 10)
|
754 |
-
});
|
755 |
-
},
|
756 |
-
setHue = function(hsb, cal) {
|
757 |
-
$(cal).data('colorpicker').hue.css('top', parseInt(150 - 150 * hsb.h / 360, 10));
|
758 |
-
},
|
759 |
-
setCurrentColor = function(hsb, cal) {
|
760 |
-
$(cal).data('colorpicker').currentColor.css('backgroundColor', '#' + HSBToHex(hsb));
|
761 |
-
},
|
762 |
-
setNewColor = function(hsb, cal) {
|
763 |
-
$(cal).data('colorpicker').newColor.css('backgroundColor', '#' + HSBToHex(hsb));
|
764 |
-
},
|
765 |
-
keyDown = function(ev) {
|
766 |
-
var pressedKey = ev.charCode || ev.keyCode || -1;
|
767 |
-
if ((pressedKey > charMin && pressedKey <= 90) || pressedKey == 32) {
|
768 |
-
return false;
|
769 |
-
}
|
770 |
-
var cal = $(this).parent().parent();
|
771 |
-
if (cal.data('colorpicker').livePreview === true) {
|
772 |
-
change.apply(this);
|
773 |
-
}
|
774 |
-
},
|
775 |
-
change = function(ev) {
|
776 |
-
var cal = $(this).parent().parent(),
|
777 |
-
col;
|
778 |
-
if (this.parentNode.className.indexOf('_hex') > 0) {
|
779 |
-
cal.data('colorpicker').color = col = HexToHSB(fixHex(this.value));
|
780 |
-
} else if (this.parentNode.className.indexOf('_hsb') > 0) {
|
781 |
-
cal.data('colorpicker').color = col = fixHSB({
|
782 |
-
h: parseInt(cal.data('colorpicker').fields.eq(4).val(), 10),
|
783 |
-
s: parseInt(cal.data('colorpicker').fields.eq(5).val(), 10),
|
784 |
-
b: parseInt(cal.data('colorpicker').fields.eq(6).val(), 10)
|
785 |
-
});
|
786 |
-
} else {
|
787 |
-
cal.data('colorpicker').color = col = RGBToHSB(fixRGB({
|
788 |
-
r: parseInt(cal.data('colorpicker').fields.eq(1).val(), 10),
|
789 |
-
g: parseInt(cal.data('colorpicker').fields.eq(2).val(), 10),
|
790 |
-
b: parseInt(cal.data('colorpicker').fields.eq(3).val(), 10)
|
791 |
-
}));
|
792 |
-
}
|
793 |
-
if (ev) {
|
794 |
-
fillRGBFields(col, cal.get(0));
|
795 |
-
fillHexFields(col, cal.get(0));
|
796 |
-
fillHSBFields(col, cal.get(0));
|
797 |
-
}
|
798 |
-
setSelector(col, cal.get(0));
|
799 |
-
setHue(col, cal.get(0));
|
800 |
-
setNewColor(col, cal.get(0));
|
801 |
-
cal.data('colorpicker').onChange.apply(cal, [col, HSBToHex(col), HSBToRGB(col)]);
|
802 |
-
},
|
803 |
-
blur = function(ev) {
|
804 |
-
var cal = $(this).parent().parent();
|
805 |
-
cal.data('colorpicker').fields.parent().removeClass('colorpicker_focus');
|
806 |
-
},
|
807 |
-
focus = function() {
|
808 |
-
charMin = this.parentNode.className.indexOf('_hex') > 0 ? 70 : 65;
|
809 |
-
$(this).parent().parent().data('colorpicker').fields.parent().removeClass('colorpicker_focus');
|
810 |
-
$(this).parent().addClass('colorpicker_focus');
|
811 |
-
},
|
812 |
-
downIncrement = function(ev) {
|
813 |
-
var field = $(this).parent().find('input').focus();
|
814 |
-
var current = {
|
815 |
-
el: $(this).parent().addClass('colorpicker_slider'),
|
816 |
-
max: this.parentNode.className.indexOf('_hsb_h') > 0 ? 360 : (this.parentNode.className.indexOf('_hsb') > 0 ? 100 : 255),
|
817 |
-
y: ev.pageY,
|
818 |
-
field: field,
|
819 |
-
val: parseInt(field.val(), 10),
|
820 |
-
preview: $(this).parent().parent().data('colorpicker').livePreview
|
821 |
-
};
|
822 |
-
$(document).bind('mouseup', current, upIncrement);
|
823 |
-
$(document).bind('mousemove', current, moveIncrement);
|
824 |
-
},
|
825 |
-
moveIncrement = function(ev) {
|
826 |
-
ev.data.field.val(Math.max(0, Math.min(ev.data.max, parseInt(ev.data.val + ev.pageY - ev.data.y, 10))));
|
827 |
-
if (ev.data.preview) {
|
828 |
-
change.apply(ev.data.field.get(0), [true]);
|
829 |
-
}
|
830 |
-
return false;
|
831 |
-
},
|
832 |
-
upIncrement = function(ev) {
|
833 |
-
change.apply(ev.data.field.get(0), [true]);
|
834 |
-
ev.data.el.removeClass('colorpicker_slider').find('input').focus();
|
835 |
-
$(document).unbind('mouseup', upIncrement);
|
836 |
-
$(document).unbind('mousemove', moveIncrement);
|
837 |
-
return false;
|
838 |
-
},
|
839 |
-
downHue = function(ev) {
|
840 |
-
var current = {
|
841 |
-
cal: $(this).parent(),
|
842 |
-
y: $(this).offset().top
|
843 |
-
};
|
844 |
-
current.preview = current.cal.data('colorpicker').livePreview;
|
845 |
-
$(document).bind('mouseup', current, upHue);
|
846 |
-
$(document).bind('mousemove', current, moveHue);
|
847 |
-
},
|
848 |
-
moveHue = function(ev) {
|
849 |
-
change.apply(ev.data.cal.data('colorpicker').fields.eq(4).val(parseInt(360 * (150 - Math.max(0, Math.min(150, (ev.pageY - ev.data.y)))) / 150, 10)).get(0), [ev.data.preview]);
|
850 |
-
return false;
|
851 |
-
},
|
852 |
-
upHue = function(ev) {
|
853 |
-
fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
854 |
-
fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
855 |
-
$(document).unbind('mouseup', upHue);
|
856 |
-
$(document).unbind('mousemove', moveHue);
|
857 |
-
return false;
|
858 |
-
},
|
859 |
-
downSelector = function(ev) {
|
860 |
-
var current = {
|
861 |
-
cal: $(this).parent(),
|
862 |
-
pos: $(this).offset()
|
863 |
-
};
|
864 |
-
current.preview = current.cal.data('colorpicker').livePreview;
|
865 |
-
$(document).bind('mouseup', current, upSelector);
|
866 |
-
$(document).bind('mousemove', current, moveSelector);
|
867 |
-
},
|
868 |
-
moveSelector = function(ev) {
|
869 |
-
change.apply(ev.data.cal.data('colorpicker').fields.eq(6).val(parseInt(100 * (150 - Math.max(0, Math.min(150, (ev.pageY - ev.data.pos.top)))) / 150, 10)).end().eq(5).val(parseInt(100 * (Math.max(0, Math.min(150, (ev.pageX - ev.data.pos.left)))) / 150, 10)).get(0), [ev.data.preview]);
|
870 |
-
return false;
|
871 |
-
},
|
872 |
-
upSelector = function(ev) {
|
873 |
-
fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
874 |
-
fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
875 |
-
$(document).unbind('mouseup', upSelector);
|
876 |
-
$(document).unbind('mousemove', moveSelector);
|
877 |
-
return false;
|
878 |
-
},
|
879 |
-
enterSubmit = function(ev) {
|
880 |
-
$(this).addClass('colorpicker_focus');
|
881 |
-
},
|
882 |
-
leaveSubmit = function(ev) {
|
883 |
-
$(this).removeClass('colorpicker_focus');
|
884 |
-
},
|
885 |
-
clickSubmit = function(ev) {
|
886 |
-
var cal = $(this).parent();
|
887 |
-
var col = cal.data('colorpicker').color;
|
888 |
-
cal.data('colorpicker').origColor = col;
|
889 |
-
setCurrentColor(col, cal.get(0));
|
890 |
-
cal.data('colorpicker').onSubmit(col, HSBToHex(col), HSBToRGB(col), cal.data('colorpicker').el);
|
891 |
-
},
|
892 |
-
show = function(ev) {
|
893 |
-
var cal = $('#' + $(this).data('colorpickerId'));
|
894 |
-
cal.data('colorpicker').onBeforeShow.apply(this, [cal.get(0)]);
|
895 |
-
var pos = $(this).offset();
|
896 |
-
var viewPort = getViewport();
|
897 |
-
var top = pos.top + this.offsetHeight;
|
898 |
-
var left = pos.left;
|
899 |
-
if (top + 176 > viewPort.t + viewPort.h) {
|
900 |
-
top -= this.offsetHeight + 176;
|
901 |
-
}
|
902 |
-
if (left + 356 > viewPort.l + viewPort.w) {
|
903 |
-
left -= 356;
|
904 |
-
}
|
905 |
-
cal.css({
|
906 |
-
left: left + 'px',
|
907 |
-
top: top + 'px'
|
908 |
-
});
|
909 |
-
if (cal.data('colorpicker').onShow.apply(this, [cal.get(0)]) != false) {
|
910 |
-
cal.show();
|
911 |
-
}
|
912 |
-
$(document).bind('mousedown', {
|
913 |
-
cal: cal
|
914 |
-
}, hide);
|
915 |
-
return false;
|
916 |
-
},
|
917 |
-
hide = function(ev) {
|
918 |
-
if (!isChildOf(ev.data.cal.get(0), ev.target, ev.data.cal.get(0))) {
|
919 |
-
if (ev.data.cal.data('colorpicker').onHide.apply(this, [ev.data.cal.get(0)]) != false) {
|
920 |
-
ev.data.cal.hide();
|
921 |
-
}
|
922 |
-
$(document).unbind('mousedown', hide);
|
923 |
-
}
|
924 |
-
},
|
925 |
-
isChildOf = function(parentEl, el, container) {
|
926 |
-
if (parentEl == el) {
|
927 |
-
return true;
|
928 |
-
}
|
929 |
-
if (parentEl.contains) {
|
930 |
-
return parentEl.contains(el);
|
931 |
-
}
|
932 |
-
if (parentEl.compareDocumentPosition) {
|
933 |
-
return !!(parentEl.compareDocumentPosition(el) & 16);
|
934 |
-
}
|
935 |
-
var prEl = el.parentNode;
|
936 |
-
while (prEl && prEl != container) {
|
937 |
-
if (prEl == parentEl) return true;
|
938 |
-
prEl = prEl.parentNode;
|
939 |
-
}
|
940 |
-
return false;
|
941 |
-
},
|
942 |
-
getViewport = function() {
|
943 |
-
var m = document.compatMode == 'CSS1Compat';
|
944 |
-
return {
|
945 |
-
l: window.pageXOffset || (m ? document.documentElement.scrollLeft : document.body.scrollLeft),
|
946 |
-
t: window.pageYOffset || (m ? document.documentElement.scrollTop : document.body.scrollTop),
|
947 |
-
w: window.innerWidth || (m ? document.documentElement.clientWidth : document.body.clientWidth),
|
948 |
-
h: window.innerHeight || (m ? document.documentElement.clientHeight : document.body.clientHeight)
|
949 |
-
};
|
950 |
-
},
|
951 |
-
fixHSB = function(hsb) {
|
952 |
-
return {
|
953 |
-
h: Math.min(360, Math.max(0, hsb.h)),
|
954 |
-
s: Math.min(100, Math.max(0, hsb.s)),
|
955 |
-
b: Math.min(100, Math.max(0, hsb.b))
|
956 |
-
};
|
957 |
-
},
|
958 |
-
fixRGB = function(rgb) {
|
959 |
-
return {
|
960 |
-
r: Math.min(255, Math.max(0, rgb.r)),
|
961 |
-
g: Math.min(255, Math.max(0, rgb.g)),
|
962 |
-
b: Math.min(255, Math.max(0, rgb.b))
|
963 |
-
};
|
964 |
-
},
|
965 |
-
fixHex = function(hex) {
|
966 |
-
var len = 6 - hex.length;
|
967 |
-
if (len > 0) {
|
968 |
-
var o = [];
|
969 |
-
for (var i = 0; i < len; i++) {
|
970 |
-
o.push('0');
|
971 |
-
}
|
972 |
-
o.push(hex);
|
973 |
-
hex = o.join('');
|
974 |
-
}
|
975 |
-
return hex;
|
976 |
-
},
|
977 |
-
HexToRGB = function(hex) {
|
978 |
-
var hex = parseInt(((hex.indexOf('#') > -1) ? hex.substring(1) : hex), 16);
|
979 |
-
return {
|
980 |
-
r: hex >> 16,
|
981 |
-
g: (hex & 0x00FF00) >> 8,
|
982 |
-
b: (hex & 0x0000FF)
|
983 |
-
};
|
984 |
-
},
|
985 |
-
HexToHSB = function(hex) {
|
986 |
-
return RGBToHSB(HexToRGB(hex));
|
987 |
-
},
|
988 |
-
RGBToHSB = function(rgb) {
|
989 |
-
var hsb = {
|
990 |
-
h: 0,
|
991 |
-
s: 0,
|
992 |
-
b: 0
|
993 |
-
};
|
994 |
-
var min = Math.min(rgb.r, rgb.g, rgb.b);
|
995 |
-
var max = Math.max(rgb.r, rgb.g, rgb.b);
|
996 |
-
var delta = max - min;
|
997 |
-
hsb.b = max;
|
998 |
-
if (max != 0) {}
|
999 |
-
hsb.s = max != 0 ? 255 * delta / max : 0;
|
1000 |
-
if (hsb.s != 0) {
|
1001 |
-
if (rgb.r == max) {
|
1002 |
-
hsb.h = (rgb.g - rgb.b) / delta;
|
1003 |
-
} else if (rgb.g == max) {
|
1004 |
-
hsb.h = 2 + (rgb.b - rgb.r) / delta;
|
1005 |
-
} else {
|
1006 |
-
hsb.h = 4 + (rgb.r - rgb.g) / delta;
|
1007 |
-
}
|
1008 |
-
} else {
|
1009 |
-
hsb.h = -1;
|
1010 |
-
}
|
1011 |
-
hsb.h *= 60;
|
1012 |
-
if (hsb.h < 0) {
|
1013 |
-
hsb.h += 360;
|
1014 |
-
}
|
1015 |
-
hsb.s *= 100 / 255;
|
1016 |
-
hsb.b *= 100 / 255;
|
1017 |
-
return hsb;
|
1018 |
-
},
|
1019 |
-
HSBToRGB = function(hsb) {
|
1020 |
-
var rgb = {};
|
1021 |
-
var h = Math.round(hsb.h);
|
1022 |
-
var s = Math.round(hsb.s * 255 / 100);
|
1023 |
-
var v = Math.round(hsb.b * 255 / 100);
|
1024 |
-
if (s == 0) {
|
1025 |
-
rgb.r = rgb.g = rgb.b = v;
|
1026 |
-
} else {
|
1027 |
-
var t1 = v;
|
1028 |
-
var t2 = (255 - s) * v / 255;
|
1029 |
-
var t3 = (t1 - t2) * (h % 60) / 60;
|
1030 |
-
if (h == 360) h = 0;
|
1031 |
-
if (h < 60) {
|
1032 |
-
rgb.r = t1;
|
1033 |
-
rgb.b = t2;
|
1034 |
-
rgb.g = t2 + t3
|
1035 |
-
} else if (h < 120) {
|
1036 |
-
rgb.g = t1;
|
1037 |
-
rgb.b = t2;
|
1038 |
-
rgb.r = t1 - t3
|
1039 |
-
} else if (h < 180) {
|
1040 |
-
rgb.g = t1;
|
1041 |
-
rgb.r = t2;
|
1042 |
-
rgb.b = t2 + t3
|
1043 |
-
} else if (h < 240) {
|
1044 |
-
rgb.b = t1;
|
1045 |
-
rgb.r = t2;
|
1046 |
-
rgb.g = t1 - t3
|
1047 |
-
} else if (h < 300) {
|
1048 |
-
rgb.b = t1;
|
1049 |
-
rgb.g = t2;
|
1050 |
-
rgb.r = t2 + t3
|
1051 |
-
} else if (h < 360) {
|
1052 |
-
rgb.r = t1;
|
1053 |
-
rgb.g = t2;
|
1054 |
-
rgb.b = t1 - t3
|
1055 |
-
} else {
|
1056 |
-
rgb.r = 0;
|
1057 |
-
rgb.g = 0;
|
1058 |
-
rgb.b = 0
|
1059 |
-
}
|
1060 |
-
}
|
1061 |
-
return {
|
1062 |
-
r: Math.round(rgb.r),
|
1063 |
-
g: Math.round(rgb.g),
|
1064 |
-
b: Math.round(rgb.b)
|
1065 |
-
};
|
1066 |
-
},
|
1067 |
-
RGBToHex = function(rgb) {
|
1068 |
-
var hex = [rgb.r.toString(16), rgb.g.toString(16), rgb.b.toString(16)];
|
1069 |
-
$.each(hex, function(nr, val) {
|
1070 |
-
if (val.length == 1) {
|
1071 |
-
hex[nr] = '0' + val;
|
1072 |
-
}
|
1073 |
-
});
|
1074 |
-
return hex.join('');
|
1075 |
-
},
|
1076 |
-
HSBToHex = function(hsb) {
|
1077 |
-
return RGBToHex(HSBToRGB(hsb));
|
1078 |
-
},
|
1079 |
-
restoreOriginal = function() {
|
1080 |
-
var cal = $(this).parent();
|
1081 |
-
var col = cal.data('colorpicker').origColor;
|
1082 |
-
cal.data('colorpicker').color = col;
|
1083 |
-
fillRGBFields(col, cal.get(0));
|
1084 |
-
fillHexFields(col, cal.get(0));
|
1085 |
-
fillHSBFields(col, cal.get(0));
|
1086 |
-
setSelector(col, cal.get(0));
|
1087 |
-
setHue(col, cal.get(0));
|
1088 |
-
setNewColor(col, cal.get(0));
|
1089 |
-
};
|
1090 |
-
return {
|
1091 |
-
init: function(opt) {
|
1092 |
-
opt = $.extend({}, defaults, opt || {});
|
1093 |
-
if (typeof opt.color == 'string') {
|
1094 |
-
opt.color = HexToHSB(opt.color);
|
1095 |
-
} else if (opt.color.r != undefined && opt.color.g != undefined && opt.color.b != undefined) {
|
1096 |
-
opt.color = RGBToHSB(opt.color);
|
1097 |
-
} else if (opt.color.h != undefined && opt.color.s != undefined && opt.color.b != undefined) {
|
1098 |
-
opt.color = fixHSB(opt.color);
|
1099 |
-
} else {
|
1100 |
-
return this;
|
1101 |
-
}
|
1102 |
-
return this.each(function() {
|
1103 |
-
if (!$(this).data('colorpickerId')) {
|
1104 |
-
var options = $.extend({}, opt);
|
1105 |
-
options.origColor = opt.color;
|
1106 |
-
var id = 'collorpicker_' + parseInt(Math.random() * 1000);
|
1107 |
-
$(this).data('colorpickerId', id);
|
1108 |
-
var cal = $(tpl).attr('id', id);
|
1109 |
-
if (options.flat) {
|
1110 |
-
cal.appendTo(this).show();
|
1111 |
-
} else {
|
1112 |
-
cal.appendTo(document.body);
|
1113 |
-
}
|
1114 |
-
options.fields = cal.find('input').bind('keyup', keyDown).bind('change', change).bind('blur', blur).bind('focus', focus);
|
1115 |
-
cal.find('span').bind('mousedown', downIncrement).end().find('>div.colorpicker_current_color').bind('click', restoreOriginal);
|
1116 |
-
options.selector = cal.find('div.colorpicker_color').bind('mousedown', downSelector);
|
1117 |
-
options.selectorIndic = options.selector.find('div div');
|
1118 |
-
options.el = this;
|
1119 |
-
options.hue = cal.find('div.colorpicker_hue div');
|
1120 |
-
cal.find('div.colorpicker_hue').bind('mousedown', downHue);
|
1121 |
-
options.newColor = cal.find('div.colorpicker_new_color');
|
1122 |
-
options.currentColor = cal.find('div.colorpicker_current_color');
|
1123 |
-
cal.data('colorpicker', options);
|
1124 |
-
cal.find('div.colorpicker_submit').bind('mouseenter', enterSubmit).bind('mouseleave', leaveSubmit).bind('click', clickSubmit);
|
1125 |
-
fillRGBFields(options.color, cal.get(0));
|
1126 |
-
fillHSBFields(options.color, cal.get(0));
|
1127 |
-
fillHexFields(options.color, cal.get(0));
|
1128 |
-
setHue(options.color, cal.get(0));
|
1129 |
-
setSelector(options.color, cal.get(0));
|
1130 |
-
setCurrentColor(options.color, cal.get(0));
|
1131 |
-
setNewColor(options.color, cal.get(0));
|
1132 |
-
if (options.flat) {
|
1133 |
-
cal.css({
|
1134 |
-
position: 'relative',
|
1135 |
-
display: 'block'
|
1136 |
-
});
|
1137 |
-
} else {
|
1138 |
-
$(this).bind(options.eventName, show);
|
1139 |
-
}
|
1140 |
-
}
|
1141 |
-
});
|
1142 |
-
},
|
1143 |
-
showPicker: function() {
|
1144 |
-
return this.each(function() {
|
1145 |
-
if ($(this).data('colorpickerId')) {
|
1146 |
-
show.apply(this);
|
1147 |
-
}
|
1148 |
-
});
|
1149 |
-
},
|
1150 |
-
hidePicker: function() {
|
1151 |
-
return this.each(function() {
|
1152 |
-
if ($(this).data('colorpickerId')) {
|
1153 |
-
$('#' + $(this).data('colorpickerId')).hide();
|
1154 |
-
}
|
1155 |
-
});
|
1156 |
-
},
|
1157 |
-
setColor: function(col) {
|
1158 |
-
if (typeof col == 'string') {
|
1159 |
-
col = HexToHSB(col);
|
1160 |
-
} else if (col.r != undefined && col.g != undefined && col.b != undefined) {
|
1161 |
-
col = RGBToHSB(col);
|
1162 |
-
} else if (col.h != undefined && col.s != undefined && col.b != undefined) {
|
1163 |
-
col = fixHSB(col);
|
1164 |
-
} else {
|
1165 |
-
return this;
|
1166 |
-
}
|
1167 |
-
return this.each(function() {
|
1168 |
-
if ($(this).data('colorpickerId')) {
|
1169 |
-
var cal = $('#' + $(this).data('colorpickerId'));
|
1170 |
-
cal.data('colorpicker').color = col;
|
1171 |
-
cal.data('colorpicker').origColor = col;
|
1172 |
-
fillRGBFields(col, cal.get(0));
|
1173 |
-
fillHSBFields(col, cal.get(0));
|
1174 |
-
fillHexFields(col, cal.get(0));
|
1175 |
-
setHue(col, cal.get(0));
|
1176 |
-
setSelector(col, cal.get(0));
|
1177 |
-
setCurrentColor(col, cal.get(0));
|
1178 |
-
setNewColor(col, cal.get(0));
|
1179 |
-
}
|
1180 |
-
});
|
1181 |
-
}
|
1182 |
-
};
|
1183 |
-
}();
|
1184 |
-
$.fn.extend({
|
1185 |
-
ColorPicker: ColorPicker.init,
|
1186 |
-
ColorPickerHide: ColorPicker.hidePicker,
|
1187 |
-
ColorPickerShow: ColorPicker.showPicker,
|
1188 |
-
ColorPickerSetColor: ColorPicker.setColor
|
1189 |
-
});
|
1190 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/shareaholic-admin.min.js
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function(){jQuery("#iconator")&&jQuery("#shrsb-networks").sortable({delay:250,cursor:"move",scroll:!0,revert:!0,opacity:0.7,placeholder:"dropzoneNetworks",forcePlaceholderSize:!0,items:"li"});if(jQuery(".shrsb-bookmarks")){jQuery("#shrsb-sortables").sortable({handle:".box-mid-head",delay:250,cursor:"move",scroll:!0,revert:!0,opacity:0.7});jQuery("#buttonPreviewsTop,#buttonPreviewsBottom").sortable({delay:250,cursor:"move",scroll:!0,revert:!0,opacity:0.7,placeholder:"dropzone",
|
2 |
-
forcePlaceholderSize:!0,items:"li"});jQuery("#sel-all").click(function(){jQuery("#shrsb-networks").each(function(){jQuery("#shrsb-networks input").attr("checked","checked")})});jQuery("#sel-none").click(function(){jQuery("#shrsb-networks").each(function(){jQuery("#shrsb-networks input").removeAttr("checked")})});jQuery("#sel-pop").click(function(){jQuery("#shrsb-networks").each(function(){jQuery("#shrsb-networks input").removeAttr("checked")});jQuery("#shrsb-networks").each(function(){jQuery("#shr-facebook").attr("checked",
|
3 |
-
"checked");jQuery("#shr-twitter").attr("checked","checked");jQuery("#shr-linkedin").attr("checked","checked");jQuery("#shr-googleplus").attr("checked","checked");jQuery("#shr-googlebookmarks").attr("checked","checked");jQuery("#shr-stumbleupon").attr("checked","checked");jQuery("#shr-pinterest").attr("checked","checked");jQuery("#shr-fastmail").attr("checked","checked");jQuery("#shr-printfriendly").attr("checked","checked")})});jQuery("#preset-amounts").parent("label").click(function(){jQuery("#custom-amounts").attr("disabled",
|
4 |
-
"disabled").css({cursor:"none"});jQuery("#preset-amounts").removeAttr("disabled")});jQuery("#custom-amounts").parent("label").click(function(){jQuery("#preset-amounts").attr("disabled","disabled").css({cursor:"none"});jQuery("#custom-amounts").removeAttr("disabled")});jQuery("#hide-sponsors").click(function(){jQuery("#no-sponsors").submit()});jQuery(".del-x").click(function(){jQuery(this).parent("div").parent("div").fadeOut()});jQuery("#custom-mods").click(function(){jQuery(this).is(":not(:checked)")?
|
5 |
-
jQuery("#custom-mods-notice").css("display","none"):(jQuery("#custom-mods-notice").fadeIn("fast"),jQuery("#custom-mods-notice").css("display","table"))});jQuery(".custom-mods-notice-close").click(function(){jQuery("#custom-mods-notice").fadeOut("fast")});jQuery("#bgimg-yes").click(function(){jQuery(this).is(":checked")?jQuery("#bgimgs").fadeIn("slow"):jQuery("#bgimgs").css("display","none")});jQuery("#shr-twitter").click(function(){jQuery(this).attr("checked")?jQuery("#twitter-defaults").fadeIn("fast"):
|
6 |
-
jQuery("#twitter-defaults").fadeOut()});jQuery("#shorty").change(function(){jQuery("#shortyapimdiv-bitly").fadeOut("fast");jQuery("#shortyapimdiv-jmp").fadeOut("fast");"bitly"==this.value?jQuery("#shortyapimdiv-bitly").fadeIn("fast"):"jmp"==this.value&&jQuery("#shortyapimdiv-jmp").fadeIn("fast")});jQuery("#likeButtonSetTop-yes").click(function(){this.checked&&jQuery(".likeButtonsAvailableTop").fadeIn("fast")});jQuery("#likeButtonSetTop-no").click(function(){this.checked&&jQuery(".likeButtonsAvailableTop").fadeOut("fast")});
|
7 |
-
jQuery("#likeButtonSetBottom-yes").click(function(){this.checked&&jQuery(".likeButtonsAvailableBottom").fadeIn("fast")});jQuery("#likeButtonSetBottom-no").click(function(){this.checked&&jQuery(".likeButtonsAvailableBottom").fadeOut("fast")});jQuery("#fbLikeButtonTop-yes").click(function(){this.checked&&jQuery(".likebuttonpreviewTop").fadeIn("fast")});jQuery("#fbLikeButtonBottom-yes").click(function(){this.checked&&jQuery(".likebuttonpreviewBottom").fadeIn("fast")});jQuery("#fbLikeButtonTop-no").click(function(){this.checked&&
|
8 |
-
jQuery(".likebuttonpreviewTop").fadeOut("fast")});jQuery("#fbLikeButtonBottom-no").click(function(){this.checked&&jQuery(".likebuttonpreviewBottom").fadeOut("fast")});jQuery("#fbSendButtonBottom-yes").click(function(){this.checked&&jQuery(".sendbuttonpreviewBottom").fadeIn("fast")});jQuery("#fbSendButtonTop-yes").click(function(){this.checked&&jQuery(".sendbuttonpreviewTop").fadeIn("fast")});jQuery("#fbSendButtonTop-no").click(function(){this.checked&&jQuery(".sendbuttonpreviewTop").fadeOut("fast")});
|
9 |
-
jQuery("#fbSendButtonBottom-no").click(function(){this.checked&&jQuery(".sendbuttonpreviewBottom").fadeOut("fast")});jQuery("#googlePlusOneButtonTop-yes").click(function(){this.checked&&jQuery(".plusonepreviewTop").fadeIn("fast")});jQuery("#googlePlusOneButtonTop-no").click(function(){this.checked&&jQuery(".plusonepreviewTop").fadeOut("fast")});jQuery("#googlePlusOneButtonBottom-yes").click(function(){this.checked&&jQuery(".plusonepreviewBottom").fadeIn("fast")});jQuery("#googlePlusOneButtonBottom-no").click(function(){this.checked&&
|
10 |
-
jQuery(".plusonepreviewBottom").fadeOut("fast")});jQuery("#tweetButtonTop-yes").click(function(){this.checked&&jQuery(".tweetbuttonpreviewTop").fadeIn("fast")});jQuery("#tweetButtonTop-no").click(function(){this.checked&&jQuery(".tweetbuttonpreviewTop").fadeOut("fast")});jQuery("#tweetButtonBottom-yes").click(function(){this.checked&&jQuery(".tweetbuttonpreviewBottom").fadeIn("fast")});jQuery("#tweetButtonBottom-no").click(function(){this.checked&&jQuery(".tweetbuttonpreviewBottom").fadeOut("fast")});
|
11 |
-
jQuery("#fbLikeButtonTop-yes,#googlePlusOneButtonTop-yes,#fbSendButtonTop-yes,#tweetButtonTop-yes").click(function(){this.checked&&jQuery(".likeButtonSetOptionsTop").fadeIn("fast")});jQuery("#fbLikeButtonBottom-yes,#googlePlusOneButtonBottom-yes,#fbSendButtonBottom-yes,#tweetButtonBottom-yes").click(function(){this.checked&&jQuery(".likeButtonSetOptionsBottom").fadeIn("fast")});jQuery("#fbLikeButtonTop-no,#googlePlusOneButtonTop-no,#fbSendButtonTop-no,#tweetButtonTop-no").click(function(){jQuery("#fbLikeButtonTop-no").get(0).checked&&
|
12 |
-
(jQuery("#googlePlusOneButtonTop-no").get(0).checked&&jQuery("#tweetButtonTop-no").get(0).checked&&jQuery("#fbSendButtonTop-no").get(0).checked)&&jQuery(".likeButtonSetOptionsTop").fadeOut("fast")});jQuery("#fbLikeButtonBottom-no,#googlePlusOneButtonBottom-no,#fbSendButtonBottom-no,#tweetButtonBottom-no").click(function(){jQuery("#fbLikeButtonBottom-no").get(0).checked&&(jQuery("#googlePlusOneButtonBottom-no").get(0).checked&&jQuery("#tweetButtonBottom-no").get(0).checked&&jQuery("#fbSendButtonBottom-no").get(0).checked)&&
|
13 |
-
jQuery(".likeButtonSetOptionsBottom").fadeOut("fast")});jQuery("#designer_toolTips-yes").click(function(){this.checked&&jQuery(".designer_toolTip_prefs").fadeIn("fast")});jQuery("#designer_toolTips-no").click(function(){this.checked&&jQuery(".designer_toolTip_prefs").fadeOut("fast")});jQuery('input[name="pubGaSocial"]').on("click",function(){jQuery(".pubGaSocial_prefs")[1==jQuery('input[name="pubGaSocial"]:checked').val()?"fadeIn":"fadeOut"]("fast")});jQuery("#recommendations-yes").click(function(){this.checked&&
|
14 |
-
(jQuery(".recommendations_prefs-1").fadeIn("fast"),jQuery("#recommendations-style-image").get(0).checked&&jQuery(".recommendations_prefs-2").fadeIn("fast"))});jQuery("#recommendations-no").click(function(){this.checked&&(jQuery(".recommendations_prefs-1").fadeOut("fast"),jQuery(".recommendations_prefs-2").fadeOut("fast"))});jQuery("#recommendations-style-image").click(function(){this.checked&&jQuery(".recommendations_prefs-2").fadeIn("fast")});jQuery("#recommendations-style-text").click(function(){this.checked&&
|
15 |
-
jQuery(".recommendations_prefs-2").fadeOut("fast")});jQuery("#cb-yes").click(function(){this.checked&&jQuery(".cb_prefs").fadeIn("fast")});jQuery("#cb-no").click(function(){this.checked&&jQuery(".cb_prefs").fadeOut("fast")});jQuery("#useSbSettings-yes").click(function(){this.checked&&jQuery(".topbar_prefs").fadeOut("fast")});jQuery("#useSbSettings-no").click(function(){this.checked&&jQuery(".topbar_prefs").fadeIn("fast")});jQuery("#position-above").click(function(){jQuery("#info-manual").is(":visible")&&
|
16 |
-
jQuery("#info-manual").fadeOut()});jQuery("#position-below").click(function(){jQuery("#info-manual").is(":visible")&&jQuery("#info-manual").fadeOut()});jQuery("#position-manual").click(function(){jQuery("#info-manual").is(":not(:visible)")&&jQuery("#info-manual").fadeIn("slow")});jQuery(".dtags-info").click(function(){jQuery("#tag-info").fadeIn("fast")});jQuery(".dtags-close").click(function(){jQuery("#tag-info").fadeOut()});jQuery(".shebang-info").click(function(){jQuery("#info-manual").fadeIn("fast")});
|
17 |
-
jQuery("#shrsbresetallwarn-cancel").click(function(){jQuery("#shrsbresetallwarn").fadeOut()});jQuery("#shrsbresetallwarn-yes").click(function(){this.checked=jQuery("#shrsbresetallwarn").fadeOut();this.checked=jQuery("#resetalloptionsaccept").submit();this.checked=!this.checked});var c=0;"undefined"!=typeof jQuery("#tweetconfig")&&0<jQuery("#tweetconfig").length&&(-1!=jQuery("#tweetconfig").val().indexOf("${title}")&&(c=Math.floor(c+8)),-1!=jQuery("#tweetconfig").val().indexOf("${short_link}")&&(c=
|
18 |
-
Math.floor(c+13)),c=Math.floor(jQuery("#tweetconfig").val().length-c),50<=c?jQuery("#tweetcounter span").addClass("error"):jQuery("#tweetcounter span").removeClass(),jQuery("#tweetcounter span").html(c),c=jQuery("#tweetconfig").val(),c=c.replace("${title}","Some fancy post title"),c=c.replace("${short_link}","http://goo.gl/dbqlx"),jQuery("#tweetoutput span").html(c),jQuery("#tweetconfig").keyup(function(){var c=0;-1!=jQuery("#tweetconfig").val().indexOf("${title}")&&(c=Math.floor(c+8));-1!=jQuery("#tweetconfig").val().indexOf("${short_link}")&&
|
19 |
-
(c=Math.floor(c+13));c=Math.floor(jQuery(this).val().length-c);if(50<=c)return jQuery("#tweetcounter span").addClass("error"),alert("You need to leave room for the short URL and/or post title..."),!1;jQuery("#tweetcounter span").removeClass();jQuery("#tweetcounter span").html(c);c=jQuery(this).val();c=c.replace("${title}","Some fancy post title");c=c.replace("${short_link}","http://goo.gl/dbqlx");jQuery("#tweetoutput span").html(c)}));"undefined"!=typeof jQuery("#likeButtonSetTop-yes")&&0<jQuery("#likeButtonSetTop-yes").length&&
|
20 |
-
(jQuery("#likeButtonSetTop-yes").get(0).checked&&jQuery(".likeButtonsAvailableTop").fadeIn("fast"),(jQuery("#fbLikeButtonTop-yes").get(0).checked||jQuery("#googlePlusOneButtonTop-yes").get(0).checked||jQuery("#tweetButtonTop-yes").get(0).checked||jQuery("#fbSendButtonTop-yes").get(0).checked)&&jQuery(".likeButtonSetOptionsTop").fadeIn("fast"),jQuery("#fbLikeButtonTop-yes").get(0).checked&&jQuery(".likebuttonpreviewTop").fadeIn("fast"),jQuery("#fbSendButtonTop-yes").get(0).checked&&jQuery(".sendbuttonpreviewTop").fadeIn("fast"),
|
21 |
-
jQuery("#googlePlusOneButtonTop-yes").get(0).checked&&jQuery(".plusonepreviewTop").fadeIn("fast"),jQuery("#tweetButtonTop-yes").get(0).checked&&jQuery(".tweetbuttonpreviewTop").fadeIn("fast"));"undefined"!=typeof jQuery("#likeButtonSetBottom-yes")&&0<jQuery("#likeButtonSetBottom-yes").length&&(jQuery("#likeButtonSetBottom-yes").get(0).checked&&jQuery(".likeButtonsAvailableBottom").fadeIn("fast"),(jQuery("#fbLikeButtonBottom-yes").get(0).checked||jQuery("#googlePlusOneButtonBottom-yes").get(0).checked||
|
22 |
-
jQuery("#tweetButtonBottom-yes").get(0).checked||jQuery("#fbSendButtonBottom-yes").get(0).checked)&&jQuery(".likeButtonSetOptionsBottom").fadeIn("fast"),jQuery("#fbLikeButtonBottom-yes").get(0).checked&&jQuery(".likebuttonpreviewBottom").fadeIn("fast"),jQuery("#fbSendButtonBottom-yes").get(0).checked&&jQuery(".sendbuttonpreviewBottom").fadeIn("fast"),jQuery("#googlePlusOneButtonBottom-yes").get(0).checked&&jQuery(".plusonepreviewBottom").fadeIn("fast"),jQuery("#tweetButtonBottom-yes").get(0).checked&&
|
23 |
-
jQuery(".tweetbuttonpreviewBottom").fadeIn("fast"));"undefined"!=typeof jQuery("#designer_toolTips-yes")&&0<jQuery("#designer_toolTips-yes").length&&(jQuery("#designer_toolTips-yes").get(0).checked&&jQuery(".designer_toolTip_prefs").fadeIn("fast"),jQuery("#tip_bg_color_picker_holder").ColorPicker({flat:!0,color:jQuery("#tip_bg_color").val(),onChange:function(c,d,k,e){jQuery("#tip_bg_color").val("#"+d);jQuery("#tip_bg_color_picker div").css("backgroundColor","#"+d)},onSubmit:function(c,d,k,e){jQuery("#tip_bg_color").val("#"+
|
24 |
-
d);jQuery("#tip_bg_color_picker div").css("backgroundColor","#"+d);jQuery("#tip_bg_color_picker_holder").toggle()}}),jQuery("#tip_bg_color_picker_holder").find("input").each(function(c){jQuery(this).attr("maxlength","50")}),jQuery("#tip_bg_color_picker div").bind("click",function(){jQuery("#tip_bg_color_picker_holder").toggle();jQuery("#tip_bg_color_picker_holder").ColorPickerSetColor(jQuery("#tip_bg_color").val());jQuery("body").trigger("click");jQuery("#tip_bg_color_picker_holder").is(":visible")&&
|
25 |
-
jQuery("body").bind("click",function(){jQuery("#tip_bg_color_picker_holder").hide();jQuery("body").unbind("click")});return!1}),jQuery("#tip_bg_color_reset").bind("click",function(){jQuery("#tip_bg_color").val("#000000");jQuery("#tip_bg_color_picker div").css("backgroundColor","#000000")}),jQuery("#tip_bg_color_picker_holder").click(function(){return!1}),jQuery("#tip_text_color_picker_holder").ColorPicker({flat:!0,color:jQuery("#tip_text_color").val(),onChange:function(c,d,k,e){jQuery("#tip_text_color").val("#"+
|
26 |
-
d);jQuery("#tip_text_color_picker div").css("backgroundColor","#"+d)},onSubmit:function(c,d,k,e){jQuery("#tip_text_color").val("#"+d);jQuery("#tip_text_color_picker div").css("backgroundColor","#"+d);jQuery("#tip_text_color_picker_holder").toggle()}}),jQuery("#tip_text_color_picker_holder").find("input").each(function(c){jQuery(this).attr("maxlength","50")}),jQuery("#tip_text_color_picker div").bind("click",function(){jQuery("#tip_text_color_picker_holder").toggle();jQuery("#tip_text_color_picker_holder").ColorPickerSetColor(jQuery("#tip_text_color").val());
|
27 |
-
jQuery("body").trigger("click");jQuery("#tip_text_color_picker_holder").is(":visible")&&jQuery("body").bind("click",function(){jQuery("#tip_text_color_picker_holder").hide();jQuery("body").unbind("click")});return!1}),jQuery("#tip_text_color_picker_holder").click(function(){return!1}),jQuery("#tip_text_color_reset").bind("click",function(){jQuery("#tip_text_color").val("#ffffff");jQuery("#tip_text_color_picker div").css("backgroundColor","#ffffff")}));"undefined"!=typeof jQuery("#pubGaSocial-yes")&&
|
28 |
-
0<jQuery("#pubGaSocial-yes").length&&(c=jQuery("#pubGaSocial-yes").get(0).checked)&&jQuery(".pubGaSocial_prefs").fadeIn("fast");"undefined"!=typeof jQuery("#recommendations-yes")&&0<jQuery("#recommendations-yes").length&&(c=jQuery("#recommendations-yes").get(0).checked)&&(jQuery(".recommendations_prefs-1").fadeIn("fast"),jQuery("#recommendations-style-image").get(0).checked&&jQuery(".recommendations_prefs-2").fadeIn("fast"));"undefined"!=typeof jQuery("#cb-yes")&&0<jQuery("#cb-yes").length&&(c=jQuery("#cb-yes").get(0).checked)&&
|
29 |
-
jQuery(".cb_prefs").fadeIn("fast");"undefined"!=typeof jQuery("#useSbSettings-no")&&0<jQuery("#useSbSettings-no").length&&(jQuery("#useSbSettings-no").get(0).checked&&jQuery(".topbar_prefs").fadeIn("fast"),jQuery("#tb_bg_color_picker_holder").ColorPicker({flat:!0,color:jQuery("#tb_bg_color").val(),onChange:function(c,d,k,e){jQuery("#tb_bg_color").val("#"+d);jQuery("#tb_bg_color_picker div").css("backgroundColor","#"+d)},onSubmit:function(c,d,k,e){jQuery("#tb_bg_color").val("#"+d);jQuery("#tb_bg_color_picker div").css("backgroundColor",
|
30 |
-
"#"+d);jQuery("#tb_bg_color_picker_holder").toggle()}}),jQuery("#tb_bg_color_picker_holder").find("input").each(function(c){jQuery(this).attr("maxlength","50")}),jQuery("#tb_bg_color_picker div").bind("click",function(){jQuery("#tb_bg_color_picker_holder").toggle();jQuery("#tb_bg_color_picker_holder").ColorPickerSetColor(jQuery("#tb_bg_color").val());jQuery("body").trigger("click");jQuery("#tb_bg_color_picker_holder").is(":visible")&&jQuery("body").bind("click",function(){jQuery("#tb_bg_color_picker_holder").hide();
|
31 |
-
jQuery("body").unbind("click")});return!1}),jQuery("#tb_bg_color_reset").bind("click",function(){jQuery("#tb_bg_color").val("#000000");jQuery("#tb_bg_color_picker div").css("backgroundColor","#000000")}),jQuery("#tb_bg_color_picker_holder").click(function(){return!1}),jQuery("#tb_border_color_picker_holder").ColorPicker({flat:!0,color:jQuery("#tb_border_color").val(),onChange:function(c,d,k,e){jQuery("#tb_border_color").val("#"+d);jQuery("#tb_border_color_picker div").css("backgroundColor","#"+d)},
|
32 |
-
onSubmit:function(c,d,k,e){jQuery("#tb_border_color").val("#"+d);jQuery("#tb_border_color_picker div").css("backgroundColor","#"+d);jQuery("#tb_border_color_picker_holder").toggle()}}),jQuery("#tb_border_color_picker_holder").find("input").each(function(c){jQuery(this).attr("maxlength","50")}),jQuery("#tb_border_color_picker div").bind("click",function(){jQuery("#tb_border_color_picker_holder").toggle();jQuery("#tb_border_color_picker_holder").ColorPickerSetColor(jQuery("#tb_border_color").val());
|
33 |
-
jQuery("body").trigger("click");jQuery("#tb_border_color_picker_holder").is(":visible")&&jQuery("body").bind("click",function(){jQuery("#tb_border_color_picker_holder").hide();jQuery("body").unbind("click")});return!1}),jQuery("#tb_border_color_reset").bind("click",function(){jQuery("#tb_border_color").val("#000000");jQuery("#tb_border_color_picker div").css("backgroundColor","#000000")}),jQuery("#tb_border_color_picker_holder").click(function(){return!1}))}});
|
34 |
-
(function(c){var l=function(){var d=65,k={eventName:"click",onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},color:"ff0000",livePreview:!0,flat:!1},e=function(a,b){var f=m(a);c(b).data("colorpicker").fields.eq(1).val(f.r).end().eq(2).val(f.g).end().eq(3).val(f.b).end()},l=function(a,b){c(b).data("colorpicker").fields.eq(4).val(a.h).end().eq(5).val(a.s).end().eq(6).val(a.b).end()},p=function(a,b){c(b).data("colorpicker").fields.eq(0).val(n(m(a))).end()},
|
35 |
-
s=function(a,b){c(b).data("colorpicker").selector.css("backgroundColor","#"+n(m({h:a.h,s:100,b:100})));c(b).data("colorpicker").selectorIndic.css({left:parseInt(150*a.s/100,10),top:parseInt(150*(100-a.b)/100,10)})},t=function(a,b){c(b).data("colorpicker").hue.css("top",parseInt(150-150*a.h/360,10))},v=function(a,b){c(b).data("colorpicker").currentColor.css("backgroundColor","#"+n(m(a)))},u=function(a,b){c(b).data("colorpicker").newColor.css("backgroundColor","#"+n(m(a)))},G=function(a){a=a.charCode||
|
36 |
-
a.keyCode||-1;if(a>d&&90>=a||32==a)return!1;!0===c(this).parent().parent().data("colorpicker").livePreview&&q.apply(this)},q=function(a){var b=c(this).parent().parent(),f;if(0<this.parentNode.className.indexOf("_hex")){f=b.data("colorpicker");var g=this.value,d=6-g.length;if(0<d){for(var h=[],k=0;k<d;k++)h.push("0");h.push(g);g=h.join("")}g=r(w(g));f.color=f=g}else 0<this.parentNode.className.indexOf("_hsb")?b.data("colorpicker").color=f=x({h:parseInt(b.data("colorpicker").fields.eq(4).val(),10),
|
37 |
-
s:parseInt(b.data("colorpicker").fields.eq(5).val(),10),b:parseInt(b.data("colorpicker").fields.eq(6).val(),10)}):(f=b.data("colorpicker"),g=parseInt(b.data("colorpicker").fields.eq(1).val(),10),d=parseInt(b.data("colorpicker").fields.eq(2).val(),10),h=parseInt(b.data("colorpicker").fields.eq(3).val(),10),g={r:Math.min(255,Math.max(0,g)),g:Math.min(255,Math.max(0,d)),b:Math.min(255,Math.max(0,h))},f.color=f=r(g));a&&(e(f,b.get(0)),p(f,b.get(0)),l(f,b.get(0)));s(f,b.get(0));t(f,b.get(0));u(f,b.get(0));
|
38 |
-
b.data("colorpicker").onChange.apply(b,[f,n(m(f)),m(f)])},H=function(a){c(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus")},I=function(){d=0<this.parentNode.className.indexOf("_hex")?70:65;c(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus");c(this).parent().addClass("colorpicker_focus")},J=function(a){var b=c(this).parent().find("input").focus();a={el:c(this).parent().addClass("colorpicker_slider"),max:0<this.parentNode.className.indexOf("_hsb_h")?
|
39 |
-
360:0<this.parentNode.className.indexOf("_hsb")?100:255,y:a.pageY,field:b,val:parseInt(b.val(),10),preview:c(this).parent().parent().data("colorpicker").livePreview};c(document).bind("mouseup",a,y);c(document).bind("mousemove",a,z)},z=function(a){a.data.field.val(Math.max(0,Math.min(a.data.max,parseInt(a.data.val+a.pageY-a.data.y,10))));a.data.preview&&q.apply(a.data.field.get(0),[!0]);return!1},y=function(a){q.apply(a.data.field.get(0),[!0]);a.data.el.removeClass("colorpicker_slider").find("input").focus();
|
40 |
-
c(document).unbind("mouseup",y);c(document).unbind("mousemove",z);return!1},K=function(a){a={cal:c(this).parent(),y:c(this).offset().top};a.preview=a.cal.data("colorpicker").livePreview;c(document).bind("mouseup",a,A);c(document).bind("mousemove",a,B)},B=function(a){q.apply(a.data.cal.data("colorpicker").fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,a.pageY-a.data.y)))/150,10)).get(0),[a.data.preview]);return!1},A=function(a){e(a.data.cal.data("colorpicker").color,a.data.cal.get(0));
|
41 |
-
p(a.data.cal.data("colorpicker").color,a.data.cal.get(0));c(document).unbind("mouseup",A);c(document).unbind("mousemove",B);return!1},L=function(a){a={cal:c(this).parent(),pos:c(this).offset()};a.preview=a.cal.data("colorpicker").livePreview;c(document).bind("mouseup",a,C);c(document).bind("mousemove",a,D)},D=function(a){q.apply(a.data.cal.data("colorpicker").fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,a.pageY-a.data.pos.top)))/150,10)).end().eq(5).val(parseInt(100*Math.max(0,Math.min(150,
|
42 |
-
a.pageX-a.data.pos.left))/150,10)).get(0),[a.data.preview]);return!1},C=function(a){e(a.data.cal.data("colorpicker").color,a.data.cal.get(0));p(a.data.cal.data("colorpicker").color,a.data.cal.get(0));c(document).unbind("mouseup",C);c(document).unbind("mousemove",D);return!1},M=function(a){c(this).addClass("colorpicker_focus")},N=function(a){c(this).removeClass("colorpicker_focus")},O=function(a){a=c(this).parent();var b=a.data("colorpicker").color;a.data("colorpicker").origColor=b;v(b,a.get(0));a.data("colorpicker").onSubmit(b,
|
43 |
-
n(m(b)),m(b),a.data("colorpicker").el)},F=function(a){var b,f,g=c("#"+c(this).data("colorpickerId"));g.data("colorpicker").onBeforeShow.apply(this,[g.get(0)]);var d=c(this).offset(),h="CSS1Compat"==document.compatMode;a=window.pageXOffset||(h?document.documentElement.scrollLeft:document.body.scrollLeft);b=window.pageYOffset||(h?document.documentElement.scrollTop:document.body.scrollTop);f=window.innerWidth||(h?document.documentElement.clientWidth:document.body.clientWidth);var e=d.top+this.offsetHeight,
|
44 |
-
d=d.left;e+176>b+(window.innerHeight||(h?document.documentElement.clientHeight:document.body.clientHeight))&&(e-=this.offsetHeight+176);d+356>a+f&&(d-=356);g.css({left:d+"px",top:e+"px"});!1!=g.data("colorpicker").onShow.apply(this,[g.get(0)])&&g.show();c(document).bind("mousedown",{cal:g},E);return!1},E=function(a){P(a.data.cal.get(0),a.target,a.data.cal.get(0))||(!1!=a.data.cal.data("colorpicker").onHide.apply(this,[a.data.cal.get(0)])&&a.data.cal.hide(),c(document).unbind("mousedown",E))},P=function(a,
|
45 |
-
b,c){if(a==b)return!0;if(a.contains)return a.contains(b);if(a.compareDocumentPosition)return!!(a.compareDocumentPosition(b)&16);for(b=b.parentNode;b&&b!=c;){if(b==a)return!0;b=b.parentNode}return!1},x=function(a){return{h:Math.min(360,Math.max(0,a.h)),s:Math.min(100,Math.max(0,a.s)),b:Math.min(100,Math.max(0,a.b))}},w=function(a){a=parseInt(-1<a.indexOf("#")?a.substring(1):a,16);return{r:a>>16,g:(a&65280)>>8,b:a&255}},r=function(a){var b={h:0,s:0,b:0},c=Math.min(a.r,a.g,a.b),d=Math.max(a.r,a.g,a.b),
|
46 |
-
c=d-c;b.b=d;b.s=0!=d?255*c/d:0;b.h=0!=b.s?a.r==d?(a.g-a.b)/c:a.g==d?2+(a.b-a.r)/c:4+(a.r-a.g)/c:-1;b.h*=60;0>b.h&&(b.h+=360);b.s*=100/255;b.b*=100/255;return b},m=function(a){var b,c,d;b=Math.round(a.h);var e=Math.round(255*a.s/100);a=Math.round(255*a.b/100);if(0==e)b=c=d=a;else{var e=(255-e)*a/255,h=(a-e)*(b%60)/60;360==b&&(b=0);60>b?(b=a,d=e,c=e+h):120>b?(c=a,d=e,b=a-h):180>b?(c=a,b=e,d=e+h):240>b?(d=a,b=e,c=a-h):300>b?(d=a,c=e,b=e+h):360>b?(b=a,c=e,d=a-h):d=c=b=0}return{r:Math.round(b),g:Math.round(c),
|
47 |
-
b:Math.round(d)}},n=function(a){var b=[a.r.toString(16),a.g.toString(16),a.b.toString(16)];c.each(b,function(a,c){1==c.length&&(b[a]="0"+c)});return b.join("")},Q=function(){var a=c(this).parent(),b=a.data("colorpicker").origColor;a.data("colorpicker").color=b;e(b,a.get(0));p(b,a.get(0));l(b,a.get(0));s(b,a.get(0));t(b,a.get(0));u(b,a.get(0))};return{i
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|