From f5b32f5c8943d9b8179f91ca491e6108a8776804 Mon Sep 17 00:00:00 2001 From: Muhammad Iqbal Rifai Date: Wed, 28 Mar 2018 12:11:18 +0700 Subject: [PATCH] Push --- .gitattributes | 2 - README.md | 1 - css/fansub-plugin-admin.css | 0 css/fansub-plugin-admin.min.css | 0 css/fansub-plugin.css | 728 ++++ css/fansub-plugin.min.css | 1 + css/index.php | 2 + custom/fansub-plugin-admin.php | 108 + custom/fansub-plugin-ajax.php | 485 +++ custom/fansub-plugin-functions.php | 488 +++ custom/fansub-plugin-hook.php | 909 +++++ custom/fansub-plugin-meta.php | 277 ++ custom/fansub-plugin-pre-hook.php | 17 + custom/fansub-plugin-setup.php | 2 + custom/fixed functions.txt | 1864 ++++++++++ custom/index.php | 2 + custom/shortcode.php | 1379 ++++++++ fansub-plugin-main.php | 34 + fansub/ads.php | 89 + fansub/ajax.php | 474 +++ fansub/api.php | 23 + fansub/back-end.php | 26 + fansub/class-fansub-captcha.php | 420 +++ fansub/class-fansub-html.php | 203 ++ fansub/class-fansub-license.php | 338 ++ fansub/class-fansub-menu-edit-walker.php | 191 ++ fansub/class-fansub-menu-walker.php | 45 + fansub/class-fansub-meta.php | 571 ++++ fansub/class-fansub-mo.php | 92 + fansub/class-fansub-option.php | 852 +++++ fansub/class-fansub-remove-term-base.php | 234 ++ fansub/class-fansub-rewrite.php | 60 + fansub/class-fansub-serial.php | 77 + .../class-fansub-table-string-translation.php | 169 + fansub/class-fansub-tinymce-shortcode.php | 16 + fansub/class-fansub-tinymce.php | 117 + fansub/classifieds.php | 784 +++++ fansub/comment.php | 187 + fansub/coupon.php | 748 ++++ fansub/css/fansub-admin.css | 503 +++ fansub/css/fansub-admin.min.css | 1 + fansub/css/fansub-front-end.css | 3017 +++++++++++++++++ fansub/css/fansub-front-end.min.css | 1 + fansub/css/fansub-login.css | 178 + fansub/css/fansub-login.min.css | 1 + fansub/css/fansub-maintenance.css | 30 + fansub/css/fansub-maintenance.min.css | 1 + fansub/css/fansub.css | 513 +++ fansub/css/fansub.min.css | 1 + fansub/css/index.php | 2 + fansub/fonts/Tahoma.ttf | Bin 0 -> 218557 bytes fansub/fonts/index.php | 2 + fansub/front-end.php | 415 +++ fansub/functions.php | 3015 ++++++++++++++++ fansub/html-field.php | 1343 ++++++++ fansub/images/favicon-hocwp.png | Bin 0 -> 5053 bytes .../images/google-maps-splotlight-point.png | Bin 0 -> 774 bytes fansub/images/grey.gif | Bin 0 -> 43 bytes fansub/images/icon-arrow-left-thin-16.png | Bin 0 -> 1254 bytes fansub/images/icon-arrow-right-thin-16.png | Bin 0 -> 1317 bytes fansub/images/icon-datepicker-calendar.gif | Bin 0 -> 258 bytes fansub/images/icon-keyboard-arrow-left-60.png | Bin 0 -> 1600 bytes .../images/icon-keyboard-arrow-right-60.png | Bin 0 -> 1625 bytes fansub/images/icon-loading-circle-16.gif | Bin 0 -> 771 bytes .../images/icon-loading-circle-dark-full.gif | Bin 0 -> 4178 bytes .../images/icon-loading-circle-light-full.gif | Bin 0 -> 1588 bytes fansub/images/icon-loading-long.gif | Bin 0 -> 7819 bytes fansub/images/icon-login-16.png | Bin 0 -> 755 bytes fansub/images/icon-lost-password-24.png | Bin 0 -> 1044 bytes fansub/images/icon-refresh-captcha.png | Bin 0 -> 1999 bytes fansub/images/icon-register-16.png | Bin 0 -> 508 bytes fansub/images/index.php | 2 + fansub/images/no-thumbnail.png | Bin 0 -> 1790 bytes fansub/images/page-not-found.png | Bin 0 -> 13870 bytes fansub/images/transparent.gif | Bin 0 -> 43 bytes fansub/images/white.gif | Bin 0 -> 43 bytes fansub/index.php | 2 + fansub/js/fansub-admin.js | 315 ++ fansub/js/fansub-admin.min.js | 1 + fansub/js/fansub-front-end.js | 358 ++ fansub/js/fansub-front-end.min.js | 1 + fansub/js/fansub-login.js | 25 + fansub/js/fansub-login.min.js | 1 + fansub/js/fansub-tinymce-shortcode-button.js | 33 + .../js/fansub-tinymce-shortcode-button.min.js | 1 + fansub/js/fansub.js | 1376 ++++++++ fansub/js/fansub.min.js | 1 + fansub/js/index.php | 2 + fansub/language.php | 146 + fansub/lib.php | 15 + fansub/lib/bfi-thumb/BFI_Thumb.php | 844 +++++ fansub/lib/bfi-thumb/index.php | 2 + fansub/lib/chosen/chosen-sprite.png | Bin 0 -> 538 bytes fansub/lib/chosen/chosen-sprite@2x.png | Bin 0 -> 738 bytes fansub/lib/chosen/chosen.jquery.min.js | 2 + fansub/lib/chosen/chosen.min.css | 3 + fansub/lib/index.php | 2 + fansub/lib/mobile-detect/Mobile_Detect.php | 1434 ++++++++ fansub/lib/mobile-detect/index.php | 2 + fansub/load.php | 155 + fansub/login.php | 485 +++ fansub/mail.php | 180 + fansub/media.php | 179 + fansub/meta.php | 155 + fansub/option.php | 350 ++ fansub/options/general-option.php | 7 + fansub/options/index.php | 2 + fansub/options/plugin-option.php | 30 + fansub/options/setting-discussion.php | 39 + fansub/options/setting-login.php | 28 + fansub/options/setting-maintenance.php | 18 + fansub/options/setting-optimize.php | 10 + fansub/options/setting-plugin-custom-css.php | 15 + fansub/options/setting-plugin-license.php | 37 + fansub/options/setting-reading.php | 26 + fansub/options/setting-recommend-plugin.php | 96 + fansub/options/setting-smtp-email.php | 105 + fansub/options/setting-social.php | 100 + fansub/options/setting-theme-about.php | 145 + fansub/options/setting-theme-add-to-head.php | 10 + fansub/options/setting-theme-custom-css.php | 13 + fansub/options/setting-theme-custom.php | 34 + fansub/options/setting-theme-license.php | 28 + fansub/options/setting-theme-setting.php | 13 + fansub/options/setting-tool-developer.php | 22 + fansub/options/setting-writing.php | 7 + fansub/options/theme-option.php | 12 + fansub/options/user-option.php | 3 + fansub/pagination.php | 340 ++ fansub/plugin-functions.php | 34 + fansub/post.php | 510 +++ fansub/query.php | 198 ++ fansub/setup.php | 185 + fansub/shop.php | 99 + fansub/shortcode.php | 5 + fansub/statistics.php | 364 ++ fansub/term-meta.php | 113 + fansub/term.php | 268 ++ fansub/text.php | 68 + fansub/theme-switcher.php | 23 + fansub/theme/404.php | 16 + fansub/theme/ajax-loading-full-screen.php | 20 + fansub/theme/biography.php | 24 + fansub/theme/comments.php | 46 + fansub/theme/content-none.php | 16 + fansub/theme/fixed-widget.php | 67 + fansub/theme/footer.php | 26 + fansub/theme/header.php | 38 + fansub/theme/index.php | 2 + fansub/theme/setup-theme-after.php | 572 ++++ fansub/theme/setup-theme.php | 502 +++ fansub/theme/theme-functions.php | 221 ++ fansub/theme/theme-translation.php | 233 ++ fansub/tools.php | 580 ++++ fansub/users.php | 197 ++ fansub/utils.php | 1042 ++++++ fansub/video.php | 366 ++ fansub/views/index.php | 2 + fansub/views/maintenance.php | 4 + fansub/views/phpinfo.php | 2 + fansub/widgets/class-fansub-widget-banner.php | 100 + .../class-fansub-widget-facebook-box.php | 187 + .../class-fansub-widget-feedburner.php | 143 + fansub/widgets/class-fansub-widget-icon.php | 133 + fansub/widgets/class-fansub-widget-post.php | 603 ++++ fansub/widgets/class-fansub-widget-social.php | 110 + .../widgets/class-fansub-widget-subscribe.php | 378 +++ fansub/widgets/class-fansub-widget-tabber.php | 100 + fansub/widgets/class-fansub-widget-term.php | 341 ++ .../class-fansub-widget-top-commenter.php | 209 ++ fansub/widgets/index.php | 2 + fansub/woocommerce.php | 581 ++++ fansub/wordpress-seo.php | 65 + images/btn-slider-control.png | Bin 0 -> 1314 bytes images/icon-play.png | Bin 0 -> 2994 bytes images/icon-search.png | Bin 0 -> 2812 bytes images/index.php | 2 + images/loading.gif | Bin 0 -> 3046 bytes inc/index.php | 2 + inc/setup-plugin.php | 176 + index.php | 2 + js/fansub-plugin-admin.js | 79 + js/fansub-plugin-admin.min.js | 1 + js/fansub-plugin.js | 453 +++ js/fansub-plugin.min.js | 1 + js/index.php | 2 + js/shortcode.js | 0 jwplayer.php | 76 + languages/index.php | 2 + lib/Facebook/Authentication/AccessToken.php | 160 + .../Authentication/AccessTokenMetadata.php | 390 +++ lib/Facebook/Authentication/OAuth2Client.php | 292 ++ .../FacebookAuthenticationException.php | 33 + .../FacebookAuthorizationException.php | 33 + .../Exceptions/FacebookClientException.php | 33 + .../Exceptions/FacebookOtherException.php | 33 + .../Exceptions/FacebookResponseException.php | 214 ++ .../FacebookResumableUploadException.php | 33 + .../Exceptions/FacebookSDKException.php | 33 + .../Exceptions/FacebookServerException.php | 33 + .../Exceptions/FacebookThrottleException.php | 33 + lib/Facebook/Facebook.php | 635 ++++ lib/Facebook/FacebookApp.php | 110 + lib/Facebook/FacebookBatchRequest.php | 322 ++ lib/Facebook/FacebookBatchResponse.php | 174 + lib/Facebook/FacebookClient.php | 250 ++ lib/Facebook/FacebookRequest.php | 534 +++ lib/Facebook/FacebookResponse.php | 410 +++ lib/Facebook/FileUpload/FacebookFile.php | 169 + .../FileUpload/FacebookResumableUploader.php | 167 + .../FileUpload/FacebookTransferChunk.php | 133 + lib/Facebook/FileUpload/FacebookVideo.php | 33 + lib/Facebook/FileUpload/Mimetypes.php | 988 ++++++ lib/Facebook/GraphNodes/Birthday.php | 85 + lib/Facebook/GraphNodes/Collection.php | 242 ++ lib/Facebook/GraphNodes/GraphAchievement.php | 112 + lib/Facebook/GraphNodes/GraphAlbum.php | 183 + lib/Facebook/GraphNodes/GraphApplication.php | 43 + lib/Facebook/GraphNodes/GraphCoverPhoto.php | 72 + lib/Facebook/GraphNodes/GraphEdge.php | 252 ++ lib/Facebook/GraphNodes/GraphEvent.php | 242 ++ lib/Facebook/GraphNodes/GraphGroup.php | 170 + lib/Facebook/GraphNodes/GraphList.php | 36 + lib/Facebook/GraphNodes/GraphLocation.php | 102 + lib/Facebook/GraphNodes/GraphNode.php | 197 ++ lib/Facebook/GraphNodes/GraphNodeFactory.php | 392 +++ lib/Facebook/GraphNodes/GraphObject.php | 36 + .../GraphNodes/GraphObjectFactory.php | 88 + lib/Facebook/GraphNodes/GraphPage.php | 147 + lib/Facebook/GraphNodes/GraphPicture.php | 72 + lib/Facebook/GraphNodes/GraphSessionInfo.php | 102 + lib/Facebook/GraphNodes/GraphUser.php | 172 + lib/Facebook/Helpers/FacebookCanvasHelper.php | 52 + .../Helpers/FacebookJavaScriptHelper.php | 42 + .../Helpers/FacebookPageTabHelper.php | 95 + .../Helpers/FacebookRedirectLoginHelper.php | 333 ++ .../FacebookSignedRequestFromInputHelper.php | 166 + lib/Facebook/Http/GraphRawResponse.php | 137 + lib/Facebook/Http/RequestBodyInterface.php | 39 + lib/Facebook/Http/RequestBodyMultipart.php | 170 + lib/Facebook/Http/RequestBodyUrlEncoded.php | 55 + lib/Facebook/HttpClients/FacebookCurl.php | 129 + .../HttpClients/FacebookCurlHttpClient.php | 163 + .../HttpClients/FacebookGuzzleHttpClient.php | 97 + .../FacebookHttpClientInterface.php | 47 + lib/Facebook/HttpClients/FacebookStream.php | 80 + .../HttpClients/FacebookStreamHttpClient.php | 94 + .../HttpClients/HttpClientsFactory.php | 99 + .../certs/DigiCertHighAssuranceEVRootCA.pem | 23 + .../FacebookMemoryPersistentDataHandler.php | 53 + .../FacebookSessionPersistentDataHandler.php | 76 + .../PersistentData/PersistentDataFactory.php | 65 + .../PersistentDataInterface.php | 49 + .../McryptPseudoRandomStringGenerator.php | 68 + .../OpenSslPseudoRandomStringGenerator.php | 67 + .../PseudoRandomStringGeneratorFactory.php | 101 + .../PseudoRandomStringGeneratorInterface.php | 45 + .../PseudoRandomStringGeneratorTrait.php | 58 + ...RandomBytesPseudoRandomStringGenerator.php | 59 + .../UrandomPseudoRandomStringGenerator.php | 89 + lib/Facebook/SignedRequest.php | 326 ++ .../Url/FacebookUrlDetectionHandler.php | 182 + lib/Facebook/Url/FacebookUrlManipulator.php | 167 + lib/Facebook/Url/UrlDetectionInterface.php | 39 + lib/Facebook/autoload.php | 81 + lib/Facebook/polyfills.php | 49 + lib/bxslider/bower.json | 25 + lib/bxslider/images/bx_loader.gif | Bin 0 -> 8581 bytes lib/bxslider/images/bx_loader1.gif | Bin 0 -> 8581 bytes lib/bxslider/images/controls.png | Bin 0 -> 2806 bytes lib/bxslider/jquery.bxslider.css | 204 ++ lib/bxslider/jquery.bxslider.js | 1343 ++++++++ lib/bxslider/jquery.bxslider.min.js | 10 + lib/bxslider/plugins/jquery.easing.1.3.js | 205 ++ lib/bxslider/plugins/jquery.fitvids.js | 80 + lib/bxslider/readme.md | 578 ++++ lib/fancybox.zip | Bin 0 -> 58642 bytes lib/fancybox/blank.gif | Bin 0 -> 43 bytes lib/fancybox/fancybox_loading.gif | Bin 0 -> 6567 bytes lib/fancybox/fancybox_loading@2x.gif | Bin 0 -> 13984 bytes lib/fancybox/fancybox_overlay.png | Bin 0 -> 1003 bytes lib/fancybox/fancybox_sprite.png | Bin 0 -> 1362 bytes lib/fancybox/fancybox_sprite@2x.png | Bin 0 -> 6553 bytes lib/fancybox/helpers/fancybox_buttons.png | Bin 0 -> 1080 bytes .../helpers/jquery.fancybox-buttons.css | 97 + .../helpers/jquery.fancybox-buttons.js | 122 + lib/fancybox/helpers/jquery.fancybox-media.js | 201 ++ .../helpers/jquery.fancybox-thumbs.css | 55 + .../helpers/jquery.fancybox-thumbs.js | 165 + lib/fancybox/jquery.fancybox.css | 275 ++ lib/fancybox/jquery.fancybox.js | 2018 +++++++++++ lib/fancybox/jquery.fancybox.pack.js | 46 + lib/fancybox2/blank.gif | Bin 0 -> 43 bytes lib/fancybox2/fancybox_loading.gif | Bin 0 -> 6567 bytes lib/fancybox2/fancybox_loading@2x.gif | Bin 0 -> 13984 bytes lib/fancybox2/fancybox_overlay.png | Bin 0 -> 1003 bytes lib/fancybox2/fancybox_sprite.png | Bin 0 -> 1362 bytes lib/fancybox2/fancybox_sprite@2x.png | Bin 0 -> 6553 bytes lib/fancybox2/helpers/fancybox_buttons.png | Bin 0 -> 1080 bytes .../helpers/jquery.fancybox-buttons.css | 97 + .../helpers/jquery.fancybox-buttons.js | 122 + .../helpers/jquery.fancybox-media.js | 201 ++ .../helpers/jquery.fancybox-thumbs.css | 55 + .../helpers/jquery.fancybox-thumbs.js | 165 + lib/fancybox2/jquery.fancybox.css | 275 ++ lib/fancybox2/jquery.fancybox.js | 2018 +++++++++++ lib/fancybox2/jquery.fancybox.pack.js | 46 + lib/index.php | 2 + lib/lazyload/jquery.lazyload.min.js | 2 + lib/lazyload/jquery.scrollstop.min.js | 2 + lib/source.zip | Bin 0 -> 58135 bytes lib/zeroclipboard/.jshintrc | 70 + lib/zeroclipboard/ZeroClipboard.Core.js | 2144 ++++++++++++ lib/zeroclipboard/ZeroClipboard.Core.min.js | 10 + lib/zeroclipboard/ZeroClipboard.Core.min.map | 1 + lib/zeroclipboard/ZeroClipboard.js | 2716 +++++++++++++++ lib/zeroclipboard/ZeroClipboard.min.js | 10 + lib/zeroclipboard/ZeroClipboard.min.map | 1 + lib/zeroclipboard/ZeroClipboard.swf | Bin 0 -> 6586 bytes load.php | 58 + 320 files changed, 62642 insertions(+), 3 deletions(-) delete mode 100644 .gitattributes delete mode 100644 README.md create mode 100644 css/fansub-plugin-admin.css create mode 100644 css/fansub-plugin-admin.min.css create mode 100644 css/fansub-plugin.css create mode 100644 css/fansub-plugin.min.css create mode 100644 css/index.php create mode 100644 custom/fansub-plugin-admin.php create mode 100644 custom/fansub-plugin-ajax.php create mode 100644 custom/fansub-plugin-functions.php create mode 100644 custom/fansub-plugin-hook.php create mode 100644 custom/fansub-plugin-meta.php create mode 100644 custom/fansub-plugin-pre-hook.php create mode 100644 custom/fansub-plugin-setup.php create mode 100644 custom/fixed functions.txt create mode 100644 custom/index.php create mode 100644 custom/shortcode.php create mode 100644 fansub-plugin-main.php create mode 100644 fansub/ads.php create mode 100644 fansub/ajax.php create mode 100644 fansub/api.php create mode 100644 fansub/back-end.php create mode 100644 fansub/class-fansub-captcha.php create mode 100644 fansub/class-fansub-html.php create mode 100644 fansub/class-fansub-license.php create mode 100644 fansub/class-fansub-menu-edit-walker.php create mode 100644 fansub/class-fansub-menu-walker.php create mode 100644 fansub/class-fansub-meta.php create mode 100644 fansub/class-fansub-mo.php create mode 100644 fansub/class-fansub-option.php create mode 100644 fansub/class-fansub-remove-term-base.php create mode 100644 fansub/class-fansub-rewrite.php create mode 100644 fansub/class-fansub-serial.php create mode 100644 fansub/class-fansub-table-string-translation.php create mode 100644 fansub/class-fansub-tinymce-shortcode.php create mode 100644 fansub/class-fansub-tinymce.php create mode 100644 fansub/classifieds.php create mode 100644 fansub/comment.php create mode 100644 fansub/coupon.php create mode 100644 fansub/css/fansub-admin.css create mode 100644 fansub/css/fansub-admin.min.css create mode 100644 fansub/css/fansub-front-end.css create mode 100644 fansub/css/fansub-front-end.min.css create mode 100644 fansub/css/fansub-login.css create mode 100644 fansub/css/fansub-login.min.css create mode 100644 fansub/css/fansub-maintenance.css create mode 100644 fansub/css/fansub-maintenance.min.css create mode 100644 fansub/css/fansub.css create mode 100644 fansub/css/fansub.min.css create mode 100644 fansub/css/index.php create mode 100644 fansub/fonts/Tahoma.ttf create mode 100644 fansub/fonts/index.php create mode 100644 fansub/front-end.php create mode 100644 fansub/functions.php create mode 100644 fansub/html-field.php create mode 100644 fansub/images/favicon-hocwp.png create mode 100644 fansub/images/google-maps-splotlight-point.png create mode 100644 fansub/images/grey.gif create mode 100644 fansub/images/icon-arrow-left-thin-16.png create mode 100644 fansub/images/icon-arrow-right-thin-16.png create mode 100644 fansub/images/icon-datepicker-calendar.gif create mode 100644 fansub/images/icon-keyboard-arrow-left-60.png create mode 100644 fansub/images/icon-keyboard-arrow-right-60.png create mode 100644 fansub/images/icon-loading-circle-16.gif create mode 100644 fansub/images/icon-loading-circle-dark-full.gif create mode 100644 fansub/images/icon-loading-circle-light-full.gif create mode 100644 fansub/images/icon-loading-long.gif create mode 100644 fansub/images/icon-login-16.png create mode 100644 fansub/images/icon-lost-password-24.png create mode 100644 fansub/images/icon-refresh-captcha.png create mode 100644 fansub/images/icon-register-16.png create mode 100644 fansub/images/index.php create mode 100644 fansub/images/no-thumbnail.png create mode 100644 fansub/images/page-not-found.png create mode 100644 fansub/images/transparent.gif create mode 100644 fansub/images/white.gif create mode 100644 fansub/index.php create mode 100644 fansub/js/fansub-admin.js create mode 100644 fansub/js/fansub-admin.min.js create mode 100644 fansub/js/fansub-front-end.js create mode 100644 fansub/js/fansub-front-end.min.js create mode 100644 fansub/js/fansub-login.js create mode 100644 fansub/js/fansub-login.min.js create mode 100644 fansub/js/fansub-tinymce-shortcode-button.js create mode 100644 fansub/js/fansub-tinymce-shortcode-button.min.js create mode 100644 fansub/js/fansub.js create mode 100644 fansub/js/fansub.min.js create mode 100644 fansub/js/index.php create mode 100644 fansub/language.php create mode 100644 fansub/lib.php create mode 100644 fansub/lib/bfi-thumb/BFI_Thumb.php create mode 100644 fansub/lib/bfi-thumb/index.php create mode 100644 fansub/lib/chosen/chosen-sprite.png create mode 100644 fansub/lib/chosen/chosen-sprite@2x.png create mode 100644 fansub/lib/chosen/chosen.jquery.min.js create mode 100644 fansub/lib/chosen/chosen.min.css create mode 100644 fansub/lib/index.php create mode 100644 fansub/lib/mobile-detect/Mobile_Detect.php create mode 100644 fansub/lib/mobile-detect/index.php create mode 100644 fansub/load.php create mode 100644 fansub/login.php create mode 100644 fansub/mail.php create mode 100644 fansub/media.php create mode 100644 fansub/meta.php create mode 100644 fansub/option.php create mode 100644 fansub/options/general-option.php create mode 100644 fansub/options/index.php create mode 100644 fansub/options/plugin-option.php create mode 100644 fansub/options/setting-discussion.php create mode 100644 fansub/options/setting-login.php create mode 100644 fansub/options/setting-maintenance.php create mode 100644 fansub/options/setting-optimize.php create mode 100644 fansub/options/setting-plugin-custom-css.php create mode 100644 fansub/options/setting-plugin-license.php create mode 100644 fansub/options/setting-reading.php create mode 100644 fansub/options/setting-recommend-plugin.php create mode 100644 fansub/options/setting-smtp-email.php create mode 100644 fansub/options/setting-social.php create mode 100644 fansub/options/setting-theme-about.php create mode 100644 fansub/options/setting-theme-add-to-head.php create mode 100644 fansub/options/setting-theme-custom-css.php create mode 100644 fansub/options/setting-theme-custom.php create mode 100644 fansub/options/setting-theme-license.php create mode 100644 fansub/options/setting-theme-setting.php create mode 100644 fansub/options/setting-tool-developer.php create mode 100644 fansub/options/setting-writing.php create mode 100644 fansub/options/theme-option.php create mode 100644 fansub/options/user-option.php create mode 100644 fansub/pagination.php create mode 100644 fansub/plugin-functions.php create mode 100644 fansub/post.php create mode 100644 fansub/query.php create mode 100644 fansub/setup.php create mode 100644 fansub/shop.php create mode 100644 fansub/shortcode.php create mode 100644 fansub/statistics.php create mode 100644 fansub/term-meta.php create mode 100644 fansub/term.php create mode 100644 fansub/text.php create mode 100644 fansub/theme-switcher.php create mode 100644 fansub/theme/404.php create mode 100644 fansub/theme/ajax-loading-full-screen.php create mode 100644 fansub/theme/biography.php create mode 100644 fansub/theme/comments.php create mode 100644 fansub/theme/content-none.php create mode 100644 fansub/theme/fixed-widget.php create mode 100644 fansub/theme/footer.php create mode 100644 fansub/theme/header.php create mode 100644 fansub/theme/index.php create mode 100644 fansub/theme/setup-theme-after.php create mode 100644 fansub/theme/setup-theme.php create mode 100644 fansub/theme/theme-functions.php create mode 100644 fansub/theme/theme-translation.php create mode 100644 fansub/tools.php create mode 100644 fansub/users.php create mode 100644 fansub/utils.php create mode 100644 fansub/video.php create mode 100644 fansub/views/index.php create mode 100644 fansub/views/maintenance.php create mode 100644 fansub/views/phpinfo.php create mode 100644 fansub/widgets/class-fansub-widget-banner.php create mode 100644 fansub/widgets/class-fansub-widget-facebook-box.php create mode 100644 fansub/widgets/class-fansub-widget-feedburner.php create mode 100644 fansub/widgets/class-fansub-widget-icon.php create mode 100644 fansub/widgets/class-fansub-widget-post.php create mode 100644 fansub/widgets/class-fansub-widget-social.php create mode 100644 fansub/widgets/class-fansub-widget-subscribe.php create mode 100644 fansub/widgets/class-fansub-widget-tabber.php create mode 100644 fansub/widgets/class-fansub-widget-term.php create mode 100644 fansub/widgets/class-fansub-widget-top-commenter.php create mode 100644 fansub/widgets/index.php create mode 100644 fansub/woocommerce.php create mode 100644 fansub/wordpress-seo.php create mode 100644 images/btn-slider-control.png create mode 100644 images/icon-play.png create mode 100644 images/icon-search.png create mode 100644 images/index.php create mode 100644 images/loading.gif create mode 100644 inc/index.php create mode 100644 inc/setup-plugin.php create mode 100644 index.php create mode 100644 js/fansub-plugin-admin.js create mode 100644 js/fansub-plugin-admin.min.js create mode 100644 js/fansub-plugin.js create mode 100644 js/fansub-plugin.min.js create mode 100644 js/index.php create mode 100644 js/shortcode.js create mode 100644 jwplayer.php create mode 100644 languages/index.php create mode 100644 lib/Facebook/Authentication/AccessToken.php create mode 100644 lib/Facebook/Authentication/AccessTokenMetadata.php create mode 100644 lib/Facebook/Authentication/OAuth2Client.php create mode 100644 lib/Facebook/Exceptions/FacebookAuthenticationException.php create mode 100644 lib/Facebook/Exceptions/FacebookAuthorizationException.php create mode 100644 lib/Facebook/Exceptions/FacebookClientException.php create mode 100644 lib/Facebook/Exceptions/FacebookOtherException.php create mode 100644 lib/Facebook/Exceptions/FacebookResponseException.php create mode 100644 lib/Facebook/Exceptions/FacebookResumableUploadException.php create mode 100644 lib/Facebook/Exceptions/FacebookSDKException.php create mode 100644 lib/Facebook/Exceptions/FacebookServerException.php create mode 100644 lib/Facebook/Exceptions/FacebookThrottleException.php create mode 100644 lib/Facebook/Facebook.php create mode 100644 lib/Facebook/FacebookApp.php create mode 100644 lib/Facebook/FacebookBatchRequest.php create mode 100644 lib/Facebook/FacebookBatchResponse.php create mode 100644 lib/Facebook/FacebookClient.php create mode 100644 lib/Facebook/FacebookRequest.php create mode 100644 lib/Facebook/FacebookResponse.php create mode 100644 lib/Facebook/FileUpload/FacebookFile.php create mode 100644 lib/Facebook/FileUpload/FacebookResumableUploader.php create mode 100644 lib/Facebook/FileUpload/FacebookTransferChunk.php create mode 100644 lib/Facebook/FileUpload/FacebookVideo.php create mode 100644 lib/Facebook/FileUpload/Mimetypes.php create mode 100644 lib/Facebook/GraphNodes/Birthday.php create mode 100644 lib/Facebook/GraphNodes/Collection.php create mode 100644 lib/Facebook/GraphNodes/GraphAchievement.php create mode 100644 lib/Facebook/GraphNodes/GraphAlbum.php create mode 100644 lib/Facebook/GraphNodes/GraphApplication.php create mode 100644 lib/Facebook/GraphNodes/GraphCoverPhoto.php create mode 100644 lib/Facebook/GraphNodes/GraphEdge.php create mode 100644 lib/Facebook/GraphNodes/GraphEvent.php create mode 100644 lib/Facebook/GraphNodes/GraphGroup.php create mode 100644 lib/Facebook/GraphNodes/GraphList.php create mode 100644 lib/Facebook/GraphNodes/GraphLocation.php create mode 100644 lib/Facebook/GraphNodes/GraphNode.php create mode 100644 lib/Facebook/GraphNodes/GraphNodeFactory.php create mode 100644 lib/Facebook/GraphNodes/GraphObject.php create mode 100644 lib/Facebook/GraphNodes/GraphObjectFactory.php create mode 100644 lib/Facebook/GraphNodes/GraphPage.php create mode 100644 lib/Facebook/GraphNodes/GraphPicture.php create mode 100644 lib/Facebook/GraphNodes/GraphSessionInfo.php create mode 100644 lib/Facebook/GraphNodes/GraphUser.php create mode 100644 lib/Facebook/Helpers/FacebookCanvasHelper.php create mode 100644 lib/Facebook/Helpers/FacebookJavaScriptHelper.php create mode 100644 lib/Facebook/Helpers/FacebookPageTabHelper.php create mode 100644 lib/Facebook/Helpers/FacebookRedirectLoginHelper.php create mode 100644 lib/Facebook/Helpers/FacebookSignedRequestFromInputHelper.php create mode 100644 lib/Facebook/Http/GraphRawResponse.php create mode 100644 lib/Facebook/Http/RequestBodyInterface.php create mode 100644 lib/Facebook/Http/RequestBodyMultipart.php create mode 100644 lib/Facebook/Http/RequestBodyUrlEncoded.php create mode 100644 lib/Facebook/HttpClients/FacebookCurl.php create mode 100644 lib/Facebook/HttpClients/FacebookCurlHttpClient.php create mode 100644 lib/Facebook/HttpClients/FacebookGuzzleHttpClient.php create mode 100644 lib/Facebook/HttpClients/FacebookHttpClientInterface.php create mode 100644 lib/Facebook/HttpClients/FacebookStream.php create mode 100644 lib/Facebook/HttpClients/FacebookStreamHttpClient.php create mode 100644 lib/Facebook/HttpClients/HttpClientsFactory.php create mode 100644 lib/Facebook/HttpClients/certs/DigiCertHighAssuranceEVRootCA.pem create mode 100644 lib/Facebook/PersistentData/FacebookMemoryPersistentDataHandler.php create mode 100644 lib/Facebook/PersistentData/FacebookSessionPersistentDataHandler.php create mode 100644 lib/Facebook/PersistentData/PersistentDataFactory.php create mode 100644 lib/Facebook/PersistentData/PersistentDataInterface.php create mode 100644 lib/Facebook/PseudoRandomString/McryptPseudoRandomStringGenerator.php create mode 100644 lib/Facebook/PseudoRandomString/OpenSslPseudoRandomStringGenerator.php create mode 100644 lib/Facebook/PseudoRandomString/PseudoRandomStringGeneratorFactory.php create mode 100644 lib/Facebook/PseudoRandomString/PseudoRandomStringGeneratorInterface.php create mode 100644 lib/Facebook/PseudoRandomString/PseudoRandomStringGeneratorTrait.php create mode 100644 lib/Facebook/PseudoRandomString/RandomBytesPseudoRandomStringGenerator.php create mode 100644 lib/Facebook/PseudoRandomString/UrandomPseudoRandomStringGenerator.php create mode 100644 lib/Facebook/SignedRequest.php create mode 100644 lib/Facebook/Url/FacebookUrlDetectionHandler.php create mode 100644 lib/Facebook/Url/FacebookUrlManipulator.php create mode 100644 lib/Facebook/Url/UrlDetectionInterface.php create mode 100644 lib/Facebook/autoload.php create mode 100644 lib/Facebook/polyfills.php create mode 100644 lib/bxslider/bower.json create mode 100644 lib/bxslider/images/bx_loader.gif create mode 100644 lib/bxslider/images/bx_loader1.gif create mode 100644 lib/bxslider/images/controls.png create mode 100644 lib/bxslider/jquery.bxslider.css create mode 100644 lib/bxslider/jquery.bxslider.js create mode 100644 lib/bxslider/jquery.bxslider.min.js create mode 100644 lib/bxslider/plugins/jquery.easing.1.3.js create mode 100644 lib/bxslider/plugins/jquery.fitvids.js create mode 100644 lib/bxslider/readme.md create mode 100644 lib/fancybox.zip create mode 100644 lib/fancybox/blank.gif create mode 100644 lib/fancybox/fancybox_loading.gif create mode 100644 lib/fancybox/fancybox_loading@2x.gif create mode 100644 lib/fancybox/fancybox_overlay.png create mode 100644 lib/fancybox/fancybox_sprite.png create mode 100644 lib/fancybox/fancybox_sprite@2x.png create mode 100644 lib/fancybox/helpers/fancybox_buttons.png create mode 100644 lib/fancybox/helpers/jquery.fancybox-buttons.css create mode 100644 lib/fancybox/helpers/jquery.fancybox-buttons.js create mode 100644 lib/fancybox/helpers/jquery.fancybox-media.js create mode 100644 lib/fancybox/helpers/jquery.fancybox-thumbs.css create mode 100644 lib/fancybox/helpers/jquery.fancybox-thumbs.js create mode 100644 lib/fancybox/jquery.fancybox.css create mode 100644 lib/fancybox/jquery.fancybox.js create mode 100644 lib/fancybox/jquery.fancybox.pack.js create mode 100644 lib/fancybox2/blank.gif create mode 100644 lib/fancybox2/fancybox_loading.gif create mode 100644 lib/fancybox2/fancybox_loading@2x.gif create mode 100644 lib/fancybox2/fancybox_overlay.png create mode 100644 lib/fancybox2/fancybox_sprite.png create mode 100644 lib/fancybox2/fancybox_sprite@2x.png create mode 100644 lib/fancybox2/helpers/fancybox_buttons.png create mode 100644 lib/fancybox2/helpers/jquery.fancybox-buttons.css create mode 100644 lib/fancybox2/helpers/jquery.fancybox-buttons.js create mode 100644 lib/fancybox2/helpers/jquery.fancybox-media.js create mode 100644 lib/fancybox2/helpers/jquery.fancybox-thumbs.css create mode 100644 lib/fancybox2/helpers/jquery.fancybox-thumbs.js create mode 100644 lib/fancybox2/jquery.fancybox.css create mode 100644 lib/fancybox2/jquery.fancybox.js create mode 100644 lib/fancybox2/jquery.fancybox.pack.js create mode 100644 lib/index.php create mode 100644 lib/lazyload/jquery.lazyload.min.js create mode 100644 lib/lazyload/jquery.scrollstop.min.js create mode 100644 lib/source.zip create mode 100644 lib/zeroclipboard/.jshintrc create mode 100644 lib/zeroclipboard/ZeroClipboard.Core.js create mode 100644 lib/zeroclipboard/ZeroClipboard.Core.min.js create mode 100644 lib/zeroclipboard/ZeroClipboard.Core.min.map create mode 100644 lib/zeroclipboard/ZeroClipboard.js create mode 100644 lib/zeroclipboard/ZeroClipboard.min.js create mode 100644 lib/zeroclipboard/ZeroClipboard.min.map create mode 100644 lib/zeroclipboard/ZeroClipboard.swf create mode 100644 load.php diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index dfe0770..0000000 --- a/.gitattributes +++ /dev/null @@ -1,2 +0,0 @@ -# Auto detect text files and perform LF normalization -* text=auto diff --git a/README.md b/README.md deleted file mode 100644 index a527c90..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -# Horriblesubs diff --git a/css/fansub-plugin-admin.css b/css/fansub-plugin-admin.css new file mode 100644 index 0000000..e69de29 diff --git a/css/fansub-plugin-admin.min.css b/css/fansub-plugin-admin.min.css new file mode 100644 index 0000000..e69de29 diff --git a/css/fansub-plugin.css b/css/fansub-plugin.css new file mode 100644 index 0000000..318b1e9 --- /dev/null +++ b/css/fansub-plugin.css @@ -0,0 +1,728 @@ +.fansub-new-release { + clear: both; + color: #333; + font-size: 16px; + line-height: 24px; + padding: 12px 0 0; +} + +.fansub-new-release > h2.box-title { + border-bottom: 1px solid #ccc; + color: #000; + font-size: 22px; + font-weight: 400; + line-height: 1.5em; + margin: 0 0 20px; +} + +.fansub-new-release .box-content a { + border: medium none; + text-decoration: none; +} + +.fansub-new-release .list-qualities > li > .quality, +.fansub-new-release a:link { + -webkit-transition: all 0.2s ease-in-out 0s; + -moz-transition: all 0.2s ease-in-out 0s; + -ms-transition: all 0.2s ease-in-out 0s; + -o-transition: all 0.2s ease-in-out 0s; + transition: all 0.2s ease-in-out 0s; +} + +.fansub-new-release .search-form { + font-weight: 700; + margin-bottom: 4px; + margin-top: -10px; + padding: 4px; + position: relative; +} + +.fansub-new-release .search-form .searchcontainer { + margin: 0 auto; + width: 230px; +} + +.fansub-new-release .search-form .search-field { + background-color: rgba(220, 220, 220, 0.7); + border: 0 solid #ccc; + font-family: Open Sans; + font-size: 14px !important; + height: 22px; + margin-bottom: 0 !important; + padding: 0 10px; + text-align: center; + width: 260px; +} + +.fansub-new-release .search-form .btn-refresh { + display: inline-block; + font-weight: 400; + position: absolute; + right: 0; + top: 6px; +} + +.fansub-new-release .search-form .btn-refresh a { + cursor: pointer; +} + +.fansub-new-release .search-form .btn-refresh a:hover { + color: #777; +} + +.entry-content .fansub-new-release ul, +.fansub-new-release ul { + list-style: outside none none; + margin: 0; + padding: 0; +} + +.fansub-new-release ul.list-releases > li:after, +.fansub-new-release ul.list-releases > li:before, +.fansub-new-release ul:before, +.fansub-new-release ul:after { + clear: both; + content: " "; + display: table; +} + +.fansub-new-release ul li { + box-shadow: none; + float: left; + margin: 0; + padding: 2px 0; +} + +.fansub-new-release .list-releases > li { + display: block; + float: none; + margin: 0; + padding: 0; + position: relative; +} + +.fansub-new-release .list-servers { + display: none; +} + +.fansub-new-release .list-cols .col-date { + margin-right: 5px; +} + +.fansub-new-release .list-cols .col-date, +.fansub-new-release .list-cols .suffix { + color: #707070; +} + +.fansub-new-release .list-cols .col-title { + +} + +.fansub-new-release .list-cols .col-download { + float: right; +} + +.fansub-new-release .list-cols .post-title-link { + border-bottom: 1px dotted #000; +} + +.fansub-new-release .list-releases > li .list-servers > li a:hover, +.fansub-new-release .list-qualities > li > .quality.has-link:hover, +.fansub-new-release .list-cols .post-title-link:hover { + background-color: #aaa; + color: #fff; +} + +.fansub-new-release .list-qualities > li { + margin-left: 5px; + padding: 0 2px; +} + +.fansub-new-release .list-qualities > li > .quality.has-link { + cursor: pointer; +} + +.fansub-new-release .morebox { + font-weight: 700; + margin-bottom: 4px; + margin-top: 4px; + padding: 4px; + text-align: center; +} + +.fansub-new-release .morebox:hover { + background-color: #fee; +} + +.fansub-new-release .morebox:hover a { + color: #333; +} + +.fansub-new-release .list-qualities .quality-item .list-servers { + position: absolute; + right: 0; + text-align: right; + top: 100%; + width: 100%; + z-index: 499; +} + +.fansub-new-release .list-qualities .quality-item .list-servers > li { + clear: none; + display: inline-block; + float: none; + padding: 0 2px; +} + +.fansub-new-release .list-qualities .quality-item .list-servers > li.file-name { + color: #333; + float: left; + padding-left: 0; +} + +.fansub-new-release .list-qualities .quality-item .list-servers > li span { + padding: 0 2px; +} + +.fansub-new-release .list-releases > li.active { + margin-bottom: 25px; +} + +.fansub-new-release .list-releases > li .list-servers > li { + color: #ddd; +} + +.fansub-new-release .list-qualities .quality-item .quality { + color: #ddd; +} + +.fansub-new-release .list-qualities .quality-item .quality.has-link { + color: #333; +} + +.fansub-new-release a { + color: #333; +} + +.fansub-new-release .series-image img { + float: left; + margin-bottom: 12px; + margin-right: 24px; +} + +.fansub-new-release.single-box h2 { + border-bottom: 1px solid #ccc; + font-size: 25px; + font-weight: 400; +} + +.fansub-new-release.single-box .tips { + background-color: rgba(220, 220, 220, 0.7); + display: block; + margin-bottom: 10px; + padding: 5px 10px; +} + +.fansub-new-release .noselect { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.fansub-new-release .series-info { + overflow: hidden; +} + +.fansub-new-release .comments-area li { + float: none; +} + +.fansub-new-release .comments-area li .children { + margin-left: 50px; + margin-top: 20px; +} + +.fansub-new-release .comments-area li .avatar { + vertical-align: top; +} + +.fansub-new-release .comments-area li p { + margin-bottom: 10px; +} + +.fansub-new-release .comments-area li p:last-of-type { + margin-bottom: 0; +} + +.fansub-new-release .comments-area li .comment-body { + border-bottom: 1px solid #ddd; + padding-bottom: 10px; +} + +.fansub-new-release.anime-list > h2 { + margin-bottom: 10px; + margin-top: 0; +} + +.fansub-new-release.anime-list .pagination { + margin: 10px 0; + text-align: center; +} + +.fansub-new-release.anime-list .pagination .item { + color: #3d3d3d; + font-size: 18px; + margin: 0 2px; + padding: 2px 10px; + text-decoration: none; +} + +.fansub-new-release.anime-list .pagination .item.link-item:hover, +.fansub-new-release.anime-list .pagination .item.current-item { + background-color: #0075c1; + border-radius: 3px; + color: #fff; +} + +.fansub-new-release .list-animes .fansub-post { + border-bottom: 2px solid #e2e2e2; + float: none; + overflow: hidden; + padding: 0; +} + +.fansub-new-release .list-animes .fansub-post .entry-summary { + margin-left: 0; +} + +.fansub-new-release .list-animes .fansub-post:last-child { + border-bottom: medium none; +} + +.fansub-new-release .list-animes .fansub-post .anime-thumb { + float: left; + height: 196px; + margin-right: 20px; + position: relative; + width: 140px; +} + +.fansub-new-release .list-animes .fansub-post .wp-post-image { + border-radius: 0; + box-shadow: none; + height: 32px; + width: 32px; +} + +.fansub-new-release .anime-thumb .wp-post-image.lazyload { + height: 32px; + left: 50%; + margin: -16px 0 0 -16px; + position: absolute; + top: 50%; + width: 32px; +} + +.fansub-new-release .list-animes .fansub-post .anime-thumb .wp-post-image.lazyloaded { + height: 100%; + width: 100%; +} + +.fansub-new-release .list-animes .fansub-post .anime-thumb { + background: rgba(0, 0, 0, 0) url("../images/loading.gif") no-repeat scroll center center; +} + +.fansub-new-release .list-animes .fansub-post .entry-title { + clear: none; + font-size: 21px; + margin-bottom: 5px; + margin-top: 0; +} + +.fansub-new-release .list-animes .fansub-post .entry-title a { + color: #333; + text-decoration: none; +} + +.fansub-new-release .list-animes .fansub-post .entry-title a:hover { + text-decoration: underline; +} + +.fansub-new-release .list-animes .fansub-post .entry-summary { + color: #666; + font-size: 14px; +} + +.fansub-new-release .list-animes .fansub-post .entry-summary p:last-child { + margin-bottom: 0; +} + +.fansub-new-release .list-animes .fansub-post .more-link { + display: none; +} + +.fansub-new-release.advanced-search .search-form { + margin: 0 auto; + max-width: 768px; + min-width: 400px; + overflow: hidden; + width: 80%; +} + +.fansub-new-release.advanced-search .search-form .search-submit { + background: rgba(0, 0, 0, 0) url("../images/icon-search.png") no-repeat scroll center center / 32px auto; + border-radius: 0 8px 8px 0; + border-width: 1px 1px 1px 0; + float: left; + height: 48px; + min-width: 70px; + text-indent: -9999px; + width: 10%; +} + +.fansub-new-release.advanced-search .search-form label { + display: inline-block; + float: left; + width: 80%; +} + +.fansub-new-release.advanced-search .search-form .search-field { + background: rgba(0, 0, 0, 0) none repeat scroll 0 0; + border: 1px solid #ddd; + border-radius: 8px 0 0 8px; + color: #323232; + height: 48px; + text-align: left; + width: 100%; +} + +.fansub-new-release.advanced-search .search-form .search-field { + box-sizing: border-box; + height: 48px; +} + +.fansub-new-release.advanced-search .search-form .search-submit { + padding-bottom: 10px; + padding-top: 10px; +} + +.fansub-new-release.advanced-search .search-form .search-field:hover, +.fansub-new-release.advanced-search .search-form .search-submit:hover { + border-color: #ddd; +} + +.fansub-new-release.advanced-search .search-form .search-submit:hover { + background-color: #eee; +} + +.ui-widget-content { + background-color: #ffffff; + border: 1px solid #bebebe !important; + border-radius: 0 0 6px 6px; + box-shadow: 0 10px 15px 5px rgba(0, 0, 0, 0.2); + display: none; + left: 0; + position: absolute; + top: 25px; + width: 277px; + z-index: 100; +} + +.ui-widget-content .ui-menu-item { + background-color: #ffffff; + border-bottom: 1px solid #ebebeb; + overflow: hidden; + padding: 2px !important; + text-align: left; +} + +.ui-widget-content .ui-menu-item.ui-sate-focus, +.ui-widget-content .ui-menu-item.focus, +.ui-widget-content .ui-menu-item:hover { + background-color: #e1e7f5; + background-image: none !important; +} + +.ui-widget-content .ui-menu-item .list a > span { + display: none; + float: left; + margin-right: 5px; +} + +.ui-widget-content .ui-menu-item .list a > span.thumb { + display: inline-block; +} + +.ui-widget-content .ui-menu-item:hover .list a > span.thumb { + display: none; +} + +.ui-widget-content .ui-menu-item:hover .list a > span.image { + display: inline-block; +} + +.ui-widget-content .ui-menu-item .list a > span.thumb img { + height: 50px; + width: 70px; +} + +.ui-widget-content .ui-menu-item .list a > span.image img { + height: 90px; + width: 70px; +} + +.ui-widget-content .ui-menu-item .list a { + line-height: 22px; + text-decoration: none; +} + +.ui-widget-content .ui-menu-item:last-child { + padding-bottom: 0 !important; +} + +.fansub-new-release.advanced-search .module-body .search-results { + margin-top: 10px; +} + +.fansub-new-release.advanced-search .module-body .search-results > h4 { + border-bottom: 1px solid #bebebe; + margin: 0 0 10px; +} + +.fansub-new-release.single-box .video-box .fansub-post { + border: medium none; + display: inline-block; + height: 146px; + margin-bottom: 8px; + margin-right: 8px; + padding: 0; + position: relative; + vertical-align: top; + width: 260px; +} + +.fansub-new-release.single-box .video-box .fansub-post .post-thumbnail { + display: block; + position: relative; +} + +.fansub-new-release.single-box .video-box .fansub-post .wp-post-image { + border-radius: 0; + box-shadow: none; + height: 146px; + width: 260px; +} + +.fansub-new-release.single-box .video-box .fansub-post .entry-title { + background-color: rgba(0, 0, 0, 0.5); + bottom: 0; + font-size: 13px; + left: 0; + margin: 0 !important; + padding: 5px; + position: absolute; + right: 0; +} + +.fansub-new-release.single-box .video-box .fansub-post .entry-title a { + color: #fff; + text-decoration: none; +} + +.fansub-new-release.single-box .video-box .fansub-post .icon-play { + border-radius: 8px; + height: 38px; + left: 50%; + margin-left: -45px; + margin-top: -19px; + position: absolute; + top: 50%; + width: 90px; + z-index: 399; +} + +.fansub-new-release.single-box .video-box .fansub-post:hover { + opacity: 0.7; +} + +.fansub-new-release.single-box .video-box .fansub-post { + -webkit-transition: all 0.3s ease-in-out; + -moz-transition: all 0.3s ease-in-out; + -ms-transition: all 0.3s ease-in-out; + -o-transition: all 0.3s ease-in-out; + transition: all 0.3s ease-in-out; +} + +.fancybox-inner .wp-video .wp-video-shortcode, +.fancybox-inner .wp-video { + height: 480px !important; + margin: 0 auto; + width: 100% !important; +} + +.fancybox-inner .wp-video .mejs-controls { + width: 100% !important; +} + +.fancybox-inner iframe, +.fancybox-inner .wp-video .wp-video-shortcode { + background-color: #000; +} + +.fancybox-inner iframe { + height: 60%; + width: 100%; +} + +.fansub-new-release.fansub-single .series-releases .video-box .bx-controls .bx-pager { + display: none; +} + +.fansub-new-release.fansub-single .series-releases .video-box .bx-wrapper { + margin-bottom: 10px; +} + +.fansub-new-release.fansub-single .series-releases .video-box .bx-wrapper .bx-viewport { + box-shadow: none; +} + +.fansub-new-release.fansub-single .series-releases .video-box .bx-wrapper .bx-viewport .module-body { +} + +.fansub-new-release.fansub-single .series-releases .video-box .bx-wrapper .bx-controls .bx-controls-direction a { + background-image: url("../images/btn-slider-control.png"); + background-position: 0 0; + background-repeat: no-repeat; + background-size: 80px auto; + cursor: pointer; + display: inline-block; + height: 80px; + margin-top: -40px; + opacity: 0; + overflow: hidden; + position: absolute; + top: 50%; + transition-duration: 0.3s; + transition-property: all; + transition-timing-function: ease-in-out; + width: 40px; + z-index: 10; +} + +.fansub-new-release.fansub-single .series-releases .video-box .bx-wrapper .bx-controls .bx-controls-direction a.bx-prev { + background-position: -40px 0; + left: -40px; + opacity: 0; +} + +.fansub-new-release.fansub-single .series-releases .video-box .bx-wrapper .bx-controls .bx-controls-direction a.bx-next { + background-position: 0 0; + opacity: 0; + right: -40px; +} + +.fansub-new-release.fansub-single .series-releases .video-box .bx-wrapper:hover .bx-controls .bx-controls-direction a.bx-prev { + left: 0; + opacity: 1; +} + +.fansub-new-release.fansub-single .series-releases .video-box .bx-wrapper:hover .bx-controls .bx-controls-direction a.bx-next { + opacity: 1; + right: 0; +} + +.fancybox-wrap .video-js, +.fancybox-wrap p video, +.video-box .video-js, +.video-box video { + height: 100%; + width: 100%; +} + +.fancybox-inner > div > div:not(.center), .fancybox-inner > div > div > .jwplayer { + height: 480px !important; + margin: 0 !important; + width: 100% !important; +} + +.fancybox-inner > div > div > .jwplayer.jw-flag-fullscreen .jw-stretch-uniform, +.fancybox-inner > div > div > .jwplayer.jw-flag-fullscreen { + height: 100% !important; +} + +@media only screen and (max-width: 640px) { + +} + +@media only screen and (max-width: 620px) { + .fansub-new-release .list-cols > li { + display: inline-block; + float: none; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + + .fansub-new-release .list-cols > li:nth-child(2) { + max-width: 50%; + } + + .fansub-new-release .list-qualities .quality-item .list-servers > li.file-name { + display: none; + } +} + +@media only screen and (max-width: 600px) { + +} + +@media only screen and (max-width: 568px) { + +} + +@media only screen and (max-width: 563px) { + +} + +@media only screen and (max-width: 549px) { + +} + +@media only screen and (max-width: 534px) { + +} + +@media only screen and (max-width: 480px) { + .fansub-new-release .list-qualities > li { + padding: 0; + } + + .fansub-new-release .list-cols > li:nth-child(2) { + max-width: 35%; + } +} + +@media only screen and (max-width: 360px) { + .fansub-new-release .list-cols .col-date { + display: none; + } + + .fansub-new-release .list-cols > li:nth-child(2) { + max-width: 45%; + } +} + +@media only screen and (max-width: 338px) { + +} + +@media only screen and (max-width: 330px) { + +} + +@media only screen and (max-width: 320px) { + +} \ No newline at end of file diff --git a/css/fansub-plugin.min.css b/css/fansub-plugin.min.css new file mode 100644 index 0000000..49aaac8 --- /dev/null +++ b/css/fansub-plugin.min.css @@ -0,0 +1 @@ +.fansub-new-release .list-qualities>li>.quality.has-link,.fansub-new-release .search-form .btn-refresh a{cursor:pointer}.fansub-new-release{clear:both;color:#333;font-size:16px;line-height:24px;padding:12px 0 0}.fansub-new-release>h2.box-title{border-bottom:1px solid #ccc;color:#000;font-size:22px;font-weight:400;line-height:1.5em;margin:0 0 20px}.fansub-new-release .box-content a{border:none;text-decoration:none}.fansub-new-release .list-qualities>li>.quality,.fansub-new-release a:link{-webkit-transition:all .2s ease-in-out 0s;-moz-transition:all .2s ease-in-out 0s;-ms-transition:all .2s ease-in-out 0s;-o-transition:all .2s ease-in-out 0s;transition:all .2s ease-in-out 0s}.fansub-new-release .search-form{font-weight:700;margin-bottom:4px;margin-top:-10px;padding:4px;position:relative}.fansub-new-release .search-form .searchcontainer{margin:0 auto;width:230px}.fansub-new-release .search-form .search-field{background-color:rgba(220,220,220,.7);border:0 solid #ccc;font-family:Open Sans;font-size:14px!important;height:22px;margin-bottom:0!important;padding:0 10px;text-align:center;width:260px}.fansub-new-release .search-form .btn-refresh{display:inline-block;font-weight:400;position:absolute;right:0;top:6px}.fansub-new-release .search-form .btn-refresh a:hover{color:#777}.entry-content .fansub-new-release ul,.fansub-new-release ul{list-style:none;margin:0;padding:0}.fansub-new-release ul.list-releases>li:after,.fansub-new-release ul.list-releases>li:before,.fansub-new-release ul:after,.fansub-new-release ul:before{clear:both;content:" ";display:table}.fansub-new-release ul li{box-shadow:none;float:left;margin:0;padding:2px 0}.fansub-new-release .list-releases>li{display:block;float:none;margin:0;padding:0;position:relative}.fansub-new-release .list-servers{display:none}.fansub-new-release .list-cols .col-date{margin-right:5px}.fansub-new-release .list-cols .col-date,.fansub-new-release .list-cols .suffix{color:#707070}.fansub-new-release .list-cols .col-download{float:right}.fansub-new-release .list-cols .post-title-link{border-bottom:1px dotted #000}.fansub-new-release .list-cols .post-title-link:hover,.fansub-new-release .list-qualities>li>.quality.has-link:hover,.fansub-new-release .list-releases>li .list-servers>li a:hover{background-color:#aaa;color:#fff}.fansub-new-release .list-qualities>li{margin-left:5px;padding:0 2px}.fansub-new-release .morebox{font-weight:700;margin-bottom:4px;margin-top:4px;padding:4px;text-align:center}.fansub-new-release .morebox:hover{background-color:#fee}.fansub-new-release .morebox:hover a{color:#333}.fansub-new-release .list-qualities .quality-item .list-servers{position:absolute;right:0;text-align:right;top:100%;width:100%;z-index:499}.fansub-new-release .list-qualities .quality-item .list-servers>li{clear:none;display:inline-block;float:none;padding:0 2px}.fansub-new-release .list-qualities .quality-item .list-servers>li.file-name{color:#333;float:left;padding-left:0}.fansub-new-release .list-qualities .quality-item .list-servers>li span{padding:0 2px}.fansub-new-release .list-releases>li.active{margin-bottom:25px}.fansub-new-release .list-qualities .quality-item .quality,.fansub-new-release .list-releases>li .list-servers>li{color:#ddd}.fansub-new-release .list-qualities .quality-item .quality.has-link,.fansub-new-release a{color:#333}.fansub-new-release .series-image img{float:left;margin-bottom:12px;margin-right:24px}.fansub-new-release.single-box h2{border-bottom:1px solid #ccc;font-size:25px;font-weight:400}.fansub-new-release.single-box .tips{background-color:rgba(220,220,220,.7);display:block;margin-bottom:10px;padding:5px 10px}.fansub-new-release .noselect{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fansub-new-release .series-info{overflow:hidden}.fansub-new-release .comments-area li{float:none}.fansub-new-release .comments-area li .children{margin-left:50px;margin-top:20px}.fansub-new-release .comments-area li .avatar{vertical-align:top}.fansub-new-release .comments-area li p{margin-bottom:10px}.fansub-new-release .comments-area li p:last-of-type{margin-bottom:0}.fansub-new-release .comments-area li .comment-body{border-bottom:1px solid #ddd;padding-bottom:10px}.fansub-new-release.anime-list>h2{margin-bottom:10px;margin-top:0}.fansub-new-release.anime-list .pagination{margin:10px 0;text-align:center}.fansub-new-release.anime-list .pagination .item{color:#3d3d3d;font-size:18px;margin:0 2px;padding:2px 10px;text-decoration:none}.fansub-new-release.anime-list .pagination .item.current-item,.fansub-new-release.anime-list .pagination .item.link-item:hover{background-color:#0075c1;border-radius:3px;color:#fff}.fansub-new-release .list-animes .fansub-post{border-bottom:2px solid #e2e2e2;float:none;overflow:hidden;padding:0}.fansub-new-release .list-animes .fansub-post .entry-summary{margin-left:0}.fansub-new-release .list-animes .fansub-post:last-child{border-bottom:medium none}.fansub-new-release .list-animes .fansub-post .anime-thumb{float:left;height:196px;margin-right:20px;position:relative;width:140px;background:url(../images/loading.gif) center center no-repeat rgba(0,0,0,0)}.fansub-new-release .list-animes .fansub-post .wp-post-image{border-radius:0;box-shadow:none;height:32px;width:32px}.fansub-new-release .anime-thumb .wp-post-image.lazyload{height:32px;left:50%;margin:-16px 0 0 -16px;position:absolute;top:50%;width:32px}.fansub-new-release .list-animes .fansub-post .anime-thumb .wp-post-image.lazyloaded{height:100%;width:100%}.fansub-new-release .list-animes .fansub-post .entry-title{clear:none;font-size:21px;margin-bottom:5px;margin-top:0}.fansub-new-release .list-animes .fansub-post .entry-title a{color:#333;text-decoration:none}.fansub-new-release .list-animes .fansub-post .entry-title a:hover{text-decoration:underline}.fansub-new-release .list-animes .fansub-post .entry-summary{color:#666;font-size:14px}.fansub-new-release .list-animes .fansub-post .entry-summary p:last-child{margin-bottom:0}.fansub-new-release .list-animes .fansub-post .more-link{display:none}.fansub-new-release.advanced-search .search-form{margin:0 auto;max-width:768px;min-width:400px;overflow:hidden;width:80%}.fansub-new-release.advanced-search .search-form .search-submit{background:url(../images/icon-search.png) center center/32px auto no-repeat rgba(0,0,0,0);border-radius:0 8px 8px 0;border-width:1px 1px 1px 0;float:left;height:48px;min-width:70px;text-indent:-9999px;width:10%;padding-bottom:10px;padding-top:10px}.fansub-new-release.advanced-search .search-form label{display:inline-block;float:left;width:80%}.fansub-new-release.advanced-search .search-form .search-field{background:rgba(0,0,0,0);border:1px solid #ddd;border-radius:8px 0 0 8px;color:#323232;text-align:left;width:100%;box-sizing:border-box;height:48px}.fansub-new-release.advanced-search .search-form .search-field:hover,.fansub-new-release.advanced-search .search-form .search-submit:hover{border-color:#ddd}.fansub-new-release.advanced-search .search-form .search-submit:hover{background-color:#eee}.ui-widget-content{background-color:#fff;border:1px solid #bebebe!important;border-radius:0 0 6px 6px;box-shadow:0 10px 15px 5px rgba(0,0,0,.2);display:none;left:0;position:absolute;top:25px;width:277px;z-index:100}.ui-widget-content .ui-menu-item{background-color:#fff;border-bottom:1px solid #ebebeb;overflow:hidden;padding:2px!important;text-align:left}.ui-widget-content .ui-menu-item.focus,.ui-widget-content .ui-menu-item.ui-sate-focus,.ui-widget-content .ui-menu-item:hover{background-color:#e1e7f5;background-image:none!important}.ui-widget-content .ui-menu-item .list a>span{display:none;float:left;margin-right:5px}.ui-widget-content .ui-menu-item .list a>span.thumb{display:inline-block}.ui-widget-content .ui-menu-item:hover .list a>span.thumb{display:none}.ui-widget-content .ui-menu-item:hover .list a>span.image{display:inline-block}.ui-widget-content .ui-menu-item .list a>span.thumb img{height:50px;width:70px}.ui-widget-content .ui-menu-item .list a>span.image img{height:90px;width:70px}.ui-widget-content .ui-menu-item .list a{line-height:22px;text-decoration:none}.ui-widget-content .ui-menu-item:last-child{padding-bottom:0!important}.fansub-new-release.advanced-search .module-body .search-results{margin-top:10px}.fansub-new-release.advanced-search .module-body .search-results>h4{border-bottom:1px solid #bebebe;margin:0 0 10px}.fansub-new-release.single-box .video-box .fansub-post{border:none;display:inline-block;height:146px;margin-bottom:8px;margin-right:8px;padding:0;position:relative;vertical-align:top;width:260px;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-ms-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.fansub-new-release.single-box .video-box .fansub-post .post-thumbnail{display:block;position:relative}.fansub-new-release.single-box .video-box .fansub-post .wp-post-image{border-radius:0;box-shadow:none;height:146px;width:260px}.fansub-new-release.single-box .video-box .fansub-post .entry-title{background-color:rgba(0,0,0,.5);bottom:0;font-size:13px;left:0;margin:0!important;padding:5px;position:absolute;right:0}.fansub-new-release.single-box .video-box .fansub-post .entry-title a{color:#fff;text-decoration:none}.fansub-new-release.single-box .video-box .fansub-post .icon-play{border-radius:8px;height:38px;left:50%;margin-left:-45px;margin-top:-19px;position:absolute;top:50%;width:90px;z-index:399}.fansub-new-release.single-box .video-box .fansub-post:hover{opacity:.7}.fancybox-inner .wp-video,.fancybox-inner .wp-video .wp-video-shortcode{height:480px!important;margin:0 auto;width:100%!important}.fancybox-inner .wp-video .mejs-controls{width:100%!important}.fancybox-inner .wp-video .wp-video-shortcode,.fancybox-inner iframe{background-color:#000}.fancybox-inner iframe{height:60%;width:100%}.fansub-new-release.fansub-single .series-releases .video-box .bx-controls .bx-pager{display:none}.fansub-new-release.fansub-single .series-releases .video-box .bx-wrapper{margin-bottom:10px}.fansub-new-release.fansub-single .series-releases .video-box .bx-wrapper .bx-viewport{box-shadow:none}.fansub-new-release.fansub-single .series-releases .video-box .bx-wrapper .bx-controls .bx-controls-direction a{background-image:url(../images/btn-slider-control.png);background-position:0 0;background-repeat:no-repeat;background-size:80px auto;cursor:pointer;display:inline-block;height:80px;margin-top:-40px;opacity:0;overflow:hidden;position:absolute;top:50%;transition-duration:.3s;transition-property:all;transition-timing-function:ease-in-out;width:40px;z-index:10}.fansub-new-release.fansub-single .series-releases .video-box .bx-wrapper .bx-controls .bx-controls-direction a.bx-prev{background-position:-40px 0;left:-40px;opacity:0}.fansub-new-release.fansub-single .series-releases .video-box .bx-wrapper .bx-controls .bx-controls-direction a.bx-next{background-position:0 0;opacity:0;right:-40px}.fansub-new-release.fansub-single .series-releases .video-box .bx-wrapper:hover .bx-controls .bx-controls-direction a.bx-prev{left:0;opacity:1}.fansub-new-release.fansub-single .series-releases .video-box .bx-wrapper:hover .bx-controls .bx-controls-direction a.bx-next{opacity:1;right:0}.fancybox-wrap .video-js,.fancybox-wrap p video,.video-box .video-js,.video-box video{height:100%;width:100%}.fancybox-inner>div>div:not(.center),.fancybox-inner>div>div>.jwplayer{height:480px!important;margin:0!important;width:100%!important}.fancybox-inner>div>div>.jwplayer.jw-flag-fullscreen,.fancybox-inner>div>div>.jwplayer.jw-flag-fullscreen .jw-stretch-uniform{height:100%!important}@media only screen and (max-width:620px){.fansub-new-release .list-cols>li{display:inline-block;float:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fansub-new-release .list-cols>li:nth-child(2){max-width:50%}.fansub-new-release .list-qualities .quality-item .list-servers>li.file-name{display:none}}@media only screen and (max-width:480px){.fansub-new-release .list-qualities>li{padding:0}.fansub-new-release .list-cols>li:nth-child(2){max-width:35%}}@media only screen and (max-width:360px){.fansub-new-release .list-cols .col-date{display:none}.fansub-new-release .list-cols>li:nth-child(2){max-width:45%}} \ No newline at end of file diff --git a/css/index.php b/css/index.php new file mode 100644 index 0000000..cf879a5 --- /dev/null +++ b/css/index.php @@ -0,0 +1,2 @@ +set_parent_slug('hocwp_plugin_option'); + $option->set_use_style_and_script(true); + $option->set_use_media_upload(true); + + $options = $option->get(); + + $option->add_field(array('id' => 'test_upload', 'title' => 'Test upload', 'field_callback' => 'hocwp_field_media_upload')); + $option->add_field(array('id' => 'single_page', 'title' => 'Single Page', 'default' => $defaults['single_page'], 'field_callback' => 'hocwp_field_select_page')); + $option->add_field(array('id' => 'posts_per_page', 'title' => 'Post Number', 'default' => $defaults['posts_per_page'], 'field_callback' => 'hocwp_field_input_number')); + $option->add_field(array('id' => 'date_format', 'title' => 'Date Format', 'default' => $defaults['date_format'])); + $option->add_field(array('id' => 'loading_text', 'title' => 'Loading Text', 'default' => $defaults['loading_text'])); + $option->add_field(array('id' => 'search_none_text', 'title' => 'No Result Text', 'default' => $defaults['search_none_text'])); + $option->add_field(array('id' => 'show_more_text', 'title' => 'Show More Text', 'default' => $defaults['show_more_text'])); + $option->add_field(array('id' => 'reached_end_text', 'title' => 'Reached End Text', 'default' => $defaults['reached_end_text'])); + $option->add_field(array('id' => 'clear_text', 'title' => 'Clear Text', 'default' => $defaults['clear_text'])); + $option->add_field(array('id' => 'refresh_text', 'title' => 'Refresh Text', 'default' => $defaults['refresh_text'])); + $option->add_field(array('id' => 'qualities', 'title' => 'Qualities', 'default' => $defaults['qualities'], 'description' => 'Separate qualities with commas.')); + $option->add_field(array('id' => 'servers', 'title' => 'Servers', 'default' => $defaults['servers'], 'description' => 'Separate servers with commas.')); + + $option->add_section(array('id' => 'post_type', 'title' => 'Post Type', 'description' => 'Post type informations, if all fields are empty, the default post type will be used.')); + $option->add_field(array('id' => 'post_type_name', 'title' => 'Name', 'default' => $defaults['post_type_name'], 'section' => 'post_type')); + $option->add_field(array('id' => 'post_type_label_name', 'title' => 'Label Name', 'default' => $defaults['post_type_label_name'], 'section' => 'post_type')); + $option->add_field(array('id' => 'post_type_label_singular_name', 'title' => 'Label Singular Name', 'default' => $defaults['post_type_label_singular_name'], 'section' => 'post_type')); + + $option->add_section(array('id' => 'release_box', 'title' => 'Release Box', 'description' => 'All settings for release box.')); + $option->add_field(array('id' => 'release_box_title', 'title' => 'Title', 'default' => $defaults['release_box_title'], 'section' => 'release_box')); + $option->add_field(array('id' => 'release_box_search_placeholder', 'title' => 'Search Placeholder', 'default' => $defaults['release_box_search_placeholder'], 'section' => 'release_box')); + + $option->add_section(array('id' => 'single_box', 'title' => 'Single Box', 'description' => 'All settings for post box on single page.')); + $option->add_field(array('id' => 'single_batch_title', 'title' => 'Batch Title', 'default' => $defaults['single_batch_title'], 'section' => 'single_box')); + $option->add_field(array('id' => 'single_batch_tip', 'title' => 'Batch Tips', 'default' => $defaults['single_batch_tip'], 'section' => 'single_box')); + $option->add_field(array('id' => 'single_batch_none', 'title' => 'No Batch Text', 'default' => $defaults['single_batch_none'], 'section' => 'single_box')); + $option->add_field(array('id' => 'single_search_placeholder', 'title' => 'Search Placeholder', 'default' => $defaults['single_search_placeholder'], 'section' => 'single_box')); + $option->add_field(array('id' => 'single_episode_none', 'title' => 'No Episode Text', 'default' => $defaults['single_episode_none'], 'section' => 'single_box')); + + $option->add_section(array('id' => 'facebook', 'title' => 'Facebook', 'description' => 'Provide your information to connect with Facebook.')); + + $post_type = isset($options['fb_post_type']) ? $options['fb_post_type'] : ''; + $post_type = hocwp_json_string_to_array($post_type); + if (!hocwp_array_has_value($post_type)) { + $post_type = array(); + } + $lists = get_post_types(array('_builtin' => false, 'public' => true), 'objects'); + + if (!array_key_exists('post', $lists)) { + $lists[] = get_post_type_object('post'); + } + //$lists[] = get_post_type_object('episode'); + //$lists[] = get_post_type_object('batch'); + $all_option = ''; + foreach ($lists as $lvalue) { + $selected = ''; + foreach ($post_type as $ptvalue) { + $ptype = isset($ptvalue['value']) ? $ptvalue['value'] : ''; + if ($lvalue->name == $ptype) { + $selected = $lvalue->name; + break; + } + } + $args = array( + 'value' => $lvalue->name, + 'text' => $lvalue->labels->singular_name, + 'selected' => $selected + ); + $all_option .= hocwp_field_get_option($args); + } + $args = array( + 'id' => 'fb_post_type', + 'name' => 'fb_post_type', + 'all_option' => $all_option, + 'value' => $post_type, + 'title' => 'Post type', + 'placeholder' => 'Choose post types', + 'multiple' => true, + 'field_callback' => 'hocwp_field_select_chosen', + 'section' => 'facebook' + ); + $option->add_field($args); + + $option->add_field(array('id' => 'fb_app_id', 'title' => 'App ID', 'section' => 'facebook')); + $option->add_field(array('id' => 'fb_app_secret', 'title' => 'App Secret', 'section' => 'facebook')); + $option->add_field(array('id' => 'fb_redirect_uri', 'title' => 'Redirect Uri', 'section' => 'facebook')); + $option->add_field(array('id' => 'fb_access_token', 'title' => 'Access Token', 'section' => 'facebook')); + + $option->add_option_tab($hocwp_pos_tabs); + $option->set_page_header_callback('hocwp_plugin_option_page_header'); + $option->set_page_footer_callback('hocwp_plugin_option_page_footer'); + $option->set_page_sidebar_callback('hocwp_plugin_option_page_sidebar'); + $option->init(); + + hocwp_option_add_object_to_list($option); +} + +add_action('init', 'hocwp_ph_admin_option'); \ No newline at end of file diff --git a/custom/fansub-plugin-ajax.php b/custom/fansub-plugin-ajax.php new file mode 100644 index 0000000..01a5da2 --- /dev/null +++ b/custom/fansub-plugin-ajax.php @@ -0,0 +1,485 @@ + fansub_kntl_get_post_type(), + 's' => $term, + 'posts_per_page' => 10 + ); + $query = fansub_query($args); + $defaults = fansub_kntl_get_option_defaults(); + $option_data = fansub_kntl_get_option(); + $option_data = wp_parse_args($option_data, $defaults); + $single_page = fansub_get_value_by_key($option_data, 'single_page'); + while ($query->have_posts()) { + $query->the_post(); + $thumbnail_url = fansub_get_post_thumbnail_url(); + $image_url = bfi_thumb($thumbnail_url, array('width' => 70, 'height' => 90, 'crop' => true)); + $thumb_url = bfi_thumb($thumbnail_url, array('width' => 70, 'height' => 50, 'crop' => true)); + $permalink = fansub_kntl_build_single_url($single_page, get_the_ID()); + ob_start(); + ?> +
+ + + + +
+ +
+
+
+ get_the_title(), + 'link' => get_permalink(), + 'html' => $post_html + ); + $suggestions[] = $suggestion; + } + wp_reset_postdata(); + if ($query->have_posts()) { + $suggestion = array( + 'label' => 'View more', + 'link' => get_search_link($term) + ); + $suggestions[] = $suggestion; + } + echo json_encode($suggestions); + exit; +} + +add_action('wp_ajax_fansub_search_autocomplete', 'fansub_search_autocomplete_ajax_callback'); +add_action('wp_ajax_nopriv_fansub_search_autocomplete', 'fansub_search_autocomplete_ajax_callback'); + +function fansub_kntl_video_list_ajax_callback() +{ + $post_id = isset($_POST['post_id']) ? $_POST['post_id'] : 0; + $jwplayer = isset($_POST['jwplayer']) ? $_POST['jwplayer'] : false; + $result = array( + 'have_posts' => false, + 'has_data' => false + ); + $html_data = ''; + if (!(bool)$jwplayer) { + $video = fansub_query_post_by_meta('animation', $post_id, array('post_type' => 'video', 'posts_per_page' => -1), 'numeric'); + $result['have_posts'] = $video->have_posts(); + while ($video->have_posts()) { + $video->the_post(); + $id = get_the_ID(); + $fancy_id = 'videoBox' . $id; + $jwplayer_video_url = get_post_meta($id, '_jwppp-video-url-1', true); + ob_start(); + $article = '