shareaholic_admin_advanced.tpl.php in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3
File
templates/shareaholic_admin_advanced.tpl.php
View source
<?php
ShareaholicAdmin::show_header();
?>
<div id="shareaholic-form-container">
<ul class="nav nav-tabs">
<li><?php
print l(t('App Manager'), 'admin/config/shareaholic/settings');
?></li>
<li class="active"><?php
print l(t('Advanced Settings'), 'admin/config/shareaholic/advanced');
?></li>
</ul>
<div style="margin-top:20px;"></div>
<div class='unit size4of5 wrap' style="min-height:300px;">
<span class="helper">
<i class="icon-star"></i>
<?php
print t('You rarely should need to edit the settings on this page.');
?>
<?php
print t('After changing any Shareaholic advanced setting, it is good practice to clear your cache.');
?>
</span>
<?php
$form = drupal_get_form('shareaholic_advanced_settings_form');
print drupal_render($form);
?>
<fieldset class="app">
<legend><h2><?php
print t('Server Connectivity');
?></h2></legend>
<?php
if (ShareaholicUtilities::connectivity_check() == 'SUCCESS') {
?>
<span class="key-status passed"><?php
print t('All Shareaholic servers are reachable');
?></span>
<div class="key-description"><?php
print t('Shareaholic should be working correctly.');
?> <?php
print t('All Shareaholic servers are accessible.');
?></div>
<?php
}
else {
?>
<span class="key-status failed"><?php
print t('Unable to reach any Shareaholic server');
?></span> <a href="#" onClick="window.location.reload(); this.innerHTML='<?php
print t('Checking...');
?>';"><?php
print t('Re-check');
?></a>
<div class="key-description"><?php
echo sprintf(t('A network problem or firewall is blocking all connections from your web server to Shareaholic.com. <strong>Shareaholic cannot work correctly until this is fixed.</strong> Please contact your web host or firewall administrator and give them <a href="%s" target="_blank">this information about Shareaholic and firewalls</a>. Let us <a href="#" onclick="%s">know</a> too, so we can follow up!'), 'http://blog.shareaholic.com/shareaholic-hosting-faq/', 'SnapEngage.startLink();', '</a>');
?></div>
<?php
}
?>
<?php
if (ShareaholicUtilities::share_counts_api_connectivity_check() == 'SUCCESS') {
?>
<span class="key-status passed"><?php
echo t('Server-side Share Counts API is reachable');
?></span>
<div class="key-description"><?php
echo t('The server-side Share Counts API should be working correctly.');
?> <?php
echo t('All servers and services needed by the API are accessible.');
?></div>
<?php
}
else {
?>
<span class="key-status failed"><?php
echo t('Unable to reach the server-side Share Count API');
?></span> <a href="#" onClick="window.location.reload(); this.innerHTML='<?php
echo t('Checking...');
?>';"><?php
echo t('Re-check');
?></a>
<div class="key-description"><?php
echo sprintf(t('A network problem or firewall is blocking connections from your web server to various Share Count APIs. <strong>The API cannot work correctly until this is fixed.</strong> If you continue to face this issue, please contact <a href="#" onclick="%s">us</a> and we will follow up! In the meantime, if you disable the server-side Share Counts API from the Advanced options above, Shareaholic will default to using client-side APIs for share counts successfully -- so nothing to worry about!'), 'SnapEngage.startLink();');
?></div>
<?php
}
?>
</fieldset>
<fieldset class="app">
<legend><h2><?php
echo t('Your Shareaholic Site ID');
?></h2></legend>
<?php
if (ShareaholicUtilities::get_option('api_key')) {
echo '<code>' . ShareaholicUtilities::get_option('api_key') . '</code>';
}
else {
echo t('Not set.');
}
?>
</fieldset>
<div class='clear'></div>
<?php
$form = drupal_get_form('shareaholic_reset_plugin_form');
print drupal_render($form);
if (!ShareaholicUtilities::has_accepted_terms_of_service()) {
ShareaholicAdmin::draw_tos_popup();
}
print '</div>';
?>
</div>
</div>
<?php
ShareaholicAdmin::show_footer();
ShareaholicAdmin::include_snapengage();