PluginProbe
Powerkit – Supercharge your WordPress Site / 2.3.4
Powerkit – Supercharge your WordPress Site v2.3.4
3.1.1 3.1.0 3.0.9 3.0.8 trunk 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 All 87 releases
powerkit / modules / social-links / public / class-powerkit-social-links-public.php

class-powerkit-social-links-public.php in Powerkit – Supercharge your WordPress Site 2.3.4, at modules/social-links/public/class-powerkit-social-links-public.php

113 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The public-facing functionality of the module.
4 *
5 * @link https://codesupply.co
6 * @since 1.0.0
7 *
8 * @package Powerkit
9 * @subpackage Modules/public
10 */
11
12 /**
13 * The public-facing functionality of the module.
14 */
15 class Powerkit_Social_Links_Public extends Powerkit_Module_Public {
16
17 /**
18 * Initialize
19 */
20 public function initialize() {
21 add_filter( 'powerkit_social_links_templates', array( $this, 'templates_default' ) );
22 add_filter( 'powerkit_social_links_color_schemes', array( $this, 'schemes_default' ) );
23 }
24
25 /**
26 * Filter Register Templates
27 *
28 * @param array $templates List of Templates.
29 */
30 public function templates_default( $templates = array() ) {
31 $templates = array(
32 'inline' => array(
33 'name' => 'Inline',
34 ),
35 'col-2' => array(
36 'name' => '2 columns',
37 ),
38 'col-3' => array(
39 'name' => '3 columns',
40 ),
41 'col-4' => array(
42 'name' => '4 columns',
43 ),
44 'col-5' => array(
45 'name' => '5 columns',
46 ),
47 'col-6' => array(
48 'name' => '6 columns',
49 ),
50 'vertical' => array(
51 'name' => 'Vertical List',
52 ),
53 'nav' => array(
54 'name' => 'Navigation',
55 'public' => false,
56 ),
57 );
58
59 return $templates;
60 }
61
62 /**
63 * Filter Register Color Schemes
64 *
65 * @param array $schemes List of Color Schemes.
66 */
67 public function schemes_default( $schemes = array() ) {
68
69 $schemes = array(
70 'light' => array(
71 'name' => 'Light',
72 ),
73 'bold' => array(
74 'name' => 'Bold',
75 ),
76 'inverse' => array(
77 'name' => 'Inverse',
78 ),
79 'light-bg' => array(
80 'name' => 'Light Background',
81 ),
82 'bold-bg' => array(
83 'name' => 'Bold Background',
84 ),
85 'dark-bg' => array(
86 'name' => 'Dark Background',
87 ),
88 'light-rounded' => array(
89 'name' => 'Light Rounded',
90 ),
91 'bold-rounded' => array(
92 'name' => 'Bold Rounded',
93 ),
94 'dark-rounded' => array(
95 'name' => 'Dark Rounded',
96 ),
97 );
98
99 return $schemes;
100 }
101
102
103 /**
104 * Register the stylesheets for the public-facing side of the site.
105 */
106 public function wp_enqueue_scripts() {
107 wp_enqueue_style( 'powerkit-social-links', powerkit_style( plugin_dir_url( __FILE__ ) . 'css/public-powerkit-social-links.css' ), array(), powerkit_get_setting( 'version' ), 'all' );
108
109 // Add RTL support.
110 wp_style_add_data( 'powerkit-social-links', 'rtl', 'replace' );
111 }
112 }
113