Skip to content
Snippets Groups Projects
Commit 4850c0b8 authored by lucha's avatar lucha
Browse files

removed advertising from Simple Share Buttons Settings admin panel

parent e39c7661
No related branches found
No related tags found
No related merge requests found
...@@ -20,40 +20,11 @@ function ssba_admin_header() ...@@ -20,40 +20,11 @@ function ssba_admin_header()
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
<li><a href="https://simplesharebuttons.com/wordpress-faq/" target="_blank">FAQ</a></li> <li><a href="https://simplesharebuttons.com/wordpress-faq/" target="_blank">FAQ</a></li> </ul>
<li><a data-toggle="modal" data-target="#ssbaSupportModal" href="#">Support</a></li>
<li><a class="btn btn-primary ssba-navlink-blue" href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=navlink" target="_blank">Plus <i class="fa fa-plus"></i></a></li>
</ul>
</div> </div>
</div> </div>
</nav>'; </nav>';
$htmlHeader.= '<div class="modal fade" id="ssbaSupportModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Simple Share Buttons Support</h4>
</div>
<div class="modal-body">
<p>Please note that the this plugin relies mostly on WordPress community support from other users.</p>
<p>If you wish to receive official support, please consider purchasing <a href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=support_modal" target="_blank"><b>Simple Share Buttons Plus</b></a></p>
<div class="row">
<div class="col-sm-6">
<a href="https://wordpress.org/support/plugin/simple-share-buttons-adder" target="_blank"><button class="btn btn-block btn-default">Community support</button></a>
</div>
<div class="col-sm-6">
<a href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=support_modal" target="_blank"><button class="btn btn-block btn-primary">Check out Plus</button></a>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>';
// open container - closed in footer // open container - closed in footer
$htmlHeader .= '<div class="container">'; $htmlHeader .= '<div class="container">';
...@@ -72,27 +43,6 @@ function ssba_admin_footer() ...@@ -72,27 +43,6 @@ function ssba_admin_footer()
// link to show footer content // link to show footer content
$htmlFooter .= '<a href="https://simplesharebuttons.com" target="_blank">Simple Share Buttons Adder</a> <span class="badge">'.SSBA_VERSION.'</span>'; $htmlFooter .= '<a href="https://simplesharebuttons.com" target="_blank">Simple Share Buttons Adder</a> <span class="badge">'.SSBA_VERSION.'</span>';
// show more/less links
$htmlFooter .= '<button type="button" class="ssba-btn-thank-you pull-right btn btn-primary" data-toggle="modal" data-target="#ssbaFooterModal"><i class="fa fa-info"></i></button>';
$htmlFooter.= '<div class="modal fade" id="ssbaFooterModal" tabindex="-1" role="dialog" aria-labelledby="ssbaFooterModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Simple Share Buttons</h4>
</div>
<div class="modal-body">
<p>Many thanks for choosing <a href="https://simplesharebuttons.com" target="_blank">Simple Share Buttons</a> for your share buttons plugin, we\'re confident you won\'t be disappointed in your decision. If you require any support, please visit the <a href="https://wordpress.org/support/plugin/simple-share-buttons-adder" target="_blank">support forum</a>.</p>
<p>If you like the plugin, we\'d really appreciate it if you took a moment to <a href="https://wordpress.org/support/view/plugin-reviews/simple-share-buttons-adder" target="_blank">leave a review</a>, if there\'s anything missing to get 5 stars do please <a href="https://simplesharebuttons.com/contact/" target="_blank">let us know</a>. If you feel your website is worthy of appearing on our <a href="https://simplesharebuttons.com/showcase/" target="_blank">showcase page</a> do <a href="https://simplesharebuttons.com/contact/" target="_blank">get in touch</a>.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>';
// close col // close col
$htmlFooter .= '</div>'; $htmlFooter .= '</div>';
...@@ -255,25 +205,6 @@ function ssba_admin_panel($arrSettings) { ...@@ -255,25 +205,6 @@ function ssba_admin_panel($arrSettings) {
$htmlShareButtonsForm .= '</div>'; $htmlShareButtonsForm .= '</div>';
$htmlShareButtonsForm .= '<input type="hidden" name="ssba_selected_buttons" id="ssba_selected_buttons" value="'.$arrSettings['ssba_selected_buttons'].'"/>'; $htmlShareButtonsForm .= '<input type="hidden" name="ssba_selected_buttons" id="ssba_selected_buttons" value="'.$arrSettings['ssba_selected_buttons'].'"/>';
// plus plug
$htmlShareButtonsForm .= '<div class="well text-center">';
$htmlShareButtonsForm .= '<h2>Simple Share Buttons Plus</h2>';
$htmlShareButtonsForm .= '<h5 class="margin-bottom">Get <strong>Xing</strong> and <strong>WhatsApp</strong> buttons...</h5>';
$htmlShareButtonsForm .= '<div class="ssbp-wrap ssbp--centred ssbp--theme-4">
<div class="ssbp-container">
<ul class="ssbp-list">
<li class="ssbp-option-item ui-sortable-handle" id="buffer"><a href="javascript:;" class="ssbp-btn ssbp-whatsapp"></a></li>
<li class="ssbp-option-item ui-sortable-handle" id="diggit"><a href="javascript:;" class="ssbp-btn ssbp-xing"></a></li>
</ul>
</div>
</div>';
$htmlShareButtonsForm .= '<a href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=feature" target="_blank"><span class="btn btn-primary">Simple Share Buttons Plus</span></a>';
$htmlShareButtonsForm .= '<div class="ssba-spacer"></div>';
$htmlShareButtonsForm .= '<p>Extra buttons are just the tip of the iceberg... <strong>Simple Share Buttons Plus</strong> comes with a great deal of extra features, from <strong>GeoIP click tracking</strong> to <strong>mobile-responsive</strong> share bars. <a href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=feature" target="_blank"><strong>Find out more here</strong></a></p>';
$htmlShareButtonsForm .= '<div class="ssba-spacer"></div>';
$htmlShareButtonsForm .= '</div>';
$htmlShareButtonsForm .= '</div>'; $htmlShareButtonsForm .= '</div>';
// close col // close col
...@@ -543,17 +474,6 @@ function ssba_admin_panel($arrSettings) { ...@@ -543,17 +474,6 @@ function ssba_admin_panel($arrSettings) {
// COLUMN -------------------------------- // COLUMN --------------------------------
$htmlShareButtonsForm .= '<div class="col-sm-5">'; $htmlShareButtonsForm .= '<div class="col-sm-5">';
// plus plug
$htmlShareButtonsForm .= '<div class="well">';
$htmlShareButtonsForm .= '<h2>Get responsive</h2>';
$htmlShareButtonsForm .= '<p class="lead">Looking for <strong>fixed</strong> and <strong>responsive</strong> share buttons?</p>';
$htmlShareButtonsForm .= '<p>With <strong>Simple Share Buttons Plus</strong> you can pick from 10 different styles, that are all <strong>mobile-responsive</strong>. You can also pick icon/button colours and their hover colours!</p>';
$htmlShareButtonsForm .= '<img class="ssba-responsive-img" src="' . plugins_url() . '/simple-share-buttons-adder/images/simple-share-buttons-mockups.png' . '" />';
$htmlShareButtonsForm .= '<div class="text-center ssba-spacer"><span class="text-20 label label-success">Only $10</span></div>';
$htmlShareButtonsForm .= '<a href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=styling_tab" target="_blank"><span class="ssba-spacer btn btn-block btn-primary">Get Plus!</span></a>';
$htmlShareButtonsForm .= '<div class="ssba-spacer"></div>';
$htmlShareButtonsForm .= '</div>';
// close col // close col
$htmlShareButtonsForm .= '</div>'; $htmlShareButtonsForm .= '</div>';
...@@ -682,17 +602,6 @@ function ssba_admin_panel($arrSettings) { ...@@ -682,17 +602,6 @@ function ssba_admin_panel($arrSettings) {
// COLUMN -------------------------------- // COLUMN --------------------------------
$htmlShareButtonsForm .= '<div class="col-sm-5">'; $htmlShareButtonsForm .= '<div class="col-sm-5">';
// plus plug
$htmlShareButtonsForm .= '<div class="well">';
$htmlShareButtonsForm .= '<h2>Get speed and accuracy</h2>';
$htmlShareButtonsForm .= '<p class="lead">Do you want <strong>fast</strong> and <strong>consistent share counts</strong>?</p>';
$htmlShareButtonsForm .= '<p>With <strong>Simple Share Buttons Plus</strong> share counts are saved for the length of time you set, drastically speeding up page load time. Plus also comes with use of the SSB API for <a href="https://simplesharebuttons.com/plus/features/api/"><strong>consistent Facebook share counts</strong></a></p>';
$htmlShareButtonsForm .= '<img class="ssba-responsive-img" src="' . plugins_url() . '/simple-share-buttons-adder/images/simple-share-buttons-mockups.png' . '" />';
$htmlShareButtonsForm .= '<div class="text-center ssba-spacer"><span class="text-20 label label-success">Only $10</span></div>';
$htmlShareButtonsForm .= '<a href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=counters_tab" target="_blank"><span class="ssba-spacer btn btn-block btn-primary">Get Plus!</span></a>';
$htmlShareButtonsForm .= '<div class="ssba-spacer"></div>';
$htmlShareButtonsForm .= '</div>';
// close col // close col
$htmlShareButtonsForm .= '</div>'; $htmlShareButtonsForm .= '</div>';
...@@ -859,17 +768,6 @@ function ssba_admin_panel($arrSettings) { ...@@ -859,17 +768,6 @@ function ssba_admin_panel($arrSettings) {
// COLUMN -------------------------------- // COLUMN --------------------------------
$htmlShareButtonsForm .= '<div class="col-sm-5">'; $htmlShareButtonsForm .= '<div class="col-sm-5">';
// plus plug
$htmlShareButtonsForm .= '<div class="well">';
$htmlShareButtonsForm .= '<h2>Get even more</h2>';
$htmlShareButtonsForm .= '<p class="lead">Hoping for <strong>even more</strong> features?</p>';
$htmlShareButtonsForm .= '<p>With <strong>Simple Share Buttons Plus</strong> there is an ever-growing \'Advanced\' features section, including <strong>bit.ly</strong> URL shortening, <strong>Google Analytics Event Tracking</strong> and <strong>Share-Meta</strong> Functionality.</p>';
$htmlShareButtonsForm .= '<img class="ssba-responsive-img" src="' . plugins_url() . '/simple-share-buttons-adder/images/simple-share-buttons-mockups.png' . '" />';
$htmlShareButtonsForm .= '<div class="text-center ssba-spacer"><span class="text-20 label label-success">Only $10</span></div>';
$htmlShareButtonsForm .= '<a href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=advanced_tab" target="_blank"><span class="ssba-spacer btn btn-block btn-primary">Get Plus!</span></a>';
$htmlShareButtonsForm .= '<div class="ssba-spacer"></div>';
$htmlShareButtonsForm .= '</div>';
// close col // close col
$htmlShareButtonsForm .= '</div>'; $htmlShareButtonsForm .= '</div>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment