PluginProbe
Social Share Buttons / 0.9
Social Share Buttons v0.9
trunk 0.9 1.0 1.1 1.1.1 1.1.2 1.10 1.11 1.12 1.15 1.16 1.17 1.18 1.19 1.2 1.20 1.3 1.30 1.4 1.5 1.6 1.7 1.8 1.9
share-button / classes / class-share.php

class-share.php in Social Share Buttons 0.9, at classes/class-share.php

49 lines 580 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace MBSocial;
3
4 /* Elements of sharing functionality */
5 class Share
6 {
7
8 public function __construct($id = 0)
9 {
10
11
12 }
13
14 public function save($post)
15 {
16 $fields = sanitize_text_field($post['defined_fields']);
17
18 $fields = explode(',', $fields);
19
20 $data = array();
21
22 foreach($fields as $field_name)
23 {
24
25 $field_value = isset($post[$field]) ? sanitize_text_field($post[$field]) : false;
26 $data[$field_name] = $field_value;
27 }
28
29 // save here
30 }
31
32 public function load()
33 {
34
35 }
36
37 public function getDataItem($item)
38 {
39
40 }
41
42
43
44
45
46
47
48 }
49