/** * The content after it is finished processing * * @since 1.0 * @param String $content * @return String content single, pages, home */ public function content($content) { if ($this->_is_single() || $this->_is_page() || $this->_is_home()) { $buttons = Shares_View::buttons_share(); $new_content = ''; switch ($this->_check_position()) { case 'full': $new_content .= $buttons; $new_content .= $content; $new_content .= $buttons; $content = $new_content; break; case 'before': $new_content .= $buttons; $new_content .= $content; $content = $new_content; break; case 'after': $new_content .= $content; $new_content .= $buttons; $content = $new_content; break; } return $content; } return $content; }
/** * Add buttons on footer case selected layout fixed * * @since 1.0 * @param Null * @return void */ public function footer() { if (!$this->_fixed) { return; } echo apply_filters($this->_filter, Shares_View::buttons_share()); }