From: Anthony Talarico Date: Sun, 20 Oct 2019 00:32:10 +0000 (-0400) Subject: adding social media view file, adding font awesome support X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=31bcc15bad05db7d48fad1d65638e56349f9dafa;p=WP-Plugins%2Fglm-client-info.git adding social media view file, adding font awesome support --- diff --git a/controllers/Admin.php b/controllers/Admin.php index d1cae88..1027108 100644 --- a/controllers/Admin.php +++ b/controllers/Admin.php @@ -312,6 +312,31 @@ class Glmclientinfo_Admin_Controller 'label' => 'Extra Content', 'type' => 'textarea' ), + array( + 'name' => 'facebook', + 'label' => 'Facebook', + 'type' => 'text' + ), + array( + 'name' => 'twitter', + 'label' => 'Twitter', + 'type' => 'text' + ), + array( + 'name' => 'instagram', + 'label' => 'Instagram', + 'type' => 'text' + ), + array( + 'name' => 'youtube', + 'label' => 'Youtube', + 'type' => 'text' + ), + array( + 'name' => 'pinterest', + 'label' => 'Pinterest', + 'type' => 'text' + ), ); $fieldNames2 = array( array( @@ -413,7 +438,7 @@ class Glmclientinfo_Admin_Controller $states = get_option(GLM_CLEINTINFO_STATES); include $this->path . 'views/stateSelect.php'; } - + public function glmclientinfo_settings_section_callback() { // echo __('Business Name, Address and phone numbers', 'wordpress'); @@ -436,6 +461,7 @@ class Glmclientinfo_Admin_Controller public function load_stylesheet() { wp_enqueue_style('client-admin-css',plugins_url('glm-client-info/css/admin/admin.css' , $this->pluginDirName)); + wp_enqueue_style("glm-fontawesome", "https://use.fontawesome.com/releases/v5.5.0/css/all.css"); } public function load_script() { @@ -447,6 +473,5 @@ class Glmclientinfo_Admin_Controller 'all' ); wp_enqueue_script('client-info-admin-js'); - } } diff --git a/controllers/Front.php b/controllers/Front.php index 5cff1a7..d12849f 100644 --- a/controllers/Front.php +++ b/controllers/Front.php @@ -46,6 +46,7 @@ class Glmclientinfo_Front_controller { $this->path = $path; add_action('widgets_init', array($this, 'glmclientinfo_register_widget')); + add_action('wp_enqueue_scripts', array($this, 'load_script')); } /** @@ -56,5 +57,8 @@ class Glmclientinfo_Front_controller include $this->path . 'models/Glmclientinfo_Widget.php'; register_widget('Glmclientinfo_Widget'); } - + public function load_script() + { + wp_enqueue_style("glm-fontawesome", "https://use.fontawesome.com/releases/v5.5.0/css/all.css"); + } } diff --git a/views/footer.php b/views/footer.php index 98afe60..a259f99 100644 --- a/views/footer.php +++ b/views/footer.php @@ -1,7 +1,8 @@