@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | public function get_edit_url(array $post_data, array $topic_data, $cp_mode = '') |
| 54 | 54 | { |
| 55 | 55 | $cp_param = $this->get_cp_param($post_data, $topic_data, $cp_mode); |
| 56 | - return ($this->edit_allowed($post_data, $topic_data)) ? append_sid("{$this->phpbb_root_path}posting.$this->php_ext", "mode=edit&f={$topic_data['forum_id']}&p={$post_data['post_id']}" . $cp_param) : ''; |
|
| 56 | + return ($this->edit_allowed($post_data, $topic_data)) ? append_sid("{$this->phpbb_root_path}posting.$this->php_ext", "mode=edit&f={$topic_data['forum_id']}&p={$post_data['post_id']}".$cp_param) : ''; |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | public function get_delete_url(array $post_data, array $topic_data, $cp_mode = '') |
| 66 | 66 | { |
| 67 | 67 | $cp_param = $this->get_cp_param($post_data, $topic_data, $cp_mode); |
| 68 | - return ($this->delete_allowed($post_data, $topic_data)) ? append_sid("{$this->phpbb_root_path}posting.$this->php_ext", 'mode=' . (($this->softdelete_allowed($post_data)) ? 'soft_delete' : 'delete') . "&f={$post_data['forum_id']}&p={$post_data['post_id']}" . $cp_param) : ''; |
|
| 68 | + return ($this->delete_allowed($post_data, $topic_data)) ? append_sid("{$this->phpbb_root_path}posting.$this->php_ext", 'mode='.(($this->softdelete_allowed($post_data)) ? 'soft_delete' : 'delete')."&f={$post_data['forum_id']}&p={$post_data['post_id']}".$cp_param) : ''; |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | */ |
| 94 | 94 | public function get_print_topic_url(array $topic_data) |
| 95 | 95 | { |
| 96 | - return ($this->auth->acl_get('f_print', $topic_data['forum_id'])) ? $topic_data['topic_url'] . '?view=print' : ''; |
|
| 96 | + return ($this->auth->acl_get('f_print', $topic_data['forum_id'])) ? $topic_data['topic_url'].'?view=print' : ''; |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /** |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | public function get_email_topic_url(array $topic_data) |
| 104 | 104 | { |
| 105 | - return ($this->auth->acl_get('f_email', $topic_data['forum_id']) && $this->config['email_enable']) ? append_sid("{$this->phpbb_root_path}memberlist.{$this->php_ext}", 'mode=email&t=' . $topic_data['topic_id']) : ''; |
|
| 105 | + return ($this->auth->acl_get('f_email', $topic_data['forum_id']) && $this->config['email_enable']) ? append_sid("{$this->phpbb_root_path}memberlist.{$this->php_ext}", 'mode=email&t='.$topic_data['topic_id']) : ''; |
|
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | /** |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | public function get_search_users_posts_url($forum_id, $username) |
| 114 | 114 | { |
| 115 | - return append_sid("{$this->phpbb_root_path}search.{$this->php_ext}", "author={$username}&" . urlencode('fid[]') . "=$forum_id&sc=0&sf=titleonly&sr=topics"); |
|
| 115 | + return append_sid("{$this->phpbb_root_path}search.{$this->php_ext}", "author={$username}&".urlencode('fid[]')."=$forum_id&sc=0&sf=titleonly&sr=topics"); |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | /** |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | public function get_info_url(array $post_data) |
| 123 | 123 | { |
| 124 | 124 | $forum_id = $post_data['forum_id']; |
| 125 | - return ($this->auth->acl_get('m_info', $forum_id)) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", "i=main&mode=post_details&f=$forum_id&p=" . $post_data['post_id'], true, $this->user->session_id) : ''; |
|
| 125 | + return ($this->auth->acl_get('m_info', $forum_id)) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", "i=main&mode=post_details&f=$forum_id&p=".$post_data['post_id'], true, $this->user->session_id) : ''; |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | /** |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | */ |
| 133 | 133 | public function get_approve_url(array $post_data, $viewtopic_url) |
| 134 | 134 | { |
| 135 | - return append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", "i=queue&p={$post_data['post_id']}&f={$post_data['forum_id']}&redirect=" . urlencode(str_replace('&', '&', $viewtopic_url . '&p=' . $post_data['post_id'] . '#p' . $post_data['post_id']))); |
|
| 135 | + return append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", "i=queue&p={$post_data['post_id']}&f={$post_data['forum_id']}&redirect=".urlencode(str_replace('&', '&', $viewtopic_url.'&p='.$post_data['post_id'].'#p'.$post_data['post_id']))); |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | /** |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | */ |
| 162 | 162 | public function get_mcp_report_url(array $post_data) |
| 163 | 163 | { |
| 164 | - return ($this->auth->acl_get('m_report', $post_data['forum_id'])) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=reports&mode=report_details&f=' . $post_data['forum_id'] . '&p=' . $post_data['post_id'], true, $this->user->session_id) : ''; |
|
| 164 | + return ($this->auth->acl_get('m_report', $post_data['forum_id'])) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=reports&mode=report_details&f='.$post_data['forum_id'].'&p='.$post_data['post_id'], true, $this->user->session_id) : ''; |
|
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | /** |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | */ |
| 172 | 172 | public function get_mcp_restore_url(array $post_data, array $topic_data) |
| 173 | 173 | { |
| 174 | - return ($this->auth->acl_get('m_approve', $post_data['forum_id'])) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=queue&mode=' . (($topic_data['topic_visibility'] != ITEM_DELETED) ? 'deleted_posts' : 'deleted_topics') . '&f=' . $post_data['forum_id'] . '&p=' . $post_data['post_id'], true, $this->user->session_id) : ''; |
|
| 174 | + return ($this->auth->acl_get('m_approve', $post_data['forum_id'])) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=queue&mode='.(($topic_data['topic_visibility'] != ITEM_DELETED) ? 'deleted_posts' : 'deleted_topics').'&f='.$post_data['forum_id'].'&p='.$post_data['post_id'], true, $this->user->session_id) : ''; |
|
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | /** |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | */ |
| 181 | 181 | public function get_notes_url(array $post_data) |
| 182 | 182 | { |
| 183 | - return ($this->auth->acl_getf_global('m_')) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=notes&mode=user_notes&u=' . $post_data['poster_id'], true, $this->user->session_id) : ''; |
|
| 183 | + return ($this->auth->acl_getf_global('m_')) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=notes&mode=user_notes&u='.$post_data['poster_id'], true, $this->user->session_id) : ''; |
|
| 184 | 184 | } |
| 185 | 185 | |
| 186 | 186 | /** |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | */ |
| 190 | 190 | public function get_warning_url(array $post_data) |
| 191 | 191 | { |
| 192 | - return ($this->auth->acl_get('m_warn') && !$this->user_is_poster($post_data['poster_id']) && $post_data['poster_id'] != ANONYMOUS) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=warn&mode=warn_post&f=' . $post_data['forum_id'] . '&p=' . $post_data['post_id'], true, $this->user->session_id) : ''; |
|
| 192 | + return ($this->auth->acl_get('m_warn') && !$this->user_is_poster($post_data['poster_id']) && $post_data['poster_id'] != ANONYMOUS) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=warn&mode=warn_post&f='.$post_data['forum_id'].'&p='.$post_data['post_id'], true, $this->user->session_id) : ''; |
|
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | /** |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | $cp_param = ''; |
| 243 | 243 | if ($topic_data['topic_first_post_id'] == $post_data['post_id']) |
| 244 | 244 | { |
| 245 | - $cp_param = '&cp=' . ((!$cp_mode) ? (($this->user_is_poster($post_data['poster_id'])) ? 'ucp' : 'mcp') : $cp_mode); |
|
| 245 | + $cp_param = '&cp='.((!$cp_mode) ? (($this->user_is_poster($post_data['poster_id'])) ? 'ucp' : 'mcp') : $cp_mode); |
|
| 246 | 246 | } |
| 247 | 247 | return $cp_param; |
| 248 | 248 | } |
@@ -222,8 +222,7 @@ |
||
| 222 | 222 | if ($topic_id) |
| 223 | 223 | { |
| 224 | 224 | $u_mcp = append_sid("{$this->phpbb_root_path}mcp.{$this->php_ext}", "i=mcp_main&mode=topic_view&f=$forum_id&t=$topic_id", true, $this->user->session_id); |
| 225 | - } |
|
| 226 | - else |
|
| 225 | + } else |
|
| 227 | 226 | { |
| 228 | 227 | $u_mcp = append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=-blitze-content-mcp-content_module&mode=content', true, $this->user->session_id); |
| 229 | 228 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * @param \phpbb\user $user User object |
| 26 | 26 | * @param string $phpbb_root_path Path to the phpbb includes directory. |
| 27 | 27 | * @param string $php_ext php file extension |
| 28 | - */ |
|
| 28 | + */ |
|
| 29 | 29 | public function __construct(\phpbb\auth\auth $auth, \phpbb\config\db $config, \phpbb\user $user, $phpbb_root_path, $php_ext) |
| 30 | 30 | { |
| 31 | 31 | parent::__construct($auth, $config, $user); |
@@ -94,14 +94,14 @@ |
||
| 94 | 94 | protected function get_data_overwrite($mode, $u_action, $type, $topic_id) |
| 95 | 95 | { |
| 96 | 96 | $overwrite = array( |
| 97 | - 'TOPIC_URL' => $u_action . '&do=view&type=' . $type . '&t=' . $topic_id, |
|
| 97 | + 'TOPIC_URL' => $u_action.'&do=view&type='.$type.'&t='.$topic_id, |
|
| 98 | 98 | 'U_INFO' => '', |
| 99 | 99 | ); |
| 100 | 100 | |
| 101 | 101 | if ($mode === 'mcp') |
| 102 | 102 | { |
| 103 | 103 | $redirect_url = urlencode(str_replace('&', '&', $u_action)); |
| 104 | - $overwrite['U_DELETE'] = append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'quickmod=1&action=delete_topic&t=' . $topic_id . '&redirect=' . $redirect_url); |
|
| 104 | + $overwrite['U_DELETE'] = append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'quickmod=1&action=delete_topic&t='.$topic_id.'&redirect='.$redirect_url); |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | return $overwrite; |
@@ -163,13 +163,13 @@ discard block |
||
| 163 | 163 | $topic_tracking_info = $this->forum->get_topic_tracking_info($forum_id); |
| 164 | 164 | $block_fields = $this->get_block_fields($entity->get_field_types()); |
| 165 | 165 | |
| 166 | - $this->fields->prepare_to_show($entity, array_keys($topics_data), $block_fields, $this->settings['block_tpl'], 'block', $block_id . '_block'); |
|
| 166 | + $this->fields->prepare_to_show($entity, array_keys($topics_data), $block_fields, $this->settings['block_tpl'], 'block', $block_id.'_block'); |
|
| 167 | 167 | |
| 168 | 168 | $update_count = array(); |
| 169 | 169 | foreach ($posts_data as $topic_id => $posts) |
| 170 | 170 | { |
| 171 | - $post_data = array_shift($posts); |
|
| 172 | - $topic_data = $topics_data[$topic_id]; |
|
| 171 | + $post_data = array_shift($posts); |
|
| 172 | + $topic_data = $topics_data[$topic_id]; |
|
| 173 | 173 | $this->ptemplate->assign_block_vars('topicrow', $this->fields->show($type, $topic_data, $post_data, $users_cache, $attachments, $update_count, $topic_tracking_info)); |
| 174 | 174 | } |
| 175 | 175 | unset($topics_data, $posts_data, $users_cache, $attachments, $topic_tracking_info); |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | POST_STICKY => 'CONTENT_STICKY_POSTS', |
| 197 | 197 | ); |
| 198 | 198 | |
| 199 | - return (isset($topic_types[$this->settings['topic_type']])) ? $topic_types[$this->settings['topic_types']] : $this->language->lang('CONTENT_' . $this->sort_options[$this->settings['sort_key']], $content_langname); |
|
| 199 | + return (isset($topic_types[$this->settings['topic_type']])) ? $topic_types[$this->settings['topic_types']] : $this->language->lang('CONTENT_'.$this->sort_options[$this->settings['sort_key']], $content_langname); |
|
| 200 | 200 | } |
| 201 | 201 | |
| 202 | 202 | /** |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | foreach ($content_types as $value => $title) |
| 264 | 264 | { |
| 265 | 265 | $selected = ($type == $value) ? ' selected="selected"' : ''; |
| 266 | - $html .= '<option value="' . $value . '"' . $selected . ' data-toggle-setting="#fields-col-' . $value . '">' . $title . '</option>'; |
|
| 266 | + $html .= '<option value="'.$value.'"'.$selected.' data-toggle-setting="#fields-col-'.$value.'">'.$title.'</option>'; |
|
| 267 | 267 | } |
| 268 | 268 | |
| 269 | 269 | return $html; |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | // Let's create the new BBCode |
| 43 | 43 | $configurator->BBCodes->addCustom( |
| 44 | 44 | '[pagebreak title={SIMPLETEXT;optional;postFilter=ucwords}]', |
| 45 | - '<p><!-- pagebreak --></p>' . |
|
| 45 | + '<p><!-- pagebreak --></p>'. |
|
| 46 | 46 | '<xsl:if test="@title"><h4>{SIMPLETEXT}</h4><br /></xsl:if>' |
| 47 | 47 | ); |
| 48 | 48 | } |
@@ -64,8 +64,8 @@ discard block |
||
| 64 | 64 | // smcf = sitemaker content field (hopefully unique enough) |
| 65 | 65 | $configurator->BBCodes->addCustom( |
| 66 | 66 | '[smcf={IDENTIFIER}]{TEXT}[/smcf]', |
| 67 | - "<!-- begin field -->\n" . |
|
| 68 | - "<div data-field=\"{IDENTIFIER}\">{TEXT}</div><br />\n" . |
|
| 67 | + "<!-- begin field -->\n". |
|
| 68 | + "<div data-field=\"{IDENTIFIER}\">{TEXT}</div><br />\n". |
|
| 69 | 69 | "<!-- end field -->\n" |
| 70 | 70 | ); |
| 71 | 71 | } |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | 'count' => $row['total'], |
| 80 | 80 | 'url' => $this->helper->route($info['route_name'], $info['route_params'] + array( |
| 81 | 81 | 'filter_type' => 'archive', |
| 82 | - 'filter_value' => $row['year'] . '-' . $row['month'], |
|
| 82 | + 'filter_value' => $row['year'].'-'.$row['month'], |
|
| 83 | 83 | )), |
| 84 | 84 | ); |
| 85 | 85 | } |
@@ -106,8 +106,7 @@ |
||
| 106 | 106 | 'route_name' => 'blitze_content_type_filter', |
| 107 | 107 | 'route_params' => array('type' => $this->content_types->get_forum_type($settings['forum_id'])), |
| 108 | 108 | ); |
| 109 | - } |
|
| 110 | - else |
|
| 109 | + } else |
|
| 111 | 110 | { |
| 112 | 111 | return array( |
| 113 | 112 | 'forum_ids' => array_keys($this->content_types->get_forum_types()), |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | * @param \phpbb\language\language $language Language object |
| 34 | 34 | * @param \blitze\content\services\types $content_types Content types object |
| 35 | 35 | * @param string $php_ext php file extension |
| 36 | - */ |
|
| 36 | + */ |
|
| 37 | 37 | public function __construct(\phpbb\controller\helper $helper, \phpbb\language\language $language, \blitze\content\services\types $content_types, $php_ext) |
| 38 | 38 | { |
| 39 | 39 | $this->helper = $helper; |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | */ |
| 86 | 86 | public function add_viewonline_location(\phpbb\event\data $event) |
| 87 | 87 | { |
| 88 | - if ($event['on_page'][1] == 'app' && strrpos($event['row']['session_page'], 'app.' . $this->php_ext . '/content/') === 0) |
|
| 88 | + if ($event['on_page'][1] == 'app' && strrpos($event['row']['session_page'], 'app.'.$this->php_ext.'/content/') === 0) |
|
| 89 | 89 | { |
| 90 | 90 | $types = join('|', $this->content_types->get_forum_types()); |
| 91 | 91 | preg_match("/\/content\/($types)(\/[0-9]\/.*)?/is", $event['row']['session_page'], $match); |
@@ -125,12 +125,12 @@ discard block |
||
| 125 | 125 | { |
| 126 | 126 | $list = $this->content_types->get_all_types(); |
| 127 | 127 | |
| 128 | - $text = $this->language->lang('CONTENT_TYPES') . '|' . $this->helper->route('blitze_content_types', array(), false, '', UrlGeneratorInterface::RELATIVE_PATH) . "\n"; |
|
| 128 | + $text = $this->language->lang('CONTENT_TYPES').'|'.$this->helper->route('blitze_content_types', array(), false, '', UrlGeneratorInterface::RELATIVE_PATH)."\n"; |
|
| 129 | 129 | |
| 130 | 130 | foreach ($list as $type => $entity) |
| 131 | 131 | { |
| 132 | - $text .= "\t" . $entity->get_content_langname() . '|'; |
|
| 133 | - $text .= $this->helper->route('blitze_content_type', array('type' => $type), false, '', UrlGeneratorInterface::RELATIVE_PATH) . "\n"; |
|
| 132 | + $text .= "\t".$entity->get_content_langname().'|'; |
|
| 133 | + $text .= $this->helper->route('blitze_content_type', array('type' => $type), false, '', UrlGeneratorInterface::RELATIVE_PATH)."\n"; |
|
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | return trim($text); |
@@ -138,7 +138,6 @@ |
||
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | /** |
| 141 | - * @param \phpbb\event\data $event |
|
| 142 | 141 | * @return void |
| 143 | 142 | */ |
| 144 | 143 | public function load_settings_language() |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $this->ptemplate->assign_vars($data); |
| 63 | 63 | |
| 64 | 64 | $tpl_name = ($data['field_type'] === 'select') ? 'select' : 'pickem'; |
| 65 | - return $this->ptemplate->render_view('blitze/content', "fields/$tpl_name.html", $data['field_type'] . '_field'); |
|
| 65 | + return $this->ptemplate->render_view('blitze/content', "fields/$tpl_name.html", $data['field_type'].'_field'); |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | foreach ($choices as $value => $option) |
| 86 | 86 | { |
| 87 | 87 | $options[] = array( |
| 88 | - 'id' => 'smc-'. $name . '-' . $count, |
|
| 88 | + 'id' => 'smc-'.$name.'-'.$count, |
|
| 89 | 89 | 'label' => $this->language->lang($option), |
| 90 | 90 | 'selected' => (int) (in_array($value, $selected)), |
| 91 | 91 | 'value' => $value, |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | public function get_field_value(array $data) |
| 57 | 57 | { |
| 58 | 58 | $default = is_array($data['field_value']) ? $data['field_value'] : explode("\n", $data['field_value']); |
| 59 | - $value = $this->request->variable($name, array(0 => '')); |
|
| 59 | + $value = $this->request->variable($name, array(0 => '')); |
|
| 60 | 60 | return $value ?: $default; |
| 61 | 61 | } |
| 62 | 62 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | */ |
| 102 | 102 | protected function make_box($color) |
| 103 | 103 | { |
| 104 | - $style = 'display: inline-block; width: 15px; height: 15px; border: 1 solid #fff; border-radius: 4px; background-color: ' . $color; |
|
| 105 | - return ($color) ? '<div style="' . $style . '" title="' . $color . '"></div>' : ''; |
|
| 104 | + $style = 'display: inline-block; width: 15px; height: 15px; border: 1 solid #fff; border-radius: 4px; background-color: '.$color; |
|
| 105 | + return ($color) ? '<div style="'.$style.'" title="'.$color.'"></div>' : ''; |
|
| 106 | 106 | } |
| 107 | 107 | } |
@@ -58,21 +58,21 @@ |
||
| 58 | 58 | '@blitze_content/assets/fields/display.min.js', |
| 59 | 59 | ), |
| 60 | 60 | 'css' => array( |
| 61 | - '@blitze_content/assets/fields/share/' . $props['theme'] . '.min.css', |
|
| 61 | + '@blitze_content/assets/fields/share/'.$props['theme'].'.min.css', |
|
| 62 | 62 | ) |
| 63 | 63 | )); |
| 64 | 64 | |
| 65 | 65 | $classes = ['social-share', $props['corners'], $props['placement']]; |
| 66 | 66 | $attributes = [ |
| 67 | - 'class="' . join(' ', array_filter($classes)) . '"', |
|
| 68 | - 'data-show-label="' . $props['show_label'] . '"', |
|
| 69 | - 'data-show-count="' . $props['show_count'] . '"', |
|
| 70 | - 'data-share-in="' . $props['sharein'] . '"', |
|
| 71 | - 'data-shares="' . join(',', $props['defaults']) . '"', |
|
| 72 | - 'style="font-size: ' . $props['size'] . 'px"', |
|
| 67 | + 'class="'.join(' ', array_filter($classes)).'"', |
|
| 68 | + 'data-show-label="'.$props['show_label'].'"', |
|
| 69 | + 'data-show-count="'.$props['show_count'].'"', |
|
| 70 | + 'data-share-in="'.$props['sharein'].'"', |
|
| 71 | + 'data-shares="'.join(',', $props['defaults']).'"', |
|
| 72 | + 'style="font-size: '.$props['size'].'px"', |
|
| 73 | 73 | ]; |
| 74 | 74 | |
| 75 | - return '<div ' . join(' ', $attributes) . '></div>'; |
|
| 75 | + return '<div '.join(' ', $attributes).'></div>'; |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |