Ejemplo n.º 1
0
function rw_site_redirect($location = '')
{
    rw_redirect(rw_get_site_url($location));
    exit;
}
Ejemplo n.º 2
0
 function get_upgrade_url($plan = WP_FS__PLAN_DEFAULT_PAID, $period = WP_FS__PERIOD_ANNUALLY)
 {
     $this->_logger->entrance();
     if (!$this->_site->secret_key || !defined('WP_RW__SITE_ID')) {
         // Backwards compatibility //////////////////////////////////////
         $params = array('uid' => WP_RW__SITE_PUBLIC_KEY);
         $relative = '/get-the-word-press-plugin/?' . http_build_query($params);
         return rw_get_site_url($relative);
     } else {
         // New in-plugin pricing page ////////////////////////////////////////////
         return fs_get_admin_plugin_url('pricing');
     }
 }
Ejemplo n.º 3
0
 private function GetEmailConfirmationUrl()
 {
     $uri = rw_get_admin_url();
     // ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
     $timestamp = time();
     $params = array('ts' => $timestamp, 'key' => $this->account->site_public_key, 'src' => $uri);
     $confirmation = $timestamp . $this->account->site_public_key . $uri;
     $params['s'] = md5($confirmation);
     $query = http_build_query($params);
     return rw_get_site_url('/signup/wordpress/confirm/') . '?' . $query;
 }
Ejemplo n.º 4
0
 public function ModifyPluginActionLinks($links, $file)
 {
     // Return normal links if not BuddyPress
     if (plugin_basename(WP_RW__PLUGIN_FILE_FULL) != $file) {
         return $links;
     }
     // Add a few links to the existing links array
     return array_merge($links, array('settings' => '<a href="' . rw_get_admin_url() . '">' . esc_html__('Settings', WP_RW__ADMIN_MENU_SLUG) . '</a>', 'blog' => '<a href="' . rw_get_site_url('/blog/') . '">' . esc_html__('Blog', WP_RW__ADMIN_MENU_SLUG) . '</a>', 'upgrade' => '<a href="' . rw_get_site_url('/get-the-word-press-plugin/') . '">' . esc_html__('Upgrade', WP_RW__ADMIN_MENU_SLUG) . '</a>'));
 }
Ejemplo n.º 5
0
 function LicenseSyncSameNotice()
 {
     $this->Notice('Hmm... it looks like your license remained the same. If you did upgrade, it\'s probably an issue on our side (sorry). Please contact us <a href="' . rw_get_site_url('/contact/?' . http_build_query(array('topic' => 'Report an Issue', 'email' => WP_RW__OWNER_EMAIL, 'site_id' => $this->fs->get_site()->id, 'user_id' => $this->fs->get_user()->id, 'website' => get_site_url(), 'platform' => 'wordpress', 'message' => 'I\'ve upgraded my account but when I try to Sync the License in my WordPress Dashboard -> Ratings -> Account, the license remains the same.' . "\n" . 'Your Upgraded Plan: [REPLACE WITH PLAN NAME]' . "\n" . 'Your PayPal Email: [REPLACE WITH PAYPAL ADDRESS]'))) . '" target="_blank">here</a>.');
 }
Ejemplo n.º 6
0
            <div style="margin-top: 20px;">
                <input type="hidden" id="rw_siteurl" name="siteurl" value="<?php 
echo esc_attr(get_option('siteurl', ""));
?>
" />
                <input type="hidden" id="rw_blogtitle" name="blogtitle" value="<?php 
echo esc_attr(get_option('blogname', ""));
?>
" />
                <button class="button button-primary button-large">Activate Account »</button>
            </div>
        </div>
        <div id="rw_wp_registration_sections">
            <ul>
<?php 
$sections = array(array('title' => 'Engage Your Readers in a Click of a Button.', 'desc' => 'Show  users you care by providing a one-click feedback functionality.', 'thumb' => WP_RW__ADDRESS_IMG . 'wordpress/register/engage-with-readers.png'), array('title' => 'Instant Feedback for Your Content.', 'desc' => 'Continualy  improve your content by learning what your readers like most.', 'thumb' => WP_RW__ADDRESS_IMG . 'wordpress/register/instant-feedback.png'), array('title' => 'Decorate Your Blog with Beautiful Ratings.', 'desc' => 'With more than 50 beautiful themes, give your blog an eye-catching look with easy customization.', 'thumb' => WP_RW__ADDRESS_IMG . 'wordpress/register/beautiful-ratings.png'), array('title' => 'SEO Friendly: Increase Search Traffic with Rich-Snippets', 'desc' => '<a href="' . rw_get_site_url('get-the-word-press-plugin') . '" target="_blank">Premium users</a> enjoy the popular Rich-Snippets feature - makes  search results stand out among the crowd and increases CTR.', 'thumb' => WP_RW__ADDRESS_IMG . 'wordpress/register/seo-friendly.png'));
foreach ($sections as $section) {
    ?>
                <li>
                    <img src="<?php 
    echo $section['thumb'];
    ?>
" alt="" />
                    <div>
                        <h3><?php 
    echo $section['title'];
    ?>
</h3>
                        <p><?php 
    echo $section['desc'];
    ?>