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

Version Description

(2015-01-12) = * technical improvement (rewritten as class) * cosmetics * tested up to 4.1

Download this release

Release Info

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

Code changes from version 1.2 to 1.3

404page.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  Plugin Name: 404page
4
- Plugin URI: http://smartware.cc/wp-404page
5
  Description: Define any of your pages as 404 page
6
- Version: 1.2
7
  Author: smartware.cc
8
  Author URI: http://smartware.cc
9
  License: GPL2
@@ -25,105 +25,178 @@ License: GPL2
25
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  */
27
 
28
- // redirect 404 page
29
- function swcc_404page( $template ) {
30
- global $wp_query;
31
- $template404 = $template;
32
- $pageid = swcc_404page_get_page_id();
33
- if ( $pageid > 0 ) {
34
- $wp_query = null;
35
- $wp_query = new WP_Query();
36
- $wp_query->query( 'page_id=' . $pageid );
37
- $wp_query->the_post();
38
- $template404 = get_page_template();
39
- rewind_posts();
40
- }
41
- return $template404;
42
  }
43
 
44
- // show admin page
45
- function swcc_404page_admin() {
46
- if ( !current_user_can( 'manage_options' ) ) {
47
- wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
48
- }
49
- ?>
50
- <div class="wrap">
51
- <div id="icon-tools" class="icon32"></div>
52
- <h2><?php _e('404 Error Page', '404page'); ?></h2>
53
- <div class="metabox-holder has-right-sidebar">
54
- <div class="inner-sidebar">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  <div class="postbox">
56
- <h3><span><?php _e( 'Like this Plugin?', '404page' ); ?></span></h3>
57
- <div class="inside">
58
- <ul>
59
- <li><a href="http://wordpress.org/extend/plugins/404page/"><?php _e( 'Please rate the plugin', '404page' ); ?></a></li>
60
- <li><a href="http://smartware.cc/wp-404page/"><?php _e( 'Plugin homepage', '404page'); ?></a></li>
61
- <li><a href="http://smartware.cc/"><?php _e( 'Author homepage', '404page' );?></a></li>
62
- <li><a href="https://plus.google.com/+SmartwareCc"><?php _e(' Authors Google+ Page', '404page' ); ?></a></li>
63
- <li><a href="https://www.facebook.com/smartware.cc"><?php _e(' Athors facebook Page', '404page' ); ?></a></li>
64
- </ul>
65
- </div>
66
- </div>
67
- </div>
68
- <div id="post-body">
69
- <div id="post-body-content">
70
- <form method="post">
71
- <p>
72
- <?php
73
- if( !empty( $_POST['submit'] ) ) {
74
- $pageid = swcc_404page_get_page_id();
75
- if ( $_POST['404pageid'] != $pageid ) {
76
- if ( update_option( '404page_page_id', $_POST['404pageid'] ) ) {
77
- add_settings_error( 'swcc_404page_err', esc_attr( 'settings_updated' ), __( 'Settings saved.' ), 'updated' );
78
- } else {
79
- add_settings_error( 'swcc_404page_err', esc_attr( 'settings_updated' ), __( 'An unexpected error occured while saving the settings!', '404page' ), 'error' );
80
- }
81
- }
82
- }
83
- $pageid = swcc_404page_get_page_id();
84
- if ( $pageid < 0 ) {
85
- add_settings_error( 'swcc_404page_err', esc_attr( 'settings_updated' ), __( 'The page you have selected as 404 page does not exist anymore. Please choose another page.', '404page' ), 'error' );
86
- }
87
- settings_errors( 'swcc_404page_err' );
88
- ?>
89
- <label for="404pageid"><?php _e('Page to be displayed as 404 page', '404page' )?>:</label>
90
- <?php
91
- wp_dropdown_pages( array( 'name' => '404pageid', 'echo' => 1, 'show_option_none' => __( '&mdash; NONE (WP default 404 page) &mdash;', '404page'), 'option_none_value' => '0', 'selected' => $pageid ) );
92
- ?>
93
- </p>
94
- <p class="submit">
95
- <input type="submit" name="submit" class="button-primary" value="<?php _e('Save'); ?>" />
96
- </p>
97
- </form>
98
  </div>
99
  </div>
100
  </div>
101
- </div>
102
- <?php
103
- }
104
-
105
- // init backend
106
- function swcc_404page_adminmenu() {
107
- add_submenu_page( 'options-general.php', __('404 Error Page', '404page' ), __('404 Error Page', '404page' ), 'manage_options', '404page', 'swcc_404page_admin' );
108
- }
109
-
110
- // returns the id of the 404 page if one is defined, returns 0 if none is defined, returns -1 if the defined page id does not exist
111
- function swcc_404page_get_page_id() {
112
- $pageid = get_option( '404page_page_id', 0 );
113
- if ( $pageid != 0 ) {
114
- $page = get_post( $pageid );
115
- if ( !$page || $page->post_status != 'publish' ) {
116
- $pageid = -1;
117
- }
118
  }
119
- return $pageid;
120
- }
121
- // addd text domain
122
- function swcc_404page_add_text_domain() {
123
- load_plugin_textdomain( '404page', false, basename( dirname( __FILE__ ) ) . '/languages' );
 
124
  }
125
 
126
- add_action( 'init', 'swcc_404page_add_text_domain' );
127
- add_filter( '404_template', 'swcc_404page' );
128
- add_action( 'admin_menu', 'swcc_404page_adminmenu' );
129
  ?>
1
  <?php
2
  /*
3
  Plugin Name: 404page
4
+ Plugin URI: http://smartware.cc/free-wordpress-plugins/404page/
5
  Description: Define any of your pages as 404 page
6
+ Version: 1.3
7
  Author: smartware.cc
8
  Author URI: http://smartware.cc
9
  License: GPL2
25
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  */
27
 
28
+ if ( ! defined( 'WPINC' ) ) {
29
+ die;
 
 
 
 
 
 
 
 
 
 
 
 
30
  }
31
 
32
+ class Smart404Page {
33
+ public $plugin_name;
34
+ public $version;
35
+ public $settings;
36
+
37
+ public function __construct() {
38
+ $this->plugin_name = '404page';
39
+ $this->version = '1.3';
40
+ $this->get_settings();
41
+ $this->init();
42
+ }
43
+
44
+ // get all settings
45
+ private function get_settings() {
46
+ $this->settings = array();
47
+ $this->settings['404page_page_id'] = $this->get_404page_id();
48
+ }
49
+
50
+ private function init() {
51
+ add_action( 'init', array( $this, 'add_text_domains' ) );
52
+ add_filter( '404_template', array( $this, 'show404' ) );
53
+ add_action( 'admin_init', array( $this, 'admin_init' ) );
54
+ add_action( 'admin_menu', array( $this, 'admin_menu' ) );
55
+ add_action( 'admin_head', array( $this, 'admin_css' ) );
56
+ add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'add_settings_link' ) );
57
+ }
58
+
59
+ // redirect 404 page
60
+ function show404( $template ) {
61
+ global $wp_query;
62
+ $template404 = $template;
63
+ $pageid = $this->settings['404page_page_id'];
64
+ if ( $pageid > 0 ) {
65
+ $wp_query = null;
66
+ $wp_query = new WP_Query();
67
+ $wp_query->query( 'page_id=' . $pageid );
68
+ $wp_query->the_post();
69
+ $template404 = get_page_template();
70
+ rewind_posts();
71
+ }
72
+ return $template404;
73
+ }
74
+
75
+ // init the admin section
76
+ function admin_init() {
77
+ add_settings_section( '404page-settings', '', array( $this, 'admin_section_title' ), '404page_settings_section' );
78
+ register_setting( '404page_settings', '404page_page_id' );
79
+ 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' ) );
80
+ }
81
+
82
+ // add css
83
+ function admin_css() {
84
+ echo '<style type="text/css">#select404page" {width: 100%}</style>';
85
+ }
86
+
87
+ // handle the settings field
88
+ function admin_404page() {
89
+ if ( $this->settings['404page_page_id'] < 0 ) {
90
+ 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>';
91
+ }
92
+ 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'] ) );
93
+ }
94
+
95
+ // echo title for settings section
96
+ function admin_section_title() {
97
+ echo '<p><strong>' . __( 'Settings' ) . ':</strong></p><hr />';
98
+ }
99
+
100
+ // adds the options page to admin menu
101
+ function admin_menu() {
102
+ add_options_page( __( '404 Error Page', "404page" ), __( '404 Error Page', '404page' ), 'manage_options', '404pagesettings', array( $this, 'admin_page' ) );
103
+ }
104
+
105
+ // creates the options page
106
+ function admin_page() {
107
+ if ( !current_user_can( 'manage_options' ) ) {
108
+ wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
109
+ }
110
+ ?>
111
+ <div class="wrap">
112
+ <?php screen_icon(); ?>
113
+ <h2><?php _e('404 Error Page', '404page'); ?></h2>
114
+ <div id="poststuff">
115
+ <div id="post-body" class="metabox-holder columns-2">
116
+ <div id="post-body-content">
117
+ <div class="meta-box-sortables ui-sortable">
118
+ <form method="post" action="options.php">
119
+ <div class="postbox">
120
+ <div class="inside">
121
+ <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>
122
+ </div>
123
+ </div>
124
+ <div class="postbox">
125
+ <div class="inside">
126
+ <?php
127
+ settings_fields( '404page_settings' );
128
+ do_settings_sections( '404page_settings_section' );
129
+ submit_button();
130
+ ?>
131
+ </div>
132
+ </div>
133
+ </form>
134
+ </div>
135
+ </div>
136
+ <?php { $this->show_meta_boxes(); } ?>
137
+ </div>
138
+ <br class="clear">
139
+ </div>
140
+ </div>
141
+ <?php
142
+ }
143
+
144
+ // returns the id of the 404 page if one is defined, returns 0 if none is defined, returns -1 if the defined page id does not exist
145
+ private function get_404page_id() {
146
+ $pageid = get_option( '404page_page_id', 0 );
147
+ if ( $pageid != 0 ) {
148
+ $page = get_post( $pageid );
149
+ if ( !$page || $page->post_status != 'publish' ) {
150
+ $pageid = -1;
151
+ }
152
+ }
153
+ return $pageid;
154
+ }
155
+
156
+ // addd text domains
157
+ function add_text_domains() {
158
+ load_plugin_textdomain( '404page_general', false, basename( dirname( __FILE__ ) ) . '/languages' );
159
+ load_plugin_textdomain( '404page', false, basename( dirname( __FILE__ ) ) . '/languages' );
160
+ }
161
+
162
+ // show meta boxes
163
+ function show_meta_boxes() {
164
+ ?>
165
+ <div id="postbox-container-1" class="postbox-container">
166
+ <div class="meta-box-sortables">
167
  <div class="postbox">
168
+ <h3><span><?php _e( 'Like this Plugin?', '404page_general' ); ?></span></h3>
169
+ <div class="inside">
170
+ <ul>
171
+ <li><div class="dashicons dashicons-wordpress"></div>&nbsp;&nbsp;<a href="http://wordpress.org/extend/plugins/404page/"><?php _e( 'Please rate the plugin', '404page_general' ); ?></a></li>
172
+ <li><div class="dashicons dashicons-admin-home"></div>&nbsp;&nbsp;<a href="http://smartware.cc/free-wordpress-plugins/404page/"><?php _e( 'Plugin homepage', '404page_general'); ?></a></li>
173
+ <li><div class="dashicons dashicons-admin-home"></div>&nbsp;&nbsp;<a href="http://smartware.cc/"><?php _e( 'Author homepage', '404page_general' );?></a></li>
174
+ <li><div class="dashicons dashicons-googleplus"></div>&nbsp;&nbsp;<a href="https://plus.google.com/+SmartwareCc"><?php _e( 'Authors Google+ Page', '404page_general' ); ?></a></li>
175
+ <li><div class="dashicons dashicons-facebook-alt"></div>&nbsp;&nbsp;<a href="https://www.facebook.com/smartware.cc"><?php _e( 'Authors facebook Page', '404page_general' ); ?></a></li>
176
+ </ul>
177
+ </div>
178
+ </div>
179
+ <div class="postbox">
180
+ <h3><span><?php _e( 'Need help?', '404page_general' ); ?></span></h3>
181
+ <div class="inside">
182
+ <ul>
183
+ <li><div class="dashicons dashicons-wordpress"></div>&nbsp;&nbsp;<a href="http://wordpress.org/plugins/404page/faq/"><?php _e( 'Take a look at the FAQ section', '404page_general' ); ?></a></li>
184
+ <li><div class="dashicons dashicons-wordpress"></div>&nbsp;&nbsp;<a href="http://wordpress.org/support/plugin/404page/"><?php _e( 'Take a look at the Support section', '404page_general'); ?></a></li>
185
+ <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>
186
+ </ul>
187
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  </div>
189
  </div>
190
  </div>
191
+ <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
  }
193
+
194
+ // add a link to settings page in plugin list
195
+ function add_settings_link( $links ) {
196
+ return array_merge( $links, array( '<a href="' . admin_url( 'options-general.php?page=404pagesettings' ) . '">' . __( 'Settings' ) . '</a>') );
197
+ }
198
+
199
  }
200
 
201
+ $smart404page = new Smart404Page();
 
 
202
  ?>
languages/404page-de_DE.mo CHANGED
Binary file
languages/404page-de_DE.po CHANGED
@@ -2,14 +2,14 @@ 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-05-02 14:31+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.6.5\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
@@ -26,30 +26,9 @@ msgstr "Seite, die als 404 Seite angezeigt werden soll"
26
  msgid "&mdash; NONE (WP default 404 page) &mdash;"
27
  msgstr "&mdash; KEINE (WP Standard 404 Seite) &mdash;"
28
 
29
- msgid "An unexpected error occured while saving the settings!"
30
- msgstr "Beim Speichern der Einstellungen ist ein Fehler aufgetreten!"
31
-
32
  msgid ""
33
  "The page you have selected as 404 page does not exist anymore. Please choose "
34
  "another page."
35
  msgstr ""
36
  "Die Seite, die als 404 Seite ausgew&auml;hlt wurde, exisitiert nicht mehr. "
37
  "Bitte w&auml;hle eine andere Seite."
38
-
39
- msgid "Like this Plugin?"
40
- msgstr "Du magst dieses Plugin?"
41
-
42
- msgid "Please rate the plugin"
43
- msgstr "Bitte bewerte das Plugin"
44
-
45
- msgid "Plugin homepage"
46
- msgstr "Plugin Homepage"
47
-
48
- msgid "Author homepage"
49
- msgstr "Homepage des Autors"
50
-
51
- msgid " Authors Google+ Page"
52
- msgstr "Google+ Seite des Autors"
53
-
54
- msgid " Athors facebook Page"
55
- msgstr "Facebook Seite des Autors"
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: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.7.1\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
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."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/404page-es_ES.mo CHANGED
Binary file
languages/404page-es_ES.po CHANGED
@@ -2,14 +2,14 @@ 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-06-05 19:24-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
- "X-Generator: Poedit 1.5.7\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
@@ -26,30 +26,9 @@ msgstr "P&aacute;gina que ser&aacute; mostrada como pagina de Error 404"
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 "An unexpected error occured while saving the settings!"
30
- msgstr "&iexcl;Se ha producido un error inesperado al guardar los ajustes!"
31
-
32
  msgid ""
33
  "The page you have selected as 404 page does not exist anymore. Please choose "
34
  "another page."
35
  msgstr ""
36
  "La p&aacute;gina que ha seleccionado como la p&aacute;gina de Error 404 ya "
37
  "no existe. Por favor elija otra p&aacute;gina."
38
-
39
- msgid "Like this Plugin?"
40
- msgstr "&iquest;Le gusta este Plugin?"
41
-
42
- msgid "Please rate the plugin"
43
- msgstr "Por favor califique nuestro plugin"
44
-
45
- msgid "Plugin homepage"
46
- msgstr "P&aacute;gina principal del Plugin"
47
-
48
- msgid "Author homepage"
49
- msgstr "P&aacute;gina principal de los Autores"
50
-
51
- msgid " Authors Google+ Page"
52
- msgstr "P&aacute;gina Google+ de los Autores"
53
-
54
- msgid " Athors facebook Page"
55
- msgstr "P&aacute;gina en Facebook de los Autores"
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"
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-sr_RS.mo CHANGED
Binary file
languages/404page-sr_RS.po CHANGED
@@ -2,14 +2,14 @@ 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-06-10 12:04+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
- "X-Generator: Poedit 1.5.7\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
@@ -26,30 +26,9 @@ msgstr "Stranica ne može da se prikaže kao 404 stranica"
26
  msgid "&mdash; NONE (WP default 404 page) &mdash;"
27
  msgstr "&mdash; NIŠTA (WP default 404 stranica) &mdash;"
28
 
29
- msgid "An unexpected error occured while saving the settings!"
30
- msgstr "Neošekivana greška je nastala prilikom sačuvavanja postavki!"
31
-
32
  msgid ""
33
  "The page you have selected as 404 page does not exist anymore. Please choose "
34
  "another page."
35
  msgstr ""
36
  "Stranica koju ste selektovali kao 404 stranicu ne postoji više. Izaberote "
37
  "drugu stranicu"
38
-
39
- msgid "Like this Plugin?"
40
- msgstr "Dopada vam se ovaj plugin?"
41
-
42
- msgid "Please rate the plugin"
43
- msgstr "Ocenite plugin"
44
-
45
- msgid "Plugin homepage"
46
- msgstr "Početna stranica plugina"
47
-
48
- msgid "Author homepage"
49
- msgstr "Autor početne stranice"
50
-
51
- msgid " Authors Google+ Page"
52
- msgstr "Autori Google+ stranice"
53
-
54
- msgid " Athors facebook Page"
55
- msgstr "Autori facebook stranice"
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"
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 ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: 404page\n"
4
+ "POT-Creation-Date: 2015-01-12 16:41:37+00:00\n"
5
+ "MIME-Version: 1.0\n"
6
+ "Content-Type: text/plain; charset=UTF-8\n"
7
+ "Content-Transfer-Encoding: 8bit\n"
8
+ "PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
9
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
10
+ "Language-Team: LANGUAGE <LL@li.org>\n"
11
+
12
+ msgid "404 Error Page"
13
+ msgstr ""
14
+
15
+ msgid "Page to be displayed as 404 page"
16
+ msgstr ""
17
+
18
+ msgid "&mdash; NONE (WP default 404 page) &mdash;"
19
+ msgstr ""
20
+
21
+ msgid ""
22
+ "The page you have selected as 404 page does not exist anymore. Please choose "
23
+ "another page."
24
+ msgstr ""
languages/404page_general-de_DE.mo ADDED
Binary file
languages/404page_general-de_DE.po ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: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.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"
19
+ "\\404page\n"
20
+
21
+ msgid "Like this Plugin?"
22
+ msgstr "Du magst dieses Plugin?"
23
+
24
+ msgid "Please rate the plugin"
25
+ msgstr "Bitte bewerte das Plugin"
26
+
27
+ msgid "Plugin homepage"
28
+ msgstr "Plugin Homepage"
29
+
30
+ msgid "Author homepage"
31
+ msgstr "Homepage des Autors"
32
+
33
+ msgid "Authors Google+ Page"
34
+ msgstr "Google+ Seite des Autors"
35
+
36
+ msgid "Authors facebook Page"
37
+ msgstr "Facebook Seite des Autors"
38
+
39
+ msgid "Need help?"
40
+ msgstr "Du benötigst Hilfe?"
41
+
42
+ msgid "Take a look at the FAQ section"
43
+ msgstr "Sieh Dir den FAQ Bereich an"
44
+
45
+ msgid "Take a look at the Support section"
46
+ msgstr "Sieh Dir den Support Bereich an"
47
+
48
+ msgid "Feel free to contact the Author"
49
+ msgstr "Kontaktiere den Autor"
languages/404page_general-es_ES.mo ADDED
Binary file
languages/404page_general-es_ES.po ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "X-Generator: Poedit 1.5.4\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 "Like this Plugin?"
21
+ msgstr "&iquest;Le gusta este Plugin?"
22
+
23
+ msgid "Please rate the plugin"
24
+ msgstr "Por favor califique nuestro plugin"
25
+
26
+ msgid "Plugin homepage"
27
+ msgstr "P&aacute;gina principal del Plugin"
28
+
29
+ msgid "Author homepage"
30
+ msgstr "P&aacute;gina principal de los Autores"
31
+
32
+ msgid "Authors Google+ Page"
33
+ msgstr "P&aacute;gina Google+ de los Autores"
34
+
35
+ msgid "Authors facebook Page"
36
+ msgstr "P&aacute;gina en Facebook de los Autores"
37
+
38
+ msgid "Need help?"
39
+ msgstr "&iquest;Necesita ayuda?"
40
+
41
+ msgid "Take a look at the FAQ section"
42
+ msgstr "Eche un vistazo a la sección de Preguntas Frecuentes"
43
+
44
+ msgid "Take a look at the Support section"
45
+ msgstr "Eche un vistazo a la sección de Soporte"
46
+
47
+ msgid "Feel free to contact the Author"
48
+ msgstr "No dude contactar con el Autor del plugin"
languages/404page_general-sr_RS.mo ADDED
Binary file
languages/404page_general-sr_RS.po ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "X-Generator: Poedit 1.5.7\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 "Like this Plugin?"
21
+ msgstr "Da li vam se dopada ovaj plugin?"
22
+
23
+ msgid "Please rate the plugin"
24
+ msgstr "Molimo vas da ocenite ovaj plugin"
25
+
26
+ msgid "Plugin homepage"
27
+ msgstr "Početna stranica plugin-a"
28
+
29
+ msgid "Author homepage"
30
+ msgstr "Početna stranica autora"
31
+
32
+ msgid "Authors Google+ Page"
33
+ msgstr "Google+ stranica autora"
34
+
35
+ msgid "Authors facebook Page"
36
+ msgstr "Facebook stranica autora "
37
+
38
+ msgid "Need help?"
39
+ msgstr "Treba vam pomoć?"
40
+
41
+ msgid "Take a look at the FAQ section"
42
+ msgstr "Pogledajte odeljak za često postavljana pitanja"
43
+
44
+ msgid "Take a look at the Support section"
45
+ msgstr "Pogledajte odeljak za podršku"
46
+
47
+ msgid "Feel free to contact the Author"
48
+ msgstr "Pišite autoru"
languages/404page_general.pot ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: 404page\n"
4
+ "POT-Creation-Date: 2014-12-30 09:41:37+00:00\n"
5
+ "MIME-Version: 1.0\n"
6
+ "Content-Type: text/plain; charset=UTF-8\n"
7
+ "Content-Transfer-Encoding: 8bit\n"
8
+ "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
9
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
10
+ "Language-Team: LANGUAGE <LL@li.org>\n"
11
+
12
+ msgid "Like this Plugin?"
13
+ msgstr ""
14
+
15
+ msgid "Please rate the plugin"
16
+ msgstr ""
17
+
18
+ msgid "Plugin homepage"
19
+ msgstr ""
20
+
21
+ msgid "Author homepage"
22
+ msgstr ""
23
+
24
+ msgid "Authors Google+ Page"
25
+ msgstr ""
26
+
27
+ msgid "Authors facebook Page"
28
+ msgstr ""
29
+
30
+ msgid "Need help?"
31
+ msgstr ""
32
+
33
+ msgid "Take a look at the FAQ section"
34
+ msgstr ""
35
+
36
+ msgid "Take a look at the Support section"
37
+ msgstr ""
38
+
39
+ msgid "Feel free to contact the Author"
40
+ msgstr ""
pluginicon.png ADDED
Binary file
readme.txt CHANGED
@@ -1,9 +1,10 @@
1
  === Plugin Name ===
2
  Contributors: smartware.cc
3
- Tags: page, 404, error, error page, 404 page, page not found, page not found error, 404 error page
 
4
  Requires at least: 3.0
5
- Tested up to: 3.9.1
6
- Stable tag: 1.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -11,30 +12,54 @@ Define any of your WordPress pages as 404 error page
11
 
12
  == Description ==
13
 
14
- > Create your 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.
15
 
16
- The go to 'Settings' -> '404 Error Page' from your WordPress Dashbord and select the created Page as your 404 error page.
 
 
 
 
17
 
18
  = Languages =
19
 
20
  * English
21
  * German
22
- * Spanish (thanks to [Gaston](http://www.cosademandinga.com.ar/))
23
  * Serbo-Croatian (thanks to [Borisa](http://www.webhostinghub.com/))
24
 
25
- https://www.youtube.com/watch?v=VTL07Lf0IsY
26
 
27
- **Translations welcome!** Please [contact Author](http://smartware.cc/) if you would like to do a translation.
28
 
29
- = More Information =
30
 
31
- Visit the [Plugin Homepage](http://smartware.cc/wp-404page)
 
 
 
 
 
 
32
 
33
  == Installation ==
34
 
35
- 1. Upload the "404page" folder to your "/wp-content/plugins/" directory.
 
 
 
36
  1. Activate the plugin through the 'Plugins' menu in WordPress
37
- 1. Select desired 404 page
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  == Screenshots ==
40
 
@@ -43,6 +68,11 @@ Visit the [Plugin Homepage](http://smartware.cc/wp-404page)
43
 
44
  == Changelog ==
45
 
 
 
 
 
 
46
  = 1.2 (2014-07-28) =
47
  * Spanish translation
48
  * Serbo-Croatian translation
1
  === Plugin Name ===
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.2
7
+ Stable tag: 1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ > Create your 404 Error Page using the full Power of WordPress
16
 
17
+ **See also [Plugin Homepage](http://smartware.cc/free-wordpress-plugins/404page/)**
18
+
19
+ https://www.youtube.com/watch?v=VTL07Lf0IsY
20
+
21
+ Create your 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.
22
 
23
  = Languages =
24
 
25
  * English
26
  * German
27
+ * Spanish (thanks to [Gaston](http://cosa-de-mandinga.blogspot.de/))
28
  * Serbo-Croatian (thanks to [Borisa](http://www.webhostinghub.com/))
29
 
30
+ **Translations welcome!** Please [contact Author](http://smartware.cc/contact) if you would like to do a translation.
31
 
32
+ = Do you like the 404page Plugin? =
33
 
34
+ 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.
35
 
36
+ = More plugins from smartware.cc =
37
+
38
+ * **[link-log](https://wordpress.org/plugins/link-log/)** - Find out where your visitors leave to. Track clicks on external links.
39
+ * **[smart Archive Page Remove](https://wordpress.org/plugins/smart-archive-page-remove/)** - Completely remove unwated Archive Pages from your Blog
40
+ * **[smart User Slug Hider](https://wordpress.org/plugins/smart-user-slug-hider/)** - Hide usernames in author pages URLs to enhance security
41
+ * **[hashtagger](https://wordpress.org/plugins/hashtagger/)** Tag your posts by using #hashtags
42
+ * **[JavaScript AutoLoader](https://wordpress.org/plugins/javascript-autoloader/)** - Load JavaScript files without changing files in the theme directory or installing several plugins to add all the desired functionality
43
 
44
  == Installation ==
45
 
46
+ = From your WordPress dashboard =
47
+
48
+ 1. Visit 'Plugins' -> 'Add New'
49
+ 1. Search for '404page'
50
  1. Activate the plugin through the 'Plugins' menu in WordPress
51
+
52
+ = Manually from wordpress.org =
53
+
54
+ 1. Download 404page from wordpress.org and unzip the archive
55
+ 1. Upload the `404page` folder to your `/wp-content/plugins/` directory
56
+ 1. Activate the plugin through the 'Plugins' menu in WordPress
57
+
58
+ == Frequently Asked Questions ==
59
+
60
+ = Are 404 errors redirected? =
61
+
62
+ No, there is no redirection! The chosen page is delivered as a 'real' 404 error page. This results in a HTTP 404 code and not in 301 or 302, which is important for Search Engines to tell them, that the page does not exist and should be deleted from the index.
63
 
64
  == Screenshots ==
65
 
68
 
69
  == Changelog ==
70
 
71
+ = 1.3 (2015-01-12) =
72
+ * technical improvement (rewritten as class)
73
+ * cosmetics
74
+ * tested up to 4.1
75
+
76
  = 1.2 (2014-07-28) =
77
  * Spanish translation
78
  * Serbo-Croatian translation