From 12819aa9c35d753ab394abb0c1a8a29345300d12 Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Mon, 2 Aug 2021 20:22:37 -0400 Subject: [PATCH] Added Patreon and PayPal social media options --- functions.php | 9 ++++++--- functions/customizer.php | 25 +++++++++++++++++++++++++ functions/template-tags.php | 10 ++++++++++ style.css | 6 ++++++ 4 files changed, 47 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 0ed4a99..9b4d06f 100755 --- a/functions.php +++ b/functions.php @@ -119,11 +119,11 @@ add_action( 'widgets_init', 'portage_widgets_init' ); */ function portage_scripts() { wp_enqueue_style( 'portage-googlefont', 'https://fonts.googleapis.com/css?family=IM+Fell+English:400,400italic', 'portage-style', wp_get_theme() -> get( 'Version' ), 'all' ); - +/* if ( !wp_style_is( 'font-awesome.min.css', 'enqueued' ) ) { wp_enqueue_style( 'portage-fa', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', 'portage-style', wp_get_theme() -> get( 'Version' ), 'all' ); } - +*/ wp_enqueue_style( 'portage-style', get_stylesheet_uri() ); wp_enqueue_style( 'portage-menus', get_template_directory_uri() . '/styles/menus.css', array( 'portage-style' ), wp_get_theme() -> get( 'Version' ) ); @@ -135,13 +135,16 @@ if ( !wp_style_is( 'font-awesome.min.css', 'enqueued' ) ) { wp_enqueue_script( 'portage-menumaker', get_template_directory_uri() . '/js/menumaker.js', array( 'jquery' ), wp_get_theme() -> get( 'Version' ), true ); wp_enqueue_script( 'portage-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), wp_get_theme() -> get( 'Version' ), true ); - + + wp_enqueue_script( 'portage-font-awesome', 'https://kit.fontawesome.com/7a45e15014.js', array(), wp_get_theme() -> get( 'Version' ), true ); + if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'portage_scripts' ); + /** * Enable live changes in the customizer */ diff --git a/functions/customizer.php b/functions/customizer.php index 3fc1ed0..4701365 100755 --- a/functions/customizer.php +++ b/functions/customizer.php @@ -642,6 +642,31 @@ $default_copyright = ''; } + $afpa = get_theme_mod( 'portage_patreon' ); + if ( !empty( $afpa ) ) { + echo ''; + } + + $afpp = get_theme_mod( 'portage_paypal' ); + if ( !empty( $afpp ) ) { + echo ''; + } + } diff --git a/style.css b/style.css index 0056002..27bf83b 100755 --- a/style.css +++ b/style.css @@ -649,6 +649,12 @@ ul#footermenu-ul { #social-media-menu a.sm-amazon:hover { color: #F3A847; } +#social-media-menu a.sm-patreon:hover { + color: #f96854; +} +#social-media-menu a.sm-paypal:hover { + color: #3b7bbf; +} /**********************************/ /* 14. Required by WordPress */