404page – your smart custom 404 error page - Version 2.0

Version Description

Version 2.0 is more or less a completely new development and a big step forward. Read more

Download this release

Release Info

Developer smartware.cc
Plugin Icon 128x128 404page – your smart custom 404 error page
Version 2.0
Comparing to
See all releases

Code changes from version 1.4 to 2.0

404page.php CHANGED
@@ -2,14 +2,15 @@
2
  /*
3
  Plugin Name: 404page
4
  Plugin URI: http://smartware.cc/free-wordpress-plugins/404page/
5
- Description: Custom 404 the easy way! Set any page as custom 404 error page. No coding needed. Works with every Theme.
6
- Version: 1.4
7
- Author: smartware.cc
8
  Author URI: http://smartware.cc
 
9
  License: GPL2
10
  */
11
 
12
- /* Copyright 2013-2015 smartware.cc (email : sw@smartware.cc)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License, version 2, as
@@ -25,6 +26,10 @@ License: GPL2
25
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  */
27
 
 
 
 
 
28
  if ( ! defined( 'WPINC' ) ) {
29
  die;
30
  }
@@ -38,7 +43,7 @@ class Smart404Page {
38
  public function __construct() {
39
  $this->plugin_name = '404page';
40
  $this->plugin_slug = '404page';
41
- $this->version = '1.4';
42
  $this->get_settings();
43
  $this->init();
44
  }
@@ -50,35 +55,71 @@ class Smart404Page {
50
  }
51
 
52
  private function init() {
53
- add_action( 'init', array( $this, 'add_text_domains' ) );
54
- add_filter( '404_template', array( $this, 'show404' ) );
55
- add_action( 'admin_init', array( $this, 'admin_init' ) );
56
- add_action( 'admin_menu', array( $this, 'admin_menu' ) );
57
- add_action( 'admin_head', array( $this, 'admin_css' ) );
58
- add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'add_settings_link' ) );
 
 
 
 
59
  }
60
 
61
- // redirect 404 page
62
- function show404( $template ) {
63
  global $wp_query;
64
- $template404 = $template;
 
65
  $pageid = $this->settings['404page_page_id'];
66
- if ( $pageid > 0 ) {
67
- $wp_query = null;
68
- $wp_query = new WP_Query();
69
- $wp_query->query( 'page_id=' . $pageid );
70
- $wp_query->the_post();
71
- $template404 = get_page_template();
72
- rewind_posts();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  }
74
- return $template404;
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  }
76
 
77
- // init the admin section
78
  function admin_init() {
79
- add_settings_section( '404page-settings', '', array( $this, 'admin_section_title' ), '404page_settings_section' );
 
80
  register_setting( '404page_settings', '404page_page_id' );
81
- add_settings_field( '404page_settings_404page', __( 'Page to be displayed as 404 page', '404page' ) , array( $this, 'admin_404page' ), '404page_settings_section', '404page-settings', array( 'label_for' => '404page_page_id' ) );
82
  }
83
 
84
  // add css
@@ -86,7 +127,7 @@ class Smart404Page {
86
  echo '<style type="text/css">#select404page" {width: 100%}</style>';
87
  }
88
 
89
- // handle the settings field
90
  function admin_404page() {
91
  if ( $this->settings['404page_page_id'] < 0 ) {
92
  echo '<div class="error form-invalid" style="line-height: 3em">' . __( 'The page you have selected as 404 page does not exist anymore. Please choose another page.', '404page' ) . '</div>';
@@ -94,14 +135,9 @@ class Smart404Page {
94
  wp_dropdown_pages( array( 'name' => '404page_page_id', 'id' => 'select404page', 'echo' => 1, 'show_option_none' => __( '&mdash; NONE (WP default 404 page) &mdash;', '404page'), 'option_none_value' => '0', 'selected' => $this->settings['404page_page_id'] ) );
95
  }
96
 
97
- // echo title for settings section
98
- function admin_section_title() {
99
- echo '<p><strong>' . __( 'Settings' ) . '</strong>&nbsp;<a class="dashicons dashicons-editor-help" href="http://smartware.cc/docs/404page/"></a></p><hr />';
100
- }
101
-
102
  // adds the options page to admin menu
103
  function admin_menu() {
104
- $page_handle = add_options_page( __( '404 Error Page', "404page" ), __( '404 Error Page', '404page' ), 'manage_options', '404pagesettings', array( $this, 'admin_page' ) );
105
  add_action( 'admin_print_scripts-' . $page_handle, array( $this, 'admin_js' ) );
106
  }
107
 
@@ -118,17 +154,14 @@ class Smart404Page {
118
  ?>
119
  <div class="wrap">
120
  <?php screen_icon(); ?>
121
- <h2><?php _e('404 Error Page', '404page'); ?></h2>
 
 
122
  <div id="poststuff">
123
  <div id="post-body" class="metabox-holder columns-2">
124
  <div id="post-body-content">
125
  <div class="meta-box-sortables ui-sortable">
126
  <form method="post" action="options.php">
127
- <div class="postbox">
128
- <div class="inside">
129
- <p style="line-height: 32px; padding-left: 40px; background-image: url(<?php echo plugins_url( 'pluginicon.png', __FILE__ ); ?>); background-repeat: no-repeat;">404page Version <?php echo $this->version; ?></p>
130
- </div>
131
- </div>
132
  <div class="postbox">
133
  <div class="inside">
134
  <?php
@@ -164,37 +197,31 @@ class Smart404Page {
164
  return $pageid;
165
  }
166
 
167
- // addd text domains
168
- function add_text_domains() {
169
- load_plugin_textdomain( '404page_general', false, basename( dirname( __FILE__ ) ) . '/languages' );
170
- load_plugin_textdomain( '404page', false, basename( dirname( __FILE__ ) ) . '/languages' );
171
- }
172
-
173
  // show meta boxes
174
  function show_meta_boxes() {
175
  ?>
176
  <div id="postbox-container-1" class="postbox-container">
177
  <div class="meta-box-sortables">
178
  <div class="postbox">
179
- <h3><span><?php _e( 'Like this Plugin?', '404page_general' ); ?></span></h3>
180
  <div class="inside">
181
  <ul>
182
- <li><div class="dashicons dashicons-wordpress"></div>&nbsp;&nbsp;<a href="https://wordpress.org/plugins/<?php echo $this->plugin_slug; ?>/"><?php _e( 'Please rate the plugin', '404page_general' ); ?></a></li>
183
- <li><div class="dashicons dashicons-admin-home"></div>&nbsp;&nbsp;<a href="http://smartware.cc/free-wordpress-plugins/<?php echo $this->plugin_slug; ?>/"><?php _e( 'Plugin homepage', '404page_general'); ?></a></li>
184
- <li><div class="dashicons dashicons-admin-home"></div>&nbsp;&nbsp;<a href="http://smartware.cc/"><?php _e( 'Author homepage', '404page_general' );?></a></li>
185
- <li><div class="dashicons dashicons-googleplus"></div>&nbsp;&nbsp;<a href="http://g.smartware.cc/"><?php _e( 'Authors Google+ Page', '404page_general' ); ?></a></li>
186
- <li><div class="dashicons dashicons-facebook-alt"></div>&nbsp;&nbsp;<a href="http://f.smartware.cc/"><?php _e( 'Authors facebook Page', '404page_general' ); ?></a></li>
187
  </ul>
188
  </div>
189
  </div>
190
  <div class="postbox">
191
- <h3><span><?php _e( 'Need help?', '404page_general' ); ?></span></h3>
192
  <div class="inside">
193
  <ul>
194
- <li><div class="dashicons dashicons-book-alt"></div>&nbsp;&nbsp;<a href="http://smartware.cc/docs/<?php echo $this->plugin_slug; ?>/"><?php _e( 'Take a look at the Plugin Doc', '404page_general' ); ?></a></li>
195
- <li><div class="dashicons dashicons-wordpress"></div>&nbsp;&nbsp;<a href="http://wordpress.org/plugins/<?php echo $this->plugin_slug; ?>/faq/"><?php _e( 'Take a look at the FAQ section', '404page_general' ); ?></a></li>
196
- <li><div class="dashicons dashicons-wordpress"></div>&nbsp;&nbsp;<a href="http://wordpress.org/support/plugin/<?php echo $this->plugin_slug; ?>/"><?php _e( 'Take a look at the Support section', '404page_general'); ?></a></li>
197
- <li><div class="dashicons dashicons-admin-comments"></div>&nbsp;&nbsp;<a href="http://smartware.cc/contact/"><?php _e( 'Feel free to contact the Author', '404page_general' ); ?></a></li>
198
  </ul>
199
  </div>
200
  </div>
@@ -205,7 +232,7 @@ class Smart404Page {
205
 
206
  // add a link to settings page in plugin list
207
  function add_settings_link( $links ) {
208
- return array_merge( $links, array( '<a href="' . admin_url( 'options-general.php?page=404pagesettings' ) . '">' . __( 'Settings' ) . '</a>') );
209
  }
210
 
211
  }
2
  /*
3
  Plugin Name: 404page
4
  Plugin URI: http://smartware.cc/free-wordpress-plugins/404page/
5
+ Description: Custom 404 the easy way! Set any page as custom 404 error page. No coding needed. Works with (almost) every Theme.
6
+ Version: 2.0
7
+ Author: smartware.cc, Peter's Plugins
8
  Author URI: http://smartware.cc
9
+ Text Domain: 404page
10
  License: GPL2
11
  */
12
 
13
+ /* Copyright 2016 Peter Raschendorfer (email : sw@smartware.cc)
14
 
15
  This program is free software; you can redistribute it and/or modify
16
  it under the terms of the GNU General Public License, version 2, as
26
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
  */
28
 
29
+
30
+ /* As of Version 2.0 the 404page Plugin no longer uses the 404_template filter, because this does not work with WPML, bbPress and Customizr */
31
+ /* The posts_results filter is the only solution that works for all of them */
32
+
33
  if ( ! defined( 'WPINC' ) ) {
34
  die;
35
  }
43
  public function __construct() {
44
  $this->plugin_name = '404page';
45
  $this->plugin_slug = '404page';
46
+ $this->version = '2.0';
47
  $this->get_settings();
48
  $this->init();
49
  }
55
  }
56
 
57
  private function init() {
58
+
59
+ if ( !is_admin() ) {
60
+ add_filter( 'posts_results', array( $this, 'show404' ), 999 );
61
+ } else {
62
+ add_action( 'admin_init', array( $this, 'admin_init' ) );
63
+ add_action( 'admin_menu', array( $this, 'admin_menu' ) );
64
+ add_action( 'admin_head', array( $this, 'admin_css' ) );
65
+ add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'add_settings_link' ) );
66
+ }
67
+
68
  }
69
 
70
+ // redirect 404 page - compatibility mode - introduced in version 2.0
71
+ function show404( $posts ) {
72
  global $wp_query;
73
+ // remove the filter so we handle only the first query - no custom queries
74
+ remove_filter( 'posts_results', array( $this, 'show404' ), 999 );
75
  $pageid = $this->settings['404page_page_id'];
76
+ if ( 0 != $pageid ) {
77
+ if ( empty( $posts ) && is_main_query() && !is_robots() && !is_home() && !is_feed() && !is_search() &&( !defined('DOING_AJAX') || !DOING_AJAX ) ) {
78
+ // show the 404 page
79
+ if ( defined( 'ICL_SITEPRESS_VERSION' ) ) {
80
+ // WPML is active
81
+ $pageid = apply_filters( 'wpml_object_id', $pageid, 'page', true );
82
+ }
83
+ $posts[] = get_post( $pageid );
84
+ add_action( 'wp', array( $this, 'do_404_header' ) );
85
+ add_filter( 'body_class', array( $this, 'add_404_body_class' ) );
86
+ } elseif ( 1 == count( $posts ) && 'page' == $posts[0]->post_type ) {
87
+ // Do a 404 if the 404 page is opened directly
88
+ $curpageid = $posts[0]->ID;
89
+ if ( defined( 'ICL_SITEPRESS_VERSION' ) ) {
90
+ // WPML is active - get the post ID of the default language
91
+ global $sitepress;
92
+ $curpageid = apply_filters( 'wpml_object_id', $curpageid, 'page', $sitepress->get_default_language() );
93
+ $pageid = apply_filters( 'wpml_object_id', $pageid, 'page', $sitepress->get_default_language() );
94
+ }
95
+ if ( $pageid == $curpageid ) {
96
+ add_action( 'wp', array( $this, 'do_404_header' ) );
97
+ add_filter( 'body_class', array( $this, 'add_404_body_class' ) );
98
+ }
99
+ }
100
  }
101
+ return $posts;
102
+ }
103
+
104
+ function do_404_header() {
105
+ // remove the action so we handle only the first query - no custom queries
106
+ remove_action( 'wp', array( $this, 'do_404_header' ) );
107
+ status_header( 404 );
108
+ nocache_headers();
109
+ }
110
+
111
+ function add_404_body_class( $classes ) {
112
+ // adds the error404 class to the body classes
113
+ $classes[] = 'error404';
114
+ return $classes;
115
  }
116
 
117
+ // init the admin section
118
  function admin_init() {
119
+ load_plugin_textdomain( '404page' );
120
+ add_settings_section( '404page-settings', null, null, '404page_settings_section' );
121
  register_setting( '404page_settings', '404page_page_id' );
122
+ add_settings_field( '404page_settings_404page', __( 'Page to be displayed as 404 page', '404page' ) . '&nbsp;<a class="dashicons dashicons-editor-help" href="http://smartware.cc/docs/404page/"></a>' , array( $this, 'admin_404page' ), '404page_settings_section', '404page-settings', array( 'label_for' => '404page_page_id' ) );
123
  }
124
 
125
  // add css
127
  echo '<style type="text/css">#select404page" {width: 100%}</style>';
128
  }
129
 
130
+ // handle the settings field page id
131
  function admin_404page() {
132
  if ( $this->settings['404page_page_id'] < 0 ) {
133
  echo '<div class="error form-invalid" style="line-height: 3em">' . __( 'The page you have selected as 404 page does not exist anymore. Please choose another page.', '404page' ) . '</div>';
135
  wp_dropdown_pages( array( 'name' => '404page_page_id', 'id' => 'select404page', 'echo' => 1, 'show_option_none' => __( '&mdash; NONE (WP default 404 page) &mdash;', '404page'), 'option_none_value' => '0', 'selected' => $this->settings['404page_page_id'] ) );
136
  }
137
 
 
 
 
 
 
138
  // adds the options page to admin menu
139
  function admin_menu() {
140
+ $page_handle = add_theme_page ( __( '404 Error Page', "404page" ), __( '404 Error Page', '404page' ), 'manage_options', '404pagesettings', array( $this, 'admin_page' ) );
141
  add_action( 'admin_print_scripts-' . $page_handle, array( $this, 'admin_js' ) );
142
  }
143
 
154
  ?>
155
  <div class="wrap">
156
  <?php screen_icon(); ?>
157
+ <h2 style="min-height: 32px; line-height: 32px; padding-left: 40px; background-image: url(<?php echo plugins_url( 'pluginicon.png', __FILE__ ); ?>); background-repeat: no-repeat; background-position: left center"><a href="http://smartware.cc/free-wordpress-plugins/hashtagger/">404page</a> <?php echo __( 'Settings', '404page' ); ?></h2>
158
+ <hr />
159
+ <p>Plugin Version: <?php echo $this->version; ?></p>
160
  <div id="poststuff">
161
  <div id="post-body" class="metabox-holder columns-2">
162
  <div id="post-body-content">
163
  <div class="meta-box-sortables ui-sortable">
164
  <form method="post" action="options.php">
 
 
 
 
 
165
  <div class="postbox">
166
  <div class="inside">
167
  <?php
197
  return $pageid;
198
  }
199
 
 
 
 
 
 
 
200
  // show meta boxes
201
  function show_meta_boxes() {
202
  ?>
203
  <div id="postbox-container-1" class="postbox-container">
204
  <div class="meta-box-sortables">
205
  <div class="postbox">
206
+ <h3><span><?php _e( 'Like this Plugin?', '404page' ); ?></span></h3>
207
  <div class="inside">
208
  <ul>
209
+ <li><div class="dashicons dashicons-wordpress"></div>&nbsp;&nbsp;<a href="https://wordpress.org/plugins/<?php echo $this->plugin_slug; ?>/"><?php _e( 'Please rate the plugin', '404page' ); ?></a></li>
210
+ <li><div class="dashicons dashicons-admin-home"></div>&nbsp;&nbsp;<a href="http://smartware.cc/free-wordpress-plugins/<?php echo $this->plugin_slug; ?>/"><?php _e( 'Plugin homepage', '404page'); ?></a></li>
211
+ <li><div class="dashicons dashicons-admin-home"></div>&nbsp;&nbsp;<a href="http://smartware.cc/"><?php _e( 'Author homepage', '404page' );?></a></li>
212
+ <li><div class="dashicons dashicons-googleplus"></div>&nbsp;&nbsp;<a href="http://g.smartware.cc/"><?php _e( 'Authors Google+ Page', '404page' ); ?></a></li>
213
+ <li><div class="dashicons dashicons-facebook-alt"></div>&nbsp;&nbsp;<a href="http://f.smartware.cc/"><?php _e( 'Authors facebook Page', '404page' ); ?></a></li>
214
  </ul>
215
  </div>
216
  </div>
217
  <div class="postbox">
218
+ <h3><span><?php _e( 'Need help?', '404page' ); ?></span></h3>
219
  <div class="inside">
220
  <ul>
221
+ <li><div class="dashicons dashicons-book-alt"></div>&nbsp;&nbsp;<a href="http://smartware.cc/docs/<?php echo $this->plugin_slug; ?>/"><?php _e( 'Take a look at the Plugin Doc', '404page' ); ?></a></li>
222
+ <li><div class="dashicons dashicons-wordpress"></div>&nbsp;&nbsp;<a href="http://wordpress.org/plugins/<?php echo $this->plugin_slug; ?>/faq/"><?php _e( 'Take a look at the FAQ section', '404page' ); ?></a></li>
223
+ <li><div class="dashicons dashicons-wordpress"></div>&nbsp;&nbsp;<a href="http://wordpress.org/support/plugin/<?php echo $this->plugin_slug; ?>/"><?php _e( 'Take a look at the Support section', '404page'); ?></a></li>
224
+ <li><div class="dashicons dashicons-admin-comments"></div>&nbsp;&nbsp;<a href="http://smartware.cc/contact/"><?php _e( 'Feel free to contact the Author', '404page' ); ?></a></li>
225
  </ul>
226
  </div>
227
  </div>
232
 
233
  // add a link to settings page in plugin list
234
  function add_settings_link( $links ) {
235
+ return array_merge( $links, array( '<a href="' . admin_url( 'themes.php?page=404pagesettings' ) . '">' . __( 'Settings', '404page' ) . '</a>') );
236
  }
237
 
238
  }
languages/404page-de_DE.mo DELETED
Binary file
languages/404page-de_DE.po DELETED
@@ -1,37 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: 404page\n"
4
- "POT-Creation-Date: 2014-05-02 14:12+0100\n"
5
- "PO-Revision-Date: 2015-08-05 17:44+0100\n"
6
- "Last-Translator: smartware.cc <sw@smartware.cc>\n"
7
- "Language-Team: smartware.cc <sw@smartware.cc>\n"
8
- "Language: de_DE\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.8.1\n"
13
- "X-Poedit-Basepath: .\n"
14
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
- "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Poedit-KeywordsList: __;_e\n"
17
- "X-Poedit-SearchPath-0: C:\\Users\\rado\\Google Drive\\web\\websites"
18
- "\\df_webserver\\webseiten\\dev.smartware.cc\\wp-content\\plugins\\404page\n"
19
-
20
- msgid "404 Error Page"
21
- msgstr "404 Fehler Seite"
22
-
23
- msgid "Page to be displayed as 404 page"
24
- msgstr "Seite, die als 404 Seite angezeigt werden soll"
25
-
26
- msgid "&mdash; NONE (WP default 404 page) &mdash;"
27
- msgstr "&mdash; KEINE (WP Standard 404 Seite) &mdash;"
28
-
29
- msgid ""
30
- "The page you have selected as 404 page does not exist anymore. Please choose "
31
- "another page."
32
- msgstr ""
33
- "Die Seite, die als 404 Seite ausgew&auml;hlt wurde, exisitiert nicht mehr. "
34
- "Bitte w&auml;hle eine andere Seite."
35
-
36
- msgid "Edit Page"
37
- msgstr "Seite bearbeiten"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/404page-es_ES.mo DELETED
Binary file
languages/404page-es_ES.po DELETED
@@ -1,34 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: 404page\n"
4
- "POT-Creation-Date: 2014-05-02 14:12+0100\n"
5
- "PO-Revision-Date: 2015-01-12 16:45+0100\n"
6
- "Last-Translator: smartware.cc <sw@smartware.cc>\n"
7
- "Language-Team: CosaDeMandinga.com.ar <sw@smartware.cc>\n"
8
- "Language: es_ES\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.7.1\n"
13
- "X-Poedit-Basepath: .\n"
14
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
- "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Poedit-KeywordsList: __;_e\n"
17
- "X-Poedit-SearchPath-0: C:\\Users\\rado\\Google Drive\\web\\websites"
18
- "\\df_webserver\\webseiten\\dev.smartware.cc\\wp-content\\plugins\\404page\n"
19
-
20
- msgid "404 Error Page"
21
- msgstr "P&aacute;gina de Error 404"
22
-
23
- msgid "Page to be displayed as 404 page"
24
- msgstr "P&aacute;gina que ser&aacute; mostrada como pagina de Error 404"
25
-
26
- msgid "&mdash; NONE (WP default 404 page) &mdash;"
27
- msgstr "&mdash; NINGUNA (P&aacute;gina 404 est&aacute;ndar de WP) &mdash;"
28
-
29
- msgid ""
30
- "The page you have selected as 404 page does not exist anymore. Please choose "
31
- "another page."
32
- msgstr ""
33
- "La p&aacute;gina que ha seleccionado como la p&aacute;gina de Error 404 ya "
34
- "no existe. Por favor elija otra p&aacute;gina."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/404page-pt_PT.mo DELETED
Binary file
languages/404page-pt_PT.po DELETED
@@ -1,34 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: 404page\n"
4
- "POT-Creation-Date: 2014-05-02 14:12+0100\n"
5
- "PO-Revision-Date: 2015-06-23 17:07-0000\n"
6
- "Last-Translator: smartware.cc <sw@smartware.cc>\n"
7
- "Language-Team: Pedro Pina <lagentprovocateur@gmail.com>\n"
8
- "Language: pt\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.7.3\n"
13
- "X-Poedit-Basepath: .\n"
14
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
- "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Poedit-KeywordsList: __;_e\n"
17
- "X-Poedit-SearchPath-0: C:\\Users\\rado\\Google Drive\\web\\websites"
18
- "\\df_webserver\\webseiten\\dev.smartware.cc\\wp-content\\plugins\\404page\n"
19
-
20
- msgid "404 Error Page"
21
- msgstr "Página de Erro 404"
22
-
23
- msgid "Page to be displayed as 404 page"
24
- msgstr "Página a ser exibida como uma página 404"
25
-
26
- msgid "&mdash; NONE (WP default 404 page) &mdash;"
27
- msgstr "&mdash; NENHUMA (Página 404 standard do WP) &mdash;"
28
-
29
- msgid ""
30
- "The page you have selected as 404 page does not exist anymore. Please choose "
31
- "another page."
32
- msgstr ""
33
- "A página que selecionou como página 404 não existe. Por favor, escolha outra "
34
- "página."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/404page-sr_RS.mo DELETED
Binary file
languages/404page-sr_RS.po DELETED
@@ -1,34 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: 404page\n"
4
- "POT-Creation-Date: 2014-05-02 14:12+0100\n"
5
- "PO-Revision-Date: 2015-01-12 16:46+0100\n"
6
- "Last-Translator: smartware.cc <sw@smartware.cc>\n"
7
- "Language-Team: smartware.cc <sw@smartware.cc>\n"
8
- "Language: de_DE\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.7.1\n"
13
- "X-Poedit-Basepath: .\n"
14
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
- "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Poedit-KeywordsList: __;_e\n"
17
- "X-Poedit-SearchPath-0: C:\\Users\\rado\\Google Drive\\web\\websites"
18
- "\\df_webserver\\webseiten\\dev.smartware.cc\\wp-content\\plugins\\404page\n"
19
-
20
- msgid "404 Error Page"
21
- msgstr "404 greška"
22
-
23
- msgid "Page to be displayed as 404 page"
24
- msgstr "Stranica ne može da se prikaže kao 404 stranica"
25
-
26
- msgid "&mdash; NONE (WP default 404 page) &mdash;"
27
- msgstr "&mdash; NIŠTA (WP default 404 stranica) &mdash;"
28
-
29
- msgid ""
30
- "The page you have selected as 404 page does not exist anymore. Please choose "
31
- "another page."
32
- msgstr ""
33
- "Stranica koju ste selektovali kao 404 stranicu ne postoji više. Izaberote "
34
- "drugu stranicu"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/404page.pot DELETED
@@ -1,23 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: 404page\n"
4
- "MIME-Version: 1.0\n"
5
- "Content-Type: text/plain; charset=UTF-8\n"
6
- "Content-Transfer-Encoding: 8bit\n"
7
-
8
- msgid "404 Error Page"
9
- msgstr ""
10
-
11
- msgid "Page to be displayed as 404 page"
12
- msgstr ""
13
-
14
- msgid "&mdash; NONE (WP default 404 page) &mdash;"
15
- msgstr ""
16
-
17
- msgid ""
18
- "The page you have selected as 404 page does not exist anymore. Please choose "
19
- "another page."
20
- msgstr ""
21
-
22
- msgid "Edit Page"
23
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/404page_general-de_DE.mo DELETED
Binary file
languages/404page_general-de_DE.po DELETED
@@ -1,44 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: 404page\n"
4
- "POT-Creation-Date: 2014-05-02 14:12+0100\n"
5
- "PO-Revision-Date: 2015-08-05 17:19+0100\n"
6
- "Last-Translator: smartware.cc <sw@smartware.cc>\n"
7
- "Language-Team: smartware.cc <sw@smartware.cc>\n"
8
- "Language: de_DE\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
-
13
- msgid "Like this Plugin?"
14
- msgstr "Du magst dieses Plugin?"
15
-
16
- msgid "Please rate the plugin"
17
- msgstr "Bitte bewerte das Plugin"
18
-
19
- msgid "Plugin homepage"
20
- msgstr "Plugin Homepage"
21
-
22
- msgid "Author homepage"
23
- msgstr "Homepage des Autors"
24
-
25
- msgid "Authors Google+ Page"
26
- msgstr "Google+ Seite des Autors"
27
-
28
- msgid "Authors facebook Page"
29
- msgstr "Facebook Seite des Autors"
30
-
31
- msgid "Need help?"
32
- msgstr "Du benötigst Hilfe?"
33
-
34
- msgid "Take a look at the Plugin Doc"
35
- msgstr "Sieh Dir die Plugin Doku an"
36
-
37
- msgid "Take a look at the FAQ section"
38
- msgstr "Sieh Dir den FAQ Bereich an"
39
-
40
- msgid "Take a look at the Support section"
41
- msgstr "Sieh Dir den Support Bereich an"
42
-
43
- msgid "Feel free to contact the Author"
44
- msgstr "Kontaktiere den Autor"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/404page_general-es_ES.mo DELETED
Binary file
languages/404page_general-es_ES.po DELETED
@@ -1,41 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: 404page\n"
4
- "POT-Creation-Date: 2014-05-02 14:12+0100\n"
5
- "PO-Revision-Date: 2014-12-30 19:39-0300\n"
6
- "Last-Translator: gaston999 <gaston_ferbari@hotmail.com>\n"
7
- "Language-Team: CosaDeMandinga.com.ar <sw@smartware.cc>\n"
8
- "Language: es_ES\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
-
13
- msgid "Like this Plugin?"
14
- msgstr "&iquest;Le gusta este Plugin?"
15
-
16
- msgid "Please rate the plugin"
17
- msgstr "Por favor califique nuestro plugin"
18
-
19
- msgid "Plugin homepage"
20
- msgstr "P&aacute;gina principal del Plugin"
21
-
22
- msgid "Author homepage"
23
- msgstr "P&aacute;gina principal de los Autores"
24
-
25
- msgid "Authors Google+ Page"
26
- msgstr "P&aacute;gina Google+ de los Autores"
27
-
28
- msgid "Authors facebook Page"
29
- msgstr "P&aacute;gina en Facebook de los Autores"
30
-
31
- msgid "Need help?"
32
- msgstr "&iquest;Necesita ayuda?"
33
-
34
- msgid "Take a look at the FAQ section"
35
- msgstr "Eche un vistazo a la sección de Preguntas Frecuentes"
36
-
37
- msgid "Take a look at the Support section"
38
- msgstr "Eche un vistazo a la sección de Soporte"
39
-
40
- msgid "Feel free to contact the Author"
41
- msgstr "No dude contactar con el Autor del plugin"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/404page_general-pt_PT.mo DELETED
Binary file
languages/404page_general-pt_PT.po DELETED
@@ -1,41 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: 404page\n"
4
- "POT-Creation-Date: 2014-05-02 14:12+0100\n"
5
- "PO-Revision-Date: 2015-06-23 17:03-0000\n"
6
- "Last-Translator: gaston999 <gaston_ferbari@hotmail.com>\n"
7
- "Language-Team: Pedro Pina <lagentprovocateur@gmail.com>\n"
8
- "Language: pt_PT\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
-
13
- msgid "Like this Plugin?"
14
- msgstr "Como avalia este plugin?"
15
-
16
- msgid "Please rate the plugin"
17
- msgstr "Por favor, classifique este plugin"
18
-
19
- msgid "Plugin homepage"
20
- msgstr "Página do plugin"
21
-
22
- msgid "Author homepage"
23
- msgstr "Homepage do autor"
24
-
25
- msgid "Authors Google+ Page"
26
- msgstr "Google + - página do autor"
27
-
28
- msgid "Authors facebook Page"
29
- msgstr "Página no Facebook do autor"
30
-
31
- msgid "Need help?"
32
- msgstr "Precisa de ajuda?"
33
-
34
- msgid "Take a look at the FAQ section"
35
- msgstr "Veja a secção de Perguntas Frequentes do plugin (FAQ)"
36
-
37
- msgid "Take a look at the Support section"
38
- msgstr "Veja a secção de Suporte do plugin"
39
-
40
- msgid "Feel free to contact the Author"
41
- msgstr "Contactar o autor"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/404page_general-sr_RS.mo DELETED
Binary file
languages/404page_general-sr_RS.po DELETED
@@ -1,41 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: 404page\n"
4
- "POT-Creation-Date: 2014-05-02 14:12+0100\n"
5
- "PO-Revision-Date: 2015-01-08 10:49+0100\n"
6
- "Last-Translator: Borisa Djuraskovic <borisad@webhostinghub.com>\n"
7
- "Language-Team: smartware.cc <sw@smartware.cc>\n"
8
- "Language: de_DE\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
-
13
- msgid "Like this Plugin?"
14
- msgstr "Da li vam se dopada ovaj plugin?"
15
-
16
- msgid "Please rate the plugin"
17
- msgstr "Molimo vas da ocenite ovaj plugin"
18
-
19
- msgid "Plugin homepage"
20
- msgstr "Početna stranica plugin-a"
21
-
22
- msgid "Author homepage"
23
- msgstr "Početna stranica autora"
24
-
25
- msgid "Authors Google+ Page"
26
- msgstr "Google+ stranica autora"
27
-
28
- msgid "Authors facebook Page"
29
- msgstr "Facebook stranica autora "
30
-
31
- msgid "Need help?"
32
- msgstr "Treba vam pomoć?"
33
-
34
- msgid "Take a look at the FAQ section"
35
- msgstr "Pogledajte odeljak za često postavljana pitanja"
36
-
37
- msgid "Take a look at the Support section"
38
- msgstr "Pogledajte odeljak za podršku"
39
-
40
- msgid "Feel free to contact the Author"
41
- msgstr "Pišite autoru"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/404page_general.pot DELETED
@@ -1,39 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: 404page\n"
4
- "MIME-Version: 1.0\n"
5
- "Content-Type: text/plain; charset=UTF-8\n"
6
- "Content-Transfer-Encoding: 8bit\n"
7
-
8
- msgid "Like this Plugin?"
9
- msgstr ""
10
-
11
- msgid "Please rate the plugin"
12
- msgstr ""
13
-
14
- msgid "Plugin homepage"
15
- msgstr ""
16
-
17
- msgid "Author homepage"
18
- msgstr ""
19
-
20
- msgid "Authors Google+ Page"
21
- msgstr ""
22
-
23
- msgid "Authors facebook Page"
24
- msgstr ""
25
-
26
- msgid "Need help?"
27
- msgstr ""
28
-
29
- msgid "Take a look at the Plugin Doc"
30
- msgstr ""
31
-
32
- msgid "Take a look at the FAQ section"
33
- msgstr ""
34
-
35
- msgid "Take a look at the Support section"
36
- msgstr ""
37
-
38
- msgid "Feel free to contact the Author"
39
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
pluginicon.png CHANGED
Binary file
readme.txt CHANGED
@@ -1,14 +1,14 @@
1
  === 404page ===
2
- Contributors: smartware.cc
3
  Donate link:http://smartware.cc/make-a-donation/
4
  Tags: page, 404, error, error page, 404 page, page not found, page not found error, 404 error page, missing, broken link, template, 404 link, seo, custom 404, custom 404 page, custom 404 error, custom 404 error page, customize 404, customize 404 page, customize 404 error page
5
  Requires at least: 3.0
6
- Tested up to: 4.3
7
- Stable tag: 1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Custom 404 the easy way! Set any page as custom 404 error page. No coding needed. Works with every Theme.
12
 
13
  == Description ==
14
 
@@ -16,33 +16,29 @@ Custom 404 the easy way! Set any page as custom 404 error page. No coding needed
16
 
17
  **See also [Plugin Homepage](http://smartware.cc/free-wordpress-plugins/404page/) and [Plugin Doc](http://smartware.cc/docs/404page/)**
18
 
 
 
 
 
19
  https://www.youtube.com/watch?v=VTL07Lf0IsY
20
 
21
- Create your custom 404 Page as a normal WordPress Page using the full power of WordPress. You can use a Custom Page Template or Custom Fields, you can set a Featured Image - everything like on every other Page. Then go to 'Settings' -> '404 Error Page' from your WordPress Dashbord and select the created Page as your 404 error page. That's it!
22
 
23
  = Why you should choose this plugin =
24
 
25
  * Different from other similar plugins the 404page plugin **does not create redirects**. That’s **quite important** because a correct code 404 is delivered which tells search engines that the page does not exist and has to be removed from the index. A redirect would result in a HTTP code 301 or 302 and the URL would remain in the search index.
26
- * Different from other similar plugins the 404page plugin **does not create additional server requests**. It makes use of the WordPress 404 handling.
27
 
28
- = Languages =
29
 
30
- * English
31
- * German
32
- * Spanish (thanks to [Gaston](http://cosa-de-mandinga.blogspot.de/))
33
- * Serbo-Croatian (thanks to [Borisa](http://www.webhostinghub.com/))
34
- * Portuguese (thanks to [Pedro](https://www.behance.net/pedroalexmelo))
35
 
36
- **Translations welcome!** The languages directory contains POT files to start new translations. Please [contact Author](http://smartware.cc/contact) if you would like to do a translation.
37
 
38
  = Do you like the 404page Plugin? =
39
 
40
  Thanks, I appreciate that. You don’t need to make a donation. No money, no beer, no coffee. Please, just [tell the world that you like what I’m doing](http://smartware.cc/make-a-donation/)! And that’s all.
41
 
42
- = Known issues =
43
-
44
- Currently the 404page Plugin does not support WPML. WPML compatibility is planned for a future release.
45
-
46
  = More plugins from smartware.cc =
47
 
48
  * **[hashtagger](https://wordpress.org/plugins/hashtagger/)** Tag your posts by using #hashtags
@@ -83,6 +79,16 @@ No, there is no redirection! The chosen page is delivered as a 'real' 404 error
83
 
84
  == Changelog ==
85
 
 
 
 
 
 
 
 
 
 
 
86
  = 1.4 (2015-08-07) =
87
  * edit the 404 page directly from settings page
88
  * Portuguese translation
@@ -104,5 +110,8 @@ No, there is no redirection! The chosen page is delivered as a 'real' 404 error
104
 
105
  == Upgrade Notice ==
106
 
 
 
 
107
  = 1.4 =
108
  Editing of the 404 page is now possible directly from settings page. Portuguese translation added.
1
  === 404page ===
2
+ Contributors: smartware.cc, petersplugins
3
  Donate link:http://smartware.cc/make-a-donation/
4
  Tags: page, 404, error, error page, 404 page, page not found, page not found error, 404 error page, missing, broken link, template, 404 link, seo, custom 404, custom 404 page, custom 404 error, custom 404 error page, customize 404, customize 404 page, customize 404 error page
5
  Requires at least: 3.0
6
+ Tested up to: 4.4
7
+ Stable tag: 2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Custom 404 the easy way! Set any page as custom 404 error page. No coding needed. Works with (almost) every Theme.
12
 
13
  == Description ==
14
 
16
 
17
  **See also [Plugin Homepage](http://smartware.cc/free-wordpress-plugins/404page/) and [Plugin Doc](http://smartware.cc/docs/404page/)**
18
 
19
+ = Version 2.0 Update Notice =
20
+ * The settings page was moved from 'Settings' to 'Appearance' menu.
21
+ * Version 2.0 is more or less a completely new development. This was necessary to solve several compatibility issues. 404page now works with the [WPML WordPress Multilingual Plugin](https://wpml.org/), the [bbPress Forum Plugin](https://wordpress.org/plugins/bbpress/) and the [Customizr Theme](https://wordpress.org/themes/customizr/). [Read more](http://smartware.cc/blog/2016/02/23/the-404page-plugin-now-works-with-wpml-and-other-enhancements/).
22
+
23
  https://www.youtube.com/watch?v=VTL07Lf0IsY
24
 
25
+ Create your custom 404 Page as a normal WordPress Page using the full power of WordPress. You can use a Custom Page Template or Custom Fields, you can set a Featured Image - everything like on every other Page. Then go to 'Appearance' -> '404 Error Page' from your WordPress Dashbord and select the created Page as your 404 error page. That's it!
26
 
27
  = Why you should choose this plugin =
28
 
29
  * Different from other similar plugins the 404page plugin **does not create redirects**. That’s **quite important** because a correct code 404 is delivered which tells search engines that the page does not exist and has to be removed from the index. A redirect would result in a HTTP code 301 or 302 and the URL would remain in the search index.
30
+ * Different from other similar plugins the 404page plugin **does not create additional server requests**.
31
 
32
+ = Translations =
33
 
34
+ As of version 2.0 the 404page Plugin uses GlotPress - the wordpress.org Translation System - for translations. Translations can be submitted at [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/404page).
 
 
 
 
35
 
36
+ **Translation are highly appreciated**. It would be great if you'd support the 404page Plugin by adding a new translation or keeping an existing one up to date. If you're new to GlotPress take a look at the [Translator Handbook](https://make.wordpress.org/polyglots/handbook/tools/glotpress-translate-wordpress-org/).
37
 
38
  = Do you like the 404page Plugin? =
39
 
40
  Thanks, I appreciate that. You don’t need to make a donation. No money, no beer, no coffee. Please, just [tell the world that you like what I’m doing](http://smartware.cc/make-a-donation/)! And that’s all.
41
 
 
 
 
 
42
  = More plugins from smartware.cc =
43
 
44
  * **[hashtagger](https://wordpress.org/plugins/hashtagger/)** Tag your posts by using #hashtags
79
 
80
  == Changelog ==
81
 
82
+ = 2.0 (2016-03-08) =
83
+ * WPML compatibility
84
+ * bbPress compatibility
85
+ * Customizr compatibility
86
+ * directly accessing the 404 error page now throws an 404 error
87
+ * class `error404` added to the classes that are assigned to the body HTML element
88
+ * the settings menu was moved from 'Settings' to 'Appearance'
89
+ * translation files removed, using GlotPress exclusively
90
+ * [Read more](http://smartware.cc/blog/2016/02/23/the-404page-plugin-now-works-with-wpml-and-other-enhancements/)
91
+
92
  = 1.4 (2015-08-07) =
93
  * edit the 404 page directly from settings page
94
  * Portuguese translation
110
 
111
  == Upgrade Notice ==
112
 
113
+ = 2.0 =
114
+ Version 2.0 is more or less a completely new development and a big step forward. [Read more](http://smartware.cc/blog/2016/02/23/the-404page-plugin-now-works-with-wpml-and-other-enhancements/)
115
+
116
  = 1.4 =
117
  Editing of the 404 page is now possible directly from settings page. Portuguese translation added.