{"id":394736,"date":"2026-11-02T13:59:00","date_gmt":"2026-11-02T13:59:00","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/fantasytoys-produsul-saptamanii\/"},"modified":"2026-11-02T13:58:45","modified_gmt":"2026-11-02T13:58:45","slug":"fantasytoys-produsul-saptamanii","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/fantasytoys-produsul-saptamanii\/","author":23595072,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.4","requires":"5.3","requires_php":"7.2","requires_plugins":null,"header_name":"Fantasytoys Produsul S\u0103pt\u0103m\u00e2nii","header_author":"Fantasytoys","header_description":"Sidebar widget and shortcode [fantasytoys_produsul_saptamanii] displaying the product of the week from the fantasytoys.ro shop.","assets_banners_color":"f1cbdb","last_updated":"2026-11-02 13:58:45","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/fantasytoys.ro","rating":0,"author_block_rating":0,"active_installs":0,"downloads":118,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"fantasytoysro","date":"2026-11-02 13:58:45","revision":3779932}},"upgrade_notice":{"1.0.0":"<p>First release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3779932,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3779932,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3779932,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3779932,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3779932,"resolution":"1","location":"assets","locale":"","width":1280,"height":1000},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3779932,"resolution":"2","location":"assets","locale":"","width":290,"height":425},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3779932,"resolution":"3","location":"assets","locale":"","width":564,"height":677}},"screenshots":{"1":"The widget in a theme sidebar.","2":"Widget settings.","3":"The product of the week inserted into a post with the shortcode."}},"plugin_section":[],"plugin_tags":[746,1242,80,168,162],"plugin_category":[43,45],"plugin_contributors":[290309],"plugin_business_model":[],"class_list":["post-394736","plugin","type-plugin","status-publish","hentry","plugin_tags-product","plugin_tags-shop","plugin_tags-shortcode","plugin_tags-sidebar","plugin_tags-widget","plugin_category-customization","plugin_category-ecommerce","plugin_contributors-fantasytoysro","plugin_committers-fantasytoysro"],"banners":{"banner":"https:\/\/ps.w.org\/fantasytoys-produsul-saptamanii\/assets\/banner-772x250.png?rev=3779932","banner_2x":"https:\/\/ps.w.org\/fantasytoys-produsul-saptamanii\/assets\/banner-1544x500.png?rev=3779932","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/fantasytoys-produsul-saptamanii\/assets\/icon-128x128.png?rev=3779932","icon_2x":"https:\/\/ps.w.org\/fantasytoys-produsul-saptamanii\/assets\/icon-256x256.png?rev=3779932","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/fantasytoys-produsul-saptamanii\/assets\/screenshot-1.png?rev=3779932","caption":"The widget in a theme sidebar."},{"src":"https:\/\/ps.w.org\/fantasytoys-produsul-saptamanii\/assets\/screenshot-2.png?rev=3779932","caption":"Widget settings."},{"src":"https:\/\/ps.w.org\/fantasytoys-produsul-saptamanii\/assets\/screenshot-3.png?rev=3779932","caption":"The product of the week inserted into a post with the shortcode."}],"raw_content":"<!--section=description-->\n<p>This plugin adds a widget to your sidebar that shows one product a week from the recommended products of the <a href=\"https:\/\/fantasytoys.ro\">fantasytoys.ro<\/a> shop.<\/p>\n\n<p>The widget card shows:<\/p>\n\n<ul>\n<li>the week number,<\/li>\n<li>the product photo with the discount badge,<\/li>\n<li>the product name,<\/li>\n<li>the regular and the discounted price, with the lowest price from the 30 days before the discount,<\/li>\n<li>a \"View product\" button linking to the product page in the shop.<\/li>\n<\/ul>\n\n<p>The product is picked automatically from the recommended products on the shop's home page and stays the same for the whole week (ISO week, site timezone). A new product appears every Monday \u2013 no configuration needed.<\/p>\n\n<p><strong>Features<\/strong><\/p>\n\n<ul>\n<li>Classic widget, also available in the block-based widget editor (Legacy Widget block).<\/li>\n<li>Shortcode <code>[fantasytoys_produsul_saptamanii]<\/code> for posts, pages and block themes without a sidebar.<\/li>\n<li>Image, prices, week number and button can be turned on or off.<\/li>\n<li>Data is cached (prices refreshed every 6 hours), so the shop is not queried on every page view.<\/li>\n<li>If the shop is temporarily unavailable, the last successfully loaded product is shown.<\/li>\n<li>Lightweight: no JavaScript, one small stylesheet loaded only where the widget is displayed.<\/li>\n<li>Translation ready.<\/li>\n<\/ul>\n\n<h3>External services<\/h3>\n\n<p>This plugin connects to fantasytoys.ro, the online shop whose products it displays. Without this connection the plugin cannot work.<\/p>\n\n<ul>\n<li><strong>What is requested:<\/strong> the public home page of the shop (<code>https:\/\/fantasytoys.ro\/<\/code>), to read the name, link, image and prices of the recommended products.<\/li>\n<li><strong>When:<\/strong> on the server side, when a page containing the widget or shortcode is displayed and the cached data is older than 6 hours, the week has changed, or 10 minutes after a failed request.<\/li>\n<li><strong>What data is sent:<\/strong> no personal data and no data about your visitors is sent. These are ordinary HTTP GET requests made by your server, containing only the standard WordPress user agent (which includes your site URL).<\/li>\n<li><strong>Images:<\/strong> the product photo is loaded by the visitor's browser directly from fantasytoys.ro, so the shop receives the visitor's IP address and browser information, as with any embedded image. You can disable the image in the widget settings or with <code>show_image=\"0\"<\/code> in the shortcode.<\/li>\n<\/ul>\n\n<p>The service is provided by the fantasytoys.ro shop: <a href=\"https:\/\/fantasytoys.ro\/rum-privacy-and-cookie-notice.html\">Privacy policy<\/a>, <a href=\"https:\/\/fantasytoys.ro\/rum-terms.html\">Terms of service<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>In the WordPress admin go to Plugins \u2192 Add New, search for \"Fantasytoys Produsul S\u0103pt\u0103m\u00e2nii\" and click Install Now, then Activate.<\/li>\n<li>Go to Appearance \u2192 Widgets and add the \"Fantasytoys.ro \u2013 product of the week\" widget to your sidebar.<\/li>\n<li>Optionally adjust the title, visible elements and button text.<\/li>\n<\/ol>\n\n<p>To display the product inside a post or page, use the shortcode:<\/p>\n\n<pre><code>[fantasytoys_produsul_saptamanii]\n<\/code><\/pre>\n\n<p>Available attributes (all optional):<\/p>\n\n<pre><code>[fantasytoys_produsul_saptamanii show_image=\"1\" show_prices=\"1\" show_week=\"1\" button_text=\"View product\" new_tab=\"1\"]\n<\/code><\/pre>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20often%20are%20prices%20refreshed%3F\"><h3>How often are prices refreshed?<\/h3><\/dt>\n<dd><p>Every 6 hours. You can change this with the <code>ftro_pw_cache_ttl<\/code> filter (value in seconds):<\/p>\n\n<pre><code>add_filter( 'ftro_pw_cache_ttl', function () { return HOUR_IN_SECONDS; } );\n<\/code><\/pre><\/dd>\n<dt id=\"my%20theme%20has%20no%20sidebar.%20can%20i%20still%20use%20the%20plugin%3F\"><h3>My theme has no sidebar. Can I still use the plugin?<\/h3><\/dt>\n<dd><p>Yes \u2013 use the <code>[fantasytoys_produsul_saptamanii]<\/code> shortcode, e.g. in a Shortcode block.<\/p><\/dd>\n<dt id=\"how%20do%20i%20change%20the%20colors%3F\"><h3>How do I change the colors?<\/h3><\/dt>\n<dd><p>The card uses simple CSS classes (<code>.ftro-pw<\/code>, <code>.ftro-pw__price<\/code>, <code>.ftro-pw__button<\/code>, \u2026). Override them in Appearance \u2192 Customize \u2192 Additional CSS.<\/p><\/dd>\n<dt id=\"can%20i%20display%20products%20from%20another%20shop%3F\"><h3>Can I display products from another shop?<\/h3><\/dt>\n<dd><p>No. The plugin is built specifically for fantasytoys.ro.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"Sidebar widget and shortcode displaying the product of the week from the fantasytoys.ro shop \u2013 image, name, regular and discounted price and a link.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/394736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=394736"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/fantasytoysro"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=394736"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=394736"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=394736"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=394736"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=394736"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=394736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}