function smap_install_free() { $pluginName = 'xyz-wp-smap/xyz-wp-smap.php'; if (is_plugin_active($pluginName)) { wp_die("The plugin Social Media 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'); } add_option('xyz_smap_application_id', ''); add_option('xyz_smap_application_secret', ''); add_option('xyz_smap_fb_id', ''); add_option('xyz_smap_message', 'New post added at {BLOG_TITLE} - {POST_TITLE}'); add_option('xyz_smap_po_method', '2'); add_option('xyz_smap_post_permission', '1'); add_option('xyz_smap_current_appln_token', ''); add_option('xyz_smap_af', '1'); //authorization flag add_option('xyz_smap_pages_ids', '-1'); add_option('xyz_smap_twconsumer_secret', ''); add_option('xyz_smap_twconsumer_id', ''); add_option('xyz_smap_tw_id', ''); add_option('xyz_smap_current_twappln_token', ''); add_option('xyz_smap_twpost_permission', '1'); add_option('xyz_smap_twpost_image_permission', '1'); add_option('xyz_smap_twaccestok_secret', ''); add_option('xyz_smap_twmessage', '{POST_TITLE} - {PERMALINK}'); add_option('xyz_smap_application_lnarray', ''); add_option('xyz_smap_ln_shareprivate', '0'); add_option('xyz_smap_ln_sharingmethod', '0'); add_option('xyz_smap_lnapikey', ''); add_option('xyz_smap_lnapisecret', ''); add_option('xyz_smap_lnoauth_verifier', ''); add_option('xyz_smap_lnoauth_token', ''); add_option('xyz_smap_lnoauth_secret', ''); add_option('xyz_smap_lnpost_permission', '1'); add_option('xyz_smap_lnpost_image_permission', '1'); add_option('xyz_smap_lnaf', '1'); add_option('xyz_smap_lnmessage', '{POST_TITLE} - {PERMALINK}'); $version = get_option('xyz_smap_free_version'); $currentversion = xyz_smap_plugin_get_version(); update_option('xyz_smap_free_version', $currentversion); add_option('xyz_smap_include_pages', '0'); add_option('xyz_smap_include_posts', '1'); add_option('xyz_smap_include_categories', 'All'); add_option('xyz_smap_include_customposttypes', ''); add_option('xyz_smap_peer_verification', '1'); add_option('xyz_smap_fbap_post_logs', ''); add_option('xyz_smap_lnap_post_logs', ''); add_option('xyz_smap_twap_post_logs', ''); add_option('xyz_smap_premium_version_ads', '1'); add_option('xyz_smap_default_selection_edit', '0'); }
<style> </style> <h1 style="visibility: visible;">Social Media Auto Publish (V <?php echo xyz_smap_plugin_get_version(); ?> )</h1> <div style="width: 99%"> <p style="text-align: justify"> Social Media Auto Publish automatically publishes posts from your blog to your Facebook, Twitter and LinkedIn pages. It allows you to filter posts based on post-types and categories. Social Media 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/social-media-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>SMAP Free</h2> </td> <td><h2>SMAP Premium</h2></td> </tr>