ams_get_option( 'msv_amspstt_page_scroll_back_to_top_advanced', 'time_to_scroll', '1000' ), 'show_after_px' => ams_get_option( 'msv_amspstt_page_scroll_back_to_top_advanced', 'show_after_px', '100' ), 'icon_type' => ams_get_option( 'msv_amspsbtt_page_scroll_back_to_top_icon', 'icon_type', 'preset' ), 'icon_bg_hover_color' => ams_get_option( 'msv_amspsbtt_page_scroll_back_to_top_style', 'icon_bg_hover_color', '' ), 'icon_fg_hover_color' => ams_get_option( 'msv_amspsbtt_page_scroll_back_to_top_style', 'icon_fg_hover_color', '' ), 'text_bg_hover_color' => ams_get_option( 'msv_amspsbtt_page_scroll_back_to_top_style', 'text_bg_hover_color', '' ), 'text_fg_hover_color' => ams_get_option( 'msv_amspsbtt_page_scroll_back_to_top_style', 'text_fg_hover_color', '' ), 'icon_bg_color' => ams_get_option( 'msv_amspsbtt_page_scroll_back_to_top_style', 'icon_bg_color', '' ), 'icon_fg_color' => ams_get_option( 'msv_amspsbtt_page_scroll_back_to_top_style', 'icon_fg_color', '' ), 'text_bg_color' => ams_get_option( 'msv_amspsbtt_page_scroll_back_to_top_style', 'text_bg_color', '' ), 'text_fg_color' => ams_get_option( 'msv_amspsbtt_page_scroll_back_to_top_style', 'text_fg_color', '' ), 'image_hover_opacity' => ams_get_option( 'msv_amspsbtt_page_scroll_back_to_top_style', 'image_hover_opacity', '' ), 'image_opacity' => ams_get_option( 'msv_amspsbtt_page_scroll_back_to_top_style', 'image_opacity', '' ), ); wp_localize_script( 'msv-amspsbtt-page-scroll-inline-script', 'ams_psbtt', $ams_psbtt_translation_array ); // Enqueued script with localized data. wp_enqueue_script( 'msv-amspsbtt-page-scroll-inline-script' ); wp_register_style( 'msv-amspsbtt-page-scroll-font-awesome', plugins_url( '/assets/css/font-awesome.min.css', MSV_AMSPSBTT_PAGE_SCROLL_BACK_TO_TOP ), array(), '4.6.3'); wp_enqueue_style( 'msv-amspsbtt-page-scroll-font-awesome' ); function font_style() { $textfontstyle = ams_get_option( 'msv_amspsbtt_page_scroll_back_to_top_icon', 'text_font_style', 'normal' ); if ( 'normal' == $textfontstyle ) { return "font-weight: normal; font-style: normal;"; } elseif ( 'bold' == $textfontstyle ) { return "font-weight: bold; font-style: normal;"; } elseif ( 'italic' == $textfontstyle ) { return 'font-weight: normal;; font-style: italic;'; } elseif ( 'bolditalic' == $textfontstyle ) { return 'font-weight: bold; font-style: italic;'; } } function font_family_name() { $textfontfamily = ams_get_option( 'msv_amspsbtt_page_scroll_back_to_top_icon', 'text_font_family', '' ); if ( 'anton' == $textfontfamily ) { $query_args = array( 'family' => 'Anton', 'subset' => 'latin,latin-ext', ); $fontname = 'Anton'; } elseif ( 'courgette' == $textfontfamily ) { $query_args = array( 'family' => 'Courgette', 'subset' => 'latin,latin-ext', ); $fontname = 'Courgette'; } elseif ( 'cabin' == $textfontfamily ) { $query_args = array( 'family' => 'Cabin:400,700', 'subset' => 'latin,latin-ext', ); $fontname = 'Cabin'; } elseif ( 'opensans' == $textfontfamily ) { $query_args = array( 'family' => 'Open+Sans:400,700', 'subset' => 'latin,latin-ext', ); $fontname = 'Open Sans'; } elseif ( 'oswald' == $textfontfamily ) { $query_args = array( 'family' => 'Oswald:400,700', 'subset' => 'latin,latin-ext', ); $fontname = 'Oswald'; } elseif ( 'poiretone' == $textfontfamily ) { $query_args = array( 'family' => 'Poiret+One', 'subset' => 'latin,latin-ext', ); $fontname = 'Poiret One'; } elseif ( 'permanentmarker' == $textfontfamily ) { $query_args = array( 'family' => 'Permanent+Marker', 'subset' => 'latin,latin-ext', ); $fontname = 'Permanent Marker'; } elseif ( 'roboto' == $textfontfamily ) { $query_args = array( 'family' => 'Roboto:400,700', 'subset' => 'latin,latin-ext', ); $fontname = 'Roboto'; } elseif ( 'shrikhand' == $textfontfamily ) { $query_args = array( 'family' => 'Shrikhand', 'subset' => 'latin,latin-ext', ); $fontname = 'Shrikhand'; } elseif ( 'teko' == $textfontfamily ) { $query_args = array( 'family' => 'Teko:400,700', 'subset' => 'latin,latin-ext', ); $fontname = 'Teko'; } wp_register_style( 'ams_psbtt_google_fonts', add_query_arg( $query_args, "http://fonts.googleapis.com/css" ), array(), null ); wp_enqueue_style( 'ams_psbtt_google_fonts' ); return $fontname; }