/** * Get the HTML for addthis settings page * * @param string $updateResult Updated message * * @return string */ private function _getHTML($updateResult) { $html = ' <div class="wrap"> <form id="addthis-settings" method="post" action="'.$this->cmsConnector->getSettingsPageUrl().'" > <div class="Header"> <h1><em>AddThis</em> Sharing Buttons</h1>'; $html .= '</div>'; if ($this->_upgrade && !$this->addThisConfigs->getProfileId()) { $html .= $this->_getupdateSuccessMessage(); } if ($this->_checkAddPubidFailure()) { $html .= $this->_getPubIdFromAddthisFailureMessage(); } if ($updateResult) { $html .= $updateResult; } if ($this->_checkPubidFromAddThis() || (isset($this->_getVariables['advanced_settings']) && ($this->_getVariables['advanced_settings'] == 'true')) ) { // Get Confirmation form $html .= addthis_profile_id_csr_confirmation(); } else { $html .= $this->_getAddThisLinkButton(); } if (!_addthis_is_csr_form()) { $html .= ' <div class="Btn-container-end"> ' . _addthis_settings_buttons(false) . ' </div> <p> <small> '._addthis_eula_text().' </small> </p> </form>'; } return $html; }
function addthis_plugin_options_php4() { global $current_user; $user_id = $current_user->ID; global $addThisConfigs; $options = $addThisConfigs->getConfigs(); global $cmsConnector; if (get_user_meta($user_id, 'addthis_nag_updated_options')) { delete_user_meta($user_id, 'addthis_nag_updated_options', 'true'); } ?> <div class="wrap"> <h2 class='placeholder'> </h2> <form id="addthis-settings" method="post" action="options.php" > <?php // use the old-school settings style in older versions of wordpress if ($cmsConnector->getCmsMinorVersion() >= 2.7 || $cmsConnector->assumeLatest()) { settings_fields('addthis'); } else { wp_nonce_field('update-options'); } ?> <div class="Header"> <h1><em>AddThis</em> Sharing Buttons</h1> </div> <?php if (_addthis_is_csr_form()) { // Get Confirmation form echo addthis_profile_id_csr_confirmation(); } else { addthis_wordpress_mode_tabs(); } ?> <div class="Btn-container-end"> <?php echo _addthis_settings_buttons(); ?> <p> <small> <?php echo _addthis_eula_text(); ?> </small> </p> </div> </form> </div> <?php }
/** * Get the HTML for addthis settings page * * @param string $updateResult Updated message * * @return string */ private function _getHTML($updateResult) { $html = ' <div class="wrap"> <form id="addthis-settings" method="post" action="' . $this->cmsConnector->getSettingsPageUrl() . '" > <div class="Header"> <!-- XTEC ************ MODIFICAT - Localization support --> <!-- 2015.09.18 @dgras --> <h1>' . __("<em>AddThis</em> Sharing Buttons", 'addthis_trans_domain') . '</h1> <!-- ************ ORIGINAL --> <!-- <h1><em>AddThis</em> Sharing Buttons</h1> -->'; //************ FI if (!_addthis_is_csr_form()) { $html .= '<span class="preview-save-btns">' . _addthis_settings_buttons(false) . '</span>'; } $html .= '</div>'; if ($this->_upgrade && !$this->addThisConfigs->getProfileId()) { $html .= $this->_getupdateSuccessMessage(); } if ($this->_checkAddPubidFailure()) { $html .= $this->_getPubIdFromAddthisFailureMessage(); } if ($updateResult) { $html .= $updateResult; } if ($this->_checkPubidFromAddThis() || isset($this->_getVariables['advanced_settings']) && $this->_getVariables['advanced_settings'] == 'true') { // Get Confirmation form $html .= addthis_profile_id_csr_confirmation(); } else { $html .= $this->_getAddThisLinkButton(); } if (!_addthis_is_csr_form()) { $html .= ' <div class="Btn-container-end"> ' . _addthis_settings_buttons(false) . ' </div> </form>'; } return $html; }