芝麻web文件管理V1.00
编辑当前文件:/www/wwwroot/shphe-en.com/wp-content/plugins/blog2social/includes/B2S/Ship/Portale.php
authurl = B2S_PLUGIN_API_ENDPOINT_AUTH . '?b2s_token=' . B2S_PLUGIN_TOKEN . '&sprache=' . substr(B2S_LANGUAGE, 0, 2) . '&hostUrl=' . $hostUrl; $this->allowProfil = unserialize(B2S_PLUGIN_NETWORK_ALLOW_PROFILE); $this->allowPage = unserialize(B2S_PLUGIN_NETWORK_ALLOW_PAGE); $this->allowGroup = unserialize(B2S_PLUGIN_NETWORK_ALLOW_GROUP); $this->oAuthPortal = unserialize(B2S_PLUGIN_NETWORK_OAUTH); } public function getItemHtml($portale) { $html = '
'; foreach ($portale as $k => $portal) { $isDeprecated = ($portal->id == 8) ? true : false; if (!$isDeprecated) { $html .= '
'; $html .= '
'; $html .= '
' . esc_html($portal->name) . '
'; $b2sAuthUrl = $this->authurl . '&portal_id=' . $portal->id . '&transfer=' . (in_array($portal->id, $this->oAuthPortal) ? 'oauth' : 'form' ) . '&version=3&affiliate_id=' . B2S_Tools::getAffiliateId(); if (in_array($portal->id, $this->allowGroup)) { $name = ($portal->id == 11) ? esc_html__('Publication', 'blog2social') : esc_html__('Group', 'blog2social'); $html .= (B2S_PLUGIN_USER_VERSION > 1) ? ('
+ ' . $name . '
') : '
+ ' . esc_html__('Group', 'blog2social') . '
' . esc_html__("PRO", "blog2social") . '
'; } if (in_array($portal->id, $this->allowPage)) { $html .= (B2S_PLUGIN_USER_VERSION > 1 || (B2S_PLUGIN_USER_VERSION == 0 && $portal->id == 1) || (B2S_PLUGIN_USER_VERSION == 1 && ($portal->id == 1 || $portal->id == 10))) ? ('
+ ' . esc_html__('Page', 'blog2social') . '
') : '
+ ' . esc_html__('Page', 'blog2social') . '
' . esc_html__("PRO", "blog2social") . '
'; } if (in_array($portal->id, $this->allowProfil)) { if($portal->id == 6) { $html .= '
+ ' . esc_html__('Profile', 'blog2social') . '
'; } else { $html .= ($portal->id != 18 || (B2S_PLUGIN_USER_VERSION >= 2 && $portal->id == 18)) ? ('
+ ' . esc_html__('Profile', 'blog2social') . '
') : '
+ ' . esc_html__('Profile', 'blog2social') . '
' . esc_html__("PRO", "blog2social") . '
'; } } $html .= '
'; } } $html .= '
'; return $html; } }