Beispiel #1
0
function fbap_install_free()
{
    /*$pluginName = 'xyz-wp-smap/xyz-wp-smap.php';
    	if (is_plugin_active($pluginName)) {
    		wp_die( "The plugin Facebook Auto Publish cannot be activated unless the premium version of this plugin is deactivated. Back to <a href='".admin_url()."plugins.php'>Plugin Installation</a>." );
    	}*/
    global $current_user;
    get_currentuserinfo();
    if (get_option('xyz_credit_link') == "") {
        add_option("xyz_credit_link", '0');
    }
    $fbap_installed_date = get_option('fbap_installed_date');
    if ($fbap_installed_date == "") {
        $fbap_installed_date = time();
        update_option('fbap_installed_date', $fbap_installed_date);
    }
    add_option('xyz_fbap_application_id', '');
    add_option('xyz_fbap_application_secret', '');
    add_option('xyz_fbap_fb_id', '');
    add_option('xyz_fbap_message', 'New post added at {BLOG_TITLE} - {POST_TITLE}');
    add_option('xyz_fbap_po_method', '2');
    add_option('xyz_fbap_post_permission', '1');
    add_option('xyz_fbap_current_appln_token', '');
    add_option('xyz_fbap_af', '1');
    //authorization flag
    add_option('xyz_fbap_pages_ids', '-1');
    add_option('xyz_fbap_future_to_publish', '1');
    add_option('xyz_fbap_apply_filters', '');
    $version = get_option('xyz_fbap_free_version');
    $currentversion = xyz_fbap_plugin_get_version();
    update_option('xyz_fbap_free_version', $currentversion);
    add_option('xyz_fbap_include_pages', '0');
    add_option('xyz_fbap_include_posts', '1');
    add_option('xyz_fbap_include_categories', 'All');
    add_option('xyz_fbap_include_customposttypes', '');
    add_option('xyz_fbap_peer_verification', '1');
    add_option('xyz_fbap_post_logs', '');
    add_option('xyz_fbap_premium_version_ads', '1');
    add_option('xyz_fbap_default_selection_edit', '0');
}
Beispiel #2
0
<style>
</style>

<h1 style="visibility: visible;">Facebook Auto Publish (V <?php 
echo xyz_fbap_plugin_get_version();
?>
)</h1>

<div style="width: 99%">
<p style="text-align: justify">
Facebook Auto Publish automatically publishes posts from your blog to your  Facebook pages. It allows you to filter posts based on post-types and categories.
 Facebook Auto Publish is developed and maintained by <a href="http://xyzscripts.com">xyzscripts</a>.</p>

 

<p style="text-align: justify">
	If you would like to have more features , please try <a
		href="http://xyzscripts.com/wordpress-plugins/facebook-auto-publish/features"
		target="_blank">XYZ Social Media Auto Publish</a> which is a premium version of this
	plugin. We have included a quick comparison of the free and premium
	plugins for your reference.
</p>
 </div>
 <table class="xyz-premium-comparison" cellspacing=0 style="width: 99%;">
	<tr style="background-color: #EDEDED">
		<td><h2>Feature group</h2></td>
		<td><h2>Feature</h2></td>
		<td><h2>Free</h2>
		</td>
		<td><h2>Premium</h2></td>
	</tr>