Settings'; array_unshift($links, $settings_link); return $links; } $plugin = plugin_basename(__FILE__); add_filter("plugin_action_links_$plugin", 'daq_tss_plugin_settings_link' ); // Default Options register_activation_hook( __FILE__, 'daq_tss_activate' ); function daq_tss_activate() { add_option('daq_sttp_enable','1'); add_option('daq_sttp_icon','5'); add_option('daq_sttp_icon_size','2'); add_option('daq_sttp_icon_color','#FFFFFF'); add_option('daq_sttp_icon_hover_color','#DD3333'); add_option('daq_sttp_background_color','#CCCCCC'); add_option('daq_sttp_background_hover_color','#EEEE22'); add_option('daq_sttp_button_radius','25'); add_option('daq_sttp_button_position','3'); add_option('daq_sttp_button_margin_left','0'); add_option('daq_sttp_button_margin_right','20'); add_option('daq_sttp_button_margin_bottom','20'); add_option('daq_stid_enable','0'); add_option('daq_pssc_enable','0'); } // Enque CSS and Scripts Admin Page Only function daq_tss_custom_wp_admin_style($hook) { // Load only on ?page=tags-categories if($hook != 'toplevel_page_smooth-scroll') { return; } wp_enqueue_style( 'custom_wp_admin_css', plugins_url('css/style.css', __FILE__) ); wp_enqueue_style( 'wp-color-picker'); wp_enqueue_style('font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', FALSE, NULL); wp_enqueue_script('color-picker-js',plugins_url('js/color-picker.js',__FILE__),array( 'wp-color-picker' )); } add_action( 'admin_enqueue_scripts', 'daq_tss_custom_wp_admin_style' ); // Enque Scroll To Top CSS and Scripts function daq_tss_scroll_to_top_files() { $daq_sttp_enable = get_option('daq_sttp_enable'); if ($daq_sttp_enable == 1): wp_enqueue_style('font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', FALSE, NULL); wp_enqueue_script('scroller-to-top',plugins_url('js/scroll-to-top.js',__FILE__),array( 'jquery' )); endif; } add_action( 'init', 'daq_tss_scroll_to_top_files' ); // Enque Scroll To ID JS function daq_tss_scroll_to_id_files() { $daq_stid_enable = get_option('daq_stid_enable'); if ($daq_stid_enable == 1) : wp_enqueue_script('scroll-to-id',plugins_url('js/scroll-to-id.js',__FILE__),array( 'jquery' )); endif; } add_action( 'init', 'daq_tss_scroll_to_id_files' ); // Enque Page Smooth Scrolling JS function daq_tss_page_smooth_files() { $daq_pssc_enable = get_option('daq_pssc_enable'); if ($daq_pssc_enable == 1) : wp_enqueue_script('scrollSpeed',plugins_url('js/jQuery.scrollSpeed.js',__FILE__),array( 'jquery' )); wp_enqueue_script('page-smooth-scroll',plugins_url('js/page-smooth-scroll.js',__FILE__),array( 'jquery' )); endif; } add_action( 'wp_footer', 'daq_tss_page_smooth_files' ); // Save Settings add_action('admin_init', 'daq_tss_reg_function' ); function daq_tss_reg_function() { register_setting( 'daq-settings-group-sttp', 'daq_sttp_enable' ); register_setting( 'daq-settings-group-sttp', 'daq_sttp_icon' ); register_setting( 'daq-settings-group-sttp', 'daq_sttp_icon_size' ); register_setting( 'daq-settings-group-sttp', 'daq_sttp_icon_color' ); register_setting( 'daq-settings-group-sttp', 'daq_sttp_icon_hover_color' ); register_setting( 'daq-settings-group-sttp', 'daq_sttp_background_color' ); register_setting( 'daq-settings-group-sttp', 'daq_sttp_background_hover_color' ); register_setting( 'daq-settings-group-sttp', 'daq_sttp_button_radius' ); register_setting( 'daq-settings-group-sttp', 'daq_sttp_button_position' ); register_setting( 'daq-settings-group-sttp', 'daq_sttp_button_margin_left' ); register_setting( 'daq-settings-group-sttp', 'daq_sttp_button_margin_right' ); register_setting( 'daq-settings-group-sttp', 'daq_sttp_button_margin_bottom' ); register_setting( 'daq-settings-group-stid', 'daq_stid_enable' ); register_setting( 'daq-settings-group-pssc', 'daq_pssc_enable' ); } //Display styles in Head (Theme) add_action('wp_head',"daq_tss_scroll_to_top_style_add_head"); function daq_tss_scroll_to_top_style_add_head(){ $daq_sttp_icon_color = get_option('daq_sttp_icon_color'); $daq_sttp_icon_hover_color =get_option('daq_sttp_icon_hover_color'); $daq_sttp_background_color = get_option('daq_sttp_background_color'); $daq_sttp_background_hover_color = get_option('daq_sttp_background_hover_color'); $daq_sttp_button_radius = get_option('daq_sttp_button_radius'); $daq_sttp_button_position = get_option('daq_sttp_button_position'); $daq_sttp_button_margin_left = get_option('daq_sttp_button_margin_left'); $daq_sttp_button_margin_right = get_option('daq_sttp_button_margin_right'); $daq_sttp_button_margin_bottom = get_option('daq_sttp_button_margin_bottom'); include 'css/style.php'; } // Display Enable (Checked) function daq_tss_scroll_to_top_verify_enable() { $enable = get_option('daq_sttp_enable'); if ($enable == 1) { echo "checked=\"checked\""; } } function daq_tss_scroll_to_top_verify_disable() { $enable = get_option('daq_sttp_enable'); if ($enable == 0) { echo "checked=\"checked\""; } } // Display Icon (Checked) function daq_tss_scroll_to_top_verify_icon_one() { $enable = get_option('daq_sttp_icon'); if ($enable == 1) { echo "checked=\"checked\""; } } function daq_tss_scroll_to_top_verify_icon_two() { $enable = get_option('daq_sttp_icon'); if ($enable == 2) { echo "checked=\"checked\""; } } function daq_tss_scroll_to_top_verify_icon_three() { $enable = get_option('daq_sttp_icon'); if ($enable == 3) { echo "checked=\"checked\""; } } function daq_tss_scroll_to_top_verify_icon_four() { $enable = get_option('daq_sttp_icon'); if ($enable == 4) { echo "checked=\"checked\""; } } function daq_tss_scroll_to_top_verify_icon_five() { $enable = get_option('daq_sttp_icon'); if ($enable == 5) { echo "checked=\"checked\""; } } // Display Button Position (Checked) function daq_tss_scroll_to_top_button_position_one() { $enable = get_option('daq_sttp_button_position'); if ($enable == 1) { echo "checked=\"checked\""; } } function daq_tss_scroll_to_top_button_position_two() { $enable = get_option('daq_sttp_button_position'); if ($enable == 2) { echo "checked=\"checked\""; } } function daq_tss_scroll_to_top_button_position_three() { $enable = get_option('daq_sttp_button_position'); if ($enable == 3) { echo "checked=\"checked\""; } } // Display Selected Icon Size (Selected) function daq_tss_scroll_to_top_icon_size_one() { $enable = get_option('daq_sttp_icon_size'); if ($enable == 1) { echo "selected=\"selected\""; } } function daq_tss_scroll_to_top_icon_size_two() { $enable = get_option('daq_sttp_icon_size'); if ($enable == 2) { echo "selected=\"selected\""; } } function daq_tss_scroll_to_top_icon_size_three() { $enable = get_option('daq_sttp_icon_size'); if ($enable == 3) { echo "selected=\"selected\""; } } // Display Enable (Checked) ////// stid function daq_tss_scroll_to_id_verify_enable() { $enable = get_option('daq_stid_enable'); if ($enable == 1) { echo "checked=\"checked\""; } } function daq_tss_scroll_to_id_verify_disable() { $enable = get_option('daq_stid_enable'); if ($enable == 0) { echo "checked=\"checked\""; } } // Display Enable (Checked) ///////pssc function daq_tss_page_scroll_verify_enable() { $enable = get_option('daq_pssc_enable'); if ($enable == 1) { echo "checked=\"checked\""; } } function daq_tss_page_scroll_verify_disable() { $enable = get_option('daq_pssc_enable'); if ($enable == 0) { echo "checked=\"checked\""; } } // HTML Structure For Theme Files function daq_tss_html_structure(){ $daq_sttp_enable = get_option('daq_sttp_enable'); $daq_sttp_icon = get_option('daq_sttp_icon'); $daq_sttp_icon_size = get_option('daq_sttp_icon_size'); $daq_sttp_icon_color = get_option('daq_sttp_icon_color'); $daq_sttp_icon_hover_color =get_option('daq_sttp_icon_hover_color'); $daq_sttp_background_color = get_option('daq_sttp_background_color'); $daq_sttp_background_hover_color = get_option('daq_sttp_background_hover_color'); $daq_sttp_button_radius = get_option('daq_sttp_button_radius'); $daq_sttp_button_position = get_option('daq_sttp_button_position'); $daq_sttp_button_margin_left = get_option('daq_sttp_button_margin_left'); $daq_sttp_button_margin_right = get_option('daq_sttp_button_margin_right'); $daq_sttp_button_margin_bottom = get_option('daq_sttp_button_margin_bottom'); if ($daq_sttp_enable == 1) : ?>

Thank you for using our plugin Top Smooth Scroll! We hope the plugin works as stated and you liked this plugin, for any support or feedback, Please visit our website.


Also You May Check Our Latest News & Blog Updates Below:

'; wp_widget_rss_output(array( // CHANGE THE URL BELOW TO THAT OF YOUR FEED 'url' => 'http://feeds.feedburner.com/DigitalAdQuest', // CHANGE 'OrganicWeb News' BELOW TO THE NAME OF YOUR WIDGET 'title' => 'Digital Ad Quest Updates', // CHANGE '2' TO THE NUMBER OF FEED ITEMS YOU WANT SHOWING 'items' => 3, // CHANGE TO '0' IF YOU ONLY WANT THE TITLE TO SHOW 'show_summary' => 1, // CHANGE TO '1' TO SHOW THE AUTHOR NAME 'show_author' => 0, // CHANGE TO '1' TO SHOW THE PUBLISH DATE 'show_date' => 1 )); echo ""; } // Setting Form For Admin function daq_tss_menu_function() { ?>

Top Smooth Scroll

Add Smooth Scroll To Top, To ID And Page Smooth Scrolling

__("Smooth Scroll To Top", 'subh-lite'), 'scroll_to_id' => __("Smooth Scroll To ID", 'subh-lite'), 'page_smooth_scroll' => __("Page Smooth Scrolling", 'subh-lite') ); $html = ''; echo $html; } ?>
Enable Scroll To Top
Choose Icon
Icon Size
Icon Color
Icon Hover Color
BackGround Color
BackGround Hover Color
Button Radius (px)

Round Button: Enter 20 for small button, 25 for medium button, 35 for large button.
Button Position
Button Margin (px)

Remember: Entering "0" will set as "margin-xxxxx:0px" for respective button position.

Enable Scroll To ID

Note:
  1. It enables smooth scroll to the links with in the pages.
  2. For Ex. <a href="#one">One</a> to <div id="one">First Element</div>

Enable Scroll To ID

Note:
  1. Just enable this, No more settings needed.
  2. This enables smooth scroll to mouse scrolling.

'; ?>

Thank you for using our plugin! We hope the plugin works as stated and you liked this plugin, for any support or feedback, Please visit our website.

View Our Other Plugins

Download WordPress Themes

Visit Our Website