Version Description
- Confirmed compatibility with WordPress 3.5 release.
Download this release
Release Info
Developer | VelvetBlues.com |
Plugin | Velvet Blues Update URLs |
Version | 3.1 |
Comparing to | |
See all releases |
Code changes from version 3.0 to 3.1
- readme.txt +14 -2
- screenshot-1.png +0 -0
- velvet-blues-update-urls.php +156 -144
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: VelvetBlues.com
|
|
3 |
Donate link: http://www.velvetblues.com/go/updateurlsdonate/
|
4 |
Tags: permalinks, urls, links, update links, move wordpress, location, update urls, update permalinks, move, link, url, permalink, excerpt, content links, excerpt links, custom field links
|
5 |
Requires at least: 2.5
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 3.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Updates all urls and content links in your website.
|
@@ -63,6 +63,10 @@ Get support for this plugin by going to the [Velvet Blues Update URLs plugin pag
|
|
63 |
|
64 |
Thanks, donations help us to continue improving our plugins. [Donate Here via PayPal.](http://www.velvetblues.com/go/updateurlsdonate/)
|
65 |
|
|
|
|
|
|
|
|
|
66 |
|
67 |
== Screenshots ==
|
68 |
|
@@ -70,6 +74,14 @@ Get support for this plugin by going to the [Velvet Blues Update URLs plugin pag
|
|
70 |
|
71 |
== Change Log ==
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
= 3.0 =
|
74 |
* Confirmed compatibility with latest WordPress releases and added support for future versions.
|
75 |
* Redesigned interface.
|
3 |
Donate link: http://www.velvetblues.com/go/updateurlsdonate/
|
4 |
Tags: permalinks, urls, links, update links, move wordpress, location, update urls, update permalinks, move, link, url, permalink, excerpt, content links, excerpt links, custom field links
|
5 |
Requires at least: 2.5
|
6 |
+
Tested up to: 3.6.1
|
7 |
+
Stable tag: 3.2
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Updates all urls and content links in your website.
|
63 |
|
64 |
Thanks, donations help us to continue improving our plugins. [Donate Here via PayPal.](http://www.velvetblues.com/go/updateurlsdonate/)
|
65 |
|
66 |
+
= I'm afraid to screw this up. Will you do it for me? =
|
67 |
+
|
68 |
+
Of course! Velvet Blues will backup your website and replace your URLs for only $29. If you need your website moved, we charge a flat fee of $65 and will finish your move within 48 hours - week days only. For same-day or weekend jobs, we charge a flat rate of $105. Contact us at info@velvetblues.com for more information.
|
69 |
+
|
70 |
|
71 |
== Screenshots ==
|
72 |
|
74 |
|
75 |
== Change Log ==
|
76 |
|
77 |
+
= 3.2 =
|
78 |
+
* Confirmed compatibility with WordPress 3.6.x releases.
|
79 |
+
* Added option to replace urls within Links.
|
80 |
+
* Updated success and error dialogs and other text throught plugin.
|
81 |
+
|
82 |
+
= 3.1 =
|
83 |
+
* Confirmed compatibility with WordPress 3.5 release.
|
84 |
+
|
85 |
= 3.0 =
|
86 |
* Confirmed compatibility with latest WordPress releases and added support for future versions.
|
87 |
* Redesigned interface.
|
screenshot-1.png
CHANGED
Binary file
|
velvet-blues-update-urls.php
CHANGED
@@ -1,145 +1,157 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Velvet Blues Update URLs
|
4 |
-
Plugin URI: http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/
|
5 |
-
Description: This plugin <strong>updates all urls in your website</strong> by replacing old urls with new urls. To get started: 1) Click the "Activate" link to the left of this description, and 2) Go to your <a href="options-general.php?page=velvet-blues-update-urls.php">Update URLs</a> page to use it.
|
6 |
-
Author: VelvetBlues.com
|
7 |
-
Author URI: http://www.velvetblues.com/
|
8 |
-
Author Email: info@velvetblues.com
|
9 |
-
Version: 3.
|
10 |
-
License: GPLv2 or later
|
11 |
-
Text Domain: velvet-blues-update-urls
|
12 |
-
*/
|
13 |
-
/* Copyright
|
14 |
-
|
15 |
-
This program is free software; you can redistribute it and/or
|
16 |
-
modify it under the terms of the GNU General Public License
|
17 |
-
as published by the Free Software Foundation; either version 2
|
18 |
-
of the License, or (at your option) any later version.
|
19 |
-
|
20 |
-
This program is distributed in the hope that it will be useful,
|
21 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
22 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
23 |
-
GNU General Public License for more details.
|
24 |
-
|
25 |
-
You should have received a copy of the GNU General Public License
|
26 |
-
along with this program; if not, write to the Free Software
|
27 |
-
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
28 |
-
*/
|
29 |
-
if ( !function_exists( 'add_action' ) ) {
|
30 |
-
?><h3>Oops! This page cannot be accessed directly.</h3>
|
31 |
-
<p>For support using the Velvet Blues Update URLs plugin, <a href="http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/" title="Velvet Blues Update URLs WordPress plugin">click here</a>.</p>
|
32 |
-
<p>If you are looking for general WordPress assistance, <a href="http://www.velvetblues.com/" title="WordPress Web Development and Services">Velvet Blues can help with that too</a>.</p><?php
|
33 |
-
exit;
|
34 |
-
}
|
35 |
-
function VelvetBluesUU_add_options_page(){
|
36 |
-
add_options_page("Velvet Blues Update URLs", "Update URLs", "manage_options", basename(__FILE__), "VelvetBluesUU_options_page");
|
37 |
-
}
|
38 |
-
function VelvetBluesUU_load_textdomain(){
|
39 |
-
load_plugin_textdomain( 'velvet-blues-update-urls', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
40 |
-
}
|
41 |
-
function VelvetBluesUU_options_page(){
|
42 |
-
function VB_update_urls($options,$oldurl,$newurl){
|
43 |
-
global $wpdb;
|
44 |
-
$results = array();
|
45 |
-
$queries = array(
|
46 |
-
'content' => array("UPDATE $wpdb->posts SET post_content = replace(post_content,
|
47 |
-
'excerpts' => array("UPDATE $wpdb->posts SET post_excerpt = replace(post_excerpt,
|
48 |
-
'attachments' => array("UPDATE $wpdb->posts SET guid = replace(guid,
|
49 |
-
'
|
50 |
-
'
|
51 |
-
)
|
52 |
-
|
53 |
-
|
54 |
-
$
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
$
|
63 |
-
|
64 |
-
|
65 |
-
$
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
$
|
75 |
-
|
76 |
-
|
77 |
-
$
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
$
|
88 |
-
|
89 |
-
|
90 |
-
$
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
$
|
96 |
-
$
|
97 |
-
$
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
<
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
?>
|
115 |
-
<
|
116 |
-
<
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
<
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
<
|
127 |
-
<
|
128 |
-
|
129 |
-
|
130 |
-
<
|
131 |
-
<
|
132 |
-
<
|
133 |
-
<
|
134 |
-
<input name="
|
135 |
-
|
136 |
-
<
|
137 |
-
|
138 |
-
<
|
139 |
-
</
|
140 |
-
<
|
141 |
-
<?php
|
142 |
-
|
143 |
-
|
144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
?>
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Velvet Blues Update URLs
|
4 |
+
Plugin URI: http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/
|
5 |
+
Description: This plugin <strong>updates all urls in your website</strong> by replacing old urls with new urls. To get started: 1) Click the "Activate" link to the left of this description, and 2) Go to your <a href="options-general.php?page=velvet-blues-update-urls.php">Update URLs</a> page to use it.
|
6 |
+
Author: VelvetBlues.com
|
7 |
+
Author URI: http://www.velvetblues.com/
|
8 |
+
Author Email: info@velvetblues.com
|
9 |
+
Version: 3.2
|
10 |
+
License: GPLv2 or later
|
11 |
+
Text Domain: velvet-blues-update-urls
|
12 |
+
*/
|
13 |
+
/* Copyright 2013 Velvet Blues Web Design (email : info@velvetblues.com)
|
14 |
+
|
15 |
+
This program is free software; you can redistribute it and/or
|
16 |
+
modify it under the terms of the GNU General Public License
|
17 |
+
as published by the Free Software Foundation; either version 2
|
18 |
+
of the License, or (at your option) any later version.
|
19 |
+
|
20 |
+
This program is distributed in the hope that it will be useful,
|
21 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
22 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
23 |
+
GNU General Public License for more details.
|
24 |
+
|
25 |
+
You should have received a copy of the GNU General Public License
|
26 |
+
along with this program; if not, write to the Free Software
|
27 |
+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
28 |
+
*/
|
29 |
+
if ( !function_exists( 'add_action' ) ) {
|
30 |
+
?><h3>Oops! This page cannot be accessed directly.</h3>
|
31 |
+
<p>For support using the Velvet Blues Update URLs plugin, <a href="http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/" title="Velvet Blues Update URLs WordPress plugin">click here</a>.</p>
|
32 |
+
<p>If you are looking for general WordPress assistance, <a href="http://www.velvetblues.com/" title="WordPress Web Development and Services">Velvet Blues can help with that too</a>.</p><?php
|
33 |
+
exit;
|
34 |
+
}
|
35 |
+
function VelvetBluesUU_add_options_page(){
|
36 |
+
add_options_page("Velvet Blues Update URLs", "Update URLs", "manage_options", basename(__FILE__), "VelvetBluesUU_options_page");
|
37 |
+
}
|
38 |
+
function VelvetBluesUU_load_textdomain(){
|
39 |
+
load_plugin_textdomain( 'velvet-blues-update-urls', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
40 |
+
}
|
41 |
+
function VelvetBluesUU_options_page(){
|
42 |
+
function VB_update_urls($options,$oldurl,$newurl){
|
43 |
+
global $wpdb;
|
44 |
+
$results = array();
|
45 |
+
$queries = array(
|
46 |
+
'content' => array("UPDATE $wpdb->posts SET post_content = replace(post_content, %s, %s)", __('Content Items (Posts, Pages, Custom Post Types, Revisions)','velvet-blues-update-urls') ),
|
47 |
+
'excerpts' => array("UPDATE $wpdb->posts SET post_excerpt = replace(post_excerpt, %s, %s)", __('Excerpts','velvet-blues-update-urls') ),
|
48 |
+
'attachments' => array("UPDATE $wpdb->posts SET guid = replace(guid, %s, %s) WHERE post_type = 'attachment'", __('Attachments','velvet-blues-update-urls') ),
|
49 |
+
'links' => array("UPDATE $wpdb->links SET link_url = replace(link_url, %s, %s)", __('Links','velvet-blues-update-urls') ),
|
50 |
+
'custom' => array("UPDATE $wpdb->postmeta SET meta_value = replace(meta_value, %s, %s)", __('Custom Fields','velvet-blues-update-urls') ),
|
51 |
+
'guids' => array("UPDATE $wpdb->posts SET guid = replace(guid, %s, %s)", __('GUIDs','velvet-blues-update-urls') )
|
52 |
+
);
|
53 |
+
foreach($options as $option){
|
54 |
+
$result = $wpdb->query( $wpdb->prepare( $queries[$option][0], $oldurl, $newurl) );
|
55 |
+
$results[$option] = array($result, $queries[$option][1]);
|
56 |
+
}
|
57 |
+
return $results;
|
58 |
+
}
|
59 |
+
if ( isset( $_POST['VBUU_settings_submit'] ) && !check_admin_referer('VBUU_submit','VBUU_nonce')){
|
60 |
+
if(isset($_POST['VBUU_oldurl']) && isset($_POST['VBUU_newurl'])){
|
61 |
+
if(function_exists('esc_attr')){
|
62 |
+
$vbuu_oldurl = esc_attr(trim($_POST['VBUU_oldurl']));
|
63 |
+
$vbuu_newurl = esc_attr(trim($_POST['VBUU_newurl']));
|
64 |
+
}else{
|
65 |
+
$vbuu_oldurl = attribute_escape(trim($_POST['VBUU_oldurl']));
|
66 |
+
$vbuu_newurl = attribute_escape(trim($_POST['VBUU_newurl']));
|
67 |
+
}
|
68 |
+
}
|
69 |
+
echo '<div id="message" class="error fade"><p><strong>'.__('ERROR','velvet-blues-update-urls').' - '.__('Please try again.','velvet-blues-update-urls').'</strong></p></div>';
|
70 |
+
}
|
71 |
+
elseif( isset( $_POST['VBUU_settings_submit'] ) && !isset( $_POST['VBUU_update_links'] ) ){
|
72 |
+
if(isset($_POST['VBUU_oldurl']) && isset($_POST['VBUU_newurl'])){
|
73 |
+
if(function_exists('esc_attr')){
|
74 |
+
$vbuu_oldurl = esc_attr(trim($_POST['VBUU_oldurl']));
|
75 |
+
$vbuu_newurl = esc_attr(trim($_POST['VBUU_newurl']));
|
76 |
+
}else{
|
77 |
+
$vbuu_oldurl = attribute_escape(trim($_POST['VBUU_oldurl']));
|
78 |
+
$vbuu_newurl = attribute_escape(trim($_POST['VBUU_newurl']));
|
79 |
+
}
|
80 |
+
}
|
81 |
+
echo '<div id="message" class="error fade"><p><strong>'.__('ERROR','velvet-blues-update-urls').' - '.__('Your URLs have not been updated.','velvet-blues-update-urls').'</p></strong><p>'.__('Please select at least one checkbox.','velvet-blues-update-urls').'</p></div>';
|
82 |
+
}
|
83 |
+
elseif( isset( $_POST['VBUU_settings_submit'] ) ){
|
84 |
+
$vbuu_update_links = $_POST['VBUU_update_links'];
|
85 |
+
if(isset($_POST['VBUU_oldurl']) && isset($_POST['VBUU_newurl'])){
|
86 |
+
if(function_exists('esc_attr')){
|
87 |
+
$vbuu_oldurl = esc_attr(trim($_POST['VBUU_oldurl']));
|
88 |
+
$vbuu_newurl = esc_attr(trim($_POST['VBUU_newurl']));
|
89 |
+
}else{
|
90 |
+
$vbuu_oldurl = attribute_escape(trim($_POST['VBUU_oldurl']));
|
91 |
+
$vbuu_newurl = attribute_escape(trim($_POST['VBUU_newurl']));
|
92 |
+
}
|
93 |
+
}
|
94 |
+
if(($vbuu_oldurl && $vbuu_oldurl != 'http://www.oldurl.com' && trim($vbuu_oldurl) != '') && ($vbuu_newurl && $vbuu_newurl != 'http://www.newurl.com' && trim($vbuu_newurl) != '')){
|
95 |
+
$results = VB_update_urls($vbuu_update_links,$vbuu_oldurl,$vbuu_newurl);
|
96 |
+
$empty = false;
|
97 |
+
$emptystring = '<strong>'.__('Why do the results show 0 URLs updated?','velvet-blues-update-urls').'</strong><br/>'.__('This happens if a URL is incorrect OR if it is not found in the content. Check your URLs and try again.','velvet-blues-update-urls').'<br/><br/><strong>'.__('Want us to do it for you?','velvet-blues-update-urls').'</strong><br/>'.__('Contact us at','velvet-blues-update-urls').' <a href="mailto:info@velvetblues.com?subject=Move%20My%20WP%20Site">info@velvetblues.com</a>. '.__('We will backup your website and move it for $65 OR simply update your URLs for only $29.','velvet-blues-update-urls');
|
98 |
+
|
99 |
+
$resultstring = '';
|
100 |
+
foreach($results as $result){
|
101 |
+
$empty = ($result[0] == 0 || $empty == true)? true : false;
|
102 |
+
$resultstring .= '<br/><strong>'.$result[0].'</strong> '.$result[1];
|
103 |
+
}
|
104 |
+
|
105 |
+
if( $empty ):
|
106 |
+
?>
|
107 |
+
<div id="message" class="error fade"><table><tr><td><p><strong><?php _e('ERROR: Something may have gone wrong.','velvet-blues-update-urls'); ?></strong><br/><?php _e('Your URLs have not been updated.','velvet-blues-update-urls'); ?></p>
|
108 |
+
<?php
|
109 |
+
else:
|
110 |
+
?>
|
111 |
+
<div id="message" class="updated fade"><table><tr><td><p><strong><?php _e('Success! Your URLs have been updated.','velvet-blues-update-urls'); ?></strong></p>
|
112 |
+
<?php
|
113 |
+
endif;
|
114 |
+
?>
|
115 |
+
<p><u><?php _e('Results','velvet-blues-update-urls'); ?></u><?php echo $resultstring; ?></p>
|
116 |
+
<?php echo ($empty)? '<p>'.$emptystring.'</p>' : ''; ?>
|
117 |
+
</td><td width="60"></td>
|
118 |
+
<td align="center"><?php if( !$empty ): ?><p><?php //You can now uninstall this plugin.<br/> ?><?php printf(__('If you found our plugin useful, %s please consider donating','velvet-blues-update-urls'),'<br/>'); ?>.</p><p><a style="outline:none;" href="http://www.velvetblues.com/go/updateurlsdonate/" target="_blank"><img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" alt="PayPal -<?php _e('The safer, easier way to pay online!','velvet-blues-update-urls'); ?>"></a></p><?php endif; ?></td></tr></table></div>
|
119 |
+
<?php
|
120 |
+
}
|
121 |
+
else{
|
122 |
+
echo '<div id="message" class="error fade"><p><strong>'.__('ERROR','velvet-blues-update-urls').' - '.__('Your URLs have not been updated.','velvet-blues-update-urls').'</p></strong><p>'.__('Please enter values for both the old url and the new url.','velvet-blues-update-urls').'</p></div>';
|
123 |
+
}
|
124 |
+
}
|
125 |
+
?>
|
126 |
+
<div class="wrap">
|
127 |
+
<h2>Velvet Blues Update URLs</h2>
|
128 |
+
<form method="post" action="options-general.php?page=<?php echo basename(__FILE__); ?>">
|
129 |
+
<?php wp_nonce_field('VBUU_submit','VBUU_nonce'); ?>
|
130 |
+
<p><?php printf(__("After moving a website, %s lets you fix old URLs in content, excerpts, links, and custom fields.",'velvet-blues-update-urls'),'<strong>Update URLs</strong>'); ?></p><p><strong><?php _e('WE RECOMMEND THAT YOU BACKUP YOUR WEBSITE.','velvet-blues-update-urls'); ?></strong><br/><?php _e('You may need to restore it if incorrect URLs are entered in the fields below.','velvet-blues-update-urls'); ?></p>
|
131 |
+
<h3 style="margin-bottom:5px;"><?php _e('Step'); ?> 1: <?php _e('Enter your URLs in the fields below','velvet-blues-update-urls'); ?></h3>
|
132 |
+
<table class="form-table"><tr valign="middle">
|
133 |
+
<th scope="row" width="140" style="width:140px"><strong><?php _e('Old URL','velvet-blues-update-urls'); ?></strong><br/><span class="description"><?php _e('Old Site Address','velvet-blues-update-urls'); ?></span></th>
|
134 |
+
<td><input name="VBUU_oldurl" type="text" id="VBUU_oldurl" value="<?php echo (isset($vbuu_oldurl) && trim($vbuu_oldurl) != '')? $vbuu_oldurl : 'http://www.oldurl.com'; ?>" style="width:300px;font-size:20px;" onfocus="if(this.value=='http://www.oldurl.com') this.value='';" onblur="if(this.value=='') this.value='http://www.oldurl.com';" /></td>
|
135 |
+
</tr>
|
136 |
+
<tr valign="middle">
|
137 |
+
<th scope="row" width="140" style="width:140px"><strong><?php _e('New URL','velvet-blues-update-urls'); ?></strong><br/><span class="description"><?php _e('New Site Address','velvet-blues-update-urls'); ?></span></th>
|
138 |
+
<td><input name="VBUU_newurl" type="text" id="VBUU_newurl" value="<?php echo (isset($vbuu_newurl) && trim($vbuu_newurl) != '')? $vbuu_newurl : 'http://www.newurl.com'; ?>" style="width:300px;font-size:20px;" onfocus="if(this.value=='http://www.newurl.com') this.value='';" onblur="if(this.value=='') this.value='http://www.newurl.com';" /></td>
|
139 |
+
</tr></table>
|
140 |
+
<br/>
|
141 |
+
<h3 style="margin-bottom:5px;"><?php _e('Step'); ?> 2: <?php _e('Choose which URLs should be updated','velvet-blues-update-urls'); ?></h3>
|
142 |
+
<table class="form-table"><tr><td><p style="line-height:20px;">
|
143 |
+
<input name="VBUU_update_links[]" type="checkbox" id="VBUU_update_true" value="content" checked="checked" /> <label for="VBUU_update_true"><strong><?php _e('URLs in page content','velvet-blues-update-urls'); ?></strong> (<?php _e('posts, pages, custom post types, revisions','velvet-blues-update-urls'); ?>)</label><br/>
|
144 |
+
<input name="VBUU_update_links[]" type="checkbox" id="VBUU_update_true" value="excerpts" /> <label for="VBUU_update_true"><strong><?php _e('URLs in excerpts','velvet-blues-update-urls'); ?></strong></label><br/>
|
145 |
+
<input name="VBUU_update_links[]" type="checkbox" id="VBUU_update_true" value="links" /> <label for="VBUU_update_true"><strong><?php _e('URLs in links','velvet-blues-update-urls'); ?></strong></label><br/>
|
146 |
+
<input name="VBUU_update_links[]" type="checkbox" id="VBUU_update_true" value="attachments" /> <label for="VBUU_update_true"><strong><?php _e('URLs for attachments','velvet-blues-update-urls'); ?></strong> (<?php _e('images, documents, general media','velvet-blues-update-urls'); ?>)</label><br/>
|
147 |
+
<input name="VBUU_update_links[]" type="checkbox" id="VBUU_update_true" value="custom" /> <label for="VBUU_update_true"><strong><?php _e('URLs in custom fields and meta boxes','velvet-blues-update-urls'); ?></strong></label><br/>
|
148 |
+
<input name="VBUU_update_links[]" type="checkbox" id="VBUU_update_true" value="guids" /> <label for="VBUU_update_true"><strong><?php _e('Update ALL GUIDs','velvet-blues-update-urls'); ?></strong> <span class="description" style="color:#f00;"><?php _e('GUIDs for posts should only be changed on development sites.','velvet-blues-update-urls'); ?></span> <a href="http://www.velvetblues.com/go/guids/" target="_blank"><?php _e('Learn More.','velvet-blues-update-urls'); ?></a></label>
|
149 |
+
</p></td></tr></table>
|
150 |
+
<p><input class="button-primary" name="VBUU_settings_submit" value="<?php _e('Update URLs NOW','velvet-blues-update-urls'); ?>" type="submit" /></p>
|
151 |
+
</form>
|
152 |
+
<p> <br/><strong><?php _e('Need help?','velvet-blues-update-urls'); ?></strong> <?php printf(__("Get support at the %s plugin page%s.",'velvet-blues-update-urls'),'<a href="http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/" target="_blank">Velvet Blues Update URLs','</a>'); ?><?php if( !isset( $empty ) ): ?><br/><strong><?php _e('Want us to do it for you?','velvet-blues-update-urls'); ?></strong> <?php _e('Contact us at','velvet-blues-update-urls'); ?> <a href="mailto:info@velvetblues.com?subject=Move%20My%20WP%20Site">info@velvetblues.com</a>. <?php _e('We will backup your website and move it for $65 OR update your URLs for only $29.','velvet-blues-update-urls'); ?><?php endif; ?></p>
|
153 |
+
<?php
|
154 |
+
}
|
155 |
+
add_action('admin_menu', 'VelvetBluesUU_add_options_page');
|
156 |
+
add_action('admin_init','VelvetBluesUU_load_textdomain');
|
157 |
?>
|