Changeset 1457486
- Timestamp:
- 07/20/2016 10:56:54 AM (10 years ago)
- Location:
- playbuzz
- Files:
-
- 189 added
- 8 edited
-
tags/0.9.3 (added)
-
tags/0.9.3/.git (added)
-
tags/0.9.3/.git/FETCH_HEAD (added)
-
tags/0.9.3/.git/HEAD (added)
-
tags/0.9.3/.git/ORIG_HEAD (added)
-
tags/0.9.3/.git/branches (added)
-
tags/0.9.3/.git/config (added)
-
tags/0.9.3/.git/description (added)
-
tags/0.9.3/.git/hooks (added)
-
tags/0.9.3/.git/hooks/applypatch-msg.sample (added)
-
tags/0.9.3/.git/hooks/commit-msg.sample (added)
-
tags/0.9.3/.git/hooks/post-commit.sample (added)
-
tags/0.9.3/.git/hooks/post-receive.sample (added)
-
tags/0.9.3/.git/hooks/post-update.sample (added)
-
tags/0.9.3/.git/hooks/pre-applypatch.sample (added)
-
tags/0.9.3/.git/hooks/pre-commit.sample (added)
-
tags/0.9.3/.git/hooks/pre-push.sample (added)
-
tags/0.9.3/.git/hooks/pre-rebase.sample (added)
-
tags/0.9.3/.git/hooks/prepare-commit-msg.sample (added)
-
tags/0.9.3/.git/hooks/update.sample (added)
-
tags/0.9.3/.git/index (added)
-
tags/0.9.3/.git/info (added)
-
tags/0.9.3/.git/info/exclude (added)
-
tags/0.9.3/.git/logs (added)
-
tags/0.9.3/.git/logs/HEAD (added)
-
tags/0.9.3/.git/logs/refs (added)
-
tags/0.9.3/.git/logs/refs/heads (added)
-
tags/0.9.3/.git/logs/refs/heads/feat-v-0-9-1 (added)
-
tags/0.9.3/.git/logs/refs/heads/master (added)
-
tags/0.9.3/.git/logs/refs/remotes (added)
-
tags/0.9.3/.git/logs/refs/remotes/origin (added)
-
tags/0.9.3/.git/logs/refs/remotes/origin/HEAD (added)
-
tags/0.9.3/.git/logs/refs/remotes/origin/master (added)
-
tags/0.9.3/.git/objects (added)
-
tags/0.9.3/.git/objects/01 (added)
-
tags/0.9.3/.git/objects/01/93c2673203020e3726e397a6870107f9e38aa9 (added)
-
tags/0.9.3/.git/objects/04 (added)
-
tags/0.9.3/.git/objects/04/312ca919be77b3c02c15a83634d6f22e95358f (added)
-
tags/0.9.3/.git/objects/0a (added)
-
tags/0.9.3/.git/objects/0a/ec416ea48a5d50e2a982ca0bb94617fd70b6f0 (added)
-
tags/0.9.3/.git/objects/16 (added)
-
tags/0.9.3/.git/objects/16/056737df1d3b0db4d52d028db569ef365289fc (added)
-
tags/0.9.3/.git/objects/17 (added)
-
tags/0.9.3/.git/objects/17/5cd20c840654d5ec697dd958fcedce7db9d2f7 (added)
-
tags/0.9.3/.git/objects/1b (added)
-
tags/0.9.3/.git/objects/1b/56a7481801f56f177ec220162f6113086874f1 (added)
-
tags/0.9.3/.git/objects/1c (added)
-
tags/0.9.3/.git/objects/1c/d13f5219a24d6fe1515719c05fd172cd2fc244 (added)
-
tags/0.9.3/.git/objects/1d (added)
-
tags/0.9.3/.git/objects/1d/7f33178e4c38c541cdc6d3203b619e4e5d60b5 (added)
-
tags/0.9.3/.git/objects/26 (added)
-
tags/0.9.3/.git/objects/26/4c76e33027b2d27887577b558030be37be79ac (added)
-
tags/0.9.3/.git/objects/26/57d8a9c5b9be6746688ba035767e8f99823b60 (added)
-
tags/0.9.3/.git/objects/2a (added)
-
tags/0.9.3/.git/objects/2a/601ba1ebbbb0e53c35210362de8917c8173db9 (added)
-
tags/0.9.3/.git/objects/2c (added)
-
tags/0.9.3/.git/objects/2c/05b629a924e1a196ac00f7c24208fd1f61eb9e (added)
-
tags/0.9.3/.git/objects/33 (added)
-
tags/0.9.3/.git/objects/33/b204a2da0bee5ac90f063d4220925285c4b97a (added)
-
tags/0.9.3/.git/objects/34 (added)
-
tags/0.9.3/.git/objects/34/0b3414620d0e8202f3808bda9f5a58084a694d (added)
-
tags/0.9.3/.git/objects/37 (added)
-
tags/0.9.3/.git/objects/37/28777c6cc9d4be520f560a67d0e0c3ea76e272 (added)
-
tags/0.9.3/.git/objects/58 (added)
-
tags/0.9.3/.git/objects/58/867ed0e492f1c4110b4030b4b4d8db333f29b4 (added)
-
tags/0.9.3/.git/objects/5e (added)
-
tags/0.9.3/.git/objects/5e/d42b8e52291c7c818dfa03a443d127760b6346 (added)
-
tags/0.9.3/.git/objects/70 (added)
-
tags/0.9.3/.git/objects/70/69cc510dd5dfadbd5023f13789766e1a3b590e (added)
-
tags/0.9.3/.git/objects/72 (added)
-
tags/0.9.3/.git/objects/72/c49a614fa521e50ae3608ded719c76ce099130 (added)
-
tags/0.9.3/.git/objects/72/e9316b79c085ce86a2840b73dfc41738d66191 (added)
-
tags/0.9.3/.git/objects/80 (added)
-
tags/0.9.3/.git/objects/80/04f7ddad0d0f719a38c3d1fc85ed30e671aba2 (added)
-
tags/0.9.3/.git/objects/80/44009e247160e908976d51a1f40b84eff0a9f0 (added)
-
tags/0.9.3/.git/objects/82 (added)
-
tags/0.9.3/.git/objects/82/449e433602cf9dc8e299a2ccb28f9e31c975ff (added)
-
tags/0.9.3/.git/objects/86 (added)
-
tags/0.9.3/.git/objects/86/64030b561e4609013442a3b554a3e1cdd28ac2 (added)
-
tags/0.9.3/.git/objects/89 (added)
-
tags/0.9.3/.git/objects/89/c00e316c2805ed6d3c35acf2276ab18e38c50f (added)
-
tags/0.9.3/.git/objects/94 (added)
-
tags/0.9.3/.git/objects/94/a25f7f4cb416c083d265558da75d457237d671 (added)
-
tags/0.9.3/.git/objects/97 (added)
-
tags/0.9.3/.git/objects/97/1f7652c6495d2ec672eefb62461f4e41b5fef2 (added)
-
tags/0.9.3/.git/objects/97/264325dc0a5fc6db76d4e4f8db3f2dee673b91 (added)
-
tags/0.9.3/.git/objects/97/67eb548791227de491365ab24c7a0cfbed06a1 (added)
-
tags/0.9.3/.git/objects/99 (added)
-
tags/0.9.3/.git/objects/99/0509ef09a31c5632030bd9207dbc42cf5aa6ef (added)
-
tags/0.9.3/.git/objects/9d (added)
-
tags/0.9.3/.git/objects/9d/f78eb73a6f20c184b7d3b64f4ede332f83ada4 (added)
-
tags/0.9.3/.git/objects/a3 (added)
-
tags/0.9.3/.git/objects/a3/b0437f07d313f95b48430573578f35740d3942 (added)
-
tags/0.9.3/.git/objects/a4 (added)
-
tags/0.9.3/.git/objects/a4/422215e7914e9a867d003e4d2743ef8b663382 (added)
-
tags/0.9.3/.git/objects/ab (added)
-
tags/0.9.3/.git/objects/ab/0408c01776cbdd7e0c3ef06f262df5e24fc498 (added)
-
tags/0.9.3/.git/objects/c9 (added)
-
tags/0.9.3/.git/objects/c9/56989b29ad0767edc6cf3a202545927c3d1e76 (added)
-
tags/0.9.3/.git/objects/d2 (added)
-
tags/0.9.3/.git/objects/d2/4e80fef06f56eb587635cdcd795692e67fa7f7 (added)
-
tags/0.9.3/.git/objects/d7 (added)
-
tags/0.9.3/.git/objects/d7/ae3b3f61c7de5f150278d931df98b8223e4b7c (added)
-
tags/0.9.3/.git/objects/e6 (added)
-
tags/0.9.3/.git/objects/e6/31900a7b2751b7132a868e5cc7656f423c6ecd (added)
-
tags/0.9.3/.git/objects/e6/b064b83de3e555cb0657ab8ceba29f71d5985c (added)
-
tags/0.9.3/.git/objects/e7 (added)
-
tags/0.9.3/.git/objects/e7/bedf3377d40335424fd605124d4761390218bb (added)
-
tags/0.9.3/.git/objects/f3 (added)
-
tags/0.9.3/.git/objects/f3/4c3ecb2cc0a3bc12917d8d87385f32ad7a160f (added)
-
tags/0.9.3/.git/objects/info (added)
-
tags/0.9.3/.git/objects/pack (added)
-
tags/0.9.3/.git/objects/pack/pack-0d8a4984cd624f8db7164a55f30eab136b0d3084.idx (added)
-
tags/0.9.3/.git/objects/pack/pack-0d8a4984cd624f8db7164a55f30eab136b0d3084.pack (added)
-
tags/0.9.3/.git/packed-refs (added)
-
tags/0.9.3/.git/refs (added)
-
tags/0.9.3/.git/refs/heads (added)
-
tags/0.9.3/.git/refs/heads/feat-v-0-9-1 (added)
-
tags/0.9.3/.git/refs/heads/master (added)
-
tags/0.9.3/.git/refs/remotes (added)
-
tags/0.9.3/.git/refs/remotes/origin (added)
-
tags/0.9.3/.git/refs/remotes/origin/HEAD (added)
-
tags/0.9.3/.git/refs/remotes/origin/master (added)
-
tags/0.9.3/.git/refs/tags (added)
-
tags/0.9.3/.git/sourcetreeconfig (added)
-
tags/0.9.3/.idea (added)
-
tags/0.9.3/.idea/copyright (added)
-
tags/0.9.3/.idea/copyright/profiles_settings.xml (added)
-
tags/0.9.3/.idea/encodings.xml (added)
-
tags/0.9.3/.idea/modules.xml (added)
-
tags/0.9.3/.idea/playbuzz.iml (added)
-
tags/0.9.3/.idea/vcs.xml (added)
-
tags/0.9.3/.idea/workspace.xml (added)
-
tags/0.9.3/activator.php (added)
-
tags/0.9.3/admin.php (added)
-
tags/0.9.3/css (added)
-
tags/0.9.3/css/admin-rtl.css (added)
-
tags/0.9.3/css/admin.css (added)
-
tags/0.9.3/css/index.php (added)
-
tags/0.9.3/css/tinymce-visual-editor-rtl.css (added)
-
tags/0.9.3/css/tinymce-visual-editor.css (added)
-
tags/0.9.3/deactivator.php (added)
-
tags/0.9.3/i18n.php (added)
-
tags/0.9.3/img (added)
-
tags/0.9.3/img/action_close_blue.png (added)
-
tags/0.9.3/img/action_close_grey.png (added)
-
tags/0.9.3/img/action_edit_blue.png (added)
-
tags/0.9.3/img/action_edit_grey.png (added)
-
tags/0.9.3/img/admin-embed-customization.png (added)
-
tags/0.9.3/img/admin-embed-items.png (added)
-
tags/0.9.3/img/admin-recommendations.png (added)
-
tags/0.9.3/img/index.php (added)
-
tags/0.9.3/img/playbuzz-placeholder.png (added)
-
tags/0.9.3/img/plybuzz-logo-dark_bg.png (added)
-
tags/0.9.3/img/plybuzz-logo.png (added)
-
tags/0.9.3/img/popup-bg.png (added)
-
tags/0.9.3/img/recommendation-image-list.jpg (added)
-
tags/0.9.3/img/recommendation-list.jpg (added)
-
tags/0.9.3/img/recommendation-tumbs.jpg (added)
-
tags/0.9.3/img/search-icon.png (added)
-
tags/0.9.3/img/share.png (added)
-
tags/0.9.3/img/tinymce_playbuzz_blue.png (added)
-
tags/0.9.3/img/tinymce_playbuzz_grey.png (added)
-
tags/0.9.3/img/user-icon.png (added)
-
tags/0.9.3/index.php (added)
-
tags/0.9.3/js (added)
-
tags/0.9.3/js/index.php (added)
-
tags/0.9.3/js/playbuzz-admin.js (added)
-
tags/0.9.3/js/playbuzz-tinymce.js (added)
-
tags/0.9.3/lang (added)
-
tags/0.9.3/lang/index.php (added)
-
tags/0.9.3/lang/playbuzz-he_IL.mo (added)
-
tags/0.9.3/lang/playbuzz-he_IL.po (added)
-
tags/0.9.3/lang/playbuzz.pot (added)
-
tags/0.9.3/lang/readme.txt (added)
-
tags/0.9.3/oembed.php (added)
-
tags/0.9.3/readme.txt (added)
-
tags/0.9.3/screenshot-1.png (added)
-
tags/0.9.3/screenshot-2.png (added)
-
tags/0.9.3/screenshot-3.png (added)
-
tags/0.9.3/screenshot-4.png (added)
-
tags/0.9.3/screenshot-5.png (added)
-
tags/0.9.3/screenshot-6.png (added)
-
tags/0.9.3/screenshot-7.png (added)
-
tags/0.9.3/scripts-styles.php (added)
-
tags/0.9.3/shortcodes.php (added)
-
tags/0.9.3/tinymce.php (added)
-
tags/0.9.3/uninstall.php (added)
-
tags/0.9.3/widgets.php (added)
-
trunk/css/admin.css (modified) (3 diffs)
-
trunk/index.php (modified) (1 diff)
-
trunk/js/playbuzz-tinymce.js (modified) (13 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/screenshot-1.png (modified) (previous)
-
trunk/screenshot-2.png (modified) (previous)
-
trunk/screenshot-3.png (modified) (previous)
-
trunk/screenshot-4.png (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
playbuzz/trunk/css/admin.css
r1431235 r1457486 550 550 right: 0; 551 551 bottom: 0; 552 background-color: #2 F3338;552 background-color: #25282c; 553 553 } 554 554 #playbuzz_search_header .playbuzz_search_logo { … … 701 701 padding: 7px 20px; 702 702 border-radius: 3px; 703 background-color: # f64040;703 background-color: #bc49ff; 704 704 box-sizing: border-box; 705 705 color: #fff; … … 711 711 #playbuzz_search_input_form .playbuzz_create_button:hover, 712 712 #playbuzz_search_input_form .playbuzz_create_button:focus { 713 background-color: #dd3a3a;713 opacity: 0.85; 714 714 } 715 715 -
playbuzz/trunk/index.php
r1431255 r1457486 4 4 Plugin URI: https://www.playbuzz.com/ 5 5 Description: Embed customized playful content from Playbuzz.com into your WordPress site 6 Version: 0.9. 26 Version: 0.9.3 7 7 Author: Playbuzz 8 8 Author URI: https://www.playbuzz.com/ -
playbuzz/trunk/js/playbuzz-tinymce.js
r1431235 r1457486 10 10 */ 11 11 12 var protocol = document.location.protocol === "https:" ? "https:" : "http:"; 13 var apiBaseUrl = protocol + "//rest-api-v2.playbuzz.com/v2/items"; 12 14 13 15 // Get attribute from pattern … … 487 489 // Load items using the Playbuzz API 488 490 (jQuery).ajax({ 489 url : "http://rest-api-v2.playbuzz.com/v2/items",491 url : apiBaseUrl, 490 492 type : "get", 491 493 dataType : "json", … … 501 503 // Server Error 502 504 playbuzz_popup_message( results_title, translation.server_error, translation.try_in_a_few_minutes ); 505 console.error("Couldn't get data: ", data); 503 506 504 507 }, … … 530 533 window.playbuzz_featured_items = playbuzz_featured_items; 531 534 535 function is_playbuzz_url( url ) { 536 var valid = ["http://www.playbuzz.com/", "https://www.playbuzz.com", "www.playbuzz.com"]; 537 for(var i=0; i<valid.length; i++) { 538 if(url.indexOf(valid[i]) === 0) { 539 return true; 540 } 541 } 542 543 return false; 544 } 545 532 546 // Playbuzz general search screen 533 547 function playbuzz_general_search( current_page ) { 548 var search_param = (jQuery)("#playbuzz_search").val(); 534 549 535 550 // Set variables … … 542 557 (jQuery)("#playbuzz_popup_tab_myitems").removeClass("playbuzz_active_tab"); 543 558 559 var dataObject; 560 if(is_playbuzz_url(search_param)) { 561 dataObject = { 562 playbuzzUrl : search_param 563 }; 564 } else { 565 dataObject = { 566 q : search_param, 567 format : (jQuery)("#playbuzz_search_type").val(), 568 sort : (jQuery)("#playbuzz_search_sort").val(), 569 size : items_per_page, 570 from : (current_page*items_per_page)-items_per_page 571 }; 572 } 573 544 574 // Load items using the Playbuzz API 545 575 (jQuery).ajax({ 546 url : "http://rest-api-v2.playbuzz.com/v2/items",576 url : apiBaseUrl, 547 577 type : "get", 548 578 dataType : "json", 549 data : { 550 q : (jQuery)("#playbuzz_search").val(), 551 format : (jQuery)("#playbuzz_search_type").val(), 552 sort : (jQuery)("#playbuzz_search_sort").val(), 553 size : items_per_page, 554 from : (current_page*items_per_page)-items_per_page 555 }, 579 data : dataObject, 556 580 error : function( data ) { 557 581 558 582 // Server Error 559 583 playbuzz_popup_message( results_title, translation.server_error, translation.try_in_a_few_minutes ); 584 console.error("Couldn't get data: ", data); 560 585 561 586 }, … … 607 632 // Load items using the Playbuzz API 608 633 (jQuery).ajax({ 609 url : "http://rest-api-v2.playbuzz.com/v2/items",634 url : apiBaseUrl, 610 635 type : "get", 611 636 dataType : "json", … … 622 647 // Server Error 623 648 playbuzz_popup_message( results_title, translation.server_error, translation.try_in_a_few_minutes ); 649 console.error("Couldn't get data: ", data); 624 650 625 651 }, … … 662 688 } 663 689 690 var search_param = (jQuery)("#playbuzz_search").val(); 691 664 692 // Set variables 665 693 var results_layout = "list", … … 667 695 items_per_page = 30; 668 696 697 var dataObject; 698 if(is_playbuzz_url(search_param)) { 699 dataObject = { 700 playbuzzUrl: search_param 701 }; 702 } else { 703 dataObject = { 704 q : search_param, 705 format : (jQuery)("#playbuzz_search_type").val(), 706 sort : (jQuery)("#playbuzz_search_sort").val(), 707 size : items_per_page, 708 from : (current_page*items_per_page)-items_per_page, 709 channelAlias : site_settings.pb_user, 710 moderation : false 711 }; 712 } 713 669 714 // Update tabs 670 715 (jQuery)("#playbuzz_popup_tab_content").removeClass("playbuzz_active_tab"); … … 673 718 // Load items using the Playbuzz API 674 719 (jQuery).ajax({ 675 url : "http://rest-api-v2.playbuzz.com/v2/items",720 url : apiBaseUrl, 676 721 type : "get", 677 722 dataType : "json", 678 data : { 679 q : (jQuery)("#playbuzz_search").val(), 680 format : (jQuery)("#playbuzz_search_type").val(), 681 sort : (jQuery)("#playbuzz_search_sort").val(), 682 size : items_per_page, 683 from : (current_page*items_per_page)-items_per_page, 684 channelAlias : site_settings.pb_user, 685 moderation : false 686 }, 723 data : dataObject, 687 724 error : function( data ) { 688 725 689 726 // Server Error 690 727 playbuzz_popup_message( results_title, translation.server_error, translation.try_in_a_few_minutes ); 728 console.error("Couldn't get data: ", data); 691 729 692 730 }, … … 773 811 // Get Item info 774 812 (jQuery).ajax({ 775 url : "http://rest-api-v2.playbuzz.com/v2/items",813 url : apiBaseUrl, 776 814 type : "get", 777 815 dataType : "json", … … 933 971 // Item Preview 934 972 (jQuery).ajax({ 935 url : "http://rest-api-v2.playbuzz.com/v2/items",973 url : apiBaseUrl, 936 974 type : "get", 937 975 dataType : "json", … … 945 983 // Clear preview 946 984 (jQuery)("#playbuzz_item_preview").empty(); 985 console.error("Couldn't get data: ", data); 947 986 948 987 }, -
playbuzz/trunk/readme.txt
r1431235 r1457486 1 === Playbuzz ===1 === Playbuzz === 2 2 Contributors: playbuzz 3 3 Tags: Playbuzz, playful content, feed, feeds, embed, oembed, content, viral, related, syndication, related content, quiz, quizzes, test yourself, list, poll, Personality Quiz, personality, entertainment, celebs, celebrities, celebrity, animals 4 4 Requires at least: 3.9 5 5 Tested up to: 4.5.2 6 Stable tag: 0.9. 26 Stable tag: 0.9.3 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 90 90 91 91 == Changelog == 92 93 = 0.9.3 (2016-07-17) = 94 * Fixed a bug which preventing items to be fetched correctly in https 95 * Added the ability to search for items by pasting the full URL 96 * Rebranded the plugin with new logo and screenshots 92 97 93 98 = 0.9.2 (2016-06-05) =
Note: See TracChangeset
for help on using the changeset viewer.