Changeset 2804148
- Timestamp:
- 10/25/2022 10:25:49 PM (3 years ago)
- Location:
- social-networks-auto-poster-facebook-twitter-g/trunk
- Files:
-
- 15 added
- 12 edited
-
NextScripts_SNAP.php (modified) (3 diffs)
-
img/addn (added)
-
img/addn/addn-aci-001.png (added)
-
img/addn/addn-api-001.png (added)
-
img/addn/addn-ci-001.png (added)
-
img/addn/addn-ma-001.png (added)
-
img/addn/addn-mu-001.png (added)
-
img/addn/addn-prx-001.png (added)
-
img/addn/addn-rp-001.png (added)
-
img/addn/addn-sd-001.png (added)
-
img/addn/addn-vi-001.png (added)
-
img/mw-bg.png (added)
-
img/mw16.png (added)
-
inc-cl/fb.php (modified) (1 diff)
-
inc/nxs_class_addns.php (added)
-
inc/nxs_class_flt.php (modified) (1 diff)
-
inc/nxs_class_http.php (modified) (3 diffs)
-
inc/nxs_class_mgmt.php (modified) (8 diffs)
-
inc/nxs_class_ntlist.php (modified) (4 diffs)
-
inc/nxs_class_snap.php (modified) (9 diffs)
-
inc/nxs_functions.php (modified) (1 diff)
-
inc/nxs_functions_adv.php (modified) (2 diffs)
-
inc/nxs_functions_wp.php (modified) (3 diffs)
-
js-css/bootstrap.css (added)
-
js-css/bootstrap.js (added)
-
js-css/snap.css (modified) (1 diff)
-
readme.txt (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
social-networks-auto-poster-facebook-twitter-g/trunk/NextScripts_SNAP.php
r2760471 r2804148 5 5 Description: This plugin automatically publishes posts from your blog to your social media accounts on Twitter, FB, Telegram, LinkedIn, and 25 more networks. 6 6 Author: NextScripts 7 Version: 4. 3.307 Version: 4.4.1 8 8 Author URI: https://www.nextscripts.com 9 9 Text Domain: social-networks-auto-poster-facebook-twitter-g … … 11 11 */ 12 12 13 define( 'NextScripts_SNAP_Version' , '4.3.30' ); define( 'NextScripts_SNAP_Version_Date' , 'July 22, 2022' ); require_once "inc/nxs_functions_wp.php"; if(!defined( 'NXSSNAP_BASENAME' ) ) define( 'NXSSNAP_BASENAME', plugin_basename( __FILE__ ) ); 13 const NextScripts_SNAP_Version = '4.4.1'; const NextScripts_SNAP_Version_Date = 'Oct 21, 2022'; 14 require_once "inc/nxs_functions_wp.php"; if(!defined( 'NXSSNAP_BASENAME' ) ) define( 'NXSSNAP_BASENAME', plugin_basename( __FILE__ ) ); 14 15 15 if (true===nxs_doSystemInitCheck()) { // error_reporting(E_ALL); ini_set('display_errors', '1');16 require_once "inc/nxs_functions.php"; require_once "inc/nxs_functions_adv.php"; require_once "inc/nxs_functions_engine.php"; require_once "inc/nxs_class_http.php"; 16 if (true===nxs_doSystemInitCheck()) { // error_reporting(E_ALL); ini_set('display_errors', '1'); 17 require_once "inc/nxs_functions.php"; require_once "inc/nxs_functions_adv.php"; require_once "inc/nxs_functions_engine.php"; require_once "inc/nxs_class_http.php"; require_once "inc/nxs_class_addns.php"; 17 18 require_once "inc/nxs_class_snap.php"; require_once "inc/nxs_class_flt.php"; require_once "inc/nxs_class_mgmt.php"; require_once "inc/nxs_class_ntlist.php"; require_once "inc/nxs_class_oauth.php"; 18 19 //## Some Globals and Constants … … 22 23 do_action('nxs_actBeforeGetAvNetworks'); 23 24 if (!isset($nxs_snapAvNts) || !is_array($nxs_snapAvNts)) $nxs_snapAvNts = array(); $nxs_snapAPINts = array(); $nxs_avlblNTList = array(); 24 foreach (glob(NXS_PLPATH.'inc-cl/*.php') as $filename){ require_once $filename; $filename = explode('/', $filename); $filename = array_pop($filename); 25 //## V5 26 if (stripos($filename,'.api')===false) { $ntCode = strtoupper(str_ireplace('.php', '', $filename)); $ntLCode = strtolower($ntCode); 27 $ntClassName = 'nxs_nt_' . $ntCode; if (class_exists($ntClassName)) { $nt = new $ntClassName; $subNts = []; 28 if (!empty($nt->ntCons)) foreach ($nt->ntCons as $sNtL) { $sntClassName = 'nxs_ntConn_'.$ntCode.'_'.$sNtL; $sNt = new $sntClassName; $subNts[$sNtL] = $sNt->connInfo; } 29 $nxs_avlblNTList['abc'][$ntLCode]['info'] = $nt->info; $nxs_avlblNTList['abc'][$ntLCode]['subs'] = $subNts; 30 $nxs_avlblNTList['byt'][$nt->info['type']][$ntLCode]['info'] = $nt->info; $nxs_avlblNTList['byt'][$nt->info['type']][$ntLCode]['subs'] = $subNts; 31 $nxs_snapAvNts[] = $nt->info; 32 } 33 } 34 //## /V5 35 } 25 foreach (glob(NXS_PLPATH.'inc-cl/*.php') as $filename){ require_once $filename; $filename = explode('/', $filename); $filename = array_pop($filename); } 36 26 do_action('nxs_actAfterGetAvNetworks'); 37 27 //## MAIN -
social-networks-auto-poster-facebook-twitter-g/trunk/inc-cl/fb.php
r2760471 r2804148 437 437 } $opVal = nxs_getOption($opNm); $pgListArr = !empty($opVal['pageListArr'])?$opVal['pageListArr']:array(); //prr($opVal); prr($ntOpt); 438 438 439 foreach($pgListArr as $pg) if ($ntOpt['pgID']==$pg['id']||$ntOpt['pgID']=='p'.$pg['id']||$ntOpt['pgID']=='g'.$pg['id']) echo ($pg['t']=='p'?'Page':($pg['t']=='u'?'Profile':'Group')).' - '.$pg['nm']." [".$pg['id']."]";439 foreach($pgListArr as $pg) { if (empty($pg['t'])) $pg['t'] = 'p'; if ($ntOpt['pgID']==$pg['id']||$ntOpt['pgID']=='p'.$pg['id']||$ntOpt['pgID']=='g'.$pg['id']) echo ($pg['t']=='p'?'Page':($pg['t']=='u'?'Profile':'Group')).' - '.$pg['nm']." [".$pg['id']."]"; } 440 440 441 441 ?> </div> <?php -
social-networks-auto-poster-facebook-twitter-g/trunk/inc/nxs_class_flt.php
r2757212 r2804148 357 357 358 358 <div class="nxs_tls_bdX"> 359 <?php if (function_exists('ns_SMASV41')) {?> <input type="radio" name="nxs_rpstr[rpstTimes]" value="A" class="rpstrTimes" <?php if (empty($options['rpstTimes']) || $options['rpstTimes']=='A') echo 'checked="checked"'; ?> /><?php } ?><b><?php _e('Post every:', 'social-networks-auto-poster-facebook-twitter-g'); ?> </b> 359 <?php if (function_exists('ns_SMASV41')) {?> <input type="radio" name="nxs_rpstr[rpstTimes]" value="A" class="rpstrTimes" <?php if (empty($options['rpstTimes']) || $options['rpstTimes']=='A') echo 'checked="checked"'; ?> /><?php } ?><b><?php _e('Post every:', 'social-networks-auto-poster-facebook-twitter-g'); ?> </b> 360 360 <input type="text" name="nxs_rpstr[rpstDays]" style="width: 35px;" value="<?php echo isset($options['rpstDays'])?$options['rpstDays']:'0'; ?>" /> <?php _e('Days', 'social-networks-auto-poster-facebook-twitter-g'); ?> 361 361 <input type="text" name="nxs_rpstr[rpstHrs]" style="width: 35px;" value="<?php echo isset($options['rpstHrs'])?$options['rpstHrs']:'2'; ?>" /> <?php _e('Hours', 'social-networks-auto-poster-facebook-twitter-g'); ?> -
social-networks-auto-poster-facebook-twitter-g/trunk/inc/nxs_class_http.php
r2760471 r2804148 5 5 Description: Automatically posts to all your Social Networks 6 6 Author: NextScripts Corp 7 File Version: 2.0. 1 (July 22, 2022)7 File Version: 2.0.2 (Oct 21, 2022) 8 8 Author URL: https://www.nextscripts.com 9 9 Copyright 2012-2022 NextScripts Corp … … 13 13 var $proxy=[]; 14 14 var $postData = false; 15 //## Function for simple request with all defaults. 16 function req($url,$p=[]){ $argArr = []; if (!empty($p)) $argArr['flds'] = $p; $args = nxs_mkRmReqArgs($argArr); $ret = $this->request($url, $args); return $ret;} 17 //## Functions. 15 18 function sendReq($url, $type='GET', $args = array()) { $defaults = array('method' => $type); $r = wp_parse_args( $args, $defaults ); return $this->request($url, $r);} 16 19 function imgUplcurl(&$handle){ curl_setopt($handle, CURLOPT_POSTFIELDS, $this->postData); } … … 18 21 //## Add Proxy to the request. 19 22 if (empty($this->proxy)&&!empty($args['proxy'])) $this->proxy = $args['proxy']; 20 if (!empty($this->proxy)) add_action( "requests-requests.before_request", function( $url, $headers, $data, $type, &$options ){ 21 $options['proxy'] = new Requests_Proxy_HTTP( $this->proxy['proxy'] ); 22 if ( !empty($this->proxy['up']) ) { $up = explode(':',$this->proxy['up']); 23 $options['proxy']->use_authentication = true; 24 $options['proxy']->user = $up[0]; $options['proxy']->pass = $up[1]; //echo "Proxy has been used - ".$this->proxy['proxy']; 25 } $options['proxy']->register($options['hooks']); 26 }, 10, 5 ); 23 if (!empty($this->proxy)&&class_exists('nxaddn_prx')) nxaddn_prx::addPrx($this->proxy); 27 24 //## Post AS Array (for Image/media Upload) 28 25 if ($this->postData===true && !empty($args['body'])) $this->postData = $args['body']; -
social-networks-auto-poster-facebook-twitter-g/trunk/inc/nxs_class_mgmt.php
r2757212 r2804148 19 19 if ($nxs_SNAP->sMode['l']=='F' || $nxs_SNAP->sMode['l']=='P') { 20 20 21 $this->page = add_menu_page('Social Networks Auto Poster', 'SNAP|AutoPoster', 'manage_options', 'nxssnap-ntadmin', array($this, 'showPage_ntdashboard'), NXS_PLURL.'img/snap-icon.png'); 21 $p = $this->page = add_menu_page('Social Networks Auto Poster', 'SNAP|AutoPoster', 'manage_options', 'nxssnap-ntadmin', array($this, 'showPage_ntdashboard'), NXS_PLURL.'img/snap-icon.png'); 22 add_action( 'load-'.$p, array( $this, 'nxs_load_scripts' )); 22 23 23 24 } else { 24 25 $this->page = add_menu_page( 'Social Networks Auto Poster', 'SNAP|AutoPoster','manage_options','nxssnap',array( $this, 'showPage_accounts' ), NXS_PLURL.'img/snap-icon.png'); 25 add_submenu_page( 'nxssnap',__( 'Accounts', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Accounts', 'social-networks-auto-poster-facebook-twitter-g' ), 'manage_options', 'nxssnap', array( $this, 'showPage_accounts' ) ,0 );26 add_submenu_page( 'nxssnap',__( 'Users/Sites', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Users/Sites', 'social-networks-auto-poster-facebook-twitter-g' ), 'manage_options', 'nxssnap-ntadmin', array( $this, 'showPage_userssites' ) ,0 );26 $p[] = add_submenu_page( 'nxssnap',__( 'Accounts', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Accounts', 'social-networks-auto-poster-facebook-twitter-g' ), 'manage_options', 'nxssnap', array( $this, 'showPage_accounts' ) ,0 ); 27 $p[] = add_submenu_page( 'nxssnap',__( 'Users/Sites', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Users/Sites', 'social-networks-auto-poster-facebook-twitter-g' ), 'manage_options', 'nxssnap-ntadmin', array( $this, 'showPage_userssites' ) ,0 ); 27 28 //add_submenu_page( 'nxssnap',__( 'Query/Timeline', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Query/Timeline', 'social-networks-auto-poster-facebook-twitter-g' ), 'manage_options', 'nxssnap-query', array( $this, 'showPage_query' ) ,0 ); 28 add_submenu_page( 'nxssnap',__( 'Help/Support', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Help/Support', 'social-networks-auto-poster-facebook-twitter-g' ), 'manage_options', 'nxs-help', array( $this, 'showPage_about' ) ,0 ); 29 $p[] = add_submenu_page( 'nxssnap',__( 'Help/Support', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Help/Support', 'social-networks-auto-poster-facebook-twitter-g' ), 'manage_options', 'nxs-help', array( $this, 'showPage_about' ) ,0 ); 30 foreach ($p as $a) add_action( 'load-'.$a, array( $this, 'nxs_load_scripts' )); 29 31 } 30 32 … … 71 73 } 72 74 73 public function nxs_adminMenu() { wp_enqueue_script( 'postbox' );75 public function nxs_adminMenu() { wp_enqueue_script( 'postbox' ); 74 76 //$this->page = add_menu_page( 'Social Networks Auto Poster', '-={<span style="font-weight:bold; color:#2ecc2e;">SNAP</span>}=-','manage_options','nxssnap',array( $this, 'showPage_dashboard' ), NXS_RELPATH.'/img/snap-icon.png'); 75 77 // $this->page = add_menu_page( 'Social Networks Auto Poster', '-={SNAP}=-','manage_options','nxssnap',array( $this, 'showPage_dashboard' ), NXS_RELPATH.'/img/snap-icon.png'); 76 78 $this->page = add_menu_page( 'Social Networks Auto Poster', 'SNAP|AutoPoster','haveown_snap_accss','nxssnap',array( $this, 'showPage_accounts' ), NXS_PLURL.'img/snap-icon.png'); 77 78 add_submenu_page( 'nxssnap',__( 'Accounts', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Accounts', 'social-networks-auto-poster-facebook-twitter-g' ), 'haveown_snap_accss', 'nxssnap', array( $this, 'showPage_accounts' ) ); 79 add_submenu_page( 'nxssnap',__( 'Quick Post', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Quick Post', 'social-networks-auto-poster-facebook-twitter-g' ), 'haveown_snap_accss', 'nxssnap-post', array( $this, 'showPage_dashboard' ) ); 80 add_submenu_page( 'nxssnap',__( 'Query/Timeline', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Query/Timeline', 'social-networks-auto-poster-facebook-twitter-g' ), 'haveown_snap_accss', 'nxssnap-query', array( $this, 'showPage_query' ) ); 81 add_submenu_page( 'nxssnap',__( 'Reposter', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Reposter', 'social-networks-auto-poster-facebook-twitter-g' ), 'manage_options', 'nxssnap-reposter', array( $this, 'showPage_reposter' ) ); 82 add_submenu_page( 'nxssnap',__( 'Settings', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Settings', 'social-networks-auto-poster-facebook-twitter-g' ), 'manage_options', 'nxssnap-settings', array( $this, 'showPage_settings' ) ); 83 add_submenu_page( 'nxssnap',__( 'Log/History', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Log/History', 'social-networks-auto-poster-facebook-twitter-g' ), 'haveown_snap_accss', 'nxs-log', array( $this, 'showPage_log' ) ); 84 add_submenu_page( 'nxssnap',__( 'Help/Support', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Help/Support', 'social-networks-auto-poster-facebook-twitter-g' ), 'manage_options', 'nxs-help', array( $this, 'showPage_about' ) ); 79 80 $p[] = add_submenu_page( 'nxssnap',__( 'Accounts', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Accounts', 'social-networks-auto-poster-facebook-twitter-g' ), 'haveown_snap_accss', 'nxssnap', array( $this, 'showPage_accounts' ) ); 81 $p[] = add_submenu_page( 'nxssnap',__( 'Quick Post', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Quick Post', 'social-networks-auto-poster-facebook-twitter-g' ), 'haveown_snap_accss', 'nxssnap-post', array( $this, 'showPage_dashboard' ) ); 82 $p[] = add_submenu_page( 'nxssnap',__( 'Query/Timeline', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Query/Timeline', 'social-networks-auto-poster-facebook-twitter-g' ), 'haveown_snap_accss', 'nxssnap-query', array( $this, 'showPage_query' ) ); 83 $p[] = add_submenu_page( 'nxssnap',__( 'Reposter', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Reposter', 'social-networks-auto-poster-facebook-twitter-g' ), 'manage_options', 'nxssnap-reposter', array( $this, 'showPage_reposter' ) ); 84 $p[] = add_submenu_page( 'nxssnap',__( 'Settings', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Settings', 'social-networks-auto-poster-facebook-twitter-g' ), 'manage_options', 'nxssnap-settings', array( $this, 'showPage_settings' ) ); 85 $p[] = add_submenu_page( 'nxssnap',__( 'Log/History', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Log/History', 'social-networks-auto-poster-facebook-twitter-g' ), 'haveown_snap_accss', 'nxs-log', array( $this, 'showPage_log' ) ); 86 if (!defined('NextScripts_UPG_SNAP_Version') || version_compare(NextScripts_UPG_SNAP_Version, '2.0.0', '>') ) $p[] = add_submenu_page( 'nxssnap',__( 'Addons', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Addons', 'social-networks-auto-poster-facebook-twitter-g' ), 'manage_options', 'nxs-addons', array( $this, 'showPage_addons' ) ); 87 $p[] = add_submenu_page( 'nxssnap',__( 'Help/Support', 'social-networks-auto-poster-facebook-twitter-g' ), __( 'Help/Support', 'social-networks-auto-poster-facebook-twitter-g' ), 'manage_options', 'nxs-help', array( $this, 'showPage_about' ) ); 88 foreach ($p as $a) add_action( 'load-'.$a, array( $this, 'nxs_load_scripts' )); 89 } 90 91 function nxs_load_scripts () { add_action( 'admin_enqueue_scripts', array( $this, 'nx_enqueue_bootstrap') ); } 92 function nx_enqueue_bootstrap() { 93 $path = str_ireplace( '/inc/', '', plugin_dir_url( __FILE__ ) ); 94 wp_enqueue_script( 'nxsaci-bootstrap', $path . '/js-css/bootstrap.js', array( 'jquery' ), NextScripts_SNAP_Version); 95 wp_enqueue_style( 'nxsaci-bootstrap', $path . '/js-css/bootstrap.css', array(), NextScripts_SNAP_Version ); 96 // wp_enqueue_style( 'nxsaci-fa', $path . '/js-css/fa/css/all.min.css', array(), NextScripts_SNAP_Version ); 85 97 } 86 98 … … 104 116 add_meta_box( $this->page.'_info', __( 'SNAP Info', 'social-networks-auto-poster-facebook-twitter-g' ), array( $this, 'metabox_side_info' ), $this->page, 'side' ); 105 117 if ((current_user_can( 'manage_options' ))) { 106 if (!function_exists('ns_SMASV41')) add_meta_box( $this->page.'_purchase', __( 'SNAP "Pro" Version', 'social-networks-auto-poster-facebook-twitter-g' ), array( $this, 'metabox_side_getit' ), $this->page, 'side' ); 107 if (!class_exists('nxsAPI_XI')) add_meta_box( $this->page.'_purchaseAPI', __( 'SNAP Premium API', 'social-networks-auto-poster-facebook-twitter-g' ), array( $this, 'metabox_side_getitAPI' ), $this->page, 'side' ); 108 add_meta_box( $this->page.'_supportbox', __( 'Support', 'social-networks-auto-poster-facebook-twitter-g' ), array( $this, 'metabox_side_supbox' ), $this->page, 'side' ); 118 if (defined ('NextScripts_UPG_SNAP_Version') && version_compare(NextScripts_UPG_SNAP_Version, '2.0.0', '<')) { 119 if (!function_exists('ns_SMASV41')) {add_meta_box( $this->page.'_purchase', __( 'SNAP "Pro" Version', 'social-networks-auto-poster-facebook-twitter-g' ), array( $this, 'metabox_side_getit' ), $this->page, 'side' );} 120 if (!class_exists('nxsAPI_XI')) {add_meta_box( $this->page.'_purchaseAPI', __( 'SNAP Premium API', 'social-networks-auto-poster-facebook-twitter-g' ), array( $this, 'metabox_side_getitAPI' ), $this->page, 'side' );} 121 } else { 122 add_meta_box( $this->page.'_purchase', __( 'SNAP Addons', 'social-networks-auto-poster-facebook-twitter-g' ), array( $this, 'metabox_side_getitAddns' ), $this->page, 'side' ); 123 } 124 add_meta_box( $this->page.'_supportbox', __( 'Support', 'social-networks-auto-poster-facebook-twitter-g' ), array( $this, 'metabox_side_supbox' ), $this->page, 'side' ); 109 125 } 110 126 add_meta_box( $this->page.'_instrbox', __( 'Instructions', 'social-networks-auto-poster-facebook-twitter-g' ), array( $this, 'metabox_side_instrbox' ), $this->page, 'side' ); … … 115 131 else add_meta_box( $this->page.'_newPost', __( 'Please add at least one account...', 'social-networks-auto-poster-facebook-twitter-g' ), array( $this, 'metabox_emptyaccss' ), $this->page, 'normal' ); 116 132 $this->showPage_side(); $this->showPage($this->pluginName.': '. __( 'Dashboard', 'social-networks-auto-poster-facebook-twitter-g' )); 117 } 133 } 134 135 public function showPage_addons() { 136 add_meta_box( $this->page.'_addons', __( 'Social Networks Autoposter (SNAP) Addons', 'social-networks-auto-poster-facebook-twitter-g' ), array( $this, 'metabox_addons' ), $this->page, 'normal' ); 137 $this->showPage_side(); $this->showPage($this->pluginName.': '. __( 'SNAP Addons', 'social-networks-auto-poster-facebook-twitter-g' )); 138 } 139 public function metabox_conns($post) { $conns = new sm_ntConns(); $conns->showMainInterface(); prr($conns->conns); } 140 public function metabox_addons($post) { global $nxs_SNAP; if (!isset($nxs_SNAP)) return; $nxs_SNAP->showAddonsTab();} 141 118 142 public function showPage_accounts() { 119 143 add_meta_box( $this->page.'_accounts', __( 'Social Networks Autoposter (SNAP) Accounts', 'social-networks-auto-poster-facebook-twitter-g' ), array( $this, 'metabox_accounts' ), $this->page, 'normal' ); … … 214 238 215 239 } 216 217 public function metabox_side_getit($post) {?> 218 219 <a href="http://nxs.fyi/get-snap" target="_blank">SNAP Pro version</a> upgrade adds the ability to configure more then one account for each social network and some addidional features.<br/><div style="padding-bottom: 10px; padding-top: 7px;" align="center"> 220 <b style="color: #008000">[Limited Time Only Offer]</b> - ($49.95 value) <br/> Get SNAP PRO Plugin for <b>Free</b> with the order of SNAP Premium API for WordPress</div><div align="center"><a href="http://nxs.fyi/get-snap" target="_blank" class="NXSButton" id="nxs_snapUPG">Get SNAP Pro Plugin with SNAP API</a></div> <?php if(function_exists('nxsDoLic_ajax')) { ?> <br/><div align="center"> 240 241 public function metabox_side_getitAddns($post) { 242 nxs_addns::showAddnsOffers(); nxs_addns::showAddnsSideBar(); 243 } 244 245 public function metabox_side_getit($post) { ?> 246 247 <a href="http://nxs.fyi/get-snap" target="_blank">SNAP Pro version</a> upgrade adds the ability to configure more than one account for each social network and some addidional features.<br/><div style="padding-bottom: 10px; padding-top: 7px;" align="center"> 248 <b style="color: #008000">[Limited Time Only Offer]</b> - ($49.95 value) <br/> Multiple Accounts Addon for <b>Free</b> with the order of Premium API for WordPress</div><div align="center"><a href="http://nxs.fyi/get-snap" target="_blank" class="NXSButton" id="nxs_snapUPG">Get Multiple Accounts Addon Plugin with SNAP API</a></div> <?php if(function_exists('nxsDoLic_ajax')) { ?> <br/><div align="center"> 221 249 <span style="color: #00FF00; font-weight: bold; font-size: 28px;">--></span> 222 250 <a style="color: #008000; font-weight: normal; font-size: 13px;" class="showLic" href="#">[<?php _e('Enter your Activation Key', 'social-networks-auto-poster-facebook-twitter-g'); ?>]</a> … … 227 255 } 228 256 229 public function metabox_side_getitAPI($post) { ?>257 public function metabox_side_getitAPI($post) { ?> 230 258 <style type="text/css">.nxs_txtIcon { margin: 0px; padding-left: 20px; background-repeat: no-repeat;} .nxs_ti_gp {background-image: url('<?php echo esc_url(NXS_PLURL); ?>img/gp16.png');} 231 259 .nxs_ti_li {background-image: url('<?php echo esc_url(NXS_PLURL); ?>img/li16.png');} .nxs_ti_rd {background-image: url('<?php echo esc_url(NXS_PLURL); ?>img/rd16.png');} … … 238 266 <div style="padding-bottom: 12px;"><a href="https://www.nextscripts.com/snap-api-premium-for-wordpress/">SNAP Premium API</a> adds autoposting to:</div> 239 267 <div style="padding-bottom: 15px;"> 240 <span class="nxs_txtIcon nxs_ti_fb"> Facebook</span>, <span class="nxs_txtIcon nxs_ti_gp">Google+</span>, <span class="nxs_txtIcon nxs_ti_pn">Pinterest</span>, <span class="nxs_txtIcon nxs_ti_ig">Instagram</span>, <span class="nxs_txtIcon nxs_ti_bg">Blogger</span>, <span class="nxs_txtIcon nxs_ti_yt">YouTube</span>, <span class="nxs_txtIcon nxs_ti_li">LinkedIn</span>, <br/><span class="nxs_txtIcon nxs_ti_fp">Flipboard</span>, <span class="nxs_txtIcon nxs_ti_rd">Reddit</span>, <span class="nxs_txtIcon nxs_ti_xi">Xing</span></div>268 <span class="nxs_txtIcon nxs_ti_fb">Google My Business</span>, <span class="nxs_txtIcon nxs_ti_pn">Pinterest</span>, <span class="nxs_txtIcon nxs_ti_bg">Blogger</span>, <span class="nxs_txtIcon nxs_ti_yt">YouTube</span>, <span class="nxs_txtIcon nxs_ti_li">LinkedIn</span>, <br/><span class="nxs_txtIcon nxs_ti_fp">Flipboard</span>, <span class="nxs_txtIcon nxs_ti_rd">Reddit</span>, <span class="nxs_txtIcon nxs_ti_xi">Xing</span>, etc..</div> 241 269 242 270 <div align="center"> … … 257 285 } 258 286 259 public function metabox_side_info($post) { global $nxs_SNAP; if (!isset($nxs_SNAP)) return; $options = $nxs_SNAP->nxs_options; 260 $nxsOne = NextScripts_SNAP_Version; $sMode = $nxs_SNAP->sMode; ?> 287 public function metabox_side_info($post) { global $nxs_SNAP; if (!isset($nxs_SNAP)) return; $options = $nxs_SNAP->nxs_options; $sMode = $nxs_SNAP->sMode; ?> 261 288 <div align="center"><a target="_blank" href="https://www.nextscripts.com"><img src="<?php echo esc_url(NXS_PLURL); ?>img/SNAP_Logo_2014.png"></a></div> <br/> 262 <?php _e('Plugin Version', 'social-networks-auto-poster-facebook-twitter-g'); ?>: <span style="color:#008000;font-weight: bold;"><?php echo $nxsOne; ?></span> 263 <?php if($sMode['l']=='P') { ?> [Pro]<br/> (One User, Multiple Accounts) <?php } elseif ($sMode['l']=='M'){ ?> [Pro]<br/> (Multiple Users, Multiple Accounts)<?php } else {?> <span style="color:#800000; font-weight: bold;">[Free]<br/> (One User, One account per Network)</span><?php } ?><br/> 264 <?php if (defined('NXSAPIVER')) echo '<span id="nxsAPIUpd">API</span> Version: <span style="color:#008000;font-weight: bold;">'.NXSAPIVER.'</span>'; ?><?php wp_nonce_field( 'doLic', 'doLic_wpnonce' ); ?> 265 266 <div id="showLicForm"><span class="nxspButton bClose"><span>X</span></span> <div id="nxs_showLicForm" style="min-height: 200px;"> 289 <?php _e('Plugin Version', 'social-networks-auto-poster-facebook-twitter-g'); ?>: <span style="color:#008000;font-weight: bold;"><?php echo NextScripts_SNAP_Version; ?></span><br/> 290 <?php if (defined ('NextScripts_UPG_SNAP_Version') && version_compare(NextScripts_UPG_SNAP_Version, '2.0.0', '<')) { 291 if($sMode['l']=='P') { ?> [Pro]<br/> (One User, Multiple Accounts) <?php } elseif ($sMode['l']=='M'){ ?> [Pro]<br/> (Multiple Users, Multiple Accounts)<?php } ?><br/> 292 <?php if (defined('NXSAPIVER')) echo '<span id="nxsAPIUpd">API</span> Version: <span style="color:#008000;font-weight: bold;">'.NXSAPIVER.'</span>'; 293 } else nxs_addns::showAddnsVersions('4'); ?> 294 295 <div id="showLicForm"><span class="nxspButton bClose"><span>X</span></span> <div id="nxs_showLicForm" style="min-height: 200px;"> <?php wp_nonce_field( 'doLic', 'doLic_wpnonce' ); ?> 267 296 <div style="position: absolute; right: 10px; top:50px; font-size: 34px; font-weight: lighter;"><?php _e('Activation', 'social-networks-auto-poster-facebook-twitter-g'); ?></div> 268 297 <br/><br/> -
social-networks-auto-poster-facebook-twitter-g/trunk/inc/nxs_class_ntlist.php
r2758241 r2804148 39 39 </div> 40 40 <div class="nxs_box_inside"><?php $jj = 0; if(!$this->checkIfFunc()) echo $this->noFuncMsg; else { uasort($this->nt, 'nxsLstSort'); 41 foreach ($this->nt as $indx=>$pbo){ $jj++; if (!function_exists('n s_SMASV41') && $jj>1) break; $pbo['jj']=$jj; $pbo['cbo']=$cbo; if ($indx!=='') $this->showNTLine($indx, $pbo); }41 foreach ($this->nt as $indx=>$pbo){ $jj++; if (!function_exists('nxs_doSMAS1') && $jj>1) break; $pbo['jj']=$jj; $pbo['cbo']=$cbo; if ($indx!=='') $this->showNTLine($indx, $pbo); } 42 42 } if ($jj>7) { ?> <div style="padding-left:5px;padding-top:5px;"><a href="#" onclick="jQuery('.showMore<?php echo esc_attr($this->ntInfo['code']); ?>').show(); jQuery(this).parent().hide(); return false;">Show <?php echo $jj;?> More[<?php echo ($cbo-5); ?>]</a></div> <?php } ?> 43 43 </div> … … 71 71 72 72 function showNoAPIMsg($ii, $options){ ?> <div id="do<?php echo $this->ntInfo['code'].$ii; ?>Div" class="insOneDiv<?php echo " clNewNTSets"; ?>"><div style="border: 2px solid darkred; padding: 25px 15px 15px 15px; margin: 3px; background-color: #fffaf0;"> 73 <span style="font-size: 16px; color:darkred;line-height: 24px;"><?php global $nxs_apiLInfo; if (!empty($this->ntInfo) && $this->ntInfo['code']=='IG' && $nxs_apiLInfo['noIG']==true) echo $this->noFuncMsg2; else echo $this->noFuncMsg; ?></span><br/><a href="https://www.nextscripts.com/faq/third-party-libraries-autopost-google-pinterest/" target="_blank">More info about third party libraries.</a><br/><hr/> <div style="font-size: 16px; color:#005800; font-weight: bold; margin-top: 12px; margin-bottom: 7px;">You can get this API library from NextScripts.</div>74 <div style="padding-bottom: 5px;"><a href="https://www.nextscripts.com/snap-api/">SNAP Premium API libraries package</a> adds autoposting to:</div> <span class="nxs_txtIcon nxs_ti_ fb">Facebook</span>, <span class="nxs_txtIcon nxs_ti_gp">Google+</span>, <span class="nxs_txtIcon nxs_ti_pn">Pinterest</span>, <span class="nxs_txtIcon nxs_ti_ig">Instagram</span>, <span class="nxs_txtIcon nxs_ti_rd">Reddit</span>, <span class="nxs_txtIcon nxs_ti_yt">YouTube</span>, <span class="nxs_txtIcon nxs_ti_fp">Flipboard</span>, <span class="nxs_txtIcon nxs_ti_li">LinkedIn Groups</span><br><br>73 <span style="font-size: 16px; color:darkred;line-height: 24px;"><?php global $nxs_apiLInfo; if (!empty($this->ntInfo) && $this->ntInfo['code']=='IG' && !empty($nxs_apiLInfo) && $nxs_apiLInfo['noIG']==true) echo $this->noFuncMsg2; else echo $this->noFuncMsg; ?></span><br/><a href="https://www.nextscripts.com/faq/third-party-libraries-autopost-google-pinterest/" target="_blank">More info about third party libraries.</a><br/><hr/> <div style="font-size: 16px; color:#005800; font-weight: bold; margin-top: 12px; margin-bottom: 7px;">You can get this API library from NextScripts.</div> 74 <div style="padding-bottom: 5px;"><a href="https://www.nextscripts.com/snap-api/">SNAP Premium API libraries package</a> adds autoposting to:</div> <span class="nxs_txtIcon nxs_ti_gp">Google My Business</span>, <span class="nxs_txtIcon nxs_ti_pn">Pinterest</span>, <span class="nxs_txtIcon nxs_ti_rd">Reddit</span>, <span class="nxs_txtIcon nxs_ti_yt">YouTube</span>, <span class="nxs_txtIcon nxs_ti_fp">Flipboard</span>, <span class="nxs_txtIcon nxs_ti_li">LinkedIn Groups</span>, etc...<br><br> 75 75 <div style="padding-bottom: 10px; padding-top: 7px;" align="center"> 76 <b style="color: #008000">[Limited Time Only Offer]</b><br/> Get SNAP PRO Plugin for <b>Free</b> with the order of SNAPPremium API for WordPress</div>77 <div align="center"><a target="_blank" href="https://www.nextscripts. com/social-networks-auto-poster-for-wp-multiple-accounts/#getit" class="NXSButton" id="nxs_snapUPG">Get SNAP Pro Plugin with SNAPAPI</a></div>76 <b style="color: #008000">[Limited Time Only Offer]</b><br/> Get Multiple Accounts Addon for <b>Free</b> with the order of Premium API for WordPress</div> 77 <div align="center"><a target="_blank" href="https://www.nextscripts.net/offers" class="NXSButton" id="nxs_snapUPG">Get Multiple Accounts Addon with Premium API</a></div> 78 78 <div style="font-size: 10px; margin-top: 20px;">*If you already have API, please follow instructions from the readme.txt file.</div> 79 79 </div> </div> <?php … … 135 135 } 136 136 //## Advanced Blocks 137 function showProxies($nt, $ii, $options){ if (empty($options['proxy'])) $options['proxy'] = array('proxy'=>'','up'=>''); 138 ?> <div class="nxs_tls_cpt"><?php _e('Proxy', 'social-networks-auto-poster-facebook-twitter-g'); ?> <span class="nxsInstrSpan"><a href="https://www.nextscripts.com/snap-features/proxy" target="_blank"><?php _e('[Instructions]', 'social-networks-auto-poster-facebook-twitter-g'); ?></a></span></div><h3 style="padding-left: 15px; font-size: 16px;"> 139 <input type="checkbox" onchange="if (jQuery(this).is(':checked')) jQuery('#nxs_proxy<?php echo esc_attr($nt.$ii); ?>').show(); else jQuery('#nxs_proxy<?php echo esc_attr($nt.$ii); ?>').hide();" class="nxs_acctcb" <?php if (!empty($options['proxyOn'])) echo "checked"; ?> name="<?php echo esc_attr($nt); ?>[<?php echo esc_attr($ii); ?>][proxyOn]" value="1" /> 140 <?php _e('Use Proxy', 'social-networks-auto-poster-facebook-twitter-g'); ?> </h3><div id="nxs_proxy<?php echo esc_attr($nt.$ii); ?>" style="margin-left: 30px;<?php if (empty($options['proxyOn'])) echo "display:none;"; ?>"> 141 142 <div style="width:100%;"><strong><?php _e('IP:Port', 'social-networks-auto-poster-facebook-twitter-g'); ?>:</strong> </div><input name="<?php echo esc_attr($nt); ?>[<?php echo esc_attr($ii); ?>][proxy]" style="width: 30%;" value="<?php echo htmlentities($options['proxy']['proxy'], ENT_COMPAT, "UTF-8"); ?>"/> 143 <div style="width:100%;"><strong><?php _e('Username:Password', 'social-networks-auto-poster-facebook-twitter-g'); ?>:</strong> </div><input name="<?php echo esc_attr($nt); ?>[<?php echo esc_attr($ii); ?>][proxyup]" style="width: 30%;" value="<?php echo htmlentities($options['proxy']['up'], ENT_COMPAT, "UTF-8"); ?>"/> 144 <br/><hr/> 145 146 </div> <?php 147 } 137 function showProxies($nt, $ii, $o){ if (empty($o['proxy'])) $o['proxy'] = array('proxy'=>'','up'=>''); $o['ii'] = $ii; $o['nt'] = $nt; if (class_exists('nxaddn_prx'))nxaddn_prx::shPrxIntrf($o);} 138 148 139 function askForSURL($nt, $ii, $options){ if (!isset($options['useSURL'])) { global $nxs_SNAP; if (!isset($nxs_SNAP)) return; $gOptions = $nxs_SNAP->nxs_options; if (!empty($gOptions['forceSURL'])) $options['useSURL']= 1; else $options['useSURL'] = 0; } 149 140 ?> <div class="nxs_tls_cpt"><?php _e('Shorten URL', 'social-networks-auto-poster-facebook-twitter-g'); ?></div> … … 419 410 420 411 <?php //### TIme to Post 421 if ($post->post_status != "publish" && function_exists('nxs_v4doSMAS5 ') ) { $pbo['postTime'] = get_post_time('U', false, $post->ID); nxs_v4doSMAS5X($nt, $ii, $pbo); }412 if ($post->post_status != "publish" && function_exists('nxs_v4doSMAS5X') ) { $pbo['postTime'] = get_post_time('U', false, $post->ID); nxs_v4doSMAS5X($nt, $ii, $pbo); } 422 413 if (((int)$pbo['do'] == 1) && $post->post_status == "publish" && !empty($pbo['timeToRun']) && (int)$pbo['timeToRun'] > time()) { ?> 423 414 <div>===>>>> <?php _e('Autopost has been schedulled for', 'social-networks-auto-poster-facebook-twitter-g') ?> <?php echo date('F j, Y, g:i a', (int)$pbo['timeToRun']) ?></div> -
social-networks-auto-poster-facebook-twitter-g/trunk/inc/nxs_class_snap.php
r2760471 r2804148 4 4 if (!class_exists("nxs_SNAP")) { class nxs_SNAP {//## SNAP General Class 5 5 var $dbOptionsName = "nxsSNAPOptions"; var $dbNtsName = "nxsSNAPNetworks"; var $dbNtsNameU = "nxsSNAPNetworksU"; var $nxs_snapAvNts; var $nxs_options = ""; var $nxs_ntoptions = array(); var $nxs_accts = ""; var $nxs_acctsU = ""; var $accts; 6 var $sMode = array('s'=>'S', 'l'=>'F', 'u'=>'O', 'a'=>'S', 's'=>'S', 't'=>false); var $old_dbOptionsName = "NS_SNAutoPoster"; 6 var $sMode = array('s'=>'S', 'l'=>'F', 'u'=>'O', 'a'=>'S', 's'=>'S', 't'=>false); var $old_dbOptionsName = "NS_SNAutoPoster"; var $addns=[]; 7 7 8 8 function __construct($u='') { load_plugin_textdomain('social-networks-auto-poster-facebook-twitter-g', FALSE, substr(dirname( plugin_basename( __FILE__ ) ), 0, -4).'/lang/'); 9 9 if (empty($u)) { $u = wp_get_current_user(); $u = $u->ID; } $this->dbNtsNameU .= $u; $this->getAPOptions(); $this->sMode['r'] = false; 10 10 $this->sMode['s'] = (defined('MULTISITE') && MULTISITE==true)?'M':'S'; $snapMgmt = new nxs_adminMgmt(); 11 $this->sMode['l'] = function_exists("ns_SMASV41")?(function_exists("ns_SMASV4M1")?'M':'P'):'F'; $this->sMode['t'] = $this->sMode['l']=='M' || $this->sMode['l']=='P'; 11 $this->sMode['l'] = function_exists('nxs_doSMAS1')?(function_exists("ns_SMASV4M1")?'M':'P'):'F'; $this->sMode['t'] = $this->sMode['l']=='M' || $this->sMode['l']=='P'; 12 12 13 if ($this->sMode['s']=='M'){ global $blog_id; add_action('network_admin_menu', array($snapMgmt,'ntAdminMenu')); 13 14 if ($this->sMode['l']!='M') { if (get_site_option('nxs_nts')==$blog_id) { $this->sMode['r'] = true; $snapMgmt->init(); } else $this->sMode['a']='I'; } … … 68 69 $options = array('nxsHTDP'=>'S','quDays'=>'0','quHrs'=>'0','quMins'=>'3','quLimitRndMins'=>'2','nxsOverLimit'=>'D','showNTListCats'=>'1','fltrsOn'=>'1','nxsURLShrtnr'=>'O','gglAPIKey'=>'','bitlyAPIToken'=>'','xcoAPIKey'=>'','clkimAPIKey'=>'','postAPIKey'=>'','adflyUname'=>'','adflyAPIKey'=>'','adflyDomain'=>'adf.ly','rblyAPIKey'=>'','rblyDomain'=>'','YOURLSURL'=>'','YOURLSKey'=>'','riHowManyPostsToTrack'=>'10','riHowOften'=>'15','addURLParams'=>'','forcessl'=>'','nxsHTSpace'=>'','nxsHTSepar'=>'c_','anounTagLimit'=>'300','ogImgDef'=>'','imgNoCheck'=>'set','imgSizeImg'=>'full','imgSizeAttch'=>'medium','featImgLoc'=>'','featImgLocArrPath'=>'','featImgLocPrefix'=>'','errNotifEmail'=>'', 'fltrs'=>$fltrs, 'v'=>NXS_SETV, 'ver'=>306); 69 70 }} // prr($options); 70 $this->nxs_ntoptions = get_site_option($this->dbOptionsName); $nxs_UPPath = 'nxs-snap-pro-upgrade'; $dir = plugin_dir_path( __FILE__ ); $dir = explode('social-networks-auto-poster-facebook-twitter-g', $dir); 71 $dir = $dir[0]; $pf = $dir.$nxs_UPPath.'/'.$nxs_UPPath.'.php'; if (file_exists($pf) && !class_exists('nxs_wpAPIEngine') ) require_once $pf; if (class_exists('nxs_wpAPIEngine')) { $cl = new nxs_wpAPIEngine(); $cl->check(); } 72 if (defined('NextScripts_UPG_SNAP_Version') && version_compare(NextScripts_UPG_SNAP_Version, '1.4.0')<0) add_action( 'admin_notices', 'nxs_admin_notice__wrongProHelper' ); 71 $this->nxs_ntoptions = get_site_option($this->dbOptionsName); $nxs_UPPath = 'nxs-snap-pro-upgrade'; $dir = plugin_dir_path( __FILE__ ); $dir = explode('social-networks-auto-poster-facebook-twitter-g', $dir); 72 $dir = $dir[0]; $pf = $dir.$nxs_UPPath.'/'.$nxs_UPPath.'.php'; if (file_exists($pf) && !class_exists('nxs_wpAPIEngine') && !class_exists('nxs_wpAddnEngine') ) require_once $pf; 73 74 if (defined('NextScripts_UPG_SNAP_Version') && version_compare(NextScripts_UPG_SNAP_Version, '2.0.0', '<') ) { 75 if (empty( get_option( 'nxs-upg200-notice-dismissed' ))) add_action( 'admin_notices', 'nxs_admin_notice__wrongProHelper' ); 76 if (class_exists('nxs_wpAPIEngine')) { $cl = new nxs_wpAPIEngine(); $cl->check(); } 77 } else { if (class_exists('nxs_wpAddnEngine')) { $cl = new nxs_wpAddnEngine(); $cl->check(); } } 78 79 //## Get Addns List 80 $this->addns = get_site_option('_nxs_aListV4'); if (empty($this->addns)) { $this->addns = nxs_addns::getAddnList(); update_site_option('_nxs_aListV4', $this->addns); } 73 81 //## Backup 74 82 $lBckTime = get_option('nxs_lBckTime'); if (empty($lBckTime) || $lBckTime<strtotime("-1 week")) { update_option('nxsSNAPNetworks_bck4', $this->nxs_accts, false); update_option('nxsSNAPOptions_bck4', $this->nxs_options, false); update_option('nxs_lBckTime', time(), false); } … … 159 167 } 160 168 161 function showAccountsTab(){ global $nxs_snapAvNts, $nxsOne; $nxsOne = ''; $trrd=0; $parts = parse_url( home_url() ); $nxs_snapThisPageUrl = "{$parts['scheme']}://{$parts['host']}" . esc_url(add_query_arg( NULL, NULL )); $cst=strrev('enifed'); $isMobile = nxs_isMobile(); 162 if (function_exists('nxs_doSMAS2')) { $rf = new ReflectionFunction('nxs_doSMAS2'); $trrd++; $rff = $rf->getFileName(); if (stripos($rff, "'d code")===false) $cst(chr(100).$trrd,$trrd); } 169 function showAccountsTab(){ global $nxs_snapAvNts, $nxsOne; $nxsOne = ''; $trrd=0; $parts = parse_url( home_url() ); 170 $nxs_snapThisPageUrl = "{$parts['scheme']}://{$parts['host']}" . esc_url(add_query_arg( NULL, NULL )); $cst=strrev('enifed'); $isMobile = nxs_isMobile(); 171 if (function_exists('nxs_v4doSMAS2')) { $rf = new ReflectionFunction('nxs_v4doSMAS2'); $trrd++; $rff = $rf->getFileName(); if (stripos($rff, "'d code")===false) $cst(chr(100).$trrd,$trrd); } 163 172 //## Import Settings 164 173 if (isset($_POST['upload_NS_SNAutoPoster_settings'])) { if (!empty($_POST['nxs_mqTest']) && $_POST['nxs_mqTest']=="\'") {array_walk_recursive($_POST, 'nsx_stripSlashes');} array_walk_recursive($_POST, 'nsx_fixSlashes'); … … 189 198 <a href="#" class="NXSButton" id="nxs_snapNewAcc"><?php _e('Add new account', 'social-networks-auto-poster-facebook-twitter-g'); ?></a> 190 199 191 <?php if (!$isMobile) {?><div class="nxsInfoMsg"><img style="position: relative; top: 8px;" alt="Arrow" src="<?php echo NXS_PLURL; ?>img/arrow_l_green_c1.png"/> You can add Facebook, Twitter, Google+, Pinterest, LinkedIn, Tumblr, Blogger, ... accounts</div><?php } ?><br/>200 <?php if (!$isMobile) {?><div class="nxsInfoMsg"><img style="position: relative; top: 8px;" alt="Arrow" src="<?php echo NXS_PLURL; ?>img/arrow_l_green_c1.png"/> You can add Facebook, Twitter, Telegram, Pinterest, LinkedIn, Tumblr, Blogger, ... accounts</div><?php } ?><br/> 192 201 193 202 <div style="padding-bottom: 10px; padding-top: 10px; text-align: right"><a href="#" onclick="jQuery('.nxs_acctcb').attr('checked','checked'); jQuery('.nxs_acctcb').iCheck('update'); return false;">[<?php _e('Select All Accounts', 'social-networks-auto-poster-facebook-twitter-g'); ?>]</a> <a href="#" onclick="jQuery('.nxs_acctcb').removeAttr('checked'); nxs_showHideMetaBoxBlocks(); jQuery('.nxs_acctcb').iCheck('update'); return false;">[<?php _e('Unselect All Accounts', 'social-networks-auto-poster-facebook-twitter-g'); ?>]</a> <a href="#" id="nxsShowOnlySelected" onclick="return false;">[<?php _e('Show Only Selected', 'social-networks-auto-poster-facebook-twitter-g'); ?>]</a> <a href="#" id="nxsShowOnlySelectedAll" onclick="return false;">[<?php _e('Show All Accounts', 'social-networks-auto-poster-facebook-twitter-g'); ?>]</a></div> … … 210 219 <?php foreach ($nxs_snapAvNts as $avNt) { $clName = 'nxs_snapClass'.$avNt['code']; $ntClInst = new $clName(); 211 220 if (!isset($networks[$avNt['lcode']]) || count($networks[$avNt['lcode']])==0) { $ntClInst->showNewNTSettings(0); } else { 212 $mt = 1+max(array_keys($networks[$avNt['lcode']])); if (class_exists("nxs_wpAPIEngine") && function_exists('nxs_doSMAS1')) nxs_doSMAS1($ntClInst, $mt); else nxs_doSMAS($avNt['name'], $avNt['code'].$mt); 221 $mt = 1+max(array_keys($networks[$avNt['lcode']])); if (class_exists("nxs_wpAPIEngine") && function_exists('nxs_doSMAS1')) nxs_doSMAS1($ntClInst, $mt); else nxs_doSMAS($avNt['name'], $avNt['code'].$mt); 213 222 }} ?> 214 223 </div> 215 224 </div> </div> 216 225 217 <div id="nxsAllAccntsDiv"><div class="nxs_modal"></div> 226 <div id="nxsAllAccntsDiv"><div class="nxs_modal"></div> 218 227 <?php foreach ($nxs_snapAvNts as $avNt) { $clName = 'nxs_snapClass'.$avNt['code']; $ntClInst = new $clName(); if ( isset($networks[$avNt['lcode']]) && count($networks[$avNt['lcode']])>0) { $ntClInst->showGenNTSettings($networks[$avNt['lcode']]); }} ?> 219 228 </div><?php … … 517 526 518 527 </div></div> 519 <!-- ##################### NextScripts/PS Beta #####################--><?php /* 528 529 <!-- ##################### NextScripts/PS Beta #####################--><?php // TODO 4.5 530 /* 520 531 <div class="nxs_box"> <div class="nxs_box_header"><h3><?php _e('NextScripts/PS Beta', 'social-networks-auto-poster-facebook-twitter-g') ?><span class="nxs_newLabel">[<?php _e('New', 'social-networks-auto-poster-facebook-twitter-g') ?>]</span></h3></div> 521 532 <div class="nxs_box_inside"> … … 871 882 function showAboutTab(){ global $nxs_snapAvNts, $nxs_snapThisPageUrl, $nxsOne, $nxs_isWPMU, $nxs_tpWMPU; $nxsOne = ''; $options = $this->nxs_options; 872 883 $nxsVer = NextScripts_SNAP_Version; if (defined('NXSAPIVER')) $nxsVer .= " (<span id='nxsAPIUpd'>API</span> Version: ".NXSAPIVER.")"; ?> 873 <div style="max-width:1000px;"> 874 875 <?php $nxsVer = NextScripts_SNAP_Version; if (defined('NXSAPIVER')) $nxsVer .= " (<span id='nxsAPIUpd'>API</span> Version: ".NXSAPIVER.")"; 876 877 _e('Plugin Version', 'social-networks-auto-poster-facebook-twitter-g'); ?>: <span style="color:#008000;font-weight: bold;"><?php echo $nxsVer; ?></span> <?php if($this->sMode['l']=='P') { ?> [Pro Edition] <?php } 878 elseif($this->sMode['l']=='M') { ?> [Pro Multiuser Edition] <?php }else { ?> 879 <span style="color:#800000; font-weight: bold;">[Free - One account per network edition]</span> <?php } ?><br/> 880 <?php global $nxs_apiLInfo; if (isset($nxs_apiLInfo) && !empty($nxs_apiLInfo)) { 881 if ($nxs_apiLInfo['1']==$nxs_apiLInfo['2'] || empty($nxs_apiLInfo['2'])) echo $nxs_apiLInfo['1']; else echo "<b>API:</b> (Google+, Pinterest, LinkedIn, Reddit, Flipboard): ".$nxs_apiLInfo['1']."<br/><b>API:</b> (Instragram): ".$nxs_apiLInfo['2']; echo " "; 882 } if(defined('NXSAPIVER')){ ?><br/> 883 <img id="checkAPI2xLoadingImg" style="display: none;" src='<?php echo NXS_PLURL; ?>img/ajax-loader-sm.gif' /><a href="" id="checkAPI2x">[Check for API Update]</a> <a href="" class="showLic">[Change Activation Key]</a> <br/><br/> 884 <?php } elseif(defined('NextScripts_UPG_SNAP_Version')) { ?> <br/><span style="color:red;">You have "SNAP Upgrade helper" installed, now please <a href="#" class="showLic">[Enter Activation Key]</a></span><br/><br/> <?php } ?><br/> 885 886 884 <div style="max-width:1000px;"> 885 <?php nxs_addns::showAddnsListBlock(); nxs_addns::showAddnsActButtons(); ?> 887 886 <div class="nxscontainer"> 888 889 887 <div class="nxsleft"> 890 <h3 style="margin-top: 0px; padding-left: 0px; font-size: 1 8px;"><?php _e('System Tests', 'social-networks-auto-poster-facebook-twitter-g');?></h3>891 <h5 style="margin-top: 5px; margin-bottom: 2px; padding-left: 0px; font-size: 1 8px;"><?php _e('System', 'social-networks-auto-poster-facebook-twitter-g');?></h5>888 <h3 style="margin-top: 0px; padding-left: 0px; font-size: 16px;"><?php _e('System Tests', 'social-networks-auto-poster-facebook-twitter-g');?></h3> 889 <h5 style="margin-top: 5px; margin-bottom: 2px; padding-left: 0px; font-size: 16px;"><?php _e('System', 'social-networks-auto-poster-facebook-twitter-g');?></h5> 892 890 <div style="padding-bottom: 10px;"><?php nxs_memCheck(); ?></div> 893 <h5 style="margin-top: 5px; margin-bottom: 2px; padding-left: 0px; font-size: 1 8px;"><?php _e('Cron', 'social-networks-auto-poster-facebook-twitter-g');?></h5>891 <h5 style="margin-top: 5px; margin-bottom: 2px; padding-left: 0px; font-size: 16px;"><?php _e('Cron', 'social-networks-auto-poster-facebook-twitter-g');?></h5> 894 892 895 893 <div style="padding-bottom: 10px;">Internal WP Cron execution: <?php if (defined('DISABLE_WP_CRON') && DISABLE_WP_CRON==true) echo "Disabled - OK"; else echo "Enabled - OK, but not reccomended"; ?><br/> … … 898 896 echo "<br/>"; 899 897 900 ?><a style="font-weight: normal; font-size: 16px; line-height: 24px;" target="_blank" href="<?php echo $nxs_snapThisPageUrl; ?>&do=crtest">Show Cron Test Results</a><br/></div> 901 902 903 <h5 style="margin-top: 5px; margin-bottom: 2px; padding-left: 0px; font-size: 18px;"><?php _e('Connections', 'social-networks-auto-poster-facebook-twitter-g');?></h5>904 905 906 <a style="font-weight: normal; font-size: 16px; line-height: 24px;" target="_blank" href="<?php echo $nxs_snapThisPageUrl; ?>&do=test">Check HTTPS/SSL Connections</a><br/>907 908 <h3 style="margin-top: 20px; padding-left: 0px; font-size: 18px;"><?php _e('Plugin Features Documentation', 'social-networks-auto-poster-facebook-twitter-g');?></h3>909 <a style="font-weight: normal; font-size: 18px; line-height: 24px;" target="_blank" href="https://www.nextscripts.com/snap-features/">All SNAP Features</a><br/>910 <a style="font-weight: normal; font-size: 18px; line-height: 24px;" target="_blank" href="https://www.nextscripts.com/instructions/"><?php _e('Setup/Installation Instructions for each network', 'social-networks-auto-poster-facebook-twitter-g');?></a><br/>911 <a style="font-weight: normal; font-size: 18px; line-height: 24px;" target="_blank" href="https://www.nextscripts.com/tutorials/"><?php _e('Setup/Configuration/Usage Tutorials', 'social-networks-auto-poster-facebook-twitter-g');?></a><br/>912 913 <h3 style="margin-top: 20px; padding-left: 0px; font-size: 18px;"><?php _e('General Questions', 'social-networks-auto-poster-facebook-twitter-g');?></h3>914 <a style="font-weight: normal; font-size: 18px; line-height: 24px;" target="_blank" href="https://www.nextscripts.com/faq">FAQ</a><br/>915 916 <h3 style="margin-top: 20px; padding-left: 0px; font-size: 18px;"><?php _e('Solutions for the most common problems', 'social-networks-auto-poster-facebook-twitter-g');?></h3>917 <a style="font-weight: normal; font-size: 18px; line-height: 24px;" target="_blank" href="https://www.nextscripts.com/support-faq/">Troubleshooting FAQ</a><br/>918 919 <h3 style="margin-top: 20px; padding-left: 0px; font-size: 18px;"><?php _e('Have troubles/problems/found a bug?', 'social-networks-auto-poster-facebook-twitter-g');?></h3>920 <a style="font-weight: normal; font-size: 18px; line-height: 24px;" target="_blank" href="https://www.nextscripts.com/support">===> Open support ticket <===</a>921 922 923 <h3 style="margin-top: 20px; padding-left: 0px; font-size: 18px;"><?php _e('Have questions/suggestions?', 'social-networks-auto-poster-facebook-twitter-g');?></h3>924 <a style="font-weight: normal; font-size: 18px; line-height: 24px;" target="_blank" href="https://www.nextscripts.com/contact-us">===> Contact us <===</a> <br/>925 926 <h3 style="margin-top: 20px; padding-left: 0px; font-size: 18px;;"><?php _e('Like the Plugin? Would you like to support developers?', 'social-networks-auto-poster-facebook-twitter-g');?></h3>898 ?><a style="font-weight: normal; font-size: 16px; line-height: 24px;" target="_blank" href="<?php echo $nxs_snapThisPageUrl; ?>&do=crtest">Show Cron Test Results</a><br/></div> 899 900 901 <h5 style="margin-top: 5px; margin-bottom: 2px; padding-left: 0px; font-size: 16px;"><?php _e('Connections', 'social-networks-auto-poster-facebook-twitter-g');?></h5> 902 903 904 <a style="font-weight: normal; font-size: 14px; line-height: 24px;" target="_blank" href="<?php echo $nxs_snapThisPageUrl; ?>&do=test">Check HTTPS/SSL Connections</a><br/> 905 906 <h3 style="margin-top: 20px; padding-left: 0px; font-size: 16px;"><?php _e('Plugin Features Documentation', 'social-networks-auto-poster-facebook-twitter-g');?></h3> 907 <a style="font-weight: normal; font-size: 14px; line-height: 24px;" target="_blank" href="https://www.nextscripts.com/snap-features/">All SNAP Features</a><br/> 908 <a style="font-weight: normal; font-size: 14px; line-height: 24px;" target="_blank" href="https://www.nextscripts.com/instructions/"><?php _e('Setup/Installation Instructions for each network', 'social-networks-auto-poster-facebook-twitter-g');?></a><br/> 909 <a style="font-weight: normal; font-size: 14px; line-height: 24px;" target="_blank" href="https://www.nextscripts.com/tutorials/"><?php _e('Setup/Configuration/Usage Tutorials', 'social-networks-auto-poster-facebook-twitter-g');?></a><br/> 910 911 <h3 style="margin-top: 20px; padding-left: 0px; font-size: 14px;"><?php _e('General Questions', 'social-networks-auto-poster-facebook-twitter-g');?></h3> 912 <a style="font-weight: normal; font-size: 14px; line-height: 24px;" target="_blank" href="https://www.nextscripts.com/faq">FAQ</a><br/> 913 914 <h3 style="margin-top: 20px; padding-left: 0px; font-size: 14px;"><?php _e('Solutions for the most common problems', 'social-networks-auto-poster-facebook-twitter-g');?></h3> 915 <a style="font-weight: normal; font-size: 14px; line-height: 24px;" target="_blank" href="https://www.nextscripts.com/support-faq/">Troubleshooting FAQ</a><br/> 916 917 <h3 style="margin-top: 20px; padding-left: 0px; font-size: 14px;"><?php _e('Have troubles/problems/found a bug?', 'social-networks-auto-poster-facebook-twitter-g');?></h3> 918 <a style="font-weight: normal; font-size: 14px; line-height: 24px;" target="_blank" href="https://www.nextscripts.com/support">===> Open support ticket <===</a> 919 920 921 <h3 style="margin-top: 20px; padding-left: 0px; font-size: 14px;"><?php _e('Have questions/suggestions?', 'social-networks-auto-poster-facebook-twitter-g');?></h3> 922 <a style="font-weight: normal; font-size: 14px; line-height: 24px;" target="_blank" href="https://www.nextscripts.com/contact-us">===> Contact us <===</a> <br/> 923 924 <h3 style="margin-top: 20px; padding-left: 0px; font-size: 14px;;"><?php _e('Like the Plugin? Would you like to support developers?', 'social-networks-auto-poster-facebook-twitter-g');?></h3> 927 925 <div style="line-height: 24px;"> 928 <b>Here is what you can do:</b><br/>929 <?php if(class_exists('nxsAPI_GP')) { ?><s><?php } ?><img src="<?php echo NXS_PLURL; ?>img/snap-icon12.png"/> Get the <a href="https://www.nextscripts.com/social-networks-autoposter-wordpress-plugin-pro/#getit">"Pro" Edition</a>. You will be able to add several accounts for each network as well as post to Google+, Pinterest and LinkedIn company pages.<?php if(class_exists('nxsAPI_GP')) { ?></s> <i>Done! Thank you!</i><?php } ?><br/>926 <b>Here is what you can do:</b><br/> 927 <?php if(class_exists('nxaddn_ma')) { ?><s><?php } ?><img src="<?php echo NXS_PLURL; ?>img/snap-icon12.png"/> Get few <a target="_blank" href="https://www.nextscripts.net/">Addons</a>. You will be able to add several accounts for each network as well as post to additional networks like Google My Business, Pinterest and LinkedIn company pages.<?php if(class_exists('nxaddn_ma')) { ?></s> <i>Done! Thank you!</i><?php } ?><br/> 930 928 <img src="<?php echo NXS_PLURL; ?>img/snap-icon12.png"/> Rate the plugin 5 stars at <a href="https://wordpress.org/extend/plugins/social-networks-auto-poster-facebook-twitter-g/">wordpress.org page</a>.<br/> 931 929 <img src="<?php echo NXS_PLURL; ?>img/snap-icon12.png"/> <a href="<?php echo nxs_get_admin_url(); ?>post-new.php">Write a blogpost</a> about the plugin and don't forget to auto-post this blogpost to all your social networks ;-).<br/> … … 948 946 </div><?php 949 947 } 948 949 function showAddonsTab(){ 950 $this->addns = nxs_addns::getAddnList(); update_site_option('_nxs_aListV4', $this->addns); nxs_addns::$lst = json_decode($this->addns, true); nxs_addns::showAddnsPage('4'); 951 } 950 952 951 953 function NS_SNAP_AddPostMetaTags() { global $post, $nxs_snapAvNts; $post_id = $post; if (is_object($post_id)) $post_id = $post_id->ID; -
social-networks-auto-poster-facebook-twitter-g/trunk/inc/nxs_functions.php
r2757419 r2804148 438 438 $nxs_spin_lCh = '{'; $nxs_spin_rCh='}'; $nxs_spin_splCh='|'; $msg = nxs_spinRecursion($msg, -1); return $msg; 439 439 }} 440 if (!function_exists("nxs_admin_notice__wrongProHelper")) { function nxs_admin_notice__wrongProHelper() { $class = 'notice notice-error'; $message = __( 'SNAP Pro Upgrade Helper Version', 'social-networks-auto-poster-facebook-twitter-g' ).' '.NextScripts_UPG_SNAP_Version.' '.__( 'is not compatible with SNAP v4. Please upgrade it to version 1.4.0 oh higher', 'social-networks-auto-poster-facebook-twitter-g' ); 441 printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), esc_html( $message ) ); 440 if (!function_exists("nxs_admin_notice__wrongProHelper")) { function nxs_admin_notice__wrongProHelper() { $class = 'notice notice-error is-dismissible nxs-upg200-notice'; 441 $message = __( 'You have "SNAP Pro Upgrade Helper" version', 'social-networks-auto-poster-facebook-twitter-g' ).' '.NextScripts_UPG_SNAP_Version.'. Please <a href="'.nxs_get_admin_url('update-core.php?force-check=1').'">upgrade</a> it to version 2.0.0 or higher to get the latest expirience.'; 442 $js = "<script> jQuery(document).on( 'click', '.nxs-upg200-notice .notice-dismiss', function() { jQuery.post(ajaxurl,{action: 'nxs_snap_aj','nxsact':'hide-nxs-upg200-notice', _wpnonce: jQuery('input#nxsSsPageWPN_wpnonce').val()}, 'html'); });</script>"; 443 444 printf( '<div class="%1$s"><p>%2$s</p>%3$s</div>', esc_attr( $class ), $message, $js ); 442 445 }} 443 446 if (!function_exists("nxs_isMobile")) { function nxs_isMobile() { -
social-networks-auto-poster-facebook-twitter-g/trunk/inc/nxs_functions_adv.php
r2757212 r2804148 28 28 if (is_array($networks)) { nxs_save_ntwrksOpts($networks); $nxs_SNAP->nxs_accts = $networks; echo "Done. ".wp_kses($acnt, wp_kses_allowed_html( 'post' )).' accounts has been updated.'; } 29 29 } 30 30 31 32 if ($_POST['nxsact']=='hide-nxs-upg200-notice') { update_option( 'nxs-upg200-notice-dismissed', 1 ); } 31 33 32 34 //############ Quick Post … … 292 294 if (!function_exists("nxs_show_noLibWrn")) { function nxs_show_noLibWrn($msg){ ?> <div style="border: 2px solid darkred; padding: 25px 15px 15px 15px; margin: 3px; background-color: #fffaf0;"> 293 295 <span style="font-size: 16px; color:darkred;"><?php echo wp_kses($msg, wp_kses_allowed_html( 'post' )); ?></span> <a href="https://www.nextscripts.com/faq/third-party-libraries-autopost-google-pinterest/" target="_blank">More info about third party API libraries.</a><br/><hr/> <div style="font-size: 16px; color:#005800; font-weight: bold; margin-top: 12px; margin-bottom: 7px;">You can get this API library from NextScripts.</div> 294 <div style="padding-bottom: 5px;"><a href="https://www.nextscripts.com/snap-api/">SNAP Premium API libraries package</a> adds autoposting to:</div> <span class="nxs_txtIcon nxs_ti_ fb">Facebook</span>, <span class="nxs_txtIcon nxs_ti_gp">Google+</span>, <span class="nxs_txtIcon nxs_ti_pn">Pinterest</span>, <span class="nxs_txtIcon nxs_ti_rd">Reddit</span>, <span class="nxs_txtIcon nxs_ti_bg">Blogger</span>, <span class="nxs_txtIcon nxs_ti_yt">YouTube</span>, <span class="nxs_txtIcon nxs_ti_fp">Flipboard</span>, <span class="nxs_txtIcon nxs_ti_li">LinkedIn Groups</span><br><br>296 <div style="padding-bottom: 5px;"><a href="https://www.nextscripts.com/snap-api/">SNAP Premium API libraries package</a> adds autoposting to:</div> <span class="nxs_txtIcon nxs_ti_gp">Google My Business</span>, <span class="nxs_txtIcon nxs_ti_pn">Pinterest</span>, <span class="nxs_txtIcon nxs_ti_rd">Reddit</span>, <span class="nxs_txtIcon nxs_ti_bg">Blogger</span>, <span class="nxs_txtIcon nxs_ti_yt">YouTube</span>, <span class="nxs_txtIcon nxs_ti_fp">Flipboard</span>, <span class="nxs_txtIcon nxs_ti_li">LinkedIn Groups</span>, etc...<br><br> 295 297 <div style="padding-bottom: 10px; padding-top: 7px;" align="center"> 296 298 <b style="color: #008000">[Limited Time Only Offer]</b> <br> Get a lifetime SNAP PRO Plugin license for <b>Free</b> with the order of SNAP Premium API for WordPress</div> 297 <div align="center"><a target="_blank" href="https://www.nextscripts. com/snap-api-premium-for-wordpress/#getit" class="NXSButton" id="nxs_snapUPG">Get SNAP Pro Plugin with SNAPAPI</a></div>299 <div align="center"><a target="_blank" href="https://www.nextscripts.net/offers" class="NXSButton" id="nxs_snapUPG">Get Multiple Accounts Addon with Premium API</a></div> 298 300 <div style="font-size: 10px; margin-top: 20px;">*If you already have API, please follow instructions from the readme.txt file.</div> 299 301 </div> <?php -
social-networks-auto-poster-facebook-twitter-g/trunk/inc/nxs_functions_wp.php
r2757419 r2804148 275 275 jQuery('#nxsCPTResults').html(j); 276 276 }, "html") 277 } 277 } 278 278 279 jQuery(document).ready(function() { 279 280 jQuery( "#nxsShowOnlySelected" ).on( "click", nxsShowOnlySelected); … … 283 284 284 285 jQuery( ".nxsnFav" ).on( "click", nxsnFavChange); 285 286 287 // Hide UPG Helper to 2.0 notice. 288 jQuery('.nxs-upg200-notice .notice-dismiss').on( 'click', function() { 289 jQuery.post(ajaxurl,{action: 'nxs_snap_aj',"nxsact":"hide-nxs-upg200-notice", _wpnonce: jQuery('input#nxsSsPageWPN_wpnonce').val()}, function(j){ 290 291 }, "html") 292 }); 293 294 /* ## [SM] New Connection Ajax Call */ 295 jQuery(".sm_newConn_drpdwnmenu li a").click(function(){ var cn = jQuery(this).data("cn"); jQuery('#smNewConn').html('...'); jQuery("#smConnEditLabel").html(''); 296 jQuery.post(ajaxurl,{action:'sm_aj', act:'gNt', nt:jQuery(this).data("nt"),'cid':jQuery(this).data("cid"), et_load_builder_modules:1, _wpnonce: jQuery('input#sm_wpnonce').val()}, function(j){ 297 // jQuery('#smNewConn').html('...'); jQuery("#smConnEditBodyCnt").html(j); jQuery('#smNewConn').html(jQuery('#smConnEdit').html()); jQuery("#smConnEditPopupLabel").html('Connection Settings - '+cn); 298 jQuery('#smNewConn').html(j); jQuery("#smConnEditLabel").html(cn); 299 }, "html"); 300 301 }); 302 286 303 /* JS Playground */ 287 304 … … 848 865 if ( isset($networks[$avNt['lcode']]) && count($networks[$avNt['lcode']])>0) { 849 866 $out .= '<div class="nsx_iconedTitle" style="margin-bottom:10px;margin-top:10px;background-image:url('.NXS_PLURL.'img/'.$avNt['lcode'].'16.png);">'.$avNt['name'].'<br/></div><div style="margin-left: 14px;">'; 850 $ntOpts = $networks[$avNt['lcode']]; foreach ($ntOpts as $indx=>$pbo){ 867 $ntOpts = $networks[$avNt['lcode']]; foreach ($ntOpts as $indx=>$pbo){ if (!is_array($pbo)) continue; 851 868 $out .= '<input class="nxsNPDoChb" value="'.$avNt['lcode'].'--'.$indx.'" name="nxs_NPNts" type="checkbox"'.(( (empty($selected)&&(int)$pbo['do'] == 1) || (!empty($selected)&&(in_array($avNt['lcode'].$indx,$selected))) )? "checked":'').' />'; 852 869 $out .= $avNt['name'].'<i style="color: #005800;">'.(($pbo['nName']!='')?"(".$pbo['nName'].")":'').'</i></br>'; -
social-networks-auto-poster-facebook-twitter-g/trunk/js-css/snap.css
r1905522 r2804148 465 465 .nxsPostEd_ElemLabel { font-size: 14px; font-weight: bold; } 466 466 .nxsPostEd_Elem { margin-left: 10px; margin-top: 5px;} 467 468 /* SM SYNC */ 469 .sm_edDiv{ 470 margin-top: 10px; 471 } 472 .x_sm_liMenuItem{margin-bottom: 0px;padding-top: 4px;} 473 474 .sm_liMenuItem{font-size: 16px; margin-top: 6px;} 475 .sm_liMenuItemTitle{font-size: 20px; font-weight: normal;margin-top: 2px;} 476 .sm_cItemRow {background-color: #ECECEC; margin-bottom: 15px; margin-top: 10px;} 477 .sm_ncTitle{margin-top: 15px; margin-bottom: 15px;} 478 479 .sm_edDiv { 480 margin-top: 20px; border-left: 3px #0a53be solid; display: none; 481 } 482 483 .inside h4 {font-size: 1em;} 484 .inside b, .inside strong {font-weight: 600;} 485 .nxsOfrLnk {color: #198754; text-decoration: underline; font-weight: bold;} -
social-networks-auto-poster-facebook-twitter-g/trunk/readme.txt
r2760471 r2804148 4 4 Donate link: https://www.nextscripts.com/social-networks-auto-poster-for-wordpress 5 5 Tags: automation, autopost, auto-post, auto post, socialnetworks, socialnetwork, social networks, social network, Flipboard, google, Flickr, twitter, pinterest, google my business, 500px, tumblr, blogger, blogspot, linkedin, reddit, reddit.com, plugin, links, Post, posts, api, automatic, seo, scoop.it, integration, bookmark, bookmarks, admin, images, image, social, sharing, share, repost, re-post, wordpress.com, Diigo, vBulletin, Plurk, forums, vKontakte, open graph, LiveJournal, SETT, YouTube, Telegram, xing, medium, yo, Weibo, mailchimp, line, Odnoklassniki, ok.ru 6 Requires at least: 3.47 Tested up to: 6.0. 18 Stable tag: 4. 3.306 Requires at least: 4.0 7 Tested up to: 6.0.3 8 Stable tag: 4.4.1 9 9 License: GPLv2 or later 10 10 … … 15 15 **This plugin automatically publishes posts from your blog to your Social Media accounts** such as Twitter, Blogger, Telegram, Tumblr, Flickr, LinkedIn, ok.ru, LiveJournal, DreamWidth, Flipboard, Google My Business, Line, Diigo, Instapaper, Pinterest, Plurk, VK.com (VKontakte), YouTube, Scoop.It, Wordpress, XING etc. The whole process is completely automated. Just write a new post and either entire post or it's nicely formatted announcement with backlink will be published to all your configured social networks. You can reach the most audience and tell all your friends, readers and followers about your new post. Plugin works with profiles, business pages, community pages, groups, etc. Messages are 100% customizable and adopted for each network requirements. 16 16 17 [Great News - July 2022] After almost 2 years break, plugin is back to active development and support. Version 4.4 iscoming soon...18 19 * **Version 4. 3** - fully compatible with WordPress 5 and Guttenberg.17 [Great News - July 2022] After almost 2 years break, plugin is back to active development and support. Versions 4.5 and 5.0 are coming soon... 18 19 * **Version 4.4** - fully compatible with WordPress 6 and Guttenberg Blocks. 20 20 21 21 = Supported Networks = … … 53 53 ... more networks are coming soon ... 54 54 55 * (*with third party API library*) means that you need to eitgher provide your own API or have a <a href="https://www.nextscripts.com/snap-api-premium-for-wordpress/">SNAP Premium API Library for Wordpress</a>. SNAP Premium API for Wordpress also comes with the <a href="https://www.nextscripts.com/social-networks-autoposter-wordpress-plugin-pro/">SNAP Pro Plugin</a>.55 * (*with third party API library*) means that you need to eitgher provide your own API or have a <a href="https://www.nextscripts.com/snap-api-premium-for-wordpress/">SNAP Premium API Library Addon for Wordpress</a>. 56 56 57 57 **Plugin makes 100% White Labeled Posts** The main idea behind the plugin is to give you the ability to promote only yourself. Plugin uses your own apps and all posts to all networks come only from you. No "Shared via NextScripts.com" or "Posted by SNAP for Wordpress" messages. … … 76 76 77 77 78 ** Also included exclusively in the <a href="https://www.nextscripts.com/social-networks-autoposter-wordpress-plugin-pro/">SNAP Pro Plugin</a>**78 **Some additional features could be added via addons <a href="https://www.nextscripts.net">addons</a>** 79 79 80 80 * Unlimited accounts. Add/configure unlimited number of accounts for each social network. … … 82 82 * Advanced Filters. Filter by Custom Fields, Custom Taxonomies, and Searches 83 83 * Auto-repost existing posts randomly 84 * Limit auto-reposting to specific days and times 84 * Limit auto-reposting to specific days and times. 85 * Import comments. 86 * Use Proxies. 85 87 86 88 **Requirements** 87 89 88 Wordpress 3.4+ (4.8+ is preferred)89 PHP 5. 3+ (7+is preferred)90 Wordpress 4.0+ (6.0+ is preferred) 91 PHP 5.6+ (7.4 is preferred) 90 92 cURL 91 93 Correctly working WP cron is required for some functionality (Scheduled posts, Auto reposter, Comments Import, etc...) … … 125 127 == Frequently Asked Questions == 126 128 127 = What is the difference between "Free" and "Pro" versions? =128 129 Free plugin is limited to one account per each type of connected networks. In other words you can add 1 VK, AND 1 Twitter AND 1 LinkedIn AND 1 etc ... accounts in the "Free" version. This is enough for about 95% of users.130 131 <a href="https://www.nextscripts.com/social-networks-autoposter-wordpress-plugin-pro/">SNAP Pro Plugin</a> is NOT limited in number of accounts per each type of connected networks. You can add 10 (or 100) VK, AND 15 Twitter AND 5 LinkedIn AND 25 etc ... accounts in the "Pro" version.132 133 134 129 = What networks in your auto-poster plugin are free and what are not? Why some networks are not free? = 135 130 136 131 Please see the answer here: <a href="https://www.nextscripts.com/snap-networks-free-vs-premium/">https://www.nextscripts.com/snap-networks-free-vs-premium/</a> 137 132 138 = Does the freeplugin support Wordpress Multisite Network Edition (ex-WPMU)? =139 140 *SNAP Free and SNAP Prowill work ONLY on one site in the WordPress Multisite Environment. You can chose which one in the network admin panel.141 *<a href="https://www.nextscripts. com/social-networks-autoposter-wordpress-plugin-pro-multiuser/">SNAP Pro Multiuser</a> is fully compatible with WordPress Multisite Environment. It comes with admin panel where you can decide what sites can run SNAP or not133 = Does the plugin support Wordpress Multisite Network Edition (ex-WPMU)? = 134 135 *SNAP Plugin will work ONLY on one site in the WordPress Multisite Environment. You can chose which one in the network admin panel. 136 *<a href="https://www.nextscripts.net/addons/social-networks-autoposter-multiple-users">SNAP Multiple Users Addon</a> is fully compatible with WordPress Multisite Environment. It comes with admin panel where you can decide what sites can run SNAP or not 142 137 143 138 = Can I use it just for Twitter (LinkedIn, Pinterest) or it requires all networks to be set? = … … 157 152 == Screenshots == 158 153 159 1. Add new post metadata box (Pro Version)160 2. Settings Page (Pro Version)154 1. Add new post metadata box 155 2. Settings Page 161 156 3. Types of Post 162 157 4. Google+: Types of Post … … 183 178 == Changelog == 184 179 180 = 4.4.1 [10/25/2022] = 181 182 * New - Support for Addons. 183 * New/Improvement - [Facebook] - Updated to the latest API. App Review is no longer required! 184 * Improvement - A lot of code cleanup/improvements. 185 185 186 = 4.3.30 [07/22/2022] = 186 187 … … 570 571 Description: This plugin automatically publishes posts from your blog to your Twitter, and Google+ profiles and/or pages. 571 572 572 Author: Next Scripts573 Author: NextScripts 573 574 574 575 Author URL: https://www.nextscripts.com 575 576 576 Copyright 2012-202 1 Next Scripts, Inc577 Copyright 2012-2022 NextScripts Corp 577 578 578 579 PHP Twitter API: Copyright 2012 - themattharris - tmhOAuth
Note: See TracChangeset
for help on using the changeset viewer.