Changeset 3115828
- Timestamp:
- 07/10/2024 05:34:49 PM (3 weeks ago)
- Location:
- slider-blocks/trunk
- Files:
-
- 253 added
- 3 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
slider-blocks/trunk/admin/admin.php
r3035216 r3115828 16 16 */ 17 17 public function __construct() { 18 // include admin notice19 $this->include_admin_notice();20 21 18 add_action( 'admin_menu', [ $this, 'admin_menu' ] ); 22 19 add_action( 'admin_enqueue_scripts', [ $this, 'admin_assests' ] ); … … 25 22 add_action('admin_init', [ $this, 'custom_register_settings' ]); 26 23 add_action( 'rest_api_init', [ $this, 'custom_register_settings' ] ); 27 28 // include admin data SDk29 add_action( 'plugins_loaded', [ $this, 'dci_plugin_gutslider' ] );30 }31 32 /**33 * Include admin notice34 */35 public function include_admin_notice() {36 require_once trailingslashit( GUTSLIDER_DIR ) . '/admin/notice/notice.php';37 }38 39 /**40 * Include data SDK41 */42 public function dci_plugin_gutslider() {43 // Include DCI SDK.44 require_once dirname( __FILE__ ) . '/dci/start.php';45 dci_dynamic_init( array(46 'sdk_version' => '1.0.0',47 'plugin_title' => 'GutSlider',48 'product_id' => 3,49 'api_endpoint' => 'https://dashboard.gutenbergkits.com/wp-json/dci/v1/data-insights',50 'slug' => 'slider-blocks',51 'public_key' => 'pk_KxU4qcYXPyqvBDwsyyBkbCfY9Gulc1z5',52 'is_premium' => false,53 'menu' => array(54 'slug' => 'gutslider-blocks',55 ),56 ) );57 24 } 58 25 … … 131 98 )); 132 99 133 // post slider134 register_setting('rest-api-settings', 'gut_post_slider', array(135 'type' => 'boolean',136 'default' => true,137 'show_in_rest' => true,138 'sanitize_callback' => 'rest_sanitize_boolean',139 ));100 // post slider 101 register_setting('rest-api-settings', 'gut_post_slider', array( 102 'type' => 'boolean', 103 'default' => true, 104 'show_in_rest' => true, 105 'sanitize_callback' => 'rest_sanitize_boolean', 106 )); 140 107 141 108 // photo carousel -
slider-blocks/trunk/build/admin/admin.asset.php
r3035216 r3115828 1 <?php return array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => ' 521fcb1a3102e54f6956');1 <?php return array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => ''); -
slider-blocks/trunk/build/admin/admin.js
r3035216 r3115828 1 (()=>{"use strict";var e,t={20:(e,t,a)=>{const l=window.wp.element,o=window.wp.i18n,s=window.wp.components,n=e=>{let{title:t,description:a,videoId:o,videoWidth:s="",videoHeight:n="",actions:r}=e;return(0,l.createElement)("div",{className:"video-container"},t&&(0,l.createElement)("h3",{className:"video-title"},t),a&&(0,l.createElement)("p",{className:"video-description"},a),(0,l.createElement)("div",{className:"video-wrapper"},(0,l.createElement)("iframe",{title:"GutSlider Blocks Video Tutorial",width:s||560,height:n||315,src:`https://www.youtube.com/embed/${o}`,allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:""})),r&&(0,l.createElement)("div",{className:"video-actions"},r.map(((e,t)=>(0,l.createElement)("a",{key:t,className:"video-action",href:e.link,target:"_blank",rel:"noopener noreferrer"},e.label)))))},r=()=>{(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},(0,l.createElement)("path",{d:"M4.355.522a.5.5 0 0 1 .623.333l.291.956A4.979 4.979 0 0 1 8 1c1.007 0 1.946.298 2.731.811l.29-.956a.5.5 0 1 1 .957.29l-.41 1.352A4.985 4.985 0 0 1 13 6h.5a.5.5 0 0 0 .5-.5V5a.5.5 0 0 1 1 0v.5A1.5 1.5 0 0 1 13.5 7H13v1h1.5a.5.5 0 0 1 0 1H13v1h.5a1.5 1.5 0 0 1 1.5 1.5v.5a.5.5 0 1 1-1 0v-.5a.5.5 0 0 0-.5-.5H13a5 5 0 0 1-10 0h-.5a.5.5 0 0 0-.5.5v.5a.5.5 0 1 1-1 0v-.5A1.5 1.5 0 0 1 2.5 10H3V9H1.5a.5.5 0 0 1 0-1H3V7h-.5A1.5 1.5 0 0 1 1 5.5V5a.5.5 0 0 1 1 0v.5a.5.5 0 0 0 .5.5H3c0-1.364.547-2.601 1.432-3.503l-.41-1.352a.5.5 0 0 1 .333-.623zM4 7v4a4 4 0 0 0 3.5 3.97V7H4zm4.5 0v7.97A4 4 0 0 0 12 11V7H8.5zM12 6a3.989 3.989 0 0 0-1.334-2.982A3.983 3.983 0 0 0 8 2a3.983 3.983 0 0 0-2.667 1.018A3.989 3.989 0 0 0 4 6h8z"})),(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},(0,l.createElement)("path",{d:"M2.678 11.894a1 1 0 0 1 .287.801 10.97 10.97 0 0 1-.398 2c1.395-.323 2.247-.697 2.634-.893a1 1 0 0 1 .71-.074A8.06 8.06 0 0 0 8 14c3.996 0 7-2.807 7-6 0-3.192-3.004-6-7-6S1 4.808 1 8c0 1.468.617 2.83 1.678 3.894zm-.493 3.905a21.682 21.682 0 0 1-.713.129c-.2.032-.352-.176-.273-.362a9.68 9.68 0 0 0 .244-.637l.003-.01c.248-.72.45-1.548.524-2.319C.743 11.37 0 9.76 0 8c0-3.866 3.582-7 8-7s8 3.134 8 7-3.582 7-8 7a9.06 9.06 0 0 1-2.347-.306c-.52.263-1.639.742-3.468 1.105z"}),(0,l.createElement)("path",{d:"M4 5.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zM4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8zm0 2.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5z"})),(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},(0,l.createElement)("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),(0,l.createElement)("path",{d:"M11.315 10.014a.5.5 0 0 1 .548.736A4.498 4.498 0 0 1 7.965 13a4.498 4.498 0 0 1-3.898-2.25.5.5 0 0 1 .548-.736h.005l.017.005.067.015.252.055c.215.046.515.108.857.169.693.124 1.522.242 2.152.242.63 0 1.46-.118 2.152-.242a26.58 26.58 0 0 0 1.109-.224l.067-.015.017-.004.005-.002zM4.756 4.566c.763-1.424 4.02-.12.952 3.434-4.496-1.596-2.35-4.298-.952-3.434zm6.488 0c1.398-.864 3.544 1.838-.952 3.434-3.067-3.554.19-4.858.952-3.434z"}))},i=e=>{let{icon:t,title:a,description:o,action:s}=e;return(0,l.createElement)("div",{className:"card-wrapper"},t&&(0,l.createElement)("div",{className:"card-icon"},r[t]),a&&(0,l.createElement)("h3",{className:"card-title"},a),o&&(0,l.createElement)("p",{className:"card-description"},o),s&&(0,l.createElement)("a",{className:"card-actions",href:s.link,target:"_blank",rel:"noopener noreferrer"},s.label))},c=()=>(0,l.createElement)("div",{className:"welcome-tab-elements"},(0,l.createElement)("div",{className:"tab-container flex"},(0,l.createElement)("div",{className:"flex-2"},(0,l.createElement)(n,{title:(0,o.__)("Welcome to GutSlider Blocks","slider-blocks"),description:(0,o.__)("GutSlider Blocks is a Gutenberg block plugin that allows you to create sliders in the Gutenberg editor. Watch this video to get started.","slider-blocks"),videoId:"3PJKCaqd9RQ",actions:[{label:(0,o.__)("More Videos","slider-blocks"),link:"https://gutslider.com/videos"},{label:(0,o.__)("Documentation","slider-blocks"),link:"https://gutslider.com/docs"}]})),(0,l.createElement)("div",{className:"flex-1"},(0,l.createElement)(i,{title:(0,o.__)("Report Bugs","slider-blocks"),description:(0,o.__)("If you have found a bug in GutSlider Blocks, please report it in our support forum. We will fix it as soon as possible.","slider-blocks"),action:{label:(0,o.__)("Report Now","slider-blocks"),link:"https://wordpress.org/support/plugin/slider-blocks/"}}),(0,l.createElement)(i,{title:(0,o.__)("Love the Plugin","slider-blocks"),description:(0,o.__)("If you love GutSlider Blocks, please leave us a review on WordPress.org. We appreciate your support!","slider-blocks"),action:{label:(0,o.__)("Rate Now","slider-blocks"),link:"https://wordpress.org/support/plugin/slider-blocks/reviews/#new-post"}}),(0,l.createElement)(i,{title:(0,o.__)("Contact Us","slider-blocks"),description:(0,o.__)("If you have any questions or need help with GutSlider Blocks, please contact us. We are happy to help you!","slider-blocks"),action:{label:(0,o.__)("Contact Us","slider-blocks"),link:"https://gutenbergkits.com/contact"}})))),d=window.wp.apiFetch;var m=a.n(d);const u=e=>{let{name:t,description:a,demoLink:n="",activeBlock:r,onClick:i}=e;return(0,l.createElement)("div",{className:"single-block-wrapper"},(0,l.createElement)("div",{className:"single-block-head flex"},(0,l.createElement)("h3",{className:"single-block-title"},t),(0,l.createElement)(s.ToggleControl,{checked:r,onChange:i})),(0,l.createElement)("p",{className:"single-block-description"},a),n&&(0,l.createElement)("a",{className:"single-block-actions",href:n,target:"_blank",rel:"noopener noreferrer"},(0,o.__)("View Demo","slider-blocks")))}, g="/wp/v2/settings",v="https://gutslider.com/demos",p=()=>{const[e,t]=(0,l.useState)(null),[a,s]=(0,l.useState)(null),[n,r]=(0,l.useState)(null),[i,c]=(0,l.useState)(null),[d,p]=(0,l.useState)(null),[h,w]=(0,l.useState)(null),[k,b]=(0,l.useState)(null),[E,_]=(0,l.useState)(null),[f,N]=(0,l.useState)(!1),C=async(e,a)=>{try{const l=await m()({path:g,method:"POST",data:{[a]:e}});t(l.gut_fixed_content_slider),s(l.gut_any_content_slider),r(l.gut_testimonial_slider),c(l.gut_post_slider),p(l.gut_photo_carousel),w(l.gut_logo_carousel),b(l.gut_before_after_slider),_(l.gut_videos_carousel),N(!0)}catch(e){console.error("Error updating content slider status",e)}};return(0,l.useEffect)((()=>{m()({path:g}).then((e=>{let{gut_fixed_content_slider:a,gut_any_content_slider:l,gut_testimonial_slider:o,gut_post_slider:n,gut_photo_carousel:i,gut_logo_carousel:d,gut_before_after_slider:m,gut_videos_carousel:u}=e;t(a),s(l),r(o),c(n),p(i),w(d),b(m),_(u)}))}),[]),(0,l.useEffect)((()=>{const e=setTimeout((()=>{N(!1)}),2e3);return()=>clearTimeout(e)}),[f]),(0,l.createElement)(l.Fragment,null,f&&(0,l.createElement)("div",{className:"gutslider-data-update-notice"},(0,l.createElement)("span",{className:"notice-icon"},(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},(0,l.createElement)("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),(0,l.createElement)("path",{d:"M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05z"}))),(0,o.__)("Changes saved successfully.","slider-blocks"),(0,l.createElement)("button",{className:"notice-close",onClick:()=>{N(!1)}},(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},(0,l.createElement)("path",{d:"M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"})))),(0,l.createElement)("div",{className:"blocks-controls"},(0,l.createElement)(u,{name:"Any Content Slider",description:(0,o.__)("Create sliders with any content you want. You can add images, videos, text, buttons, and more.","slider-blocks"),demoLink:v,activeBlock:a,onClick:()=>C(!a,"gut_any_content_slider")}),(0,l.createElement)(u,{name:"Fixed Content Slider",description:(0,o.__)("Create sliders with fixed content. You can add images, text and button","slider-blocks"),demoLink:v,activeBlock:e,onClick:()=>C(!e,"gut_fixed_content_slider")}),(0,l.createElement)(u,{name:"Testimonial Slider",description:(0,o.__)("Showcase your custom testimonials or reviews in sliding mode easily.","slider-blocks"),demoLink:v,activeBlock:n,onClick:()=>C(!n,"gut_testimonial_slider")}),(0,l.createElement)(u,{name:"Blog Post Slider",description:(0,o.__)("Showcase your blog posts in sliding mode easily and customize it as per your need.","slider-blocks"),demoLink:v,activeBlock:i,onClick:()=>C(!i,"gut_post_slider")}),(0,l.createElement)(u,{name:"Photos Carousel",description:(0,o.__)("Create an awesome carousel with your photos very easily in a short time.","slider-blocks"),demoLink:v,activeBlock:d,onClick:()=>C(!d,"gut_photo_carousel")}),(0,l.createElement)(u,{name:"Brand Logos Carousel",description:(0,o.__)("Create an awesome carousel with your client logos very easily in a short time.","slider-blocks"),demoLink:v,activeBlock:h,onClick:()=>C(!h,"gut_logo_carousel")}),(0,l.createElement)(u,{name:"Before After Slider",description:(0,o.__)("Showcase Image Before After Comparison with this block","slider-blocks"),demoLink:v,activeBlock:k,onClick:()=>C(!k,"gut_before_after_slider")}),(0,l.createElement)(u,{name:"Videos Carousel",description:(0,o.__)("Showcase videos in a carousel with this block.","slider-blocks"),demoLink:v,activeBlock:E,onClick:()=>C(!E,"gut_videos_carousel")})))},h=()=>(0,l.createElement)("div",{className:"welcome-tab-elements"},(0,l.createElement)("div",{className:"tab-container"},(0,l.createElement)("h3",{className:"settings-title"},(0,o.__)("Blocks List","slider-blocks")),(0,l.createElement)("div",{className:"blocks-container"},(0,l.createElement)(p,null)))),w=e=>{let{version:t,date:a,changes:o}=e;return(0,l.createElement)("div",{className:"single-version"},(0,l.createElement)("div",{className:"version-number"},`Version: ${t}`),(0,l.createElement)("div",{className:"version-date"},a),(0,l.createElement)("div",{className:"version-changes"},o&&Object.keys(o).map(((e,t)=>(0,l.createElement)("div",{className:"version-changes-group",key:t},(0,l.createElement)("div",{className:"version-changes-group-title"},e),(0,l.createElement)("div",{className:"version-changes-group-list"},o[e].map(((e,t)=>(0,l.createElement)("div",{className:"version-changes-group-list-item",key:t},`- ${e}`)))))))))},k=()=>(0,l.createElement)("div",{className:"log-panel"},(0,l.createElement)(w,{version:"2.7.0",date:"13 February, 2024",changes:{added:["New Block: Videos Carousel"]}}),(0,l.createElement)(w,{version:"2.6.1",date:"18 January, 2024",changes:{fixed:["apiVersion issue fixed","before after slider block issue fixed"]}}),(0,l.createElement)(w,{version:"2.6.0",date:"16 January, 2024",changes:{added:["New Block: Before After Slider"],updated:["Blocks Icons"],improvements:["Code quality"],removed:["Swiper Js loading settings"]}}),(0,l.createElement)(w,{version:"2.5.5",date:"01 January, 2024",changes:{fixed:["Font loading issues","Custom icon issues"]}}),(0,l.createElement)(w,{version:"2.5.4",date:"02 December, 2023",changes:{added:["Duplicating option for Fixed Content & Testimonial Slider blocks ","Custom Transition Delay time"],fixed:["Custom Icon Size issue","Inner Content width issue"],improvements:["Block Preview Image "]}}),(0,l.createElement)(w,{version:"2.5.3",date:"13 November, 2023",changes:{added:["Defautl theme colors palette added ","Custom preview image for blocks"],fixed:["Duplicating issue fixed","Multiple fonts loading issue fixed"],improvements:["Short the block names"]}}),(0,l.createElement)(w,{version:"2.5.2",date:"11 November, 2023",changes:{fixed:["Table view issue fixed","Multiple fonts loading issue fixed","Minimum column for carousel set to 1","Default data issues for fixed content and testimonial sliders issues fixed"]}}),(0,l.createElement)(w,{version:"2.5.1",date:"10 November, 2023",changes:{added:["Button typography for fixed content slider","Logo carousel column number increase to 10","Logo carousel column gap increase to 200"],fixed:["Button transition issue fixed"]}}),(0,l.createElement)(w,{version:"2.5.0",date:"04 November, 2023",changes:{new:["New Block: Logo Carousel Block"],fixed:["Initial Navigation Issue","Initial Pagination Issue","Font Loading Issue","Dependency Issue"],improvements:["Improve code quality"]}}),(0,l.createElement)(w,{version:"2.4.0",date:"01 November, 2023",changes:{new:["New Block: Photo Carousel Block"]}}),(0,l.createElement)(w,{version:"2.3.0",date:"24 October, 2023",changes:{new:["New Block: Post Slider"],improvements:["Improve PHP code quality"]}}),(0,l.createElement)(w,{version:"2.2.2",date:"07 October, 2023",changes:{new:["New Block: Testimonial Slider"],fixed:["Adding New Block Issue","Block Recovery Issue","Direct Editor Editing Issue","Navigation Icon Color & Size Issue"],improvements:["Improve code quality","Improve performance","Blocks Icons"]}}),(0,l.createElement)(w,{version:"2.2.1",date:"30 September, 2023",changes:{fixed:["Outer navigation issue fixed"]}}),(0,l.createElement)(w,{version:"2.2.0",date:"30 September, 2023",changes:{features:["Complete Navigation Settings","New Navigation Styles","New Navigation Controls","Complete Pagination Settings","New Pagination Styles","New Pagination Controls","New Smart Admin Panel","Options to Enable/Disable Blocks","Option to enable/disable Swiper JS + CSS"],improvements:["Improve code quality","Improve performance"]}}),(0,l.createElement)(w,{version:"2.1.0",date:"21 September, 2023",changes:{features:["Carousel style","Any content slider and carousel","Slider and carousel controls","Navigation colors","New slider effects"],improvements:["Remove composer and make it simple","Improve code quality","Improve performance"]}}),(0,l.createElement)(w,{version:"1.0.0",date:"11 August,2023",changes:{info:["Initial release"]}})),b=e=>{let{setLogPanel:t}=e;return(0,l.createElement)("div",{className:"logs-panel-head flex"},(0,l.createElement)("h3",{className:"logs-panel-title"},(0,o.__)("GutSlider Changelogs","slider-blocks")),(0,l.createElement)(s.Button,{className:"close-log-panel",onClick:()=>t(!1)},(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},(0,l.createElement)("path",{fillRule:"evenodd",d:"M12.293 3.293a1 1 0 0 1 1.414 1.414L9.414 9l4.293 4.293a1 1 0 1 1-1.414 1.414L8 10.414l-4.293 4.293a1 1 0 1 1-1.414-1.414L6.586 9 2.293 4.707A1 1 0 1 1 3.707 3.293L8 7.586l4.293-4.293z"}))))},E=()=>(0,l.createElement)("p",{className:"current-version"},gutslider.version),_=()=>{const[e,t]=(0,l.useState)("welcome"),[a,n]=(0,l.useState)(!1);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"container"},(0,l.createElement)("div",{className:"header"},(0,l.createElement)("div",{className:"header-content flex"},(0,l.createElement)("div",{className:"brand-area flex"},(0,l.createElement)("div",{className:"brand-logo"},(0,l.createElement)("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M5 45C3.625 45 2.44833 44.5108 1.47 43.5325C0.491667 42.5542 0.00166667 41.3767 0 40V5C0 3.625 0.49 2.44833 1.47 1.47C2.45 0.491667 3.62667 0.00166667 5 0H40C41.375 0 42.5525 0.49 43.5325 1.47C44.5125 2.45 45.0017 3.62667 45 5V40C45 41.375 44.5108 42.5525 43.5325 43.5325C42.5542 44.5125 41.3767 45.0017 40 45H5ZM17.5 35H27.5C28.875 35 30.0525 34.5108 31.0325 33.5325C32.0125 32.5542 32.5017 31.3767 32.5 30V20H22.5V25H27.5V30H17.5V15H32.5C32.5 13.625 32.0108 12.4483 31.0325 11.47C30.0542 10.4917 28.8767 10.0017 27.5 10H17.5C16.125 10 14.9483 10.49 13.97 11.47C12.9917 12.45 12.5017 13.6267 12.5 15V30C12.5 31.375 12.99 32.5525 13.97 33.5325C14.95 34.5125 16.1267 35.0017 17.5 35Z",fill:"#5034C5"})),(0,l.createElement)("h3",{className:"brand-title"},(0,o.__)("GutSlider Blocks","slider-blocks"))),(0,l.createElement)("div",{className:"header-tabs"},(0,l.createElement)(s.ButtonGroup,null,(0,l.createElement)(s.Button,{className:"welcome-tab header-tab "+("welcome"===e?"active":""),onClick:()=>t("welcome")},(0,o.__)("Welcome","slider-blocks")),(0,l.createElement)(s.Button,{className:"blocks-tab header-tab "+("blocks"===e?"active":""),onClick:()=>t("blocks")},(0,o.__)("Blocks","slider-blocks"))))),(0,l.createElement)("div",{className:"changes-log flex"},(0,l.createElement)("a",{href:"https://gutslider.com",target:"_blank",rel:"nofollow noreferrer",className:"gutslider-prop"},(0,o.__)("GutSlider Pro","slider-blocks")),(0,l.createElement)(E,null),(0,l.createElement)(s.Button,{className:"changes-log-btn",onClick:()=>n(!0)},(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},(0,l.createElement)("path",{d:"M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2zM8 1.918l-.797.161A4.002 4.002 0 0 0 4 6c0 .628-.134 2.197-.459 3.742-.16.767-.376 1.566-.663 2.258h10.244c-.287-.692-.502-1.49-.663-2.258C12.134 8.197 12 6.628 12 6a4.002 4.002 0 0 0-3.203-3.92L8 1.917zM14.22 12c.223.447.481.801.78 1H1c.299-.199.557-.553.78-1C2.68 10.2 3 6.88 3 6c0-2.42 1.72-4.44 4.005-4.901a1 1 0 1 1 1.99 0A5.002 5.002 0 0 1 13 6c0 .88.32 4.2 1.22 6z"})))))),(0,l.createElement)("div",{className:"tabs-body"},"welcome"===e&&(0,l.createElement)(c,null),"blocks"===e&&(0,l.createElement)(h,null))),a&&(0,l.createElement)("div",{className:"logs-panel"},(0,l.createElement)(b,{setLogPanel:n}),(0,l.createElement)(k,null)))},f=()=>(0,l.createElement)(_,null);window.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById("gutslider");e&&(0,l.render)((0,l.createElement)(f,null),e)}))}},a={};function l(e){var o=a[e];if(void 0!==o)return o.exports;var s=a[e]={exports:{}};return t[e](s,s.exports,l),s.exports}l.m=t,e=[],l.O=(t,a,o,s)=>{if(!a){var n=1/0;for(d=0;d<e.length;d++){for(var[a,o,s]=e[d],r=!0,i=0;i<a.length;i++)(!1&s||n>=s)&&Object.keys(l.O).every((e=>l.O[e](a[i])))?a.splice(i--,1):(r=!1,s<n&&(n=s));if(r){e.splice(d--,1);var c=o();void 0!==c&&(t=c)}}return t}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[a,o,s]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var a in t)l.o(t,a)&&!l.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={955:0,584:0};l.O.j=t=>0===e[t];var t=(t,a)=>{var o,s,[n,r,i]=a,c=0;if(n.some((t=>0!==e[t]))){for(o in r)l.o(r,o)&&(l.m[o]=r[o]);if(i)var d=i(l)}for(t&&t(a);c<n.length;c++)s=n[c],l.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return l.O(d)},a=globalThis.webpackChunkgutenberg_boilerplate=globalThis.webpackChunkgutenberg_boilerplate||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var o=l.O(void 0,[584],(()=>l(20)));o=l.O(o)})();1 (()=>{"use strict";var e,t={20:(e,t,a)=>{const l=window.wp.element,o=window.wp.i18n,s=window.wp.components,n=e=>{let{title:t,description:a,videoId:o,videoWidth:s="",videoHeight:n="",actions:r}=e;return(0,l.createElement)("div",{className:"video-container"},t&&(0,l.createElement)("h3",{className:"video-title"},t),a&&(0,l.createElement)("p",{className:"video-description"},a),(0,l.createElement)("div",{className:"video-wrapper"},(0,l.createElement)("iframe",{title:"GutSlider Blocks Video Tutorial",width:s||560,height:n||315,src:`https://www.youtube.com/embed/${o}`,allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:""})),r&&(0,l.createElement)("div",{className:"video-actions"},r.map(((e,t)=>(0,l.createElement)("a",{key:t,className:"video-action",href:e.link,target:"_blank",rel:"noopener noreferrer"},e.label)))))},r=()=>{(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},(0,l.createElement)("path",{d:"M4.355.522a.5.5 0 0 1 .623.333l.291.956A4.979 4.979 0 0 1 8 1c1.007 0 1.946.298 2.731.811l.29-.956a.5.5 0 1 1 .957.29l-.41 1.352A4.985 4.985 0 0 1 13 6h.5a.5.5 0 0 0 .5-.5V5a.5.5 0 0 1 1 0v.5A1.5 1.5 0 0 1 13.5 7H13v1h1.5a.5.5 0 0 1 0 1H13v1h.5a1.5 1.5 0 0 1 1.5 1.5v.5a.5.5 0 1 1-1 0v-.5a.5.5 0 0 0-.5-.5H13a5 5 0 0 1-10 0h-.5a.5.5 0 0 0-.5.5v.5a.5.5 0 1 1-1 0v-.5A1.5 1.5 0 0 1 2.5 10H3V9H1.5a.5.5 0 0 1 0-1H3V7h-.5A1.5 1.5 0 0 1 1 5.5V5a.5.5 0 0 1 1 0v.5a.5.5 0 0 0 .5.5H3c0-1.364.547-2.601 1.432-3.503l-.41-1.352a.5.5 0 0 1 .333-.623zM4 7v4a4 4 0 0 0 3.5 3.97V7H4zm4.5 0v7.97A4 4 0 0 0 12 11V7H8.5zM12 6a3.989 3.989 0 0 0-1.334-2.982A3.983 3.983 0 0 0 8 2a3.983 3.983 0 0 0-2.667 1.018A3.989 3.989 0 0 0 4 6h8z"})),(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},(0,l.createElement)("path",{d:"M2.678 11.894a1 1 0 0 1 .287.801 10.97 10.97 0 0 1-.398 2c1.395-.323 2.247-.697 2.634-.893a1 1 0 0 1 .71-.074A8.06 8.06 0 0 0 8 14c3.996 0 7-2.807 7-6 0-3.192-3.004-6-7-6S1 4.808 1 8c0 1.468.617 2.83 1.678 3.894zm-.493 3.905a21.682 21.682 0 0 1-.713.129c-.2.032-.352-.176-.273-.362a9.68 9.68 0 0 0 .244-.637l.003-.01c.248-.72.45-1.548.524-2.319C.743 11.37 0 9.76 0 8c0-3.866 3.582-7 8-7s8 3.134 8 7-3.582 7-8 7a9.06 9.06 0 0 1-2.347-.306c-.52.263-1.639.742-3.468 1.105z"}),(0,l.createElement)("path",{d:"M4 5.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zM4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8zm0 2.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5z"})),(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},(0,l.createElement)("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),(0,l.createElement)("path",{d:"M11.315 10.014a.5.5 0 0 1 .548.736A4.498 4.498 0 0 1 7.965 13a4.498 4.498 0 0 1-3.898-2.25.5.5 0 0 1 .548-.736h.005l.017.005.067.015.252.055c.215.046.515.108.857.169.693.124 1.522.242 2.152.242.63 0 1.46-.118 2.152-.242a26.58 26.58 0 0 0 1.109-.224l.067-.015.017-.004.005-.002zM4.756 4.566c.763-1.424 4.02-.12.952 3.434-4.496-1.596-2.35-4.298-.952-3.434zm6.488 0c1.398-.864 3.544 1.838-.952 3.434-3.067-3.554.19-4.858.952-3.434z"}))},i=e=>{let{icon:t,title:a,description:o,action:s}=e;return(0,l.createElement)("div",{className:"card-wrapper"},t&&(0,l.createElement)("div",{className:"card-icon"},r[t]),a&&(0,l.createElement)("h3",{className:"card-title"},a),o&&(0,l.createElement)("p",{className:"card-description"},o),s&&(0,l.createElement)("a",{className:"card-actions",href:s.link,target:"_blank",rel:"noopener noreferrer"},s.label))},c=()=>(0,l.createElement)("div",{className:"welcome-tab-elements"},(0,l.createElement)("div",{className:"tab-container flex"},(0,l.createElement)("div",{className:"flex-2"},(0,l.createElement)(n,{title:(0,o.__)("Welcome to GutSlider Blocks","slider-blocks"),description:(0,o.__)("GutSlider Blocks is a Gutenberg block plugin that allows you to create sliders in the Gutenberg editor. Watch this video to get started.","slider-blocks"),videoId:"3PJKCaqd9RQ",actions:[{label:(0,o.__)("More Videos","slider-blocks"),link:"https://gutslider.com/videos"},{label:(0,o.__)("Documentation","slider-blocks"),link:"https://gutslider.com/docs"}]})),(0,l.createElement)("div",{className:"flex-1"},(0,l.createElement)(i,{title:(0,o.__)("Report Bugs","slider-blocks"),description:(0,o.__)("If you have found a bug in GutSlider Blocks, please report it in our support forum. We will fix it as soon as possible.","slider-blocks"),action:{label:(0,o.__)("Report Now","slider-blocks"),link:"https://wordpress.org/support/plugin/slider-blocks/"}}),(0,l.createElement)(i,{title:(0,o.__)("Love the Plugin","slider-blocks"),description:(0,o.__)("If you love GutSlider Blocks, please leave us a review on WordPress.org. We appreciate your support!","slider-blocks"),action:{label:(0,o.__)("Rate Now","slider-blocks"),link:"https://wordpress.org/support/plugin/slider-blocks/reviews/#new-post"}}),(0,l.createElement)(i,{title:(0,o.__)("Contact Us","slider-blocks"),description:(0,o.__)("If you have any questions or need help with GutSlider Blocks, please contact us. We are happy to help you!","slider-blocks"),action:{label:(0,o.__)("Contact Us","slider-blocks"),link:"https://gutenbergkits.com/contact"}})))),d=window.wp.apiFetch;var m=a.n(d);const u=e=>{let{name:t,description:a,demoLink:n="",activeBlock:r,onClick:i}=e;return(0,l.createElement)("div",{className:"single-block-wrapper"},(0,l.createElement)("div",{className:"single-block-head flex"},(0,l.createElement)("h3",{className:"single-block-title"},t),(0,l.createElement)(s.ToggleControl,{checked:r,onChange:i})),(0,l.createElement)("p",{className:"single-block-description"},a),n&&(0,l.createElement)("a",{className:"single-block-actions",href:n,target:"_blank",rel:"noopener noreferrer"},(0,o.__)("View Demo","slider-blocks")))},,null)))},f=()=>(0,l.createElement)(_,null);window.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById("gutslider");e&&(0,l.render)((0,l.createElement)(f,null),e)}))}},a={};function l(e){var o=a[e];if(void 0!==o)return o.exports;var s=a[e]={exports:{}};return t[e](s,s.exports,l),s.exports}l.m=t,e=[],l.O=(t,a,o,s)=>{if(!a){var n=1/0;for(d=0;d<e.length;d++){for(var[a,o,s]=e[d],r=!0,i=0;i<a.length;i++)(!1&s||n>=s)&&Object.keys(l.O).every((e=>l.O[e](a[i])))?a.splice(i--,1):(r=!1,s<n&&(n=s));if(r){e.splice(d--,1);var c=o();void 0!==c&&(t=c)}}return t}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[a,o,s]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var a in t)l.o(t,a)&&!l.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={955:0,584:0};l.O.j=t=>0===e[t];var t=(t,a)=>{var o,s,[n,r,i]=a,c=0;if(n.some((t=>0!==e[t]))){for(o in r)l.o(r,o)&&(l.m[o]=r[o]);if(i)var d=i(l)}for(t&&t(a);c<n.length;c++)s=n[c],l.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return l.O(d)},a=globalThis.webpackChunkgutenberg_boilerplate=globalThis.webpackChunkgutenberg_boilerplate||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var o=l.O(void 0,[584],(()=>l(20)));o=l.O(o)})(); -
slider-blocks/trunk/includes/classes/class-register-blocks.php
r3035216 r3115828 28 28 'any-content', 29 29 'testimonial-slider', 30 'post-slider',31 30 'photo-carousel', 32 31 'logo-carousel', … … 41 40 'any-content' => 'gut_any_content_slider', 42 41 'testimonial-slider' => 'gut_testimonial_slider', 43 'post-slider' => 'gut_post_slider',44 42 'photo-carousel' => 'gut_photo_carousel', 45 43 'logo-carousel' => 'gut_logo_carousel', -
slider-blocks/trunk/readme.txt
r3094049 r3115828 1 === GutSlider- All in One Block Slider ===1 === - All in One Block Slider === 2 2 Contributors: binsaifullah 3 Tags: slider, gutenberg block, customblock, block slider, gutenberg slider3 Tags: slider, block, block slider, gutenberg slider 4 4 Requires at least: 6.5 5 Tested up to: 6.5. 36 Stable tag: 2.7. 25 Tested up to: 6.5. 6 Stable tag: 2.7. 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 GutSlideris a custom Gutenberg Block that allows you to create a slider or carousel easily. You don't need to have any coding knowledge.11 is a custom Gutenberg Block that allows you to create a slider or carousel easily. You don't need to have any coding knowledge. 12 12 13 13 == Description == 14 GutSlideris a custom Gutenberg Block that allows you to create a slider or carousel easily. You don't need to have any coding knowledge. It is fast and light-weight. It only loads scripts on the pages where the block is used. It is highly customizable. You can use it with any theme. It is compatible with any of the WordPress themes.14 is a custom Gutenberg Block that allows you to create a slider or carousel easily. You don't need to have any coding knowledge. It is fast and light-weight. It only loads scripts on the pages where the block is used. It is highly customizable. You can use it with any theme. It is compatible with any of the WordPress themes. 15 15 16 16 ### Video Tutorial … … 36 36 * Slide Any Content Slider/Carousel Block 37 37 * Testimonial Slider Block 38 * Post Slider/Carousel Block39 38 * Photo Carousel Block 40 39 * Logo Carousel Block … … 72 71 73 72 == Changelog == 73 74 74 75 = 2.7.2 = 75 76 * Added: Quick Sidebar Setting open option added … … 79 80 = 2.7.0 = 80 81 * Added: New Videos Carousel Block 81 * Updated: GutSliderlogo updated82 * Updated: logo updated 82 83 83 84 = 2.6.1 = -
slider-blocks/trunk/slider-blocks.php
r3094040 r3115828 1 1 <?php 2 2 /** 3 * Plugin Name: GutSlider - All in One Block Slider4 * Description: A collection of custom Gutenberg Slider Blocks to slide your post or customcontent.5 * Requires at least: 5.76 * Requires PHP: 7. 07 * Version: 2.7. 23 * Plugin Name: 4 * Description: A collection of custom Gutenberg Slider Blocks to slide your content. 5 * Requires at least: 6 * Requires PHP: 7. 7 * Version: 2.7. 8 8 * Author: Zakaria Binsaifullah 9 9 * Author URI: https://makegutenblock.com … … 45 45 */ 46 46 private function define_constants() { 47 define( 'GUTSLIDER_VERSION', '2.7. 2' );47 define( 'GUTSLIDER_VERSION', '2.7.' ); 48 48 define( 'GUTSLIDER_URL', plugin_dir_url( __FILE__ ) ); 49 49 define('GUTSLIDER_DIR_PATH', plugin_dir_path(__FILE__));
Note: See TracChangeset
for help on using the changeset viewer.