HeadSpace2 SEO - Version 3.6.37

Version Description

  • Fix bug with site modules not saving
Download this release

Release Info

Developer johnny5
Plugin Icon wp plugin HeadSpace2 SEO
Version 3.6.37
Comparing to
See all releases

Code changes from version 3.6.34 to 3.6.37

Files changed (64) hide show
  1. ajax.php +37 -37
  2. headspace.php +66 -73
  3. headspace_library.php +21 -22
  4. locale/cs_CZ.mo +0 -0
  5. locale/cs_CZ.po +1789 -0
  6. locale/headspace2.pot +1700 -0
  7. locale/it_IT.mo +0 -0
  8. locale/it_IT.po +1056 -1024
  9. locale/messages.po +0 -1710
  10. models/headspace.php +37 -64
  11. models/importer.php +4 -5
  12. models/inline_tags.php +36 -38
  13. models/mass_edit.php +2 -2
  14. models/modules.php +18 -18
  15. models/pager.php +67 -69
  16. models/site.php +17 -17
  17. models/term_pager.php +15 -16
  18. models/upgrade.php +22 -24
  19. modules/import/all-in-one-seo.php +9 -11
  20. modules/import/head_meta_description.php +5 -7
  21. modules/import/headspace_tags.php +4 -6
  22. modules/import/jerome.php +6 -8
  23. modules/import/lud.icro.us.php +5 -7
  24. modules/import/more_unique.php +5 -7
  25. modules/import/seo-title-tags.php +5 -7
  26. modules/import/simple-tagging.php +5 -7
  27. modules/import/simple-tags.php +11 -13
  28. modules/import/utw.php +5 -7
  29. modules/mass/description.php +10 -11
  30. modules/mass/keywords.php +10 -11
  31. modules/mass/more_text.php +10 -12
  32. modules/mass/page_slug.php +9 -10
  33. modules/mass/page_title.php +10 -12
  34. modules/mass/site_description.php +10 -12
  35. modules/mass/site_name.php +10 -12
  36. modules/mass/tags.php +13 -13
  37. modules/page/custom.php +10 -10
  38. modules/page/description.php +15 -15
  39. modules/page/follow-links.php +20 -20
  40. modules/page/javascript.php +8 -8
  41. modules/page/keywords.php +15 -15
  42. modules/page/more_text.php +18 -18
  43. modules/page/noindex.php +19 -19
  44. modules/page/page-links.php +36 -36
  45. modules/page/page_title.php +23 -23
  46. modules/page/plugin.php +31 -32
  47. modules/page/raw-footer.php +8 -9
  48. modules/page/raw.php +7 -8
  49. modules/page/relative-links.php +13 -13
  50. modules/page/rss_name.php +11 -12
  51. modules/page/rss_tagline.php +12 -13
  52. modules/page/site_name.php +11 -12
  53. modules/page/site_tagline.php +11 -12
  54. modules/page/stylesheet.php +12 -13
  55. modules/page/tags.php +45 -46
  56. modules/page/tags/auto_suggest.php +12 -14
  57. modules/page/tags/porter_stem.php +0 -1
  58. modules/page/tags/yahoo.php +5 -7
  59. modules/page/theme.php +22 -22
  60. modules/site/analytics.php +0 -2
  61. modules/site/google_webmaster.php +3 -3
  62. plugin.php +11 -11
  63. readme.txt +124 -110
  64. version.txt +0 -17
ajax.php CHANGED
@@ -29,18 +29,18 @@ class HeadspaceAjax extends HeadSpace_Plugin {
29
30
add_action( 'init', array( &$this, 'init' ) );
31
}
32
-
33
function init() {
34
if ( current_user_can( 'manage_options' ) ) {
35
$this->register_ajax( 'hs_settings_edit' );
36
$this->register_ajax( 'hs_settings_save' );
37
$this->register_ajax( 'hs_settings_load' );
38
-
39
$this->register_ajax( 'hs_module_edit' );
40
$this->register_ajax( 'hs_module_load' );
41
$this->register_ajax( 'hs_module_save' );
42
$this->register_ajax( 'hs_module_order' );
43
-
44
$this->register_ajax( 'hs_site_onoff' );
45
$this->register_ajax( 'hs_site_edit' );
46
$this->register_ajax( 'hs_site_load' );
@@ -51,7 +51,7 @@ class HeadspaceAjax extends HeadSpace_Plugin {
51
$this->register_ajax( 'hs_auto_tag' );
52
$this->register_ajax( 'hs_auto_description' );
53
}
54
-
55
function obj_to_array( $items ) {
56
$merged = array();
57
if ( !empty( $items ) > 0 ) {
@@ -60,15 +60,15 @@ class HeadspaceAjax extends HeadSpace_Plugin {
60
$merged[$key] = $value;
61
}
62
}
63
-
64
return $merged;
65
}
66
-
67
function hs_settings_edit() {
68
$id = $_GET['page'];
69
$headspace = HeadSpace2::get ();
70
$types = $headspace->get_types();
71
-
72
if ( in_array( $id, array_keys( $types ) ) && check_ajax_referer( 'headspace-edit_setting_'.$id ) ) {
73
$settings = $this->obj_to_array( get_option( 'headspace_'.$id ) );
74
@@ -77,11 +77,11 @@ class HeadspaceAjax extends HeadSpace_Plugin {
77
78
$this->render_admin( 'page-settings-item', array( 'type' => $id, 'name' => $types[$id][0], 'desc' => $types[$id][1], 'nolink' => true ) );
79
$this->render_admin( 'page-settings-edit-ajax', array( 'simple' => $simple, 'advanced' => $advanced, 'type' => $id, 'area' => 'page' ) );
80
-
81
die();
82
}
83
}
84
-
85
function hs_settings_save() {
86
$id = $_POST['module'];
87
$headspace = HeadSpace2::get ();
@@ -94,12 +94,12 @@ class HeadspaceAjax extends HeadSpace_Plugin {
94
$this->hs_settings_load();
95
}
96
}
97
-
98
function hs_settings_load() {
99
$id = $_POST['module'];
100
$headspace = HeadSpace2::get ();
101
$types = $headspace->get_types();
102
-
103
if ( in_array( $id, array_keys( $types ) ) && check_ajax_referer( 'headspace-page_setting_'.$id ) ) {
104
$settings = get_option( 'headspace_'.$id );
105
@@ -107,19 +107,19 @@ class HeadspaceAjax extends HeadSpace_Plugin {
107
die();
108
}
109
}
110
-
111
function hs_module_edit() {
112
if ( check_ajax_referer( 'headspace-module_'.$_GET['module'] ) ) {
113
$headspace = HeadSpace2::get ();
114
$module = $headspace->modules->get( $_GET['module'] );
115
-
116
if ( $module )
117
$this->render_admin( 'page-module-edit', array( 'module' => $module, 'id' => $_GET['module'] ) );
118
-
119
die();
120
}
121
}
122
-
123
function hs_module_save() {
124
if ( check_ajax_referer( 'headspace-module_save_'.$_POST['module'] ) ) {
125
$headspace = HeadSpace2::get ();
@@ -132,7 +132,7 @@ class HeadspaceAjax extends HeadSpace_Plugin {
132
}
133
}
134
}
135
-
136
function hs_module_load() {
137
if ( check_ajax_referer( 'headspace-module_'.$_GET['module'] ) ) {
138
$headspace = HeadSpace2::get ();
@@ -140,7 +140,7 @@ class HeadspaceAjax extends HeadSpace_Plugin {
140
141
if ( $module )
142
$this->render_admin( 'page-module-item', array( 'module' => $module ) );
143
-
144
die();
145
}
146
}
@@ -170,7 +170,7 @@ class HeadspaceAjax extends HeadSpace_Plugin {
170
171
if ( count( $options['advanced_modules'] ) > 0 ) {
172
$newmod = array ();
173
-
174
foreach ( $options['advanced_modules'] AS $name ) {
175
$name = 'hsm_'.str_replace( '-', '_', strtolower( $name ) );
176
$module = new $name;
@@ -185,7 +185,7 @@ class HeadspaceAjax extends HeadSpace_Plugin {
185
update_option( 'headspace_options', $options );
186
}
187
}
188
-
189
function hs_site_edit() {
190
if ( check_ajax_referer( 'headspace-site_module' ) ) {
191
$headspace = HeadSpace2::get ();
@@ -193,11 +193,11 @@ class HeadspaceAjax extends HeadSpace_Plugin {
193
194
if ( $module )
195
$this->render_admin( 'site-module-edit', array( 'module' => $module, 'id' => $_GET['module'] ) );
196
-
197
die();
198
}
199
}
200
-
201
function hs_site_load() {
202
if ( check_ajax_referer( 'headspace-site_module' ) ) {
203
$headspace = HeadSpace2::get ();
@@ -205,11 +205,11 @@ class HeadspaceAjax extends HeadSpace_Plugin {
205
206
if ($module)
207
$this->render_admin( 'site-module-item', array( 'module' => $module ) );
208
-
209
die();
210
}
211
}
212
-
213
function hs_site_save() {
214
if ( check_ajax_referer( 'headspace-site_save_'.$_POST['module'] ) ) {
215
$headspace = HeadSpace2::get ();
@@ -223,7 +223,7 @@ class HeadspaceAjax extends HeadSpace_Plugin {
223
die();
224
}
225
}
226
-
227
function hs_site_onoff() {
228
if ( check_ajax_referer( 'headspace-site_module' ) ) {
229
$options = get_option( 'headspace_options' );
@@ -231,10 +231,10 @@ class HeadspaceAjax extends HeadSpace_Plugin {
231
$options = array();
232
233
$id = $_POST['module'];
234
-
235
- if ( $_POST['onoff'] == 'true' && !in_array( $id, $options['site_modules'] ) && isset( $_POST['file'] ) && $_POST['file'] )
236
$options['site_modules'][$_POST['file']] = $id;
237
- elseif ( $_POST['onoff'] == 'false' && in_array( $id, $options['site_modules'] ) )
238
unset( $options['site_modules'][$_POST['file']] );
239
240
if ( count( $options['site_modules'] ) > 0 ) {
@@ -271,13 +271,13 @@ class HeadspaceAjax extends HeadSpace_Plugin {
271
// Extract 1st paragraph first blank line
272
if ( function_exists( 'mb_strpos' ) ) {
273
$pos = mb_strpos( $excerpt, '.' );
274
-
275
if ( $pos !== false )
276
$excerpt = mb_substr( $excerpt, 0, $pos + 1 );
277
}
278
else {
279
$pos = strpos( $excerpt, '.' );
280
-
281
if ($pos !== false)
282
$excerpt = substr( $excerpt, 0, $pos + 1 );
283
}
@@ -285,27 +285,27 @@ class HeadspaceAjax extends HeadSpace_Plugin {
285
// Replace all returns and HTML
286
$excerpt = str_replace( "\r", '', $excerpt );
287
$excerpt = str_replace( "\n", '', $excerpt );
288
-
289
// Restrict it to HS description length setting
290
if ( function_exists( 'mb_substr' ) )
291
$excerpt = mb_substr( $excerpt, 0, 500 );
292
else
293
$excerpt = substr( $excerpt, 0, 500 );
294
-
295
$excerpt = preg_replace( '/\s+/', ' ', $excerpt );
296
echo $excerpt;
297
die();
298
}
299
}
300
-
301
function hs_tag_update() {
302
$headspace = HeadSpace2::get ();
303
$id = intval( $_GET['id'] );
304
-
305
if ( check_ajax_referer( 'headspace-tags' ) && current_user_can( 'edit_post', $id ) ) {
306
$tags = $headspace->modules->get( 'hsm_tags' );
307
$tags->load( $headspace->get_post_settings( $id ) );
308
-
309
$tags->suggestions( $id, $_POST['content'], $_GET['type'] );
310
die();
311
}
@@ -317,14 +317,14 @@ class HeadspaceAjax extends HeadSpace_Plugin {
317
if ( current_user_can( 'edit_post', $id ) && check_ajax_referer( 'headspace-auto_tag_'.$id ) ) {
318
$headspace = HeadSpace2::get();
319
$settings = $headspace->get_post_settings( $id );
320
-
321
$tags = $headspace->modules->get( 'hsm_tags' );
322
$tags->load( $settings );
323
324
include (ABSPATH.'wp-admin/admin-functions.php');
325
-
326
$post = get_post( $id );
327
-
328
$suggestions = $tags->get_suggestions( $post->post_content.' '.$post->post_title );
329
echo HeadSpace_Plugin::specialchars( implode( ', ', $suggestions ) );
330
die();
29
30
add_action( 'init', array( &$this, 'init' ) );
31
}
32
+
33
function init() {
34
if ( current_user_can( 'manage_options' ) ) {
35
$this->register_ajax( 'hs_settings_edit' );
36
$this->register_ajax( 'hs_settings_save' );
37
$this->register_ajax( 'hs_settings_load' );
38
+
39
$this->register_ajax( 'hs_module_edit' );
40
$this->register_ajax( 'hs_module_load' );
41
$this->register_ajax( 'hs_module_save' );
42
$this->register_ajax( 'hs_module_order' );
43
+
44
$this->register_ajax( 'hs_site_onoff' );
45
$this->register_ajax( 'hs_site_edit' );
46
$this->register_ajax( 'hs_site_load' );
51
$this->register_ajax( 'hs_auto_tag' );
52
$this->register_ajax( 'hs_auto_description' );
53
}
54
+
55
function obj_to_array( $items ) {
56
$merged = array();
57
if ( !empty( $items ) > 0 ) {
60
$merged[$key] = $value;
61
}
62
}
63
+
64
return $merged;
65
}
66
+
67
function hs_settings_edit() {
68
$id = $_GET['page'];
69
$headspace = HeadSpace2::get ();
70
$types = $headspace->get_types();
71
+
72
if ( in_array( $id, array_keys( $types ) ) && check_ajax_referer( 'headspace-edit_setting_'.$id ) ) {
73
$settings = $this->obj_to_array( get_option( 'headspace_'.$id ) );
74
77
78
$this->render_admin( 'page-settings-item', array( 'type' => $id, 'name' => $types[$id][0], 'desc' => $types[$id][1], 'nolink' => true ) );
79
$this->render_admin( 'page-settings-edit-ajax', array( 'simple' => $simple, 'advanced' => $advanced, 'type' => $id, 'area' => 'page' ) );
80
+
81
die();
82
}
83
}
84
+
85
function hs_settings_save() {
86
$id = $_POST['module'];
87
$headspace = HeadSpace2::get ();
94
$this->hs_settings_load();
95
}
96
}
97
+
98
function hs_settings_load() {
99
$id = $_POST['module'];
100
$headspace = HeadSpace2::get ();
101
$types = $headspace->get_types();
102
+
103
if ( in_array( $id, array_keys( $types ) ) && check_ajax_referer( 'headspace-page_setting_'.$id ) ) {
104
$settings = get_option( 'headspace_'.$id );
105
107
die();
108
}
109
}
110
+
111
function hs_module_edit() {
112
if ( check_ajax_referer( 'headspace-module_'.$_GET['module'] ) ) {
113
$headspace = HeadSpace2::get ();
114
$module = $headspace->modules->get( $_GET['module'] );
115
+
116
if ( $module )
117
$this->render_admin( 'page-module-edit', array( 'module' => $module, 'id' => $_GET['module'] ) );
118
+
119
die();
120
}
121
}
122
+
123
function hs_module_save() {
124
if ( check_ajax_referer( 'headspace-module_save_'.$_POST['module'] ) ) {
125
$headspace = HeadSpace2::get ();
132
}
133
}
134
}
135
+
136
function hs_module_load() {
137
if ( check_ajax_referer( 'headspace-module_'.$_GET['module'] ) ) {
138
$headspace = HeadSpace2::get ();
140
141
if ( $module )
142
$this->render_admin( 'page-module-item', array( 'module' => $module ) );
143
+
144
die();
145
}
146
}
170
171
if ( count( $options['advanced_modules'] ) > 0 ) {
172
$newmod = array ();
173
+
174
foreach ( $options['advanced_modules'] AS $name ) {
175
$name = 'hsm_'.str_replace( '-', '_', strtolower( $name ) );
176
$module = new $name;
185
update_option( 'headspace_options', $options );
186
}
187
}
188
+
189
function hs_site_edit() {
190
if ( check_ajax_referer( 'headspace-site_module' ) ) {
191
$headspace = HeadSpace2::get ();
193
194
if ( $module )
195
$this->render_admin( 'site-module-edit', array( 'module' => $module, 'id' => $_GET['module'] ) );
196
+
197
die();
198
}
199
}
200
+
201
function hs_site_load() {
202
if ( check_ajax_referer( 'headspace-site_module' ) ) {
203
$headspace = HeadSpace2::get ();
205
206
if ($module)
207
$this->render_admin( 'site-module-item', array( 'module' => $module ) );
208
+
209
die();
210
}
211
}
212
+
213
function hs_site_save() {
214
if ( check_ajax_referer( 'headspace-site_save_'.$_POST['module'] ) ) {
215
$headspace = HeadSpace2::get ();
223
die();
224
}
225
}
226
+
227
function hs_site_onoff() {
228
if ( check_ajax_referer( 'headspace-site_module' ) ) {
229
$options = get_option( 'headspace_options' );
231
$options = array();
232
233
$id = $_POST['module'];
234
+
235
+ if ( isset( $_POST['onoff'] ) && !in_array( $id, $options['site_modules'] ) && isset( $_POST['file'] ) && $_POST['file'] )
236
$options['site_modules'][$_POST['file']] = $id;
237
+ elseif ( !isset( $_POST['onoff'] ) && in_array( $id, $options['site_modules'] ) )
238
unset( $options['site_modules'][$_POST['file']] );
239
240
if ( count( $options['site_modules'] ) > 0 ) {
271
// Extract 1st paragraph first blank line
272
if ( function_exists( 'mb_strpos' ) ) {
273
$pos = mb_strpos( $excerpt, '.' );
274
+
275
if ( $pos !== false )
276
$excerpt = mb_substr( $excerpt, 0, $pos + 1 );
277
}
278
else {
279
$pos = strpos( $excerpt, '.' );
280
+
281
if ($pos !== false)
282
$excerpt = substr( $excerpt, 0, $pos + 1 );
283
}
285
// Replace all returns and HTML
286
$excerpt = str_replace( "\r", '', $excerpt );
287
$excerpt = str_replace( "\n", '', $excerpt );
288
+
289
// Restrict it to HS description length setting
290
if ( function_exists( 'mb_substr' ) )
291
$excerpt = mb_substr( $excerpt, 0, 500 );
292
else
293
$excerpt = substr( $excerpt, 0, 500 );
294
+
295
$excerpt = preg_replace( '/\s+/', ' ', $excerpt );
296
echo $excerpt;
297
die();
298
}
299
}
300
+
301
function hs_tag_update() {
302
$headspace = HeadSpace2::get ();
303
$id = intval( $_GET['id'] );
304
+
305
if ( check_ajax_referer( 'headspace-tags' ) && current_user_can( 'edit_post', $id ) ) {
306
$tags = $headspace->modules->get( 'hsm_tags' );
307
$tags->load( $headspace->get_post_settings( $id ) );
308
+
309
$tags->suggestions( $id, $_POST['content'], $_GET['type'] );
310
die();
311
}
317
if ( current_user_can( 'edit_post', $id ) && check_ajax_referer( 'headspace-auto_tag_'.$id ) ) {
318
$headspace = HeadSpace2::get();
319
$settings = $headspace->get_post_settings( $id );
320
+
321
$tags = $headspace->modules->get( 'hsm_tags' );
322
$tags->load( $settings );
323
324
include (ABSPATH.'wp-admin/admin-functions.php');
325
+
326
$post = get_post( $id );
327
+
328
$suggestions = $tags->get_suggestions( $post->post_content.' '.$post->post_title );
329
echo HeadSpace_Plugin::specialchars( implode( ', ', $suggestions ) );
330
die();
headspace.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: HeadSpace2
4
Plugin URI: http://urbangiraffe.com/plugins/headspace2/
5
Description: Meta-data manager on steroids, allowing complete control over all SEO needs such as keywords/tags, titles, description, stylesheets, and many many other goodies.
6
- Version: 3.6.34
7
Author: John Godley
8
Author URI: http://urbangiraffe.com/
9
============================================================================================================
@@ -50,20 +50,15 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
50
$this->add_action( 'edit_category_form' );
51
$this->add_action( 'edit_category' );
52
add_action( 'edit_term', array( &$this, 'edit_category' ) );
53
-
54
$this->add_action( 'init', 'init', 15);
55
- $this->add_action( 'wp_dashboard_setup' );
56
-
57
// WP 2.7 hooks
58
$this->add_action( 'manage_posts_columns' );
59
$this->add_action( 'manage_pages_columns', 'manage_posts_columns' );
60
61
$this->add_action( 'manage_posts_custom_column', 'manage_posts_custom_column', 10, 2);
62
$this->add_action( 'manage_pages_custom_column', 'manage_posts_custom_column', 10, 2);
63
-
64
- // $this->add_action( 'quick_edit_custom_box', 'quick_edit_custom_box', 10, 2);
65
- // $this->add_action( 'manage_categories_columns', 'manage_posts_columns' );
66
- // $this->add_action( 'bulk_edit_custom_box', 'bulk_edit_custom_box', 10, 2);
67
68
$this->add_action( 'wp_print_scripts' );
69
$this->add_action( 'admin_head', 'wp_print_styles' );
@@ -71,7 +66,7 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
71
$this->add_action( 'admin_print_styles', 'wp_print_styles' );
72
$this->add_filter( 'contextual_help', 'contextual_help', 10, 2 );
73
$this->register_plugin_settings( __FILE__ );
74
-
75
// Ajax functions
76
if ( defined( 'DOING_AJAX' ) ) {
77
include_once dirname( __FILE__ ).'/ajax.php';
@@ -79,7 +74,7 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
79
}
80
}
81
}
82
-
83
function print_scripts_array( $scripts ) {
84
$farb = array_search( 'farbtastic', $scripts );
85
@@ -88,32 +83,18 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
88
89
return $scripts;
90
}
91
-
92
function plugin_settings ($links) {
93
$settings_link = '<a href="options-general.php?page='.basename( __FILE__ ).'">'.__('Settings', 'headspace').'</a>';
94
array_unshift( $links, $settings_link );
95
return $links;
96
}
97
-
98
- function wp_dashboard_setup() {
99
- if (function_exists ('wp_add_dashboard_widget'))
100
- wp_add_dashboard_widget ('dashboard_headspace', __ ('HeadSpace', 'headspace'), array (&$this, 'dashboard'));
101
- }
102
-
103
- function dashboard() {
104
- $headspace = HeadSpace2::get ();
105
-
106
- $settings = $headspace->get_current_settings ();
107
- $simple = $headspace->modules->get_restricted ($headspace->get_simple_modules (), $settings, 'page' );
108
-
109
- $this->render_admin( 'dashboard', array ('simple' => $simple, 'advanced' => $advanced));
110
- }
111
-
112
function manage_posts_columns($columns) {
113
$headspace = HeadSpace2::get ();
114
-
115
$settings = $headspace->get_current_settings ();
116
-
117
$simple = $headspace->modules->get_restricted ($headspace->get_simple_modules (), $settings, 'page' );
118
$advanced = $headspace->modules->get_restricted ($headspace->get_advanced_modules (), $settings, 'page' );
119
@@ -127,19 +108,19 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
127
128
return $columns;
129
}
130
-
131
function manage_posts_custom_column($column, $id) {
132
$hs2 = HeadSpace2::get ();
133
$meta = $hs2->get_post_settings ($id);
134
-
135
$module = $hs2->modules->get (array ($column), $meta);
136
if (count ($module) > 0)
137
$module[0]->quick_view ();
138
}
139
-
140
function bulk_edit_custom_box($column_name, $type) {
141
}
142
-
143
function quick_edit_custom_box($column_name, $type) {
144
}
145
@@ -174,7 +155,7 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
174
add_management_page (HEADSPACE_MENU, HEADSPACE_MENU, HEADSPACE_ROLE, basename (__FILE__), array ($this, 'admin_screen'));
175
else
176
add_options_page (HEADSPACE_MENU, HEADSPACE_MENU, HEADSPACE_ROLE, basename (__FILE__), array ($this, 'admin_screen'));
177
-
178
add_management_page (HEADSPACE_META, HEADSPACE_META, HEADSPACE_ROLE, basename (__FILE__), array ($this, 'admin_mass'));
179
}
180
@@ -195,7 +176,7 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
195
else
196
$cat->cat_ID = 0;
197
}
198
-
199
$headspace = HeadSpace2::get ();
200
$settings = $headspace->get_current_settings (get_option( 'headspace_cat_'.$cat->cat_ID));
201
@@ -214,10 +195,10 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
214
if ($tags !== false)
215
$this->render_admin( 'edit_page', array ('post_ID' => $post->ID));
216
}
217
-
218
function metabox($post) {
219
global $wp_meta_boxes;
220
-
221
if (isset ($wp_meta_boxes['post']['normal']['sorted']['headspacestuff']))
222
unset ($wp_meta_boxes['post']['normal']['sorted']['headspacestuff']);
223
@@ -232,7 +213,7 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
232
233
$this->render_admin( 'page-settings-edit', array ('simple' => $simple, 'advanced' => $advanced, 'width' => 140, 'area' => 'page'));
234
}
235
-
236
237
/**
238
* Extract meta-data when saving a post
@@ -242,9 +223,9 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
242
**/
243
244
function save_tags($id) {
245
- if (isset ($_POST['headspace'])) {
246
- $headspace = HeadSpace2::get ();
247
- $headspace->save_post_settings ($id, $headspace->extract_module_settings ($_POST, 'page'));
248
}
249
}
250
@@ -273,7 +254,7 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
273
$sub = isset ($_GET['sub']) ? $_GET['sub'] : '';
274
$url = explode ('&', $_SERVER['REQUEST_URI']);
275
$url = $url[0];
276
-
277
if ($inwrap == true)
278
$this->render_admin( 'submenu', array ('url' => $url, 'sub' => $sub));
279
return $sub;
@@ -288,39 +269,39 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
288
else if ($sub == 'tags')
289
$this->admin_tags ();
290
}
291
-
292
-
293
/**
294
* Checks the current theme footer.php and header.php to ensure it contains the appropriate function calls* to allow HS to work. Hopefully this will reduce support questions regarding this
295
*/
296
function check_theme_files() {
297
$base = get_template_directory ();
298
-
299
$messages = array ();
300
if (file_exists ($base.DIRECTORY_SEPARATOR.'header.php')) {
301
$theme_data = implode ('', file ($base.DIRECTORY_SEPARATOR.'header.php'));
302
-
303
if (strpos ($theme_data, 'wp_head') === false)
304
$messages[] = __ ('<code>wp_head</code> was not found in <code>header.php</code> (<a href="http://codex.wordpress.org/Hook_Reference/wp_head">documentation</a>)' );
305
}
306
-
307
if (file_exists ($base.DIRECTORY_SEPARATOR.'footer.php')) {
308
$theme_data = implode ('', file ($base.DIRECTORY_SEPARATOR.'footer.php'));
309
-
310
if (strpos ($theme_data, 'wp_footer') === false)
311
$messages[] = __ ('<code>wp_footer</code> was not found in <code>footer.php</code> (<a href="http://codex.wordpress.org/Theme_Development">documentation</a>)' );
312
}
313
-
314
if (count ($messages) > 0) {
315
$msg = '';
316
foreach ($messages AS $message)
317
$msg .= '<li>'.$message.'</li>';
318
-
319
$this->render_error ('<p>There are some issues with your theme that may prevent HeadSpace functioning correctly.</p><ol>'.$msg.'</oi>' );
320
}
321
}
322
-
323
-
324
/**
325
* Choose which admin screen is displayed as well as displaying RSS version feed
326
*
@@ -339,7 +320,7 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
339
$sub = $this->submenu ();
340
341
$this->check_theme_files ();
342
-
343
// Display screen
344
if ($sub == '')
345
$this->admin_settings ();
@@ -363,7 +344,7 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
363
$options = get_option( 'headspace_options' );
364
if ($options === false)
365
$options = array ();
366
-
367
$defaults = array
368
(
369
'inherit' => true,
@@ -371,15 +352,15 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
371
'debug' => false,
372
'support' => false
373
);
374
-
375
foreach ($defaults AS $key => $value) {
376
if (!isset ($options[$key]))
377
$options[$key] = $value;
378
}
379
-
380
return $options;
381
}
382
-
383
function admin_mass_edit() {
384
include dirname (__FILE__).'/models/pager.php';
385
include dirname (__FILE__).'/models/mass_edit.php';
@@ -413,7 +394,7 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
413
414
function admin_settings() {
415
$headspace = HeadSpace2::get ();
416
-
417
$this->render_admin( 'page-settings', array( 'types' => $headspace->get_types() ) );
418
}
419
@@ -455,13 +436,13 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
455
456
$this->render_admin( 'page-modules', array ('simple' => $simple, 'advanced' => $advanced, 'disabled' => $headspace->modules->get_disabled ($simple, $advanced)));
457
}
458
-
459
function admin_site() {
460
$headspace = HeadSpace2::get ();
461
-
462
$this->render_admin( 'site-modules', array ('site' => $headspace->site));
463
}
464
-
465
function admin_import() {
466
include dirname (__FILE__).'/models/importer.php';
467
@@ -479,7 +460,7 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
479
480
$this->render_admin( 'import', array ('modules' => $importmanager->available ()));
481
}
482
-
483
function wp_print_scripts() {
484
global $wp_scripts;
485
@@ -488,11 +469,11 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
488
add_meta_box ('headspacestuff', __ ('HeadSpace', 'headspace'), array (&$this, 'metabox'), 'page', 'normal', 'high' );
489
add_meta_box ('tagsdiv', __ ('Tags', 'headspace'), array (&$this, 'metabox_tags'), 'page', 'side', 'high' );
490
}
491
-
492
// Rejig the localization
493
if ($this->is_page ())
494
$wp_scripts->registered['page']->extra['l10n'] = $wp_scripts->registered['post']->extra['l10n'];
495
-
496
// We need to do this because the WP-Ecommerce plugin inserts some JS that interferes with HeadSpace
497
if (isset ($wp_scripts->registered['ui-tabs']) && strpos ($_SERVER['REQUEST_URI'], 'headspace.php') !== false)
498
unset ($wp_scripts->registered['ui-tabs']);
@@ -504,23 +485,23 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
504
wp_enqueue_script( 'headspace', $this->url ().'/js/headspace.js', array ('jquery-form'), $this->version ());
505
wp_enqueue_script( 'headspace-tags', $this->url ().'/js/headspace-tags.js', array ('headspace'), $this->version ());
506
}
507
-
508
// Stop this being called again
509
remove_action( 'wp_print_scripts', array(&$this, 'wp_print_scripts'));
510
}
511
-
512
function is_category_edit() {
513
if (strpos ($_SERVER['REQUEST_URI'], 'categories.php') || strpos( $_SERVER['REQUEST_URI'], 'taxonomy=category' ) )
514
return true;
515
return false;
516
}
517
-
518
function is_post_edit() {
519
if (strpos ($_SERVER['REQUEST_URI'], 'post.php') !== false || strpos ($_SERVER['REQUEST_URI'], 'post-new.php') !== false)
520
return true;
521
return false;
522
}
523
-
524
function wp_print_styles() {
525
if ( ( isset ($_GET['page']) && $_GET['page'] == 'headspace.php') || $this->is_page () || $this->is_category_edit () || $this->is_post_edit () ) {
526
echo '<link rel="stylesheet" href="'.$this->url ().'/admin.css" type="text/css" media="screen" title="no title" charset="utf-8"/>';
@@ -543,8 +524,8 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
543
</style>';
544
}
545
}
546
-
547
-
548
/**
549
* Insert CSS and JS into administration page
550
*
@@ -555,15 +536,15 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
555
if (strpos ($_SERVER['REQUEST_URI'], 'post.php') !== false || strpos ($_SERVER['REQUEST_URI'], 'post-new.php') !== false || $this->is_page () || strpos ($_SERVER['REQUEST_URI'], 'headspace') || strpos ($_SERVER['REQUEST_URI'], 'categories.php'))
556
$this->render_admin( 'head_admin' );
557
}
558
-
559
function version() {
560
$plugin_data = implode ('', file (__FILE__));
561
-
562
if (preg_match ('|Version:(.*)|i', $plugin_data, $version))
563
return trim ($version[1]);
564
return '';
565
}
566
-
567
function contextual_help($help, $screen) {
568
if ($screen == 'settings_page_headspace') {
569
$help .= '<h5>' . __('HeadSpace Help', 'headspace') . '</h5><div class="metabox-prefs">';
@@ -574,11 +555,23 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
574
$help .= __ ('Please read the documentation and FAQ, and check the bug tracker, before asking a question.', 'headspace' );
575
$help .= '</div>';
576
}
577
-
578
return $help;
579
}
580
}
581
582
583
/**
584
* Instantiate the plugin
3
Plugin Name: HeadSpace2
4
Plugin URI: http://urbangiraffe.com/plugins/headspace2/
5
Description: Meta-data manager on steroids, allowing complete control over all SEO needs such as keywords/tags, titles, description, stylesheets, and many many other goodies.
6
+ Version: 3.6.37
7
Author: John Godley
8
Author URI: http://urbangiraffe.com/
9
============================================================================================================
50
$this->add_action( 'edit_category_form' );
51
$this->add_action( 'edit_category' );
52
add_action( 'edit_term', array( &$this, 'edit_category' ) );
53
+
54
$this->add_action( 'init', 'init', 15);
55
+
56
// WP 2.7 hooks
57
$this->add_action( 'manage_posts_columns' );
58
$this->add_action( 'manage_pages_columns', 'manage_posts_columns' );
59
60
$this->add_action( 'manage_posts_custom_column', 'manage_posts_custom_column', 10, 2);
61
$this->add_action( 'manage_pages_custom_column', 'manage_posts_custom_column', 10, 2);
62
63
$this->add_action( 'wp_print_scripts' );
64
$this->add_action( 'admin_head', 'wp_print_styles' );
66
$this->add_action( 'admin_print_styles', 'wp_print_styles' );
67
$this->add_filter( 'contextual_help', 'contextual_help', 10, 2 );
68
$this->register_plugin_settings( __FILE__ );
69
+
70
// Ajax functions
71
if ( defined( 'DOING_AJAX' ) ) {
72
include_once dirname( __FILE__ ).'/ajax.php';
74
}
75
}
76
}
77
+
78
function print_scripts_array( $scripts ) {
79
$farb = array_search( 'farbtastic', $scripts );
80
83
84
return $scripts;
85
}
86
+
87
function plugin_settings ($links) {
88
$settings_link = '<a href="options-general.php?page='.basename( __FILE__ ).'">'.__('Settings', 'headspace').'</a>';
89
array_unshift( $links, $settings_link );
90
return $links;
91
}
92
+
93
function manage_posts_columns($columns) {
94
$headspace = HeadSpace2::get ();
95
+
96
$settings = $headspace->get_current_settings ();
97
+
98
$simple = $headspace->modules->get_restricted ($headspace->get_simple_modules (), $settings, 'page' );
99
$advanced = $headspace->modules->get_restricted ($headspace->get_advanced_modules (), $settings, 'page' );
100
108
109
return $columns;
110
}
111
+
112
function manage_posts_custom_column($column, $id) {
113
$hs2 = HeadSpace2::get ();
114
$meta = $hs2->get_post_settings ($id);
115
+
116
$module = $hs2->modules->get (array ($column), $meta);
117
if (count ($module) > 0)
118
$module[0]->quick_view ();
119
}
120
+
121
function bulk_edit_custom_box($column_name, $type) {
122
}
123
+
124
function quick_edit_custom_box($column_name, $type) {
125
}
126
155
add_management_page (HEADSPACE_MENU, HEADSPACE_MENU, HEADSPACE_ROLE, basename (__FILE__), array ($this, 'admin_screen'));
156
else
157
add_options_page (HEADSPACE_MENU, HEADSPACE_MENU, HEADSPACE_ROLE, basename (__FILE__), array ($this, 'admin_screen'));
158
+
159
add_management_page (HEADSPACE_META, HEADSPACE_META, HEADSPACE_ROLE, basename (__FILE__), array ($this, 'admin_mass'));
160
}
161
176
else
177
$cat->cat_ID = 0;
178
}
179
+
180
$headspace = HeadSpace2::get ();
181
$settings = $headspace->get_current_settings (get_option( 'headspace_cat_'.$cat->cat_ID));
182
195
if ($tags !== false)
196
$this->render_admin( 'edit_page', array ('post_ID' => $post->ID));
197
}
198
+
199
function metabox($post) {
200
global $wp_meta_boxes;
201
+
202
if (isset ($wp_meta_boxes['post']['normal']['sorted']['headspacestuff']))
203
unset ($wp_meta_boxes['post']['normal']['sorted']['headspacestuff']);
204
213
214
$this->render_admin( 'page-settings-edit', array ('simple' => $simple, 'advanced' => $advanced, 'width' => 140, 'area' => 'page'));
215
}
216
+
217
218
/**
219
* Extract meta-data when saving a post
223
**/
224
225
function save_tags($id) {
226
+ if ( isset( $_POST['headspace'] ) ) {
227
+ $headspace = HeadSpace2::get();
228
+ $headspace->save_post_settings( $id, $headspace->extract_module_settings( $_POST, 'page' ) );
229
}
230
}
231
254
$sub = isset ($_GET['sub']) ? $_GET['sub'] : '';
255
$url = explode ('&', $_SERVER['REQUEST_URI']);
256
$url = $url[0];
257
+
258
if ($inwrap == true)
259
$this->render_admin( 'submenu', array ('url' => $url, 'sub' => $sub));
260
return $sub;
269
else if ($sub == 'tags')
270
$this->admin_tags ();
271
}
272
+
273
+
274
/**
275
* Checks the current theme footer.php and header.php to ensure it contains the appropriate function calls* to allow HS to work. Hopefully this will reduce support questions regarding this
276
*/
277
function check_theme_files() {
278
$base = get_template_directory ();
279
+
280
$messages = array ();
281
if (file_exists ($base.DIRECTORY_SEPARATOR.'header.php')) {
282
$theme_data = implode ('', file ($base.DIRECTORY_SEPARATOR.'header.php'));
283
+
284
if (strpos ($theme_data, 'wp_head') === false)
285
$messages[] = __ ('<code>wp_head</code> was not found in <code>header.php</code> (<a href="http://codex.wordpress.org/Hook_Reference/wp_head">documentation</a>)' );
286
}
287
+
288
if (file_exists ($base.DIRECTORY_SEPARATOR.'footer.php')) {
289
$theme_data = implode ('', file ($base.DIRECTORY_SEPARATOR.'footer.php'));
290
+
291
if (strpos ($theme_data, 'wp_footer') === false)
292
$messages[] = __ ('<code>wp_footer</code> was not found in <code>footer.php</code> (<a href="http://codex.wordpress.org/Theme_Development">documentation</a>)' );
293
}
294
+
295
if (count ($messages) > 0) {
296
$msg = '';
297
foreach ($messages AS $message)
298
$msg .= '<li>'.$message.'</li>';
299
+
300
$this->render_error ('<p>There are some issues with your theme that may prevent HeadSpace functioning correctly.</p><ol>'.$msg.'</oi>' );
301
}
302
}
303
+
304
+
305
/**
306
* Choose which admin screen is displayed as well as displaying RSS version feed
307
*
320
$sub = $this->submenu ();
321
322
$this->check_theme_files ();
323
+
324
// Display screen
325
if ($sub == '')
326
$this->admin_settings ();
344
$options = get_option( 'headspace_options' );
345
if ($options === false)
346
$options = array ();
347
+
348
$defaults = array
349
(
350
'inherit' => true,
352
'debug' => false,
353
'support' => false
354
);
355
+
356
foreach ($defaults AS $key => $value) {
357
if (!isset ($options[$key]))
358
$options[$key] = $value;
359
}
360
+
361
return $options;
362
}
363
+
364
function admin_mass_edit() {
365
include dirname (__FILE__).'/models/pager.php';
366
include dirname (__FILE__).'/models/mass_edit.php';
394
395
function admin_settings() {
396
$headspace = HeadSpace2::get ();
397
+
398
$this->render_admin( 'page-settings', array( 'types' => $headspace->get_types() ) );
399
}
400
436
437
$this->render_admin( 'page-modules', array ('simple' => $simple, 'advanced' => $advanced, 'disabled' => $headspace->modules->get_disabled ($simple, $advanced)));
438
}
439
+
440
function admin_site() {
441
$headspace = HeadSpace2::get ();
442
+
443
$this->render_admin( 'site-modules', array ('site' => $headspace->site));
444
}
445
+
446
function admin_import() {
447
include dirname (__FILE__).'/models/importer.php';
448
460
461
$this->render_admin( 'import', array ('modules' => $importmanager->available ()));
462
}
463
+
464
function wp_print_scripts() {
465
global $wp_scripts;
466
469
add_meta_box ('headspacestuff', __ ('HeadSpace', 'headspace'), array (&$this, 'metabox'), 'page', 'normal', 'high' );
470
add_meta_box ('tagsdiv', __ ('Tags', 'headspace'), array (&$this, 'metabox_tags'), 'page', 'side', 'high' );
471
}
472
+
473
// Rejig the localization
474
if ($this->is_page ())
475
$wp_scripts->registered['page']->extra['l10n'] = $wp_scripts->registered['post']->extra['l10n'];
476
+
477
// We need to do this because the WP-Ecommerce plugin inserts some JS that interferes with HeadSpace
478
if (isset ($wp_scripts->registered['ui-tabs']) && strpos ($_SERVER['REQUEST_URI'], 'headspace.php') !== false)
479
unset ($wp_scripts->registered['ui-tabs']);
485
wp_enqueue_script( 'headspace', $this->url ().'/js/headspace.js', array ('jquery-form'), $this->version ());
486
wp_enqueue_script( 'headspace-tags', $this->url ().'/js/headspace-tags.js', array ('headspace'), $this->version ());
487
}
488
+
489
// Stop this being called again
490
remove_action( 'wp_print_scripts', array(&$this, 'wp_print_scripts'));
491
}
492
+
493
function is_category_edit() {
494
if (strpos ($_SERVER['REQUEST_URI'], 'categories.php') || strpos( $_SERVER['REQUEST_URI'], 'taxonomy=category' ) )
495
return true;
496
return false;
497
}
498
+
499
function is_post_edit() {
500
if (strpos ($_SERVER['REQUEST_URI'], 'post.php') !== false || strpos ($_SERVER['REQUEST_URI'], 'post-new.php') !== false)
501
return true;
502
return false;
503
}
504
+
505
function wp_print_styles() {
506
if ( ( isset ($_GET['page']) && $_GET['page'] == 'headspace.php') || $this->is_page () || $this->is_category_edit () || $this->is_post_edit () ) {
507
echo '<link rel="stylesheet" href="'.$this->url ().'/admin.css" type="text/css" media="screen" title="no title" charset="utf-8"/>';
524
</style>';
525
}
526
}
527
+
528
+
529
/**
530
* Insert CSS and JS into administration page
531
*
536
if (strpos ($_SERVER['REQUEST_URI'], 'post.php') !== false || strpos ($_SERVER['REQUEST_URI'], 'post-new.php') !== false || $this->is_page () || strpos ($_SERVER['REQUEST_URI'], 'headspace') || strpos ($_SERVER['REQUEST_URI'], 'categories.php'))
537
$this->render_admin( 'head_admin' );
538
}
539
+
540
function version() {
541
$plugin_data = implode ('', file (__FILE__));
542
+
543
if (preg_match ('|Version:(.*)|i', $plugin_data, $version))
544
return trim ($version[1]);
545
return '';
546
}
547
+
548
function contextual_help($help, $screen) {
549
if ($screen == 'settings_page_headspace') {
550
$help .= '<h5>' . __('HeadSpace Help', 'headspace') . '</h5><div class="metabox-prefs">';
555
$help .= __ ('Please read the documentation and FAQ, and check the bug tracker, before asking a question.', 'headspace' );
556
$help .= '</div>';
557
}
558
+
559
return $help;
560
}
561
}
562
563
+ // Thematic compat
564
+ function hs_child_headspace_doctitle() {
565
+ return wp_title( '', false) ;
566
+ }
567
+
568
+ function hs_child_meta_head_cleaning() {
569
+ return true;
570
+ }
571
+
572
+ add_filter( 'thematic_seo', 'hs_child_meta_head_cleaning' );
573
+ add_filter( 'thematic_doctitle','hs_child_headspace_doctitle' );
574
+
575
576
/**
577
* Instantiate the plugin
headspace_library.php CHANGED
@@ -25,28 +25,28 @@ if (!class_exists ('MetaData')) {
25
function get_custom($field) {
26
$hs2 = HeadSpace2::get ();
27
$data = $hs2->get_current_settings ();
28
-
29
if (isset ($data['custom_fields'])) {
30
$custom = unserialize ($data['custom_fields']);
31
if (!is_array($custom))
32
$custom = unserialize($custom);
33
-
34
if (is_array($custom) && isset ($custom[$field]))
35
return $custom[$field];
36
}
37
-
38
return false;
39
}
40
-
41
function add_tags($postid, $tags) {
42
$tags = array_filter (explode (',', $tags));
43
wp_set_post_tags ($postid, $tags, false);
44
}
45
-
46
function add_description($postid, $description) {
47
MetaData::add ($postid, 'description', $description);
48
}
49
-
50
function add_stylesheet($postid, $stylesheet) {
51
MetaData::add ($postid, 'style', $script);
52
}
@@ -54,23 +54,23 @@ if (!class_exists ('MetaData')) {
54
function add_javascript($postid, $script) {
55
MetaData::add ($postid, 'scripts', $script);
56
}
57
-
58
function add_more_text($postid, $moretext) {
59
MetaData::add ($postid, 'more_text', $moretext);
60
}
61
-
62
function add_page_title($postid, $title) {
63
MetaData::add ($postid, 'page_title', $title);
64
}
65
-
66
function add_raw($postid, $raw) {
67
MetaData::add ($postid, 'raw', $raw);
68
}
69
-
70
function add_nofollow($postid, $nofollow = true) {
71
MetaData::add ($postid, 'nofollow', $nofollow ? true : false);
72
}
73
-
74
function add_noindex($postid, $noindex = true) {
75
MetaData::add ($postid, 'noindex', $noindex ? true : false);
76
}
@@ -82,10 +82,10 @@ if (!class_exists ('MetaData')) {
82
function get_description($postid) {
83
return MetaData::get ($postid, 'description');
84
}
85
-
86
function get_tags($postid) {
87
$tags = get_object_term_cache($postid, 'post_tag');
88
-
89
if ( false === $tags)
90
$tags = wp_get_object_terms($postid, 'post_tag');
91
@@ -98,31 +98,31 @@ if (!class_exists ('MetaData')) {
98
}
99
else
100
$tags = '';
101
-
102
return $tags;
103
}
104
-
105
function get($postid, $type) {
106
return get_post_meta ($postid, '_headspace_'.$type, true);
107
}
108
-
109
function get_noindex($postid) {
110
return MetaData::get ($postid, 'noindex');
111
}
112
-
113
function get_nofollow($postid) {
114
return MetaData::get ($postid, 'nofollow');
115
}
116
-
117
function add($postid, $type, $data, $insert = false) {
118
global $wpdb;
119
-
120
$field = '_headspace_'.$type;
121
-
122
if (!empty ($data)) {
123
// Do we update or insert?
124
$meta = get_post_meta ($postid, $field);
125
-
126
if ($insert == true || empty ($meta) || $meta === false)
127
$wpdb->query ("INSERT INTO {$wpdb->postmeta} (post_id,meta_key,meta_value) VALUES ('$postid','$field','".$wpdb->escape ($data)."')");
128
else
@@ -134,4 +134,3 @@ if (!class_exists ('MetaData')) {
134
}
135
}
136
137
- ?>
25
function get_custom($field) {
26
$hs2 = HeadSpace2::get ();
27
$data = $hs2->get_current_settings ();
28
+
29
if (isset ($data['custom_fields'])) {
30
$custom = unserialize ($data['custom_fields']);
31
if (!is_array($custom))
32
$custom = unserialize($custom);
33
+
34
if (is_array($custom) && isset ($custom[$field]))
35
return $custom[$field];
36
}
37
+
38
return false;
39
}
40
+
41
function add_tags($postid, $tags) {
42
$tags = array_filter (explode (',', $tags));
43
wp_set_post_tags ($postid, $tags, false);
44
}
45
+
46
function add_description($postid, $description) {
47
MetaData::add ($postid, 'description', $description);
48
}
49
+
50
function add_stylesheet($postid, $stylesheet) {
51
MetaData::add ($postid, 'style', $script);
52
}
54
function add_javascript($postid, $script) {
55
MetaData::add ($postid, 'scripts', $script);
56
}
57
+
58
function add_more_text($postid, $moretext) {
59
MetaData::add ($postid, 'more_text', $moretext);
60
}
61
+
62
function add_page_title($postid, $title) {
63
MetaData::add ($postid, 'page_title', $title);
64
}
65
+
66
function add_raw($postid, $raw) {
67
MetaData::add ($postid, 'raw', $raw);
68
}
69
+
70
function add_nofollow($postid, $nofollow = true) {
71
MetaData::add ($postid, 'nofollow', $nofollow ? true : false);
72
}
73
+
74
function add_noindex($postid, $noindex = true) {
75
MetaData::add ($postid, 'noindex', $noindex ? true : false);
76
}
82
function get_description($postid) {
83
return MetaData::get ($postid, 'description');
84
}
85
+
86
function get_tags($postid) {
87
$tags = get_object_term_cache($postid, 'post_tag');
88
+
89
if ( false === $tags)
90
$tags = wp_get_object_terms($postid, 'post_tag');
91
98
}
99
else
100
$tags = '';
101
+
102
return $tags;
103
}
104
+
105
function get($postid, $type) {
106
return get_post_meta ($postid, '_headspace_'.$type, true);
107
}
108
+
109
function get_noindex($postid) {
110
return MetaData::get ($postid, 'noindex');
111
}
112
+
113
function get_nofollow($postid) {
114
return MetaData::get ($postid, 'nofollow');
115
}
116
+
117
function add($postid, $type, $data, $insert = false) {
118
global $wpdb;
119
+
120
$field = '_headspace_'.$type;
121
+
122
if (!empty ($data)) {
123
// Do we update or insert?
124
$meta = get_post_meta ($postid, $field);
125
+
126
if ($insert == true || empty ($meta) || $meta === false)
127
$wpdb->query ("INSERT INTO {$wpdb->postmeta} (post_id,meta_key,meta_value) VALUES ('$postid','$field','".$wpdb->escape ($data)."')");
128
else
134
}
135
}
136
locale/cs_CZ.mo ADDED
Binary file
locale/cs_CZ.po ADDED
@@ -0,0 +1,1789 @@
1
+ # Meta-data manager, allowing complete control over meta-data such as keywords/tags, title, description, stylesheets, and other goodies. The data inserted can be static text, or pulled dynamically from the details of the post.
2
+ # Copyright (C) 2007 John Godley
3
+ # This file is distributed under the same license as the HeadSpace2 package.
4
+ # John Godley, http://urbangiraffe.com/, 2007.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: HeadSpace2 3.3.1\n"
9
+ "Report-Msgid-Bugs-To: \n"
10
+ "POT-Creation-Date: 2010-01-23 19:34+0000\n"
11
+ "PO-Revision-Date: 2010-11-02 22:44+0100\n"
12
+ "Last-Translator: Jan Macek <http://www.lefthanded-scissors.com>\n"
13
+ "Language-Team: Jan Macek <jan@maildir.org>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=utf-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "X-Poedit-Language: Czech\n"
18
+ "X-Poedit-Country: CZECH REPUBLIC\n"
19
+ "X-Poedit-SourceCharset: utf-8\n"
20
+
21
+ #: headspace.php:474
22
+ #, php-format
23
+ msgid "%d items were imported from %s"
24
+ msgstr "<strong>%d</strong> importovaných elementů z <strong>%s</strong> "
25
+
26
+ #: models/pager.php:434
27
+ #, php-format
28
+ msgid "%d per-page"
29
+ msgstr "%d na stánce"
30
+
31
+ #: view/admin/version.php:5
32
+ #, php-format
33
+ msgid "%s ago"
34
+ msgstr "před %s"
35
+
36
+ #: view/admin/options.php:7
37
+ #, php-format
38
+ msgid "%s | General Options"
39
+ msgstr "%s | Základní možnosti"
40
+
41
+ #: view/admin/import.php:6
42
+ #, php-format
43
+ msgid "%s | Import"
44
+ msgstr "%s | Import"
45
+
46
+ #: view/admin/page-modules.php:7
47
+ #, php-format
48
+ msgid "%s | Page Modules"
49
+ msgstr " %s | Moduly"
50
+
51
+ #: view/admin/page-settings.php:7
52
+ #, php-format
53
+ msgid "%s | Page Settings"
54
+ msgstr "%s | Nastavení stránek"
55
+
56
+ #: view/admin/site-modules.php:6
57
+ #, php-format
58
+ msgid "%s | Site Modules"
59
+ msgstr "%s | Moduly stránek"
60
+
61
+ #: view/admin/import.php:22
62
+ msgid "(not available in UTW and Simple Tagging)"
63
+ msgstr "(nedostupné v UTW a Simple Tagging)"
64
+
65
+ #: modules/site/page_counts.php:122
66
+ msgid "(set number of posts to 0 for theme default)"
67
+ msgstr "nastavit počet článků na 0 pro standardní motiv"
68
+
69
+ #: modules/site/system-settings.php:88
70
+ msgid "1 hour"
71
+ msgstr "1 hodina"
72
+
73
+ #: modules/site/system-settings.php:87
74
+ msgid "10 minutes"
75
+ msgstr "10 minut"
76
+
77
+ #: modules/site/103bees.php:31
78
+ msgid "103bees"
79
+ msgstr "103bees"
80
+
81
+ #: modules/site/system-settings.php:85
82
+ msgid "30 seconds"
83
+ msgstr "30 sekund"
84
+
85
+ #: models/headspace.php:119
86
+ msgid "404 Page"
87
+ msgstr "404 Page"
88
+
89
+ #: modules/site/system-settings.php:86
90
+ msgid "60 seconds"
91
+ msgstr "60 sekund"
92
+
93
+ #: headspace.php:303
94
+ msgid "<code>wp_footer</code> was not found in <code>footer.php</code> (<a href=\"http://codex.wordpress.org/Theme_Development\">documentation</a>)"
95
+ msgstr "<code>wp_footer</code> nebyl nalezen v <code>footer.php</code> (<a href=\"http://codex.wordpress.org/Theme_Development\">dokumentace</a>)"
96
+
97
+ #: headspace.php:296
98
+ msgid "<code>wp_head</code> was not found in <code>header.php</code> (<a href=\"http://codex.wordpress.org/Hook_Reference/wp_head\">documentation</a>)"
99
+ msgstr "<code>wp_head</code> nebyl nalezen v <code>header.php</code> (<a href=\"http://codex.wordpress.org/Hook_Reference/wp_head\">dokumentace</a>)"
100
+
101
+ #: modules/site/first-time-visitor.php:93
102
+ #, php-format
103
+ msgid "<p>As a new visitor you may want to subscribe to my <a href=\"%s/feed/\">RSS</a> feed.</p>"
104
+ msgstr "<p>Jako nového uživatele by vás mohly zajímat <a href=\"%s/feed/\">RSS</a> novinky.</p>"
105
+
106
+ #: modules/page/tags.php:123
107
+ msgid "<p>Tags: "
108
+ msgstr "<p>Značky: "
109
+
110
+ #: modules/site/piwik.php:211
111
+ msgid "A pause (milliseconds) added when a file is downloaded. Small values may not be tracked"
112
+ msgstr "Pauza (milisekundy) před začátkem stahování souboru. Příliš malé hodnoty budou ignorovány."
113
+
114
+ #: view/admin/head_admin.php:6
115
+ msgid "A problem occured retrieving data from the server. If this persists please check that you have installed the plugin correctly."
116
+ msgstr "Nepodařilo se stáhnout data ze serveru. Pokud problém přetrvává, zkontrolujte instalaci pluginu."
117
+
118
+ #: modules/site/awstats.php:31
119
+ msgid "AWStats JavaScript Tracking"
120
+ msgstr "AWStats JavaScript Tracking"
121
+
122
+ #: modules/site/analytics.php:237
123
+ #: modules/site/feedburner-stats.php:67
124
+ msgid "Account ID"
125
+ msgstr "ID účtu"
126
+
127
+ #: modules/site/apture.php:36
128
+ msgid "Add Apture to all pages"
129
+ msgstr "Přídá Apture na všechny stránky"
130
+
131
+ #: modules/site/103bees.php:36
132
+ msgid "Adds 103bees tracking code to all pages"
133
+ msgstr "Přídá kód 103bees na všechny stránky"
134
+
135
+ #: modules/site/awstats.php:36
136
+ msgid "Adds AWStats JavaScript tracking to all pages (through <code>wp_footer</code>)"
137
+ msgstr "Přidá AWStats JavaScript kód na všechny stánky (v <code>wp_footer</code>)"
138
+
139
+ #: modules/site/crazyegg.php:38
140
+ msgid "Adds CrazyEgg tracking code to all pages"
141
+ msgstr "Přidá CrazyEgg kód na všechny stránky"
142
+
143
+ #: modules/site/analytics.php:44
144
+ msgid "Adds Google Analytic tracking code to all pages (through <code>wp_footer</code>)"
145
+ msgstr "Přídá Google Analytics kód na všechny stránky (pomocí <code>wp_footer</code>)"
146
+
147
+ #: modules/site/google_webmaster.php:35
148
+ msgid "Adds Google Webmaster tracking code to your home page"
149
+ msgstr "Přídá Google Webmaster kód na domovskou stránku"
150
+
151
+ #: modules/site/hittail.php:36
152
+ msgid "Adds HitTail tracking code to all pages"
153
+ msgstr "Přídá HitTail kód na všechny stránky"
154
+
155
+ #: modules/site/microsoft-live.php:35
156
+ msgid "Adds Microsoft Live verification / Bing Webmaster code to your home page"
157
+ msgstr "Přidá ověření Microsoft Live / Bing webmaster kód na domovskou stránku"
158
+
159
+ #: modules/site/mint.php:38
160
+ msgid "Adds Mint tracking code to all pages"
161
+ msgstr "Přídá Mint kód na všechny stránky"
162
+
163
+ #: modules/site/piwik.php:42
164
+ msgid "Adds Piwik tracking code to all pages"
165
+ msgstr "Přídá Piwik kód na všechny stránky"
166
+
167
+ #: modules/site/statcounter.php:40
168
+ msgid "Adds StatCounter tracking code to all pages"
169
+ msgstr "Přídá StatCounter kód na všechny stránky"
170
+
171
+ #: modules/site/yahoo-site-explorer.php:35
172
+ msgid "Adds Yahoo! Site Explorer tracking code to your home page"
173
+ msgstr "Přídá Yahoo! Site Explorer kód na domovskou stránku"
174
+
175
+ #: modules/site/feedburner-stats.php:35
176
+ msgid "Adds appropriate code to your posts to enable FeedBurner Stats Pro"
177
+ msgstr "Přidá odpovídající kód pro použití FeedBurner Stats Pro"
178
+
179
+ #: view/admin/page-modules.php:21
180
+ msgid "Advanced"
181
+ msgstr "Rozšířené"
182
+
183
+ #: modules/page/more_text.php:127
184
+ msgid "Advanced - the regular expression pattern to select the more link from your posts"
185
+ msgstr "Pokročilé - regulární výraz pro odkaz more"
186
+
187
+ #: modules/page/more_text.php:133
188
+ msgid "Advanced - the regular expression replacement text"
189
+ msgstr "Pokročilé - text pro nahrazení regulárního výrazu"
190
+
191
+ #: modules/page/page_title.php:134
192
+ msgid "After"
193
+ msgstr "Po"
194
+
195
+ #: modules/page/page-links.php:218
196
+ msgid "After HTML"
197
+ msgstr "Po HTML"
198
+
199
+ #: modules/site/first-time-visitor.php:138
200
+ msgid "After content"
201
+ msgstr "Po obsahu"
202
+
203
+ #: modules/page/description.php:70
204
+ msgid "All descriptions will be trimmed to this length"
205
+ msgstr "Všechny popisky budou zkráceny na tuto délku"
206
+
207
+ #: modules/import/all-in-one-seo.php:28
208
+ msgid "All-in-one SEO"
209
+ msgstr "All-in-one SEO"
210
+
211
+ #: modules/page/javascript.php:49
212
+ msgid "Allow external JavaScript files to be referenced"
213
+ msgstr "Umožní použití externího JavaScriptu"
214
+
215
+ #: modules/page/page_title.php:115
216
+ msgid "Allow page title to be changed (i.e. the title in the browser window title)"
217
+ msgstr "Umožní změnu značky title"
218
+
219
+ #: modules/page/stylesheet.php:58
220
+ msgid "Allows CSS stylesheets to be added to a page"
221
+ msgstr "Umožní externí CSS styly"
222
+
223
+ #: modules/page/theme.php:74
224
+ msgid "Allows a custom page-specific theme to over-ride the default theme"
225
+ msgstr "Umožní změnu motivu pro jednotlivé stránky"
226
+
227
+ #: modules/page/description.php:59
228
+ msgid "Allows a short description about the page that is used by search engines"
229
+ msgstr "Povolit popisek (snippet) pro vyhledavače."
230
+
231
+ #: modules/page/custom.php:48
232
+ msgid "Allows custom data to be inserted anywhere in your theme using MetaData::custom ()"
233
+ msgstr "Umožní použití vlastních dat skrz MetaData::custom ()"
234
+
235
+ #: modules/page/plugin.php:93
236
+ msgid "Allows disabled plugins to be enabled on specific pages"
237
+ msgstr "Umožní spouštění pluginů na vyžádání."
238
+
239
+ #: modules/page/follow-links.php:113
240
+ msgid "Allows follow/no-follow to be set for various links"
241
+ msgstr "Umožní nastavení follow/no-follow pro jednotlivé odkazy"
242
+
243
+ #: modules/page/keywords.php:66
244
+ msgid "Allows meta keywords to be defined, seperate from tags (if necessary, disable keyword display in the Tags module)"
245
+ msgstr "Umožní přidáni meta keywords (nezávisle na značkách)"
246
+
247
+ #: modules/page/relative-links.php:100
248
+ msgid "Allows options to be set for relative meta links (WP 2.8+)"
249
+ msgstr "Umožní nastavení relativních meta odkazů (WP 2.8+)"
250
+
251
+ #: modules/page/page-links.php:150
252
+ msgid "Allows options to be set for wp_list_pages links"
253
+ msgstr "Umožní nastavení pro odkazy v wp_list_pages"
254
+
255
+ #: modules/page/raw-footer.php:48
256
+ msgid "Allows raw data to be inserted into the page footer"
257
+ msgstr "Umožní neupravená data (raw data) v zápatí stránky"
258
+
259
+ #: modules/page/raw.php:44
260
+ msgid "Allows raw data to be inserted into the page meta section"
261
+ msgstr "Umožní neupravená data (raw data) v meta značkách."
262
+
263
+ #: modules/page/rss_tagline.php:57
264
+ msgid "Allows site RSS description to be changed"
265
+ msgstr "Umožní změnu RSS popisku."
266
+
267
+ #: modules/page/rss_name.php:57
268
+ msgid "Allows site RSS name to be changed"
269
+ msgstr "Umožní změnu RSS názvu stránky."
270
+
271
+ #: modules/page/site_tagline.php:56
272
+ msgid "Allows site description to be changed (i.e. the tagline)"
273
+ msgstr "Umožní změnu sloganu stránky (tagline)."
274
+
275
+ #: modules/page/site_name.php:58
276
+ msgid "Allows site name to be changed (i.e your blog name)"
277
+ msgstr "Umožní změnu jména stránek (jméno blogu)."
278
+
279
+ #: modules/page/tags.php:153
280
+ msgid "Allows tags to be added to pages"
281
+ msgstr "Umožní přidávání značek (tagů) na stránky"
282
+
283
+ #: modules/page/more_text.php:85
284
+ msgid "Allows the 'more' text to be changed"
285
+ msgstr "Umožní změnu kódu '<!--more-->' "
286
+
287
+ #: modules/page/noindex.php:87
288
+ msgid "Allows various meta-robot options to be set to prevent search engines and robots from indexing or following pages"
289
+ msgstr "Umožní značky no-index/no-follow (zabránit indexaci stránky vyhledávacími roboty)"
290
+
291
+ #: modules/site/widgets.php:35
292
+ msgid "Allows you to enable or disable various WordPress Widgets"
293
+ msgstr "Umožní zapnout či vypnout různé WordPress Widgety"
294
+
295
+ #: modules/site/wp_formatting.php:37
296
+ msgid "Allows you to enable or disable various WordPress auto-formatting (including wpautop)"
297
+ msgstr "Umožní zapnout či vypnout WordPress autoformátování (včetně wpautop)."
298
+
299
+ #: view/admin/support.php:28
300
+ msgid "Alternatively, if you are multi-lingual, do consider translating this into another language. All the necessary localisation files are included and I've written a <a href=\"http://urbangiraffe.com/articles/translating-wordpress-themes-and-plugins/\">full guide to the translation process</a>."
301
+ msgstr "Pokud ovládáte více jazyků, můžete nám pomoci přeložit tento plugin. Všechny potřebné soubory jsou přiloženy a existuje návod <a href=\"http://urbangiraffe.com/articles/translating-wordpress-themes-and-plugins/\">pro překládání pluginů</a>."
302
+
303
+ #: modules/site/apture.php:31
304
+ msgid "Apture"
305
+ msgstr "Apture"
306
+
307
+ #: modules/page/follow-links.php:32
308
+ msgid "Archive Links"
309
+ msgstr "Odkazy Archívu"
310
+
311
+ #: models/headspace.php:113
312
+ #: modules/site/page_counts.php:114
313
+ #: modules/site/widgets.php:73
314
+ #: modules/site/widgets.php:74
315
+ msgid "Archives"
316
+ msgstr "Archív"
317
+
318
+ #: view/admin/head_admin.php:5
319
+ msgid "Are you sure you want to merge that tag?"
320
+ msgstr "Opravdu chcete sjednotit tuto značku?"
321
+
322
+ #: view/admin/import.php:25
323
+ msgid "As with anything else that modifies your database you should <strong>backup your data before running an import</strong>. No responsibility is accepted for any kittens that may be killed in the process."
324
+ msgstr "Stejně jako při každé úpravě databáze, doporučujeme <strong>zazálohovat data před spuštěním importu</strong>. Autor nenese odpovědnost za žádné neštěstí na trati."
325
+
326
+ #: models/headspace.php:121
327
+ msgid "Attachment Pages"
328
+ msgstr "Stránky příloh"
329
+
330
+ #: view/admin/help.php:33
331
+ msgid "Attachment caption"
332
+ msgstr "Název přílohy"
333
+
334
+ #: models/headspace.php:117
335
+ msgid "Author Pages"
336
+ msgstr "Stránky autorů"
337
+
338
+ #: modules/site/wp_formatting.php:98
339
+ msgid "Auto-fancy quotes"
340
+ msgstr "Automatické uvozovky"
341
+
342
+ #: modules/site/wp_formatting.php:91
343
+ msgid "Auto-formatting"
344
+ msgstr "Automatické formátování"
345
+
346
+ #: modules/site/wp_formatting.php:105
347
+ msgid "Auto-link"
348
+ msgstr "Automatické linkování"
349
+
350
+ #: modules/page/page_title.php:133
351
+ msgid "Before"
352
+ msgstr "Před"
353
+
354
+ #: modules/page/page-links.php:211
355
+ msgid "Before HTML"
356
+ msgstr "Před HTML"
357
+
358
+ #: modules/site/first-time-visitor.php:137
359
+ msgid "Before content"
360
+ msgstr "Před obsahem"
361
+
362
+ #: modules/site/widgets.php:67
363
+ #: modules/site/widgets.php:68
364
+ msgid "Calendar"
365
+ msgstr "Kalendář"
366
+
367
+ #: view/admin/page-module-edit.php:12
368
+ #: view/admin/page-settings-edit-ajax.php:6
369
+ #: view/admin/site-module-edit.php:18
370
+ msgid "Cancel"
371
+ msgstr "Zpět"
372
+
373
+ #: models/headspace.php:114
374
+ msgid "Categories"
375
+ msgstr "Kategorie"
376
+
377
+ #: modules/page/follow-links.php:33
378
+ msgid "Category Links"
379
+ msgstr "Odkazy Kategorií"
380
+
381
+ #: modules/site/analytics.php:277
382
+ msgid "Change what appears in reports"
383
+ msgstr "Změní obsah reportu"
384
+
385
+ #: modules/page/keywords.php:77
386
+ msgid "Checking this will mean that your tags are also used as keywords and you will not be able to modify keywords independently"
387
+ msgstr "Tato funkce umožní použivat značky (tagy) jako klíčová slova. Nebudete moci nastavit klíčová slova nezávisle."
388
+
389
+ #: modules/site/piwik.php:204
390
+ msgid "Clear to disable download tracking"
391
+ msgstr "Zapne/vypne sledování počtu stažení"
392
+
393
+ #: view/admin/page-settings.php:11
394
+ msgid "Click the page type to change settings. You can enable additional modules to provide more choices."
395
+ msgstr "Kliknutím na typ stránky změníte její nastavení. Umožní použití dalších modulů"
396
+
397
+ #: modules/page/follow-links.php:36
398
+ msgid "Comm. Author Links"
399
+ msgstr "Odkazy autorů komentárů"
400
+
401
+ #: modules/page/follow-links.php:37
402
+ msgid "Comm. Text Links"
403
+ msgstr "Text odkazů komentářů"
404
+
405
+ #: modules/site/system-settings.php:37
406
+ msgid "Configure PHP memory limits, time-outs, and error reporting"
407
+ msgstr "Nastaví pamětové limity PHP, nastavení hlášení chyb a time-outu"
408
+
409
+ #: modules/site/crazyegg.php:33
410
+ msgid "CrazyEgg"
411
+ msgstr "CrazyEgg"
412
+
413
+ #: modules/site/crazyegg.php:117
414
+ msgid "CrazyEgg ID"
415
+ msgstr "CrazyEgg ID"
416
+
417
+ #: modules/page/theme.php:84
418
+ msgid "Current theme"
419
+ msgstr "Aktuální motiv"
420
+
421
+ #: modules/page/custom.php:44
422
+ msgid "Custom data"
423
+ msgstr "Vlastní data"
424
+
425
+ #: modules/site/page_counts.php:38
426
+ msgid "Customise the number of posts shown on the archive and search pages, and decide whether to show full content or the excerpt"
427
+ msgstr "Nastavit počet zobrazovaných článků na stránkách Archivu a Vyhledávání. Nastavit zobrazování celého znění nebo pouze úryvku."
428
+
429
+ #: view/admin/options.php:39
430
+ msgid "Debug"
431
+ msgstr "Debug"
432
+
433
+ #: modules/page/follow-links.php:123
434
+ msgid "Default"
435
+ msgstr "implicitní"
436
+
437
+ #: view/admin/options.php:64
438
+ msgid "Delete HeadSpace"
439
+ msgstr "Smazat HeadSpace"
440
+
441
+ #: modules/page/description.php:88
442
+ msgid "Description"
443
+ msgstr "Popis"
444
+
445
+ #: modules/page/tags.php:188
446
+ msgid "Disable Suggestions"
447
+ msgstr "Vypne doporučení"
448
+
449
+ #: modules/site/disable_visual_editing.php:28
450
+ msgid "Disable Visual Editing"
451
+ msgstr "Vypne vizuální editaci"
452
+
453
+ #: modules/site/widgets.php:30
454
+ msgid "Disable WordPress Widgets"
455
+ msgstr "Vypne WordPress Widgets"
456
+
457
+ #: modules/site/disable_visual_editing.php:33
458
+ msgid "Disable visual editing"
459
+ msgstr "Vypne vizuální editaci"
460
+
461
+ #: view/admin/page-modules.php:32
462
+ msgid "Disabled"
463
+ msgstr "Vypnuto"
464
+
465
+ #: modules/page/page-links.php:204
466
+ msgid "Display"
467
+ msgstr "Display"
468
+
469
+ #: modules/site/first-time-visitor.php:39
470
+ msgid "Display a message for first time visitors (based upon idea from Seth Godin)"
471
+ msgstr "Zobrazí zprávu při první návštěvě uživatele (nápad Setha Godina)"
472
+
473
+ #: modules/site/first-time-visitor.php:134
474
+ msgid "Display position"
475
+ msgstr "Display position"
476
+
477
+ #: models/pager.php:442
478
+ #, php-format
479
+ msgid "Displaying %s&#8211;%s of %s"
480
+ msgstr "Zobrazuji %s&#8211;%s z %s"
481
+
482
+ #: modules/page/stylesheet.php:101
483
+ msgid "Do not output CSS"
484
+ msgstr "Nevygeneruje CSS"
485
+
486
+ #: modules/site/analytics.php:281
487
+ msgid "Domain Name"
488
+ msgstr "Doménové jméno"
489
+
490
+ #: view/admin/edit_category.php:5
491
+ msgid "Edit Category &raquo;"
492
+ msgstr "Edituj kategorii &raquo;"
493
+
494
+ #: view/admin/options.php:43
495
+ msgid "Enable debug option"
496
+ msgstr "Povolit debug mód"
497
+
498
+ #: modules/page/more_text.php:118
499
+ msgid "Enable on excerpts"
500
+ msgstr "Povolit na úryvcích"
501
+
502
+ #: modules/site/widgets.php:156
503
+ msgid "Enabled Widgets"
504
+ msgstr "Povolit Widgety"
505
+
506
+ #: modules/page/relative-links.php:124
507
+ msgid "End"
508
+ msgstr "Konec"
509
+
510
+ #: modules/site/first-time-visitor.php:131
511
+ msgid "Enter 0 for always"
512
+ msgstr "Vložte 0 pro aktivaci"
513
+
514
+ #: modules/site/google_webmaster.php:70
515
+ msgid "Enter Google Webmaster tracking code."
516
+ msgstr "Vložte Google Webmaster kód."
517
+
518
+ #: modules/site/microsoft-live.php:70
519
+ msgid "Enter Microsoft Live verification code."
520
+ msgstr "Vložte Microsoft Live ověřovací kód."
521
+
522
+ #: modules/site/yahoo-site-explorer.php:70
523
+ msgid "Enter Yahoo! Site Explorer tracking code."
524
+ msgstr "Vložte Yahoo! Site Explorer kód."
525
+
526
+ #: modules/site/analytics.php:291
527
+ msgid "Enter any additional Google Analytics code"
528
+ msgstr "Vložte dodatečný kód Google Analytics."
529
+
530
+ #: modules/site/piwik.php:218
531
+ msgid "Enter each host on a separate line"
532
+ msgstr "Vložte každé jméno na nový řádek"
533
+
534
+ #: modules/site/mint.php:124
535
+ msgid "Enter the URL of your Mint installation (i.e. <code>/mint/</code>)."
536
+ msgstr "Vložte relativní cestu k instalaci Mint (např. <code>/mint/</code>)."
537
+
538
+ #: modules/site/analytics.php:270
539
+ msgid "Enter the URL you want outbound links tracked to"
540
+ msgstr "URL stránek, kde chcete sledovat odchozí odkazy"
541
+
542
+ #: modules/site/analytics.php:240
543
+ msgid "Enter the full Google JavaScript tracking code, or just the <code>_uacct</code> number."
544
+ msgstr "Vložte Google JavaScript kód či pouze identifikační číslo <code>_uacct</code>."
545
+
546
+ #: modules/site/hittail.php:114
547
+ msgid "Enter the full JavaScript tracking code as provided by HitTail."
548
+ msgstr "Vložte HitTail JavaScript kód."
549
+
550
+ #: modules/site/103bees.php:114
551
+ msgid "Enter the full JavaScript tracking code as shown on your 103bees account page."
552
+ msgstr "Vložte 103bees JavaScript kód či identifikační číslo."
553
+
554
+ #: modules/site/crazyegg.php:120
555
+ msgid "Enter your full <a href=\"http://crazyegg.com/pages/instructions\">CrazyEgg code</a>"
556
+ msgstr "Vložte své plné <a href=\"http://crazyegg.com/pages/instructions\">CrazyEgg ID</a>"
557
+
558
+ #: modules/site/apture.php:114
559
+ msgid "Enter your site token."
560
+ msgstr "Vložte klíč vaší stránky."
561
+
562
+ #: modules/site/103bees.php:121
563
+ #: modules/site/analytics.php:256
564
+ #: modules/site/apture.php:121
565
+ #: modules/site/awstats.php:124
566
+ #: modules/site/crazyegg.php:127
567
+ #: modules/site/hittail.php:121
568
+ #: modules/site/mint.php:131
569
+ #: modules/site/piwik.php:225
570
+ #: modules/site/statcounter.php:158
571
+ msgid "Everyone"
572
+ msgstr "Všichni"
573
+
574
+ #: modules/page/page-links.php:171
575
+ msgid "Exclude from list"
576
+ msgstr "Ignorovat"
577
+
578
+ #: modules/site/feedburner-stats.php:30
579
+ msgid "Feedburner Stats Pro"
580
+ msgstr "Feedburner Stats Pro"
581
+
582
+ #: modules/page/custom.php:85
583
+ msgid "Fields"
584
+ msgstr "Pole"
585
+
586
+ #: view/admin/mass_edit.php:29
587
+ msgid "Filter"
588
+ msgstr "Filtr"
589
+
590
+ #: modules/site/first-time-visitor.php:34
591
+ msgid "First Time Visitor"
592
+ msgstr "Nový návštěvník"
593
+
594
+ #: modules/page/follow-links.php:121
595
+ msgid "Follow"
596
+ msgstr "Follow"
597
+
598
+ #: modules/page/follow-links.php:109
599
+ msgid "Follow Links"
600
+ msgstr "Follow odkazy"
601
+
602
+ #: modules/page/tags.php:171
603
+ msgid "Force tags in pages"
604
+ msgstr "Zobrazovat na stánkách značky"
605
+
606
+ #: modules/page/tags.php:161
607
+ msgid "Force tags in posts"
608
+ msgstr "Zobrazovat značky v článcích"
609
+
610
+ #: modules/page/page_title.php:139
611
+ msgid "Force title rewrite"
612
+ msgstr "Vynutit přepis značky title"
613
+
614
+ #: modules/site/frame-breaker.php:32
615
+ msgid "Frame Breaker"
616
+ msgstr "Frame Breaker"
617
+
618
+ #: models/headspace.php:96
619
+ msgid "Front Page"
620
+ msgstr "Hlavní strana"
621
+
622
+ #: models/headspace.php:94
623
+ msgid "Global Settings"
624
+ msgstr "Globální nastavení"
625
+
626
+ #: modules/site/analytics.php:39
627
+ msgid "Google Analytics"
628
+ msgstr "Google Analytics"
629
+
630
+ #: modules/site/google-ad-wrap.php:28
631
+ msgid "Google Section Targeting"
632
+ msgstr "Google Section Targeting - zaměřování sekcí"
633
+
634
+ #: modules/site/google_webmaster.php:30
635
+ msgid "Google Webmaster"
636
+ msgstr "Google Webmaster"
637
+
638
+ #: modules/page/page-links.php:221
639
+ msgid "HTML added to end of list"
640
+ msgstr "HTML přidáno na konec listu"
641
+
642
+ #: modules/page/page-links.php:214
643
+ msgid "HTML added to start of list"
644
+ msgstr "HTML přidáno na začátek listu"
645
+
646
+ #: modules/import/head_meta_description.php:28
647
+ msgid "Head META Description"
648
+ msgstr "Head META Description"
649
+
650
+ #: headspace.php:99
651
+ #: headspace.php:151
652
+ #: headspace.php:483
653
+ #: headspace.php:484
654
+ #: view/admin/edit_quick.php:1
655
+ #: view/admin/edit_quick.php:2
656
+ msgid "HeadSpace"
657
+ msgstr "HeadSpace"
658
+
659
+ #: headspace.php:574
660
+ msgid "HeadSpace Bug Tracker"
661
+ msgstr "HeadSpace Bug Tracker"
662
+
663
+ #: headspace.php:572
664
+ msgid "HeadSpace Documentation"
665
+ msgstr "HeadSpace dokumentace"
666
+
667
+ #: headspace.php:575
668
+ msgid "HeadSpace FAQ"
669
+ msgstr "HeadSpace FAQ"
670
+
671
+ #: headspace.php:571
672
+ msgid "HeadSpace Help"
673
+ msgstr "HeadSpace Nápověda"
674
+
675
+ #: view/admin/edit_post.php:7
676
+ msgid "HeadSpace Meta data"
677
+ msgstr "HeadSpace Meta data"
678
+
679
+ #: view/admin/edit_category.php:1
680
+ msgid "HeadSpace Settings"
681
+ msgstr "HeadSpace nastavení"
682
+
683
+ #: headspace.php:573
684
+ msgid "HeadSpace Support Forum"
685
+ msgstr "HeadSpace Support Fórum"
686
+
687
+ #: headspace.php:440
688
+ msgid "HeadSpace has been removed"
689
+ msgstr "HeadSpace byl odstraněn"
690
+
691
+ #: view/admin/support.php:7
692
+ msgid "HeadSpace has required a great deal of time and effort to develop. If it's been useful to you then you can support this development by <strong>making a small donation of $12</strong>. This will act as an incentive for me to carry on developing it, providing countless hours of support, and including any enhancements that are suggested."
693
+ msgstr "Vytvoření Headspace stálo značné úsilí a mnoho času. Pokud vám Headspace příjde užitečné, <strong>zvažte dobrovolný dar ($12)</strong>."
694
+
695
+ #: modules/import/headspace_tags.php:28
696
+ msgid "HeadSpace tags (convert to WordPress 2.3 tags)"
697
+ msgstr "HeadSpace (zkonvertuj na WordPress 2.3 značky)"
698
+
699
+ #: view/admin/support.php:5
700
+ msgid "HeadSpace | Support"
701
+ msgstr "HeadSpace | Podpora"
702
+
703
+ #: view/admin/version.php:2
704
+ msgid "HeadSpace2 News"
705
+ msgstr "HeadSpace2 Zprávy"
706
+
707
+ #: modules/site/hittail.php:31
708
+ msgid "HitTail"
709
+ msgstr "HitTail"
710
+
711
+ #: models/headspace.php:95
712
+ msgid "Home Page"
713
+ msgstr "Hlavní strana"
714
+
715
+ #: modules/site/piwik.php:215
716
+ msgid "Host aliases"
717
+ msgstr "Host aliases"
718
+
719
+ #: modules/page/page-links.php:207
720
+ msgid "How a link is displayed. Use %link% for the link itself"
721
+ msgstr "Zobrazení odkazu. Použijte %link% pro odkaz samotný"
722
+
723
+ #: view/admin/options.php:35
724
+ msgid "I'm a nice person and I have helped support the author of this plugin"
725
+ msgstr "Jsem fajn člověk a pomohl jsem autorovi tohoto pluginu"
726
+
727
+ #: modules/site/piwik.php:183
728
+ msgid "If you are monitoring multiple sites this allows you to identify each"
729
+ msgstr "Pokud sledujete více domén, toto umožní jejich vzájemné rozlišení"
730
+
731
+ #: modules/site/first-time-visitor.php:143
732
+ msgid "Ignore Bots"
733
+ msgstr "Ignoruj roboty"
734
+
735
+ #: view/admin/import.php:21
736
+ #: view/admin/submenu.php:7
737
+ msgid "Import"
738
+ msgstr "Import"
739
+
740
+ #: view/admin/import.php:22
741
+ msgid "Import and remove original data"
742
+ msgstr "Importuj a odstraň původní data"
743
+
744
+ #: modules/page/tags.php:191
745
+ msgid "In case of low memory issues"
746
+ msgstr "Při nedostatku paměti"
747
+
748
+ #: modules/site/analytics.php:298
749
+ msgid "Include Google Analytics on the WordPress login page"
750
+ msgstr "Přídá Goog