Esempio n. 1
0
if ($_SERVER['HTTP_HOST'] == 'localhost' || $_SERVER['REMOTE_ADDR'] == '127.0.0.1' || $_SERVER['REMOTE_ADDR'] == '::1') {
    ?>
					<div class="overlay-bg"></div>
					<div class="running-localhost">
					<h2><?php 
    echo __('Looks like you are working on local setup.', 'ultimate_vc');
    ?>
 <br/> <?php 
    echo __('Don\'t worry about registering your purchase & license.', 'ultimate_vc');
    ?>
</h2>
					</div>
					<?php 
}
if (isset($_GET['action']) && $_GET['action'] === 'upgrade') {
    Ultimate_Admin_Area::upgradeFromMarketplace();
} else {
    ?>
            <h3 class="hndle">
            	<span class="dashicons-before dashicons-admin-network" style="padding-right: 5px;"></span>
                <?php 
    if ($ultimate_step == 2) {
        $title = __('Signup For Support', 'ultimate_vc');
    } else {
        if ($ultimate_step == 3) {
            $title = __('Manage Registration and Support', 'ultimate_vc');
        } else {
            $title = __('Register Your License', 'ultimate_vc');
        }
    }
    ?>
    function list_ultimate_updates()
    {
        $this->remote_version = $this->ult_getRemote_version();
        $upgradeLink = Ultimate_Admin_Area::getUltimateUpgradeLink();
        echo '<h3 id="brainstormforce-plugins">' . __('Brainstorm Force - Plugins', 'smile') . '</h3>';
        if (!version_compare($this->current_version, $this->remote_version, '<')) {
            echo '<p>' . __('Your plugins from Brainstorm Force are all up to date.', 'smile') . '</p>';
        } else {
            echo '<p>' . __('The following plugins from Brainstorm Force have new versions available.', 'smile') . '</p>';
            ?>
        <table class="widefat" cellspacing="0" id="update-plugins-table">
			<thead>
			<tr>
				<th scope="col" class="manage-column"><label><?php 
            _e('Name', 'smile');
            ?>
</label></th>
				<th scope="col" class="manage-column"><label><?php 
            _e('Installed Version', 'smile');
            ?>
</label></th>
				<th scope="col" class="manage-column"><label><?php 
            _e('Latest Version', 'smile');
            ?>
</label></th>
				<th scope="col" class="manage-column"><label><?php 
            _e('Actions', 'smile');
            ?>
</label></th>
			</tr>
			</thead>

			<tfoot>
			<tr>
				<th scope="col" class="manage-column"><label><?php 
            _e('Name', 'smile');
            ?>
</label></th>
				<th scope="col" class="manage-column"><label><?php 
            _e('Installed Version', 'smile');
            ?>
</label></th>
				<th scope="col" class="manage-column"><label><?php 
            _e('Latest Version', 'smile');
            ?>
</label></th>
				<th scope="col" class="manage-column"><label><?php 
            _e('Actions', 'smile');
            ?>
</label></th>
			</tr>
			</tfoot>
			<tbody class="plugins">
			<tr class='active'>
				<td class='plugin-title'><strong>Ultimate Addons for Visual Composer</strong><?php 
            _e('You have version ' . $this->current_version . ' installed. Update to ' . $this->remote_version);
            ?>
</td>
				<td style='vertical-align:middle'><strong><?php 
            echo $this->current_version;
            ?>
</strong></td>
				<td style='vertical-align:middle'><strong><a href='http://ultimate2.sharkslab.com/wp-admin/plugin-install.php?tab=plugin-information&amp;plugin=Ultimate_VC_Addons&amp;section=changelog&amp;TB_iframe=true&amp;width=830&amp;height=319' class='thickbox' title='View version <?php 
            echo $this->remote_version;
            ?>
 details'><?php 
            echo $this->remote_version;
            ?>
</a></strong></td>
				<td style='vertical-align:middle'><?php 
            echo $upgradeLink;
            ?>
</td>
				</tr>
            </tbody>
		</table>
        <?php 
        }
    }
Esempio n. 3
0
    function list_ultimate_updates()
    {
        //$this->remote_version = $this->ult_getRemote_version();
        $remote_version = get_option("ultimate_notify_update");
        $Ultimate_Admin_Area = new Ultimate_Admin_Area();
        $upgradeLink = $Ultimate_Admin_Area->getUltimateUpgradeLink();
        $transient = get_transient('ultimate_update_checked');
        echo '<h3 id="brainstormforce-plugins">Brainstorm Force - ' . __('Plugins', 'ultimate_vc') . '</h3>';
        $display_updates = false;
        if (!version_compare($this->current_version, $remote_version, '<')) {
            //if(!$remote_version){
            echo '<p>' . __('Your plugins from Brainstorm Force are all up to date.', 'ultimate_vc') . '</p>';
        } else {
            echo '<p>' . __('The following plugins from Brainstorm Force have new versions available.', 'ultimate_vc') . '</p>';
            ?>
        <table class="widefat" cellspacing="0" id="update-plugins-table">
			<thead>
			<tr>
				<th scope="col" class="manage-column"><label><?php 
            _e('Name', 'ultimate_vc');
            ?>
</label></th>
				<th scope="col" class="manage-column"><label><?php 
            _e('Installed Version', 'ultimate_vc');
            ?>
</label></th>
				<th scope="col" class="manage-column"><label><?php 
            _e('Latest Version', 'ultimate_vc');
            ?>
</label></th>
				<th scope="col" class="manage-column"><label><?php 
            _e('Actions', 'ultimate_vc');
            ?>
</label></th>
			</tr>
			</thead>
			<tfoot>
			<tr>
				<th scope="col" class="manage-column"><label><?php 
            _e('Name', 'ultimate_vc');
            ?>
</label></th>
				<th scope="col" class="manage-column"><label><?php 
            _e('Installed Version', 'ultimate_vc');
            ?>
</label></th>
				<th scope="col" class="manage-column"><label><?php 
            _e('Latest Version', 'ultimate_vc');
            ?>
</label></th>
				<th scope="col" class="manage-column"><label><?php 
            _e('Actions', 'ultimate_vc');
            ?>
</label></th>
			</tr>
			</tfoot>
			<tbody class="plugins">
			<tr class='active'>
				<td class='plugin-title'><strong>Ultimate Addons for Visual Composer</strong><?php 
            _e('You have version ' . $this->current_version . ' installed. Update to ' . $remote_version, 'ultimate_vc');
            ?>
</td>
				<td style='vertical-align:middle'><strong><?php 
            echo __($this->current_version, 'ultimate_vc');
            ?>
</strong></td>
				<td style='vertical-align:middle'><strong><a href='<?php 
            echo admin_url();
            ?>
plugin-install.php?tab=plugin-information&amp;plugin=Ultimate_VC_Addons&amp;section=changelog&amp;TB_iframe=true&amp;width=830&amp;height=319' class='thickbox' title='<?php 
            echo __('View version ' . $remote_version . ' details', 'ultimate_vc');
            ?>
'><?php 
            echo __($remote_version, 'ultimate_vc');
            ?>
</a></strong></td>
				<td style='vertical-align:middle'><?php 
            echo $upgradeLink;
            ?>
</td>
				</tr>
            </tbody>
		</table>
        <?php 
        }
    }