Exemplo n.º 1
0
 private function _getScript()
 {
     // Ensure this inline script is rendered only once.
     if (self::$_bInlineScriptLoaded) {
         return '';
     }
     self::$_bInlineScriptLoaded = true;
     return "<script async defer id='github-bjs' src='" . AdminPageFramework_WPUtility::resolveSRC(APFDEMO_DIRNAME . '/third-party/github-custom-field-type/asset/github-buttons/buttons.js') . "'>" . "</script>";
 }
Exemplo n.º 2
0
 /**
  * Inserts
  */
 public function replyToInsertDonationButton($sContent)
 {
     return "<div class='donate'>" . "<a href='" . esc_url('http://en.michaeluno.jp/donate') . "' target='_blank' >" . "<img src='" . AdminPageFramework_WPUtility::resolveSRC(APFDEMO_DIRNAME . '/asset/image/donation.gif') . "' alt='" . esc_attr(__('Please donate!', 'admin-page-framework')) . "' />" . "</a>" . "</div>" . $sContent;
 }