Commit 6bb28e48 by 杨子

修改wordpress 默认登陆

parent a8261345
<?php
/**
* The base configuration for WordPress
* WordPress基础配置文件。
*
* The wp-config.php creation script uses this file during the
* installation. You don't have to use the web site, you can
* copy this file to "wp-config.php" and fill in the values.
* 这个文件被安装程序用于自动生成wp-config.php配置文件,
* 您可以不使用网站,您需要手动复制这个文件,
* 并重命名为“wp-config.php”,然后填入相关信息。
*
* This file contains the following configurations:
* 本文件包含以下配置选项:
*
* * MySQL settings
* * Secret keys
* * Database table prefix
* * MySQL设置
* * 密钥
* * 数据库表名前缀
* * ABSPATH
*
* @link https://codex.wordpress.org/Editing_wp-config.php
* @link https://codex.wordpress.org/zh-cn:%E7%BC%96%E8%BE%91_wp-config.php
*
* @package WordPress
*/
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
// ** MySQL 设置 - 具体信息来自您正在使用的主机 ** //
/** WordPress数据库的名称 */
define('DB_NAME', 'database_name_here');
/** MySQL database username */
/** MySQL数据库用户名 */
define('DB_USER', 'username_here');
/** MySQL database password */
/** MySQL数据库密码 */
define('DB_PASSWORD', 'password_here');
/** MySQL hostname */
/** MySQL主机 */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
/** 创建数据表时默认的文字编码 */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
/** 数据库整理类型。如不确定请勿更改 */
define('DB_COLLATE', '');
/**#@+
* Authentication Unique Keys and Salts.
* 身份认证密钥与盐。
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
* 修改为任意独一无二的字串!
* 或者直接访问{@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org密钥生成服务}
* 任何修改都会导致所有cookies失效,所有用户将必须重新登录。
*
* @since 2.6.0
*/
......@@ -58,32 +58,30 @@ define('NONCE_SALT', 'put your unique phrase here');
/**#@-*/
/**
* WordPress Database Table prefix.
* WordPress数据表前缀。
*
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
* 如果您有在同一数据库内安装多个WordPress的需求,请为每个WordPress设置
* 不同的数据表前缀。前缀名只能为数字、字母加下划线。
*/
$table_prefix = 'wp_';
/**
* For developers: WordPress debugging mode.
* 开发者专用:WordPress调试模式。
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
* 将这个值改为true,WordPress将显示所有用于开发的提示。
* 强烈建议插件开发者在开发环境中启用WP_DEBUG。
*
* For information on other constants that can be used for debugging,
* visit the Codex.
* 要获取其他能用于调试的信息,请访问Codex。
*
* @link https://codex.wordpress.org/Debugging_in_WordPress
*/
define('WP_DEBUG', false);
/* That's all, stop editing! Happy blogging. */
/* 好了!请不要再继续编辑。请保存本文件。使用愉快! */
/** Absolute path to the WordPress directory. */
/** WordPress目录的绝对路径。 */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
/** 设置WordPress变量和包含文件。 */
require_once(ABSPATH . 'wp-settings.php');
......@@ -85,7 +85,7 @@ $table_prefix = 'wp_';
*
* @link https://codex.wordpress.org/Debugging_in_WordPress
*/
define('WP_DEBUG', true);
define('WP_DEBUG', false);
/* 好了!请不要再继续编辑。请保存本文件。使用愉快! */
......
......@@ -11,10 +11,6 @@ msgstr ""
"Language: zh_CN\n"
"Project-Id-Version: Themes - Twenty Nineteen\n"
#. Description of the theme
msgid "A new Gutenberg-ready theme."
msgstr "全新的由古腾堡驱动的主题。"
#. Theme Name of the theme
msgid "Twenty Nineteen"
msgstr "二〇一九"
......@@ -43,7 +39,7 @@ msgstr "二〇一九主题需要WordPress 4.7或更高版本。您正在运行%s
msgid "Back"
msgstr "返回"
#: inc/template-functions.php:208
#: inc/template-functions.php:209
msgid "More"
msgstr "更多"
......@@ -158,9 +154,9 @@ msgstr "社交网络链接菜单"
msgid "Skip to content"
msgstr "跳至内容"
#: image.php:52 template-parts/content/content.php:49
#: image.php:52 template-parts/content/content-page.php:27
#: template-parts/content/content.php:49
#: template-parts/content/content-single.php:40
#: template-parts/content/content-page.php:27
msgid "Pages:"
msgstr "页码:"
......@@ -307,10 +303,10 @@ msgstr "标签存档:"
msgid "Category Archives: "
msgstr "分类存档:"
#. translators: %s: Name of current post. Only visible to screen readers.
#. translators: %s: Name of current post. Only visible to screen readers
#: inc/template-tags.php:120 template-parts/content/content-page.php:41
#: template-parts/header/entry-header.php:32
#. translators: %s: Name of current post. Only visible to screen readers.
#: template-parts/content/content-page.php:41
#: template-parts/header/entry-header.php:32 inc/template-tags.php:120
msgid "Edit <span class=\"screen-reader-text\">%s</span>"
msgstr "编辑<span class=\"screen-reader-text\">%s</span>"
......@@ -348,20 +344,20 @@ msgstr "留下评论"
msgid "Join the Conversation"
msgstr "加入对话"
#: classes/class-twentynineteen-walker-comment.php:92
#: classes/class-twentynineteen-walker-comment.php:100
msgid "Your comment is awaiting moderation."
msgstr "您的评论正在等待审核。"
#: classes/class-twentynineteen-walker-comment.php:87
#: classes/class-twentynineteen-walker-comment.php:95
msgid "Edit"
msgstr "编辑"
#. translators: 1: comment date, 2: comment time
#: classes/class-twentynineteen-walker-comment.php:79
#: classes/class-twentynineteen-walker-comment.php:87
msgid "%1$s at %2$s"
msgstr "%1$s %2$s"
#: classes/class-twentynineteen-walker-comment.php:59
#: classes/class-twentynineteen-walker-comment.php:67
msgid "%s <span class=\"screen-reader-text says\">says:</span>"
msgstr "%s<span class=\"screen-reader-text says\">说:</span>"
......
......@@ -23,51 +23,51 @@ msgstr "Twenty Seventeen"
msgid "Footer"
msgstr "页脚"
#: functions.php:326
#: functions.php:338
msgid "Add widgets here to appear in your sidebar on blog posts and archive pages."
msgstr "放置在这里的小工具会显示在您的文章、存档页面的侧栏上。"
#: sidebar.php:18 functions.php:324
#: sidebar.php:18 functions.php:336
msgid "Blog Sidebar"
msgstr "博客边栏"
#: template-parts/navigation/navigation-top.php:27
#: template-parts/navigation/navigation-top.php:31
#: template-parts/header/site-branding.php:34
msgid "Scroll down to content"
msgstr "向下滚动到内容"
#: functions.php:168
#: functions.php:179
msgctxt "Theme starter content"
msgid "Coffee"
msgstr "咖啡"
#: functions.php:164
#: functions.php:175
msgctxt "Theme starter content"
msgid "Sandwich"
msgstr "三明治"
#: functions.php:160
#: functions.php:171
msgctxt "Theme starter content"
msgid "Espresso"
msgstr "浓缩咖啡"
#: inc/custom-header.php:120
#: inc/custom-header.php:128
msgid "Pause background video"
msgstr "暂停背景视频"
#: inc/custom-header.php:119
#: inc/custom-header.php:127
msgid "Play background video"
msgstr "播放背景视频"
#: inc/template-tags.php:150
#: inc/template-tags.php:151
msgid "Front Page Section %1$s Placeholder"
msgstr "首页章节%1$s占位符"
#: inc/customizer.php:80
#: inc/customizer.php:109
msgid "When the two-column layout is assigned, the page title is in one column and content is in the other."
msgstr "在使用两栏布局时,标题在左栏显示,内容在右栏显示。"
#: single.php:32
#: single.php:34
msgid "Next Post"
msgstr "下一篇文章"
......@@ -75,21 +75,21 @@ msgstr "下一篇文章"
msgid "Posts"
msgstr "文章"
#: inc/template-tags.php:88
#: inc/template-tags.php:89
msgid "Tags"
msgstr "标签"
#: inc/template-tags.php:84
#: inc/template-tags.php:85
msgid "Categories"
msgstr "分类"
#. translators: used between list items, there is a space after the comma
#: inc/template-tags.php:65
#: inc/template-tags.php:66
msgid ", "
msgstr "、"
#. translators: %s: post date
#: inc/template-tags.php:51
#: inc/template-tags.php:52
msgid "<span class=\"screen-reader-text\">Posted on</span> %s"
msgstr "<span class=\"screen-reader-text\">发布于</span>%s"
......@@ -106,98 +106,98 @@ msgstr "请定义SVG图标文件名。"
msgid "Please define default parameters in the form of an array."
msgstr "请用数组的形式定义默认参数。"
#: inc/customizer.php:108
#: inc/customizer.php:143
msgid "Select pages to feature in each area from the dropdowns. Add an image to a section by setting a featured image in the page editor. Empty sections will not be displayed."
msgstr "选择要出现在每个区域中的页面。在页面编辑器中设置特色图片来添加图片到章节。空章节不会被显示。"
#. translators: %d is the front page section number
#: inc/customizer.php:107
#: inc/customizer.php:142
msgid "Front Page Section %d Content"
msgstr "首页章节%d内容"
#: inc/customizer.php:83 inc/customizer.php:132
#: inc/customizer.php:112 inc/customizer.php:171
msgid "Two Column"
msgstr "两栏"
#: inc/customizer.php:82 inc/customizer.php:131
#: inc/customizer.php:111 inc/customizer.php:170
msgid "One Column"
msgstr "一栏"
#: inc/customizer.php:77
#: inc/customizer.php:106
msgid "Page Layout"
msgstr "页面布局"
#: inc/customizer.php:66
#: inc/customizer.php:89
msgid "Theme Options"
msgstr "主题选项"
#: inc/customizer.php:50
#: inc/customizer.php:64
msgid "Custom"
msgstr "自定义"
#: inc/customizer.php:48
#: inc/customizer.php:62
msgid "Light"
msgstr "亮色"
#: inc/customizer.php:46
#: inc/customizer.php:60
msgid "Color Scheme"
msgstr "配色方案"
#: inc/custom-header.php:49
#: inc/custom-header.php:56
msgid "Default Header Image"
msgstr "默认头部图像"
#: functions.php:344
#: functions.php:360
msgid "Footer 2"
msgstr "页脚2"
#: functions.php:336 functions.php:346
#: functions.php:350 functions.php:362
msgid "Add widgets here to appear in your footer."
msgstr "在此向页脚中添加挂件。"
#: functions.php:334
#: functions.php:348
msgid "Footer 1"
msgstr "页脚1"
#: functions.php:278
#: functions.php:289
msgctxt "Libre Franklin font: on or off"
msgid "on"
msgstr "off"
#: template-parts/navigation/navigation-top.php:12 functions.php:63
#: functions.php:192
#: functions.php:64 functions.php:203
#: template-parts/navigation/navigation-top.php:12
msgid "Top Menu"
msgstr "顶部菜单"
#: comments.php:60
#: comments.php:62
msgid "Reply"
msgstr "回复"
#: template-parts/post/content-none.php:27
#: template-parts/post/content-none.php:28
msgid "It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help."
msgstr "我们可能无法找到您需要的内容。或许搜索功能可以帮到您。"
#: search.php:50
#: search.php:54
msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords."
msgstr "抱歉,没有符合您搜索条件的结果。请换其它关键词再试。"
#: template-parts/post/content-none.php:23
#: template-parts/post/content-none.php:24
msgid "Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
msgstr "准备好发布第一篇文章了?<a href=\"%1$s\">从这里开始</a>。"
#: template-parts/post/content-none.php:17 search.php:21
#: search.php:21 template-parts/post/content-none.php:17
msgid "Nothing Found"
msgstr "未找到"
#: single.php:31
#: single.php:33
msgid "Previous Post"
msgstr "上一篇文章"
#: single.php:31 comments.php:66
#: single.php:33 comments.php:71
msgid "Previous"
msgstr "上一篇"
#: single.php:32 comments.php:67
#: single.php:34 comments.php:72
msgid "Next"
msgstr "下一篇"
......@@ -221,33 +221,33 @@ msgid "Search Results for: %s"
msgstr "%s的搜索结果"
#. translators: %s: Name of current post
#: template-parts/page/content-front-page-panels.php:43
#: template-parts/page/content-front-page.php:40
#: template-parts/post/content-audio.php:83 template-parts/post/content.php:56
#: template-parts/post/content-gallery.php:70
#: template-parts/post/content-video.php:82
#: template-parts/post/content-image.php:59 functions.php:372
#: functions.php:390 template-parts/post/content-gallery.php:71
#: template-parts/post/content.php:57 template-parts/post/content-image.php:61
#: template-parts/post/content-audio.php:84
#: template-parts/post/content-video.php:83
#: template-parts/page/content-front-page.php:42
#: template-parts/page/content-front-page-panels.php:45
msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
msgstr "继续阅读<span class=\"screen-reader-text\">“%s”</span>"
#: inc/customizer.php:49
#: inc/customizer.php:63
msgid "Dark"
msgstr "暗色"
#: inc/back-compat.php:39 inc/back-compat.php:51 inc/back-compat.php:66
#: inc/back-compat.php:39 inc/back-compat.php:52 inc/back-compat.php:70
msgid "Twenty Seventeen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again."
msgstr "Twenty Seventeen主题需要WordPress 4.7或更高版本。您运行的%s版,请在更新WordPress后重试。"
#. translators: %s: Name of current post
#: inc/template-tags.php:116
#: inc/template-tags.php:117
msgid "Edit<span class=\"screen-reader-text\"> \"%s\"</span>"
msgstr "编辑<span class=\"screen-reader-text\">“%s”</span>"
#: template-parts/page/content-page.php:25
#: template-parts/post/content-audio.php:88 template-parts/post/content.php:61
#: template-parts/post/content-gallery.php:75
#: template-parts/post/content-video.php:87
#: template-parts/post/content-image.php:64
#: template-parts/post/content-gallery.php:78
#: template-parts/post/content.php:64 template-parts/post/content-image.php:68
#: template-parts/post/content-audio.php:91
#: template-parts/post/content-video.php:90
#: template-parts/page/content-page.php:26
msgid "Pages:"
msgstr "页码:"
......@@ -259,15 +259,15 @@ msgstr "菜单"
msgid "Skip to content"
msgstr "跳至内容"
#: functions.php:458
#: functions.php:482
msgid "Collapse child menu"
msgstr "折叠子菜单"
#: functions.php:457
#: functions.php:481
msgid "Expand child menu"
msgstr "展开子菜单"
#: functions.php:64 functions.php:203
#: functions.php:65 functions.php:214
msgid "Social Links Menu"
msgstr "社交网络链接菜单"
......@@ -275,28 +275,28 @@ msgstr "社交网络链接菜单"
msgid "Proudly powered by %s"
msgstr "自豪地采用%s"
#: footer.php:25
#: footer.php:26
msgid "Footer Social Links Menu"
msgstr "页脚社交链接菜单"
#: comments.php:75
#: comments.php:82
msgid "Comments are closed."
msgstr "评论已关闭。"
#. translators: 1: number of comments, 2: post title
#: comments.php:40
#: comments.php:41
msgctxt "comments title"
msgid "%1$s Reply to &ldquo;%2$s&rdquo;"
msgid_plural "%1$s Replies to &ldquo;%2$s&rdquo;"
msgstr[0] "&ldquo;%2$s&rdquo;的%1$s个回复"
#. translators: %s: post title
#: comments.php:36
#: comments.php:37
msgctxt "comments title"
msgid "One Reply to &ldquo;%s&rdquo;"
msgstr "&ldquo;%s&rdquo;的一个回复"
#: archive.php:47 search.php:45 index.php:52
#: index.php:54 archive.php:50 search.php:47
msgid "Page"
msgstr "页"
......@@ -308,11 +308,11 @@ msgstr "有点尴尬诶!该页无法显示。"
msgid "It looks like nothing was found at this location. Maybe try a search?"
msgstr "这儿似乎什么都没有,试试搜索?"
#: archive.php:45 search.php:43 index.php:50
#: index.php:52 archive.php:48 search.php:45
msgid "Previous page"
msgstr "上一页"
#: archive.php:46 search.php:44 index.php:51
#: index.php:53 archive.php:49 search.php:46
msgid "Next page"
msgstr "下一页"
......
......@@ -19,63 +19,63 @@ msgstr "Twenty Sixteen"
msgid "Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere."
msgstr "Twenty Sixteen是一个流行的WordPress布局的现代化实现——横式页首以及一个可选用的右侧边栏,完全适用于博客及网站。它有美丽的预设色彩调色盘、和谐的流动式网格设计、以移动设备为优先的设计,每个细节都极尽完美。Twenty Sixteen将使您的WordPress大放异彩。"
#: functions.php:189
#: functions.php:202
msgid "Bright Red"
msgstr "亮红色"
#: functions.php:184
#: functions.php:197
msgid "Dark Red"
msgstr "暗红色"
#: functions.php:174
#: functions.php:187
msgid "Dark Brown"
msgstr "暗棕色"
#: functions.php:164
#: functions.php:177
msgid "Bright Blue"
msgstr "亮蓝色"
#: functions.php:169
#: functions.php:182
msgid "Light Blue"
msgstr "浅蓝色"
#: functions.php:159
#: functions.php:172
msgid "Blue Gray"
msgstr "蓝灰色"
#: functions.php:154
#: functions.php:167
msgid "White"
msgstr "白色"
#: functions.php:149
#: functions.php:162
msgid "Light Gray"
msgstr "浅灰色"
#: functions.php:139
#: functions.php:152
msgid "Dark Gray"
msgstr "暗灰色"
#: functions.php:144
#: functions.php:157
msgid "Medium Gray"
msgstr "灰色"
#: functions.php:179
#: functions.php:192
msgid "Medium Brown"
msgstr "棕色"
#. translators: %s: Name of current post
#: image.php:84 template-parts/content.php:49
#: template-parts/content-single.php:45 template-parts/content-search.php:28
#: template-parts/content-search.php:43 template-parts/content-page.php:37
#: template-parts/content.php:53 template-parts/content-page.php:39
#: template-parts/content-search.php:28 template-parts/content-search.php:43
#: template-parts/content-single.php:47 image.php:88
msgid "Edit<span class=\"screen-reader-text\"> \"%s\"</span>"
msgstr "编辑<span class=\"screen-reader-text\">“%s”</span>"
#. translators: %s: Name of current post
#: inc/template-tags.php:184 template-parts/content.php:28
#: template-parts/content.php:29 inc/template-tags.php:194
msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
msgstr "继续阅读<span class=\"screen-reader-text\">“%s”</span>"
#: inc/customizer.php:283
#: inc/customizer.php:345
msgid "Red"
msgstr "红"
......@@ -104,11 +104,11 @@ msgstr "搜索:"
msgid "Footer Primary Menu"
msgstr "页脚主菜单"
#: footer.php:28
#: footer.php:30
msgid "Footer Social Links Menu"
msgstr "页脚社交链接菜单"
#: functions.php:231
#: functions.php:246
msgid "Add widgets here to appear in your sidebar."
msgstr "将挂件加入此处来在侧边栏中显示。"
......@@ -140,19 +140,19 @@ msgstr "查看%s的所有文章"
msgid "Author:"
msgstr "作者:"
#: single.php:38
#: single.php:42
msgid "Previous post:"
msgstr "上篇文章:"
#: single.php:35
#: single.php:39
msgid "Next post:"
msgstr "下篇文章:"
#: single.php:37
#: single.php:41
msgid "Previous"
msgstr "上一篇"
#: single.php:34
#: single.php:38
msgid "Next"
msgstr "下一篇"
......@@ -160,104 +160,104 @@ msgstr "下一篇"
msgid "Search Results for: %s"
msgstr "%s的搜索结果"
#: inc/template-tags.php:106
#: inc/template-tags.php:112
msgctxt "Used before tag names."
msgid "Tags"
msgstr "标签"
#: inc/template-tags.php:98
#: inc/template-tags.php:103
msgctxt "Used before category names."
msgid "Categories"
msgstr "分类"
#: inc/template-tags.php:95 inc/template-tags.php:103
#: inc/template-tags.php:99 inc/template-tags.php:108
msgctxt "Used between list items, there is a space after the comma."
msgid ", "
msgstr "、"
#: inc/template-tags.php:79
#: inc/template-tags.php:83
msgctxt "Used before publish date."
msgid "Posted on"
msgstr "发布于"
#: inc/template-tags.php:38
#: inc/template-tags.php:40
msgctxt "Used before post format."
msgid "Format"
msgstr "格式"
#: inc/template-tags.php:50
#: inc/template-tags.php:52
msgid "Leave a comment<span class=\"screen-reader-text\"> on %s</span>"
msgstr "<span class=\"screen-reader-text\">于%s</span>留下评论"
#: inc/template-tags.php:25
#: inc/template-tags.php:26
msgctxt "Used before post author name."
msgid "Author"
msgstr "作者"
#: functions.php:194 inc/customizer.php:293
#: functions.php:207 inc/customizer.php:355
msgid "Yellow"
msgstr "黄色"
#: inc/customizer.php:273
#: inc/customizer.php:335
msgid "Gray"
msgstr "灰"
#: inc/customizer.php:263
#: inc/customizer.php:325
msgid "Dark"
msgstr "暗色"
#: inc/customizer.php:253
#: inc/customizer.php:315
msgid "Default"
msgstr "默认"
#: inc/customizer.php:172
#: inc/customizer.php:221
msgid "Main Text Color"
msgstr "主文字颜色"
#: inc/customizer.php:184
#: inc/customizer.php:242
msgid "Secondary Text Color"
msgstr "副文字颜色"
#: inc/customizer.php:160
#: inc/customizer.php:200
msgid "Link Color"
msgstr "链接颜色"
#: inc/customizer.php:145
#: inc/customizer.php:176
msgid "Page Background Color"
msgstr "页面背景颜色"
#: single.php:29 image.php:102
#: single.php:31 image.php:107
msgctxt "Parent post link"
msgid "<span class=\"meta-nav\">Published in</span><span class=\"post-title\">%title</span>"
msgstr "<span class=\"meta-nav\">发布于</span><span class=\"post-title\">%title</span>"
#: inc/customizer.php:130
#: inc/customizer.php:153
msgid "Base Color Scheme"
msgstr "基础配色方案"
#: inc/back-compat.php:41 inc/back-compat.php:53 inc/back-compat.php:68
#: inc/back-compat.php:41 inc/back-compat.php:54 inc/back-compat.php:72
msgid "Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again."
msgstr "Twenty Sixteen要求WordPress 4.4版或以上,您在运行%s版。请升级并重试。"
#: image.php:73
#: image.php:77
msgctxt "Used before full size attachment link."
msgid "Full size"
msgstr "原始尺寸"
#: image.php:56 template-parts/content.php:33
#: template-parts/content-single.php:25 template-parts/content-page.php:23
#: template-parts/content.php:36 template-parts/content-page.php:24
#: template-parts/content-single.php:26 image.php:58
msgid "Pages:"
msgstr "页码:"
#: image.php:25
#: image.php:26
msgid "Next Image"
msgstr "下一图片"
#: image.php:24
#: image.php:25
msgid "Previous Image"
msgstr "上一图片"
#: header.php:47
#: header.php:49
msgid "Menu"
msgstr "菜单"
......@@ -265,30 +265,30 @@ msgstr "菜单"
msgid "Skip to content"
msgstr "跳至内容"
#: functions.php:360
#: functions.php:386
msgid "expand child menu"
msgstr "展开子菜单"
#: functions.php:361
#: functions.php:387
msgid "collapse child menu"
msgstr "折叠子菜单"
#: functions.php:239
#: functions.php:256
msgid "Content Bottom 1"
msgstr "底部内容1"
#: functions.php:241 functions.php:251
#: functions.php:258 functions.php:270
msgid "Appears at the bottom of the content on posts and pages."
msgstr "在页面与文章内容的底部出现。"
#: functions.php:249
#: functions.php:268
msgid "Content Bottom 2"
msgstr "底部内容2"
#. translators: If there are characters in your language that are not supported
#. by Merriweather, translate this to 'off'. Do not translate into your own
#. language.
#: functions.php:276
#: functions.php:296
msgctxt "Merriweather font: on or off"
msgid "on"
msgstr "off"
......@@ -296,7 +296,7 @@ msgstr "off"
#. translators: If there are characters in your language that are not supported
#. by Montserrat, translate this to 'off'. Do not translate into your own
#. language.
#: functions.php:281
#: functions.php:301
msgctxt "Montserrat font: on or off"
msgid "on"
msgstr "off"
......@@ -304,28 +304,28 @@ msgstr "off"
#. translators: If there are characters in your language that are not supported
#. by Inconsolata, translate this to 'off'. Do not translate into your own
#. language.
#: functions.php:286
#: functions.php:306
msgctxt "Inconsolata font: on or off"
msgid "on"
msgstr "off"
#: functions.php:229
#: functions.php:244
msgid "Sidebar"
msgstr "侧边栏"
#: header.php:62 functions.php:89
#: functions.php:93 header.php:66
msgid "Social Links Menu"
msgstr "社交网络链接菜单"
#: header.php:51 functions.php:88
#: functions.php:92 header.php:53
msgid "Primary Menu"
msgstr "主菜单"
#: footer.php:57
#: footer.php:61
msgid "Proudly powered by %s"
msgstr "自豪地采用%s"
#: comments.php:69
#: comments.php:71
msgid "Comments are closed."
msgstr "评论已关闭。"
......@@ -336,17 +336,17 @@ msgid "%1$s thought on &ldquo;%2$s&rdquo;"
msgid_plural "%1$s thoughts on &ldquo;%2$s&rdquo;"
msgstr[0] "《%2$s》有%1$s个想法"
#: index.php:48 archive.php:51 search.php:39 image.php:60
#: template-parts/content.php:37 template-parts/content-single.php:29
#: template-parts/content-page.php:27
#: archive.php:53 template-parts/content.php:40
#: template-parts/content-page.php:28 template-parts/content-single.php:30
#: search.php:41 index.php:50 image.php:62
msgid "Page"
msgstr "页"
#: index.php:47 archive.php:50 search.php:38
#: archive.php:52 search.php:40 index.php:49
msgid "Next page"
msgstr "下一页"
#: index.php:46 archive.php:49 search.php:37
#: archive.php:51 search.php:39 index.php:48
msgid "Previous page"
msgstr "上一页"
......@@ -367,6 +367,6 @@ msgid "https://wordpress.org/themes/twentysixteen/"
msgstr "https://wordpress.org/themes/twentysixteen/"
#. Author URI of the theme
#: footer.php:56
#: footer.php:60
msgid "https://wordpress.org/"
msgstr "https://cn.wordpress.org/"
This source diff could not be displayed because it is too large. You can view the blob instead.
<?php
/*
Plugin Name: Simple Slideshow Manager
Plugin URI: http://www.acurax.com
Description: A Simple 2 Use Slideshow Plugin Which Help You To Create Multiple Image or Video Slideshows That You Can Display On Your Theme, Page, Post and Sidebar
Author: Acurax
Version: 2.3.1
Author URI: http://www.acurax.com
Text Domain : simple-slideshow-manager
License: GPLv2 or later
*/
/*
Copyright 2008-current Acurax International ( website : www.acurax.com )
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
define("ACX_SLIDESHOW_VERSION", "2.3.1");
define("ACX_SLIDESHOW_BASE_LOCATION",plugin_dir_url( __FILE__ ));
define("ACX_SLIDESHOW_WP_SLUG","simple-slideshow-manager");
include_once(plugin_dir_path( __FILE__ ).'function.php');
include_once(plugin_dir_path( __FILE__ ).'includes/hooks.php');
include_once(plugin_dir_path( __FILE__ ).'includes/hook_functions.php');
include_once(plugin_dir_path( __FILE__ ).'includes/option_fields.php');
include_once(plugin_dir_path( __FILE__ ).'includes/acx-slideshow-licence-activation.php');
function acx_slideshow_admin()
{
include_once(plugin_dir_path( __FILE__ ).'includes/acx_slideshow_option.php');
}
function acx_slideshow_generate_shortcode()
{
include_once(plugin_dir_path( __FILE__ ).'includes/acx_slideshow_generate_shortcode.php');
}
function simple_slideshow_manager_misc()
{
include_once(plugin_dir_path( __FILE__ ).'includes/simple-slideshow-manager-misc.php');
}
function acx_slideshow_admin_help_gallery()
{
include_once(plugin_dir_path( __FILE__ ).'includes/help.php');
}
function acx_slideshow_admin_manage_gallery()
{
include_once(plugin_dir_path( __FILE__ ).'includes/acx_slideshow_managegallery.php');
}
function acx_slideshow_addons_page()
{
include_once(plugin_dir_path( __FILE__ ).'includes/acx_slideshow_addons.php');
}
function acx_slideshow_admin_actions()
{
$acx_slideshow_misc_user_level = get_option('acx_slideshow_misc_user_level');
if($acx_slideshow_misc_user_level=="")
{
$acx_slideshow_misc_user_level = "manage_options";
}
// add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position );
add_menu_page( 'Acurax Slideshow Configuration', __('Slideshow','simple-slideshow-manager'),$acx_slideshow_misc_user_level ,'Acurax-Slideshow-Settings' ,'acx_slideshow_admin',plugin_dir_url( __FILE__ ).'/images/admin.png' ); // manage_options for admin
add_submenu_page('', __('Manage Gallery','simple-slideshow-manager'), __('Add Images','simple-slideshow-manager'), $acx_slideshow_misc_user_level, 'Acurax-Slideshow-Add-Images' ,'acx_slideshow_admin_manage_gallery');
add_submenu_page('Acurax-Slideshow-Settings', __('Generate Shortcode','simple-slideshow-manager'), __('Code Generator','simple-slideshow-manager'), $acx_slideshow_misc_user_level, 'Acurax-Slideshow-Generate-Shortcode' ,'acx_slideshow_generate_shortcode');
add_submenu_page('Acurax-Slideshow-Settings', __('Misc','simple-slideshow-manager'), __('Misc','simple-slideshow-manager'), $acx_slideshow_misc_user_level,'Acurax-Slideshow-Misc','simple_slideshow_manager_misc');
add_submenu_page('Acurax-Slideshow-Settings', __('Acurax Slideshow Available Add-ons','simple-slideshow-manager'), __('Add-ons','simple-slideshow-manager'), 'manage_options', 'Acurax-Slideshow-Add-ons' ,'acx_slideshow_addons_page');
add_submenu_page('Acurax-Slideshow-Settings', __('Help','simple-slideshow-manager'), __('Help','simple-slideshow-manager'), $acx_slideshow_misc_user_level,'Acurax-Slideshow-Help' ,'acx_slideshow_admin_help_gallery');
}
if (is_admin())
{
add_action('admin_menu', 'acx_slideshow_admin_actions');
}
//*********** Include Additional Menu ********************
function AcuraxLinks_ASM($links, $file) {
$plugin = plugin_basename(__FILE__);
// create link
if ($file == $plugin) {
return array_merge( $links, array(
'<div id="plugin_page_links"><a href="http://www.acurax.com" target="_blank">' . __('Acurax International','simple-slideshow-manager') . '</a>',
'<a href="https://twitter.com/#!/acuraxdotcom" target="_blank">' . __('Acurax on Twitter','simple-slideshow-manager') . '</a>',
'<a href="http://www.facebook.com/AcuraxInternational" target="_blank">' . __('Acurax on Facebook','simple-slideshow-manager') . '</a>',
'<a href="http://www.acurax.com/services/web-designing.php" target="_blank">' . __('Wordpress Support From Acurax','simple-slideshow-manager') . '</a>'
));
}
return $links;
} add_filter('plugin_row_meta', 'AcuraxLinks_ASM', 10, 2 );
?>
\ No newline at end of file
#slideshow_addons_intro_holder
{
display: block;
width: 98%;
}
.slideshow_addons_intro
{
background: white none repeat scroll 0 0;
border: 1px solid #7cbac3;
border-radius: 2px;
box-sizing: border-box;
cursor: pointer;
display: block;
float: left;
font-family: arial;
font-size: 12px;
height: 460px;
margin-bottom: 2%;
margin-right: 2%;
max-height: 487px;
max-width: 100%;
padding: 10px;
text-align: center;
width: 22%;
}
.slideshow_addons_intro > img {
border: 1px dotted lightgray;
width: 100%;
}
.slideshow_addons_intro h3 {
color: #3c87b3;
font-family: arial;
font-size: 15px;
text-decoration: none;
text-transform: capitalize;
}
.slideshow_addons_intro > p {
font-family: Helvetica;
font-size: 12px;
height: 165px;
line-height: 18px;
text-align: justify;
}
.slideshow_addons_intro .slideshow_addon_button {
border: 1px solid black;
box-sizing: border-box;
color: black;
display: block;
margin-left: auto;
margin-right: auto;
padding: 6px;
text-decoration: none;
border-radius: 2px;
width: 85%;
}
.slideshow_addons_intro .slideshow_addon_button:hover {
background:#f8f8f8;
}
/* Addon Page*/
.acx_slideshow_add_p_licen > a {
background-color: #0052db;
color: #e3e3e3;
padding: 10px;
cursor: pointer;
}
.acx_slideshow_add_p_licence_light_cvr {
background-color: rgba(0, 0, 0, 0.9);
height: 100%;
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 9999;
display:none;
}
.acx_slideshow_add_p_licence_light_cls
{
background:url(../images/close.png) no-repeat center center;
width:40px;
height:40px;
position:absolute;
right: 0;
top: 0;
cursor:pointer;
}
.acx_slideshow_add_p_licence_li_cn {
background-color: #fff;
border-radius: 5px;
left: 50%;
position: absolute;
top: 50%;
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
width: 370px;
padding:40px 25px;
}
.acx_slideshow_p_li_span {
display: block;
float: left;
width: 100%;
}
.acx_slideshow_p_li_span input {
padding: 8px;
width: 100%;
}
.acx_slideshow_add_p_li_cls {
clear: both;
color: #fff;
cursor: pointer;
float: right;
margin-left: auto !important;
margin-right: auto !important;
text-align: center;
width: 25%;
}
.acx_slideshow_pu_li_error {
color: red;
display: block;
margin-top: 10px;
}
.acx_slideshow_install_ignore {
float: right;
cursor:pointer;
}
.acx_slideshow_purchased_li_cvr {
display: block;
float: left;
width: 100%;
}
#acx_slideshowp_loading_1,#acx_slideshow_loading
{
background: rgba(1, 1, 1, 0.5);
height: 100%;
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
}
#acx_slideshowp_loading_1 .load_1,
#acx_slideshow_loading .load
{
background: url("../images/loading.gif") no-repeat scroll 50% 50% transparent;
border-radius: 20px 20px 20px 20px;
height: 86px;
margin-left: -40px;
margin-top : -40px;
top:40%;
left:50%;
position: absolute;
opacity: 0.6;
width: 86px;
}
.acx_slideshow_option_page_hold_cvr {
padding-bottom: 70px !important;
}
.acx_slideshow_lic_del
{
background: url("../images/del.png") no-repeat center center;
}
.acx_slideshow_lic_refresh
{
background: url("../images/refresh.png") no-repeat center center;
}
.acx_slideshow_action_icon {
background-size: 21px auto;
display: inline-block;
height: 21px;
margin: 0 5px;
vertical-align: middle;
width: 21px;
cursor: pointer;
}
.acx_hide_refresh
{
display:none;
}
.acx_show_refresh
{
display:inline-block;
}
\ No newline at end of file
#image_slideshow .active {
z-index:2;
}
#image_slideshow .inactive {
z-index:1;
}
.acx_ppt, .acx_ppt ul, .acx_ppt li, .acx_ppt img
{
transition: none !important;
}
#image_slideshow_holder iframe
{
margin:0px !important;
}
ul.acx_ppt {
position: relative;
padding:0px !important;
margin:0px !important;
background:none !important;
list-style-type: none !important;
border:0px !important;
}
.acx_ppt li {
list-style-type: none !important;
position: absolute;
top: 0;
left: 0;
padding:0px !important;
margin:0px !important;
background:none !important;
border:0px !important;
}
.acx_ppt li img{
max-width:100%;
padding:0px !important;
margin:0px !important;
background:none !important;
border:0px !important;
}
.acx_dis_play_but{
border: 0 none;
color: silver;
cursor: pointer;
font-family: arial;
font-size: 1px;
height: 32px;
left: 45%;
position: absolute;
top: 44%;
width: 32px;
z-index: 1;
}
.acx_dis_pause_but
{
background: transparent url("../images/stop.png") no-repeat scroll 0 0;
border: 0 none;
color: silver;
cursor: pointer;
display: none;
font-family: arial;
font-size: 1px;
height: 32px;
width: 32px;
}
.acx_dis_stop_but{
border: 0 none;
color: silver;
cursor: pointer;
font-family: arial;
font-size: 1px;
height: 29px;
left: 200px;
position: absolute;
top: 300px;
width: 30px;
}
.acx_dis_unmute_but{
border: 0 none;
color: silver;
cursor: pointer;
font-family: arial;
font-size: 1px;
height: 29px;
left: 230px;
position: absolute;
top: 300px;
width: 30px;
}
.acx_dis_mute_but{
border: 0 none;
color: silver;
cursor: pointer;
font-family: arial;
font-size: 1px;
height: 29px;
left: 260px;
position: absolute;
top: 300px;
width: 30px;
}
.player_cntrls
{
bottom: 12px;
left: 12px;
position: absolute;
z-index: 10;
}
#acx_html_slide
{
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.7);
height: 100%;
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
}
#acx_html_slide .field
{
border: 1px solid lightslategrey;
}
#acx_html_slide .close
{
background: none repeat scroll 0 0 white;
border: 1px solid lightgray;
border-radius: 11px 11px 11px 11px;
box-shadow: 0 0 10px -5px black;
color: black;
cursor: pointer;
display: block;
font-size: 14px;
font-weight: bold;
padding: 2px 6px;
position: absolute;
right: -14px;
text-decoration: none;
top: -4px;
}
#html_slide
{
background: none repeat scroll 0 0 white;
border-radius: 6px 6px 6px 6px;
display: block;
left: 30%;
position: absolute;
top: 10%;
}
#wtd
{
background: url("../images/wtd.jpg") repeat scroll 0 0 transparent;
display: block;
height: 50px;
margin-right: 8px;
margin-top: 4px;
width: 240px;
float:left;
border: 3px solid gray;
box-shadow: 1px 1px 11px -5px black;
}
#wd
{
background: url("../images/wd.jpg") repeat scroll 0 0 transparent;
display: block;
height: 50px;
margin-right: 8px;
margin-top: 4px;
width: 240px;
float:left;
border: 3px solid gray;
box-shadow: 1px 1px 11px -5px black;
}
#wrd
{
background: url("../images/wr.jpg") repeat scroll 0 0 transparent;
display: block;
height: 50px;
margin-right: 8px;
margin-top: 4px;
width: 240px;
float:left;
border: 3px solid gray;
box-shadow: 1px 1px 11px -5px black;
}
#spd
{
background: url("../images/spd.jpg") repeat scroll 0 0 transparent;
display: block;
height: 50px;
margin-right: 8px;
margin-top: 4px;
width: 240px;
float:left;
border: 3px solid gray;
box-shadow: 1px 1px 11px -5px black;
}
.acx_ppt .acx_v_hold
{
position:relative;
}
.acx_ppt .acx_no_mo
{
position:absolute;
left:0px;
top:0px;
}
.acx_ss_error
{
border: 1px solid scrollbar;
color: red;
padding: 7px;
}
/* ----------- */
#acx_validate_galleryname
{
margin-left:300px;
color:red;
font-weight:bold;
position:absolute;
font-size:15px;
}
#acx_validate_galleryname_2
{
margin-left:300px;
color:#0d6e00;
font-weight:bold;
position:absolute;
font-size:15px;
}
#image_slideshow
{
position:relative;
max-width:100%;
}
#image_slideshow .active
{
opacity: 1;
position: relative;
}
#image_slideshow .inactive
{
opacity: 0;
position: absolute;
}
#image_slideshow .img_prev
{
background: url("../images/prev.png") no-repeat scroll center center;
top: 0px;
height: 100%;
left: 0px;
padding: 2px;
position:absolute;
width: 28px;
z-index: 10000;
cursor:pointer;
}
#image_slideshow .img_next
{
background: url("../images/next.png") no-repeat scroll center center;
top:0px;
height: 100%;
right: 0px;
padding: 2px;
position:absolute;
width: 28px;
z-index: 10000;
cursor:pointer;
}
#image_slideshow .img_stop
{
background: url("../images/stop_image.png") no-repeat scroll center center rgba(255, 255, 255, 0.0);
height: 16px;
right: 10px;
padding: 2px;
position:absolute;
width: 16px;
z-index: 10000;
cursor:pointer;
}
#image_slideshow .img_play
{
background: url("../images/play_image.png") no-repeat scroll center center rgba(255, 255, 255, 0.0);
height: 16px;
right: 10px;
padding: 2px;
position:absolute;
width: 16px;
z-index: 10000;
cursor:pointer;
}
#image_slideshow .img_prev:hover, .image_slideshow .img_next:hover
{
opacity:0.8;
border:1px solid:black;
}
#image_slideshow li
{
max-width:100%;
}
#image_slideshow img
{
vertical-align:middle;
width:100%;
}
\ No newline at end of file
@import url(https://fonts.googleapis.com/css?family=Roboto);
@font-face {
font-family: 'agency_fbbold';
src: url('../css/fonts/agencyb-webfont.eot');
src: url('../css/fonts/agencyb-webfont.eot?#iefix') format('embedded-opentype'),
url('../css/fonts/agencyb-webfont.woff') format('woff'),
url('../css/fonts/agencyb-webfont.ttf') format('truetype'),
url('../css/fonts/agencyb-webfont.svg#agency_fbbold') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
src: url('../css/fonts/raleway.woff') format('woff');
}
@font-face {
font-family: 'Courgette';
font-style: normal;
font-weight: 400;
src: url('../css/fonts/courgette.woff') format('woff');
}
#acx_upload_video input, #acx_upload_video select {
width: 100%;
}
/* Comparison */
#ss_middle_wrapper
{
background: none repeat scroll 0 0 #D5D5D5;
border-top: 1px solid #29A2DF;
min-height: 500px;
width: 100%;
float:left;
}
#ss_middle_wrapper h2
{
color: #000000;
font-family: 'agency_fbbold';
font-size: 52px;
font-weight: normal;
margin: 0;
line-height: 1;
text-transform: uppercase;
}
#ss_middle_wrapper h3
{
line-height: 1;
color: #29a2df;
font-family: 'agency_fbbold';
font-size: 26px;
font-weight: normal;
margin: 0;
text-transform: uppercase;
}
#ss_middle_center
{
background: #ececec;
margin: 0 auto;
width: 1006px;
}
#ss_middle_inline_block
{
display: inline-block;
padding: 33px;
width: 940px;
}
.middle_h2_1
{
background: url("../images/girl.png") no-repeat scroll left 0 rgba(0, 0, 0, 0);
height: 149px;
padding-left: 154px;
padding-top: 53px;
width: 786px;
float: left;
}
#ss_features_table
{
/* background: url("../images/ss_table_footer.png") no-repeat scroll center bottom rgba(0, 0, 0, 0); */
float: left;
margin: -62px 0 0;
width: 940px;
}
#ss_table_header
{
width: 940px;
float: left;
height: 118px;
}
#ss_table_header h3
{
color: #FFFFFF;
font-family: arial;
font-size: 14px;
font-weight: bolder;
line-height: 1;
text-align: center;
}
.tb_h1
{
background: url("../images/table_head_1.jpg") no-repeat scroll left 0 rgba(0, 0, 0, 0);
padding: 21px 0;
width: 178px;
float: left;
margin: 62px 0 0;
}
.tb_h2
{
background: url("../images/table_head_2.jpg") no-repeat scroll left 0 rgba(0, 0, 0, 0);
padding: 21px 0;
width: 340px;
float: left;
margin: 62px 0 0;
}
.tb_h3
{
background: url("../images/table_head_3.png") no-repeat scroll left 0 rgba(0, 0, 0, 0);
width: 211px;
height: 88px;
float: left;
margin: 30px 0 0;
position: relative;
}
.ss_download
{
height: 32px;
left: 94px;
position: absolute;
top: 44px;
width: 102px;
}
.tb_h4
{
background: url("../images/table_head_4.png") no-repeat scroll left 0 rgba(0, 0, 0, 0);
width: 211px;
height: 118px;
float: left;
position: relative;
}
.ss_buy_now
{
height: 65px;
left: 2px;
position: absolute;
top: 51px;
width: 207px;
}
.ss_column_holder
{
background: none repeat scroll 0 0 #FFFFFF;
border-bottom: 1px solid #E6E6E6;
float: left;
width: 940px;
}
.ss_feature_group
{
color: #33a9e1;
font-family: arial;
font-size: 14px;
font-weight: bolder;
line-height: 1;
text-align: center;
float: left;
width: 176px;
}
.ss_features
{
border-left: 1px solid #E6E6E6;
color: #737373;
font-family: arial;
font-size: 12px;
line-height: 1;
float: left;
}
.ss_features ul
{
margin: 0;
padding: 0;
}
.ss_features ul li
{
border-bottom: 1px solid #E6E6E6;
list-style: none outside none;
padding: 13px;
width: 315px;
margin-bottom: 0;
}
.ss_features ul li a
{
color: #29A2DF;
float: right;
font-family: arial;
font-size: 12px;
font-weight: normal;
text-decoration: none;
transition: all 0.3s ease 0s;
}
.ss_features ul li a:hover
{
color: #006496;
}
.ss_last_one
{
border: 0 none !important;
}
.ss_y_n_holder
{
border-left: 1px solid #E6E6E6;
float: left;
width: 210px;
}
.ss_yes
{
background: url("../images/ss_yes.png") no-repeat scroll center center rgba(0, 0, 0, 0);
border-bottom: 1px solid #E6E6E6;
height: 38px;
width: 210px;
}
.ss_no
{
background: url("../images/ss_no.png") no-repeat scroll center center rgba(0, 0, 0, 0);
border-bottom: 1px solid #E6E6E6;
height: 38px;
width: 210px;
}
.order_now
{
float: left;
height: 105px;
margin: 28px 0 19px 323px;
width: 310px;
}
.ss_column_holder .mini
{
display:none;
}
/* Comparison Ends Here */
#ad_slideshow_2_button_order
{
background: url("../images/button.jpg") no-repeat scroll center 0 #FFFFFF;
cursor: pointer;
display: block;
height: 115px;
margin-left: auto;
margin-right: auto;
width: 283px;
}
#ad_slideshow_2_button_order_link
{
cursor: pointer;
display: block;
height: 115px;
margin-left: auto;
margin-right: auto;
width: 283px;
}
#acx_ssm_premium {
background-color: #FFF6D6;
border: 1px solid #FCC328;
height: 35px;
margin-bottom: 20px;
margin-top: 20px;
padding: 5px;
}
#acx_ssm_premium a
{
font-family: sans-serif;
font-size: 21px;
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
<?php
acx_slideshow_hook_function('acx_slideshow_addon_hook_option_page_head');
acx_slideshow_hook_function('acx_slideshow_addon_hook_option_page');
?>
\ No newline at end of file
<?php
acx_slideshow_hook_function('acx_slideshow_hook_option_above_ifpost_manage_generate');
if(ISSET($_POST['acx_slideshow_hidden']))
{
$acx_slideshow_hidden = $_POST['acx_slideshow_hidden'];
}
else
{
$acx_slideshow_hidden = "";
}
if($acx_slideshow_hidden == 'Y')
{
acx_slideshow_hook_function('acx_slideshow_hook_option_onpost_manage_generate');
} else
{
acx_slideshow_hook_function('acx_slideshow_hook_option_postelse_manage_generate');
}
acx_slideshow_hook_function('acx_slideshow_hook_option_after_else_manage_generate');
acx_slideshow_hook_function('acx_slideshow_hook_option_form_head_manage_generate');
acx_slideshow_hook_function('acx_slideshow_hook_option_fields_manage_generate');
acx_slideshow_hook_function('acx_slideshow_hook_option_form_footer_manage_generate');
acx_slideshow_hook_function('acx_slideshow_hook_option_sidebar_manage_generate');
?>
\ No newline at end of file
<?php
acx_slideshow_hook_function('acx_slideshow_hook_option_above_ifpost_manage');
if(ISSET($_POST['acx_slideshow_hidden']))
{
$acx_slideshow_hidden = $_POST['acx_slideshow_hidden'];
}
else
{
$acx_slideshow_hidden = "";
}
if($acx_slideshow_hidden == 'Y')
{
acx_slideshow_hook_function('acx_slideshow_hook_option_onpost_manage');
} else
{
acx_slideshow_hook_function('acx_slideshow_hook_option_postelse_manage');
}
acx_slideshow_hook_function('acx_slideshow_hook_option_after_else_manage');
acx_slideshow_hook_function('acx_slideshow_hook_option_form_head_manage');
acx_slideshow_hook_function('acx_slideshow_hook_option_fields_manage');
acx_slideshow_hook_function('acx_slideshow_hook_option_form_footer_manage');
acx_slideshow_hook_function('acx_slideshow_hook_option_sidebar_manage');
?>
\ No newline at end of file
<?php
acx_slideshow_hook_function('acx_slideshow_hook_option_above_ifpost');
if(ISSET($_POST['my_plugin_hidden']))
{
$acx_slideshow_hidden = $_POST['my_plugin_hidden'];
}
else
{
$acx_slideshow_hidden = "";
}
if($acx_slideshow_hidden == 'Y')
{
acx_slideshow_hook_function('acx_slideshow_hook_option_onpost');
} else
{
acx_slideshow_hook_function('acx_slideshow_hook_option_postelse');
}
acx_slideshow_hook_function('acx_slideshow_hook_option_after_else');
acx_slideshow_hook_function('acx_slideshow_hook_option_form_head');
acx_slideshow_hook_function('acx_slideshow_hook_option_fields');
acx_slideshow_hook_function('acx_slideshow_hook_option_form_footer');
acx_slideshow_hook_function('acx_slideshow_hook_option_sidebar');
?>
\ No newline at end of file
<?php
acx_slideshow_hook_function('acx_slideshow_hook_option_above_ifpost_manage_help');
if(ISSET($_POST['acx_slideshow_hidden']))
{
$acx_slideshow_hidden = $_POST['acx_slideshow_hidden'];
}
else
{
$acx_slideshow_hidden = "";
}
if($acx_slideshow_hidden == 'Y')
{
acx_slideshow_hook_function('acx_slideshow_hook_option_onpost_manage_help');
} else
{
acx_slideshow_hook_function('acx_slideshow_hook_option_postelse_manage_help');
}
acx_slideshow_hook_function('acx_slideshow_hook_option_after_else_manage_help');
acx_slideshow_hook_function('acx_slideshow_hook_option_form_head_manage_help');
acx_slideshow_hook_function('acx_slideshow_hook_option_fields_manage_help');
acx_slideshow_hook_function('acx_slideshow_hook_option_form_footer_manage_help');
acx_slideshow_hook_function('acx_slideshow_hook_option_sidebar_manage_help');
?>
\ No newline at end of file
<?php
function acx_slideshow_hook_function($function_name)
{
if($function_name!="")
{
if(function_exists($function_name))
{
$function_name();
}
}
}
function acx_slideshow_hook_option_above_ifpost()
{
do_action('acx_slideshow_hook_option_above_ifpost');
}
function acx_slideshow_hook_option_onpost()
{
do_action('acx_slideshow_hook_option_onpost');
}
function acx_slideshow_hook_option_postelse()
{
do_action('acx_slideshow_hook_option_postelse');
}
function acx_slideshow_hook_option_after_else()
{
do_action('acx_slideshow_hook_option_after_else');
}
function acx_slideshow_hook_option_form_head()
{
do_action('acx_slideshow_hook_option_form_head');
}
function acx_slideshow_hook_option_fields()
{
do_action('acx_slideshow_hook_option_fields');
}
function acx_slideshow_hook_option_form_footer()
{
do_action('acx_slideshow_hook_option_form_footer');
}
function acx_slideshow_hook_option_sidebar()
{
do_action('acx_slideshow_hook_option_sidebar');
}
function acx_slideshow_hook_option_footer()
{
do_action('acx_slideshow_hook_option_footer');
}
//manage gallery hooks starts here
function acx_slideshow_hook_option_above_ifpost_manage()
{
do_action('acx_slideshow_hook_option_above_ifpost_manage');
}
function acx_slideshow_hook_option_onpost_manage()
{
do_action('acx_slideshow_hook_option_onpost_manage');
}
function acx_slideshow_hook_option_postelse_manage()
{
do_action('acx_slideshow_hook_option_postelse_manage');
}
function acx_slideshow_hook_option_after_else_manage()
{
do_action('acx_slideshow_hook_option_after_else_manage');
}
function acx_slideshow_hook_option_form_head_manage()
{
do_action('acx_slideshow_hook_option_form_head_manage');
}
function acx_slideshow_hook_option_fields_manage()
{
do_action('acx_slideshow_hook_option_fields_manage');
}
function acx_slideshow_hook_option_form_footer_manage()
{
do_action('acx_slideshow_hook_option_form_footer_manage');
}
function acx_slideshow_hook_option_sidebar_manage()
{
do_action('acx_slideshow_hook_option_sidebar_manage');
}
function acx_slideshow_hook_option_footer_manage()
{
do_action('acx_slideshow_hook_option_footer_manage');
}
//Generate shortcode page hooks starts here
function acx_slideshow_hook_option_above_ifpost_manage_generate()
{
do_action('acx_slideshow_hook_option_above_ifpost_manage_generate');
}
function acx_slideshow_hook_option_onpost_manage_generate()
{
do_action('acx_slideshow_hook_option_onpost_manage_generate');
}
function acx_slideshow_hook_option_postelse_manage_generate()
{
do_action('acx_slideshow_hook_option_postelse_manage_generate');
}
function acx_slideshow_hook_option_after_else_manage_generate()
{
do_action('acx_slideshow_hook_option_after_else_manage_generate');
}
function acx_slideshow_hook_option_form_head_manage_generate()
{
do_action('acx_slideshow_hook_option_form_head_manage_generate');
}
function acx_slideshow_hook_option_fields_manage_generate()
{
do_action('acx_slideshow_hook_option_fields_manage_generate');
}
function acx_slideshow_hook_option_form_footer_manage_generate()
{
do_action('acx_slideshow_hook_option_form_footer_manage_generate');
}
function acx_slideshow_hook_option_sidebar_manage_generate()
{
do_action('acx_slideshow_hook_option_sidebar_manage_generate');
}
function acx_slideshow_hook_option_footer_manage_generate()
{
do_action('acx_slideshow_hook_option_footer_manage_generate');
}
//misc manage gallery hooks starts here
function acx_slideshow_hook_option_above_ifpost_manage_misc()
{
do_action('acx_slideshow_hook_option_above_ifpost_manage_misc');
}
function acx_slideshow_hook_option_onpost_manage_misc()
{
do_action('acx_slideshow_hook_option_onpost_manage_misc');
}
function acx_slideshow_hook_option_postelse_manage_misc()
{
do_action('acx_slideshow_hook_option_postelse_manage_misc');
}
function acx_slideshow_hook_option_after_else_manage_misc()
{
do_action('acx_slideshow_hook_option_after_else_manage_misc');
}
function acx_slideshow_hook_option_form_head_manage_misc()
{
do_action('acx_slideshow_hook_option_form_head_manage_misc');
}
function acx_slideshow_hook_option_fields_manage_misc()
{
do_action('acx_slideshow_hook_option_fields_manage_misc');
}
function acx_slideshow_hook_option_form_footer_manage_misc()
{
do_action('acx_slideshow_hook_option_form_footer_manage_misc');
}
function acx_slideshow_hook_option_sidebar_manage_misc()
{
do_action('acx_slideshow_hook_option_sidebar_manage_misc');
}
function acx_slideshow_hook_option_footer_manage_misc()
{
do_action('acx_slideshow_hook_option_footer_manage_misc');
}
//help page hooks starts here
function acx_slideshow_hook_option_above_ifpost_manage_help()
{
do_action('acx_slideshow_hook_option_above_ifpost_manage_help');
}
function acx_slideshow_hook_option_onpost_manage_help()
{
do_action('acx_slideshow_hook_option_onpost_manage_help');
}
function acx_slideshow_hook_option_postelse_manage_help()
{
do_action('acx_slideshow_hook_option_postelse_manage_help');
}
function acx_slideshow_hook_option_after_else_manage_help()
{
do_action('acx_slideshow_hook_option_after_else_manage_help');
}
function acx_slideshow_hook_option_form_head_manage_help()
{
do_action('acx_slideshow_hook_option_form_head_manage_help');
}
function acx_slideshow_hook_option_fields_manage_help()
{
do_action('acx_slideshow_hook_option_fields_manage_help');
}
function acx_slideshow_hook_option_form_footer_manage_help()
{
do_action('acx_slideshow_hook_option_form_footer_manage_help');
}
function acx_slideshow_hook_option_sidebar_manage_help()
{
do_action('acx_slideshow_hook_option_sidebar_manage_help');
}
function acx_slideshow_hook_option_footer_manage_help()
{
do_action('acx_slideshow_hook_option_footer_manage_help');
}
/* Addon Page */
function acx_slideshow_addon_hook_option_page_head()
{
do_action('acx_slideshow_addon_hook_option_page_head');
}
function acx_slideshow_addon_hook_option_above_page_cvr()
{
do_action('acx_slideshow_addon_hook_option_above_page_cvr');
}
function acx_slideshow_addon_hook_option_page()
{
do_action('acx_slideshow_addon_hook_option_page');
}
function acx_slideshow_addon_hook_option_footer()
{
do_action('acx_slideshow_addon_hook_option_footer');
}
function acx_slideshow_addon_hook_option_field_content()
{
do_action('acx_slideshow_addon_hook_option_field_content');
}
?>
\ No newline at end of file
<?php
acx_slideshow_hook_function('acx_slideshow_hook_option_above_ifpost_manage_misc');
if(ISSET($_POST['acx_slideshow_misc_hidden']))
{
$acx_slideshow_hidden = $_POST['acx_slideshow_misc_hidden'];
}
else
{
$acx_slideshow_hidden = "";
}
if($acx_slideshow_hidden == 'Y')
{
acx_slideshow_hook_function('acx_slideshow_hook_option_onpost_manage_misc');
} else
{
acx_slideshow_hook_function('acx_slideshow_hook_option_postelse_manage_misc');
}
acx_slideshow_hook_function('acx_slideshow_hook_option_after_else_manage_misc');
acx_slideshow_hook_function('acx_slideshow_hook_option_form_head_manage_misc');
acx_slideshow_hook_function('acx_slideshow_hook_option_fields_manage_misc');
acx_slideshow_hook_function('acx_slideshow_hook_option_form_footer_manage_misc');
acx_slideshow_hook_function('acx_slideshow_hook_option_sidebar_manage_misc');
?>
\ No newline at end of file
<?php
if (! defined ( 'ABSPATH' ))
exit (); // Exit if accessed directly
/**
* @author ranj
* @since 1.0.0
*/
class XH_Social_Add_On_Buddypress extends Abstract_XH_Social_Add_Ons{
/**
* The single instance of the class.
*
* @since 1.0.0
* @var XH_Social_Add_On_Buddypress
*/
private static $_instance = null;
/**
* 当前插件目录
* @var string
* @since 1.0.0
*/
private $dir;
/**
* Main Social Instance.
*
* @since 1.0.0
* @static
* @return XH_Social_Add_On_Buddypress
*/
public static function instance() {
if ( is_null( self::$_instance ) ) {
self::$_instance = new self();
}
return self::$_instance;
}
protected function __construct(){
$this->id='add_ons_buddypress';
$this->title=__('Buddypress',XH_SOCIAL);
$this->description=__('Buddypress 扩展,社交登录头像同步到Buddypress',XH_SOCIAL);
$this->version='1.0.0';
$this->min_core_version = '1.0.0';
$this->author=__('xunhuweb',XH_SOCIAL);
$this->author_uri='https://www.wpweixin.net';
}
public function on_load(){
add_filter('bp_core_fetch_avatar_no_grav', '__return_true');
add_filter('bp_core_default_avatar_user', array($this,'bp_avatar_url'), 10, 2);
add_filter('bp_get_displayed_user_mentionname', array($this,'bp_get_displayed_user_mentionname'),10,1);
}
public function bp_get_displayed_user_mentionname($name){
$user = get_userdata(bp_displayed_user_id());
if($user){return $user->display_name;}
return $name;
}
/**
* 重置头像
* @param string $default_url
* @param array $params
*/
public function bp_avatar_url($default_url, $params) {
if(!isset($params['item_id'])) return $default_url;
$url = get_user_meta ( $params['item_id'], '_social_img', true );
if(empty($url)){
return $default_url;
}
return $url;
}
}
return XH_Social_Add_On_Buddypress::instance();
?>
\ No newline at end of file
<?php
if (! defined ( 'ABSPATH' ))
exit (); // Exit if accessed directly
require_once 'class-xh-social-channel-dingding.php';
/**
* 微信登录
*
* @author ranj
* @since 1.0.0
*/
class XH_Social_Add_On_Social_Dingding extends Abstract_XH_Social_Add_Ons{
/**
* The single instance of the class.
*
* @since 1.0.0
* @var XH_Social_Add_On_Social_Dingding
*/
private static $_instance = null;
/**
* Main Social Instance.
*
* @since 1.0.0
* @static
* @return XH_Social_Add_On_Social_Dingding
*/
public static function instance() {
if ( is_null( self::$_instance ) ) {
self::$_instance = new self();
}
return self::$_instance;
}
private function __construct(){
$this->id='add_ons_social_dingding';
$this->title =__('钉钉', XH_SOCIAL);
$this->description='钉钉,阿里巴巴出品,专为中国企业打造的免费智能移动办公平台';
$this->version='1.0.0';
$this->setting_uri = admin_url('admin.php?page=social_page_default&section=menu_default_channel&sub=social_dingding');
$this->min_core_version = '1.0.0';
$this->author=__('xunhuweb',XH_SOCIAL);
$this->author_uri='https://www.wpweixin.net';
}
public function on_load(){
add_filter('xh_social_ajax', array($this,'ajax'),10,1);
add_filter('xh_social_channels', array($this,'add_channels'));
add_filter('xh_social_admin_menu_menu_default_channel', array($this,'add_channel_menus'),10,1);
}
public function on_install(){
$api =new XH_Social_Channel_Dingding_Model();
$api->init();
}
/**
* ajax
* @param array $shortcodes
* @return array
* @since 1.0.0
*/
public function ajax($shortcodes){
$shortcodes["xh_social_{$this->id}"]=array($this,'do_ajax');
return $shortcodes;
}
public function do_ajax(){
$action ="xh_social_{$this->id}";
$datas=shortcode_atts(array(
'notice_str'=>null,
'action'=>$action,
$action=>null,
'tab'=>null
), stripslashes_deep($_REQUEST));
if(isset($_REQUEST['uid'])){
$datas['uid']=stripslashes($_REQUEST['uid']);
}
if(!XH_Social::instance()->WP->ajax_validate($datas,isset($_REQUEST['hash'])?$_REQUEST['hash']:null,true)){
XH_Social::instance()->WP->wp_die(XH_Social_Error::err_code(701));
exit;
}
switch ($datas['tab']){
case 'authorization':
$wp_user_id=isset($datas['uid'])?$datas['uid']:0;
if(
//wp_user_id>0 且登录用户id不等于wp_user_id
($wp_user_id>0&&is_user_logged_in()&&$wp_user_id!=get_current_user_id())
||
//已登录的情况
$wp_user_id<=0&&is_user_logged_in()
){
if(isset($_GET['social_logout'])){
wp_redirect(wp_logout_url(XH_Social_Helper_Uri::get_location_uri()));
exit;
}
wp_logout();
$params = array();
$url = XH_Social_Helper_Uri::get_uri_without_params(XH_Social_Helper_Uri::get_location_uri(),$params);
$params['social_logout']=1;
wp_redirect($url."?".http_build_query($params));
exit;
}
$redirect_uri='';
$redirect_uri=apply_filters('xh_social_channel_dingding_authorization',$redirect_uri,$datas);
if(!empty($redirect_uri)){
wp_redirect($redirect_uri);
exit;
}
$redirect_uri = XH_Social_Channel_Dingding::instance()->process_authorization_callback($wp_user_id);
$error = XH_Social::instance()->WP->get_wp_error($redirect_uri);
if(!empty($error)){
XH_Social::instance()->WP->wp_die($error);
exit;
}
wp_redirect($redirect_uri);
exit;
}
}
/**
* 注册登录接口
* @param array $schames
* @return array
*/
public function add_channels($channels){
$channels[]=XH_Social_Channel_Dingding::instance();
return $channels;
}
/**
* 注册管理菜单
* @param array $menus
* @return array
*/
public function add_channel_menus($menus){
$menus[]=XH_Social_Channel_Dingding::instance();
return $menus;
}
}
return XH_Social_Add_On_Social_Dingding::instance();
?>
\ No newline at end of file
<?php
if (! defined ( 'ABSPATH' ))
exit (); // Exit if accessed directly
require_once 'class-xh-social-channel-facebook.php';
/**
* 微信登录
*
* @author ranj
* @since 1.0.0
*/
class XH_Social_Add_On_Social_Facebook extends Abstract_XH_Social_Add_Ons{
/**
* The single instance of the class.
*
* @since 1.0.0
* @var XH_Social_Add_On_Social_Facebook
*/
private static $_instance = null;
/**
* Main Social Instance.
*
* @since 1.0.0
* @static
* @return XH_Social_Add_On_Social_Facebook
*/
public static function instance() {
if ( is_null( self::$_instance ) ) {
self::$_instance = new self();
}
return self::$_instance;
}
private function __construct(){
$this->id='add_ons_social_facebook';
$this->title=__('Facebook',XH_SOCIAL);
$this->description=__('使用Facebook快速登录,请在Facebook互联中申请网站应用',XH_SOCIAL);
$this->version='1.0.3';
$this->setting_uri = admin_url('admin.php?page=social_page_default&section=menu_default_channel&sub=social_facebook');
$this->min_core_version = '1.0.0';
$this->author=__('xunhuweb',XH_SOCIAL);
$this->author_uri='https://www.wpweixin.net';
}
public function on_load(){
add_filter('xh_social_ajax', array($this,'ajax'),10,1);
add_filter('xh_social_channels', array($this,'add_channels'));
add_filter('xh_social_admin_menu_menu_default_channel', array($this,'add_channel_menus'),10,1);
}
public function on_install(){
$api =new XH_Social_Channel_Facebook_Model();
$api->init();
}
/**
* ajax
* @param array $shortcodes
* @return array
* @since 1.0.0
*/
public function ajax($shortcodes){
$shortcodes["xh_social_{$this->id}"]=array($this,'do_ajax');
return $shortcodes;
}
public function do_ajax(){
$action ="xh_social_{$this->id}";
$datas=shortcode_atts(array(
'notice_str'=>null,
'action'=>$action,
$action=>null,
'tab'=>null
), stripslashes_deep($_REQUEST));
if(isset($_REQUEST['uid'])){
$datas['uid']=stripslashes($_REQUEST['uid']);
}
if(!XH_Social::instance()->WP->ajax_validate($datas,isset($_REQUEST['hash'])?$_REQUEST['hash']:null,true)){
XH_Social::instance()->WP->wp_die(XH_Social_Error::err_code(701));
exit;
}
switch ($datas['tab']){
case 'authorization':
$wp_user_id=isset($datas['uid'])?$datas['uid']:0;
if(
//wp_user_id>0 且登录用户id不等于wp_user_id
($wp_user_id>0&&is_user_logged_in()&&$wp_user_id!=get_current_user_id())
||
//已登录的情况
$wp_user_id<=0&&is_user_logged_in()
){
if(isset($_GET['social_logout'])){
wp_redirect(wp_logout_url(XH_Social_Helper_Uri::get_location_uri()));
exit;
}
wp_logout();
$params = array();
$url = XH_Social_Helper_Uri::get_uri_without_params(XH_Social_Helper_Uri::get_location_uri(),$params);
$params['social_logout']=1;
wp_redirect($url."?".http_build_query($params));
exit;
}
$redirect_uri='';
$redirect_uri=apply_filters('xh_social_channel_facebook_authorization',$redirect_uri,$datas);
if(!empty($redirect_uri)){
wp_redirect($redirect_uri);
exit;
}
$redirect_uri = XH_Social_Channel_Facebook::instance()->process_authorization_callback($wp_user_id);
$error = XH_Social::instance()->WP->get_wp_error($redirect_uri);
if(!empty($error)){
XH_Social::instance()->WP->wp_die($error);
exit;
}
wp_redirect($redirect_uri);
exit;
}
}
/**
* 注册登录接口
* @param array $schames
* @return array
*/
public function add_channels($channels){
$channels[]=XH_Social_Channel_Facebook::instance();
return $channels;
}
/**
* 注册管理菜单
* @param array $menus
* @return array
*/
public function add_channel_menus($menus){
$menus[]=XH_Social_Channel_Facebook::instance();
return $menus;
}
}
return XH_Social_Add_On_Social_Facebook::instance();
?>
\ No newline at end of file
<?php
if (! defined ( 'ABSPATH' ))
exit (); // Exit if accessed directly
require_once 'class-xh-social-channel-github.php';
/**
* 微信登录
*
* @author ranj
* @since 1.0.0
*/
class XH_Social_Add_On_Social_Github extends Abstract_XH_Social_Add_Ons{
/**
* The single instance of the class.
*
* @since 1.0.0
* @var XH_Social_Add_On_Social_Github
*/
private static $_instance = null;
/**
* Main Social Instance.
*
* @since 1.0.0
* @static
* @return XH_Social_Add_On_Social_Github
*/
public static function instance() {
if ( is_null( self::$_instance ) ) {
self::$_instance = new self();
}
return self::$_instance;
}
private function __construct(){
$this->id='add_ons_social_github';
$this->title =__('Github', XH_SOCIAL);
$this->description='GitHub brings together the world’s largest community of developers to discover, share, and build better software. From open source projects to private team repositories, we’re your all-in-one platform for collaborative development.';
$this->version='1.0.0';
$this->setting_uri = admin_url('admin.php?page=social_page_default&section=menu_default_channel&sub=social_github');
$this->min_core_version = '1.0.0';
$this->author=__('xunhuweb',XH_SOCIAL);
$this->author_uri='https://www.wpweixin.net';
}
public function on_load(){
add_filter('xh_social_ajax', array($this,'ajax'),10,1);
add_filter('xh_social_channels', array($this,'add_channels'));
add_filter('xh_social_admin_menu_menu_default_channel', array($this,'add_channel_menus'),10,1);
}
public function on_install(){
$api =new XH_Social_Channel_Github_Model();
$api->init();
}
/**
* ajax
* @param array $shortcodes
* @return array
* @since 1.0.0
*/
public function ajax($shortcodes){
$shortcodes["xh_social_{$this->id}"]=array($this,'do_ajax');
return $shortcodes;
}
public function do_ajax(){
$action ="xh_social_{$this->id}";
$datas=shortcode_atts(array(
'notice_str'=>null,
'action'=>$action,
$action=>null,
'tab'=>null
), stripslashes_deep($_REQUEST));
if(isset($_REQUEST['uid'])){
$datas['uid']=stripslashes($_REQUEST['uid']);
}
if(!XH_Social::instance()->WP->ajax_validate($datas,isset($_REQUEST['hash'])?$_REQUEST['hash']:null,true)){
XH_Social::instance()->WP->wp_die(XH_Social_Error::err_code(701));
exit;
}
switch ($datas['tab']){
case 'authorization':
$wp_user_id=isset($datas['uid'])?$datas['uid']:0;
if(
//wp_user_id>0 且登录用户id不等于wp_user_id
($wp_user_id>0&&is_user_logged_in()&&$wp_user_id!=get_current_user_id())
||
//已登录的情况
$wp_user_id<=0&&is_user_logged_in()
){
if(isset($_GET['social_logout'])){
wp_redirect(wp_logout_url(XH_Social_Helper_Uri::get_location_uri()));
exit;
}
wp_logout();
$params = array();
$url = XH_Social_Helper_Uri::get_uri_without_params(XH_Social_Helper_Uri::get_location_uri(),$params);
$params['social_logout']=1;
wp_redirect($url."?".http_build_query($params));
exit;
}
$redirect_uri='';
$redirect_uri=apply_filters('xh_social_channel_github_authorization',$redirect_uri,$datas);
if(!empty($redirect_uri)){
wp_redirect($redirect_uri);
exit;
}
$redirect_uri = XH_Social_Channel_Github::instance()->process_authorization_callback($wp_user_id);
$error = XH_Social::instance()->WP->get_wp_error($redirect_uri);
if(!empty($error)){
XH_Social::instance()->WP->wp_die($error);
exit;
}
wp_redirect($redirect_uri);
exit;
}
}
/**
* 注册登录接口
* @param array $schames
* @return array
*/
public function add_channels($channels){
$channels[]=XH_Social_Channel_Github::instance();
return $channels;
}
/**
* 注册管理菜单
* @param array $menus
* @return array
*/
public function add_channel_menus($menus){
$menus[]=XH_Social_Channel_Github::instance();
return $menus;
}
}
return XH_Social_Add_On_Social_Github::instance();
?>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment