diff --git a/chat/templates/scroll to bottom.zip b/chat/templates/scroll to bottom.zip new file mode 100644 index 0000000..a74f9f1 Binary files /dev/null and b/chat/templates/scroll to bottom.zip differ diff --git a/chat/templates/scroll to bottom/pc-scroll-to-top-qg1e/README.md b/chat/templates/scroll to bottom/pc-scroll-to-top-qg1e/README.md new file mode 100644 index 0000000..de59814 --- /dev/null +++ b/chat/templates/scroll to bottom/pc-scroll-to-top-qg1e/README.md @@ -0,0 +1,36 @@ +# Scroll to Top - WordPress Plugin + +A customizable scroll-to-top button for WordPress websites. + +## Installation + +1. Upload the `scroll-to-top-qg1e` folder to your WordPress `/wp-content/plugins/` directory +2. Activate the plugin through the "Plugins" menu in WordPress +3. Configure settings via **Settings > Scroll to Top** + +## Features + +- **Three Button Styles**: Circle, Arrow, or Text ("Top") +- **Custom Colors**: Choose background and text/icon colors +- ** Adjustable Size**: Small, Medium, or Large +- **Position Options**: Bottom-right or Bottom-left +- **Mobile Toggle**: Show or hide on mobile devices +- **Smooth Scrolling**: Animated scroll to top +- **Live Preview**: See changes in real-time in the admin panel + +## How It Works + +The button appears automatically when visitors scroll down the page (after 200px). Clicking it smoothly scrolls to the top of the page. + +## Files + +- `scroll-to-top.php` - Main plugin file +- `admin/settings-page.php` - Settings page HTML +- `assets/admin.css` - Admin panel styles +- `assets/admin.js` - Admin panel JavaScript with live preview +- `assets/frontend.css` - Frontend button styles +- `assets/frontend.js` - Frontend scroll functionality + +## License + +GPL v2 or later diff --git a/chat/templates/scroll to bottom/pc-scroll-to-top-qg1e/admin/settings-page.php b/chat/templates/scroll to bottom/pc-scroll-to-top-qg1e/admin/settings-page.php new file mode 100644 index 0000000..6903c35 --- /dev/null +++ b/chat/templates/scroll to bottom/pc-scroll-to-top-qg1e/admin/settings-page.php @@ -0,0 +1,105 @@ + get_option('scroll_to_top_style', 'circle'), + 'bg_color' => get_option('scroll_to_top_bg_color', '#333333'), + 'text_color' => get_option('scroll_to_top_text_color', '#ffffff'), + 'size' => get_option('scroll_to_top_size', 'medium'), + 'position' => get_option('scroll_to_top_position', 'bottom-right'), + 'show_mobile' => get_option('scroll_to_top_show_mobile', '1'), +); +?> + +
Scroll down to see the button appear:
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
+Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
+Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
+