@@ -29,9 +29,9 @@ discard block |
||
| 29 | 29 | 'tab_slug' => $this->sTabSlug, |
| 30 | 30 | 'section_id' => $this->sTabSlug, |
| 31 | 31 | 'section_tab_slug' => 'welcome', |
| 32 | - 'title' => __( "What's New", 'admin-page-framework-loader' ), // ' |
|
| 32 | + 'title' => __( "What's New", 'admin-page-framework-loader' ), // ' |
|
| 33 | 33 | 'content' => $this->_getReadmeContents( |
| 34 | - AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/text/about.txt', |
|
| 34 | + AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/text/about.txt', |
|
| 35 | 35 | '', // TOC title |
| 36 | 36 | array( 'New Features' ) // section |
| 37 | 37 | ) |
@@ -40,10 +40,10 @@ discard block |
||
| 40 | 40 | 'tab_slug' => $this->sTabSlug, |
| 41 | 41 | 'section_tab_slug' => $this->sTabSlug, |
| 42 | 42 | 'section_id' => 'getting_started', |
| 43 | - 'title' => __( "Getting Started", 'admin-page-framework-loader' ), // ' |
|
| 43 | + 'title' => __( "Getting Started", 'admin-page-framework-loader' ), // ' |
|
| 44 | 44 | 'content' => $this->_getReadmeContents( |
| 45 | - AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/text/about.txt', |
|
| 46 | - "<h3>" . __( 'Contents', 'admin-page-framework-loader' ) . "</h3>", |
|
| 45 | + AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/text/about.txt', |
|
| 46 | + "<h3>".__( 'Contents', 'admin-page-framework-loader' )."</h3>", |
|
| 47 | 47 | array( 'Getting Started', 'Tutorials' ) |
| 48 | 48 | ), |
| 49 | 49 | ), |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | 'tab_slug' => $this->sTabSlug, |
| 52 | 52 | 'section_tab_slug' => $this->sTabSlug, |
| 53 | 53 | 'section_id' => 'change_log', |
| 54 | - 'title' => __( "Change Log", 'admin-page-framework-loader' ), // ' |
|
| 54 | + 'title' => __( "Change Log", 'admin-page-framework-loader' ), // ' |
|
| 55 | 55 | 'content' => $this->_getChangeLog(), |
| 56 | 56 | ) |
| 57 | 57 | ); |
@@ -87,13 +87,13 @@ discard block |
||
| 87 | 87 | array( |
| 88 | 88 | 'field_id' => 'github_star', |
| 89 | 89 | 'type' => 'github', |
| 90 | - 'user_name' => 'michaeluno', // the GitHub account ID |
|
| 91 | - 'button_type' => 'star', // either of the followings: follow, star, watch, fork, issue |
|
| 90 | + 'user_name' => 'michaeluno', // the GitHub account ID |
|
| 91 | + 'button_type' => 'star', // either of the followings: follow, star, watch, fork, issue |
|
| 92 | 92 | 'count' => false, |
| 93 | 93 | 'repository' => 'admin-page-framework', |
| 94 | 94 | 'size' => 'mega', |
| 95 | 95 | 'attributes' => array( |
| 96 | - 'data-text' => ' ' . AdminPageFramework_Registry::NAME . ' ' . AdminPageFramework_Registry::getVersion() . ' ', |
|
| 96 | + 'data-text' => ' '.AdminPageFramework_Registry::NAME.' '.AdminPageFramework_Registry::getVersion().' ', |
|
| 97 | 97 | // 'data-icon' => 'octicon-mark-github', |
| 98 | 98 | ), |
| 99 | 99 | 'description' => __( 'Star the repository and get Involved!', 'admin-page-framework-loader' ), |
@@ -133,26 +133,26 @@ discard block |
||
| 133 | 133 | * @since 3.6.1 |
| 134 | 134 | * @return void |
| 135 | 135 | */ |
| 136 | - private function _getChangeLog( $sSection='Changelog' ) { |
|
| 136 | + private function _getChangeLog( $sSection = 'Changelog' ) { |
|
| 137 | 137 | |
| 138 | - $_aReplacements = array( |
|
| 138 | + $_aReplacements = array( |
|
| 139 | 139 | '%PLUGIN_DIR_URL%' => AdminPageFrameworkLoader_Registry::getPluginURL(), |
| 140 | 140 | '%WP_ADMIN_URL%' => admin_url(), |
| 141 | 141 | ); |
| 142 | 142 | $_oWPReadmeParser = new AdminPageFramework_WPReadmeParser( |
| 143 | - AdminPageFrameworkLoader_Registry::$sDirPath . '/readme.txt', |
|
| 143 | + AdminPageFrameworkLoader_Registry::$sDirPath.'/readme.txt', |
|
| 144 | 144 | $_aReplacements |
| 145 | 145 | ); |
| 146 | 146 | $_sChangeLog = $_oWPReadmeParser->getSection( $sSection ); |
| 147 | 147 | $_oWPReadmeParser = new AdminPageFramework_WPReadmeParser( |
| 148 | - AdminPageFrameworkLoader_Registry::$sDirPath . '/changelog.md', |
|
| 148 | + AdminPageFrameworkLoader_Registry::$sDirPath.'/changelog.md', |
|
| 149 | 149 | $_aReplacements |
| 150 | 150 | ); |
| 151 | 151 | $_sChangeLog .= $_oWPReadmeParser->getSection( $sSection ); |
| 152 | 152 | |
| 153 | 153 | $_sChangeLog = $_sChangeLog |
| 154 | 154 | ? $_sChangeLog |
| 155 | - : '<p>' . __( 'No valid changlog was found.', 'admin-page-framework-loader' ) . '</p>'; |
|
| 155 | + : '<p>'.__( 'No valid changlog was found.', 'admin-page-framework-loader' ).'</p>'; |
|
| 156 | 156 | return "<div class='changelog'>" |
| 157 | 157 | . $_sChangeLog |
| 158 | 158 | . "</div>"; |
@@ -183,18 +183,18 @@ discard block |
||
| 183 | 183 | return ''; |
| 184 | 184 | } |
| 185 | 185 | |
| 186 | - $_aOutput = array(); |
|
| 186 | + $_aOutput = array(); |
|
| 187 | 187 | foreach ( $_aContributors as $_oContributor ) { |
| 188 | - $_aOutput[] = '<li class="wp-person">'; |
|
| 189 | - $_aOutput[] .= sprintf( '<a href="%s" title="%s">', |
|
| 190 | - esc_url( 'https://github.com/' . $_oContributor->login ), |
|
| 188 | + $_aOutput[ ] = '<li class="wp-person">'; |
|
| 189 | + $_aOutput[ ] .= sprintf( '<a href="%s" title="%s">', |
|
| 190 | + esc_url( 'https://github.com/'.$_oContributor->login ), |
|
| 191 | 191 | esc_html( sprintf( __( 'View %s', 'admin-page-framework-loader' ), $_oContributor->login ) ) |
| 192 | 192 | ); |
| 193 | - $_aOutput[] .= sprintf( '<img src="%s" width="64" height="64" class="gravatar" alt="%s" />', esc_url( $_oContributor->avatar_url ), esc_html( $_oContributor->login ) ); |
|
| 194 | - $_aOutput[] .= '</a>'; |
|
| 195 | - $_aOutput[] .= sprintf( '<a class="web" href="%s">%s</a>', esc_url( 'https://github.com/' . $_oContributor->login ), esc_html( $_oContributor->login ) ); |
|
| 196 | - $_aOutput[] .= '</a>'; |
|
| 197 | - $_aOutput[] .= '</li>'; |
|
| 193 | + $_aOutput[ ] .= sprintf( '<img src="%s" width="64" height="64" class="gravatar" alt="%s" />', esc_url( $_oContributor->avatar_url ), esc_html( $_oContributor->login ) ); |
|
| 194 | + $_aOutput[ ] .= '</a>'; |
|
| 195 | + $_aOutput[ ] .= sprintf( '<a class="web" href="%s">%s</a>', esc_url( 'https://github.com/'.$_oContributor->login ), esc_html( $_oContributor->login ) ); |
|
| 196 | + $_aOutput[ ] .= '</a>'; |
|
| 197 | + $_aOutput[ ] .= '</li>'; |
|
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | return '<ul class="wp-people-group">' |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | return $_aContributors; |
| 219 | 219 | } |
| 220 | 220 | |
| 221 | - $_mResponse = wp_remote_get( $sRepositoryURL . '/contributors', array( 'sslverify' => false ) ); |
|
| 221 | + $_mResponse = wp_remote_get( $sRepositoryURL.'/contributors', array( 'sslverify' => false ) ); |
|
| 222 | 222 | |
| 223 | 223 | if ( is_wp_error( $_mResponse ) || 200 != wp_remote_retrieve_response_code( $_mResponse ) ) { |
| 224 | 224 | return array(); |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | |
| 227 | 227 | $_aContributors = json_decode( wp_remote_retrieve_body( $_mResponse ) ); |
| 228 | 228 | |
| 229 | - if ( ! is_array( $_aContributors ) ) |
|
| 229 | + if ( !is_array( $_aContributors ) ) |
|
| 230 | 230 | return array(); |
| 231 | 231 | |
| 232 | 232 | set_transient( 'apfl_contributors', $_aContributors, 3600 ); |
@@ -226,8 +226,9 @@ |
||
| 226 | 226 | |
| 227 | 227 | $_aContributors = json_decode( wp_remote_retrieve_body( $_mResponse ) ); |
| 228 | 228 | |
| 229 | - if ( ! is_array( $_aContributors ) ) |
|
| 230 | - return array(); |
|
| 229 | + if ( ! is_array( $_aContributors ) ) { |
|
| 230 | + return array(); |
|
| 231 | + } |
|
| 231 | 232 | |
| 232 | 233 | set_transient( 'apfl_contributors', $_aContributors, 3600 ); |
| 233 | 234 | |
@@ -18,19 +18,19 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | public function start() { |
| 20 | 20 | |
| 21 | - if ( ! $this->oProp->bIsAdmin ) { |
|
| 21 | + if ( !$this->oProp->bIsAdmin ) { |
|
| 22 | 22 | return; |
| 23 | 23 | } |
| 24 | - if ( ! is_network_admin() ) { |
|
| 24 | + if ( !is_network_admin() ) { |
|
| 25 | 25 | return; |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | // Enable / disable the demo pages |
| 29 | - if ( isset( $_GET['enable_apfl_demo_pages'] ) ) { |
|
| 29 | + if ( isset( $_GET[ 'enable_apfl_demo_pages' ] ) ) { |
|
| 30 | 30 | |
| 31 | 31 | // Update the options and reload the page |
| 32 | - $_oOption = AdminPageFrameworkLoader_Option::getInstance( AdminPageFrameworkLoader_Registry::$aOptionKeys['main'] ); |
|
| 33 | - $_oOption->update( 'enable_demo', $_GET['enable_apfl_demo_pages'] ); |
|
| 32 | + $_oOption = AdminPageFrameworkLoader_Option::getInstance( AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ] ); |
|
| 33 | + $_oOption->update( 'enable_demo', $_GET[ 'enable_apfl_demo_pages' ] ); |
|
| 34 | 34 | exit( wp_safe_redirect( remove_query_arg( 'enable_apfl_demo_pages' ) ) ); |
| 35 | 35 | |
| 36 | 36 | } |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | $this->_getDemoSwitcherLink( $this->oProp->aOptions ) |
| 50 | 50 | ); |
| 51 | 51 | $this->addLinkToPluginDescription( |
| 52 | - "<a href='https://wordpress.org/support/plugin/admin-page-framework' target='_blank'>" . __( 'Support', 'admin-page-framework-loader' ) . "</a>" |
|
| 52 | + "<a href='https://wordpress.org/support/plugin/admin-page-framework' target='_blank'>".__( 'Support', 'admin-page-framework-loader' )."</a>" |
|
| 53 | 53 | ); |
| 54 | 54 | |
| 55 | 55 | } |
@@ -57,10 +57,10 @@ discard block |
||
| 57 | 57 | /** |
| 58 | 58 | * Returns the switch link of the demo pages. |
| 59 | 59 | */ |
| 60 | - private function _getDemoSwitcherLink( $mOptions=array() ) { |
|
| 60 | + private function _getDemoSwitcherLink( $mOptions = array() ) { |
|
| 61 | 61 | |
| 62 | - $_bEnabled = isset( $mOptions['enable_demo'] ) && $mOptions['enable_demo']; |
|
| 63 | - $_sLink = esc_url( |
|
| 62 | + $_bEnabled = isset( $mOptions[ 'enable_demo' ] ) && $mOptions[ 'enable_demo' ]; |
|
| 63 | + $_sLink = esc_url( |
|
| 64 | 64 | add_query_arg( |
| 65 | 65 | array( |
| 66 | 66 | 'enable_apfl_demo_pages' => $_bEnabled ? 0 : 1, |
@@ -68,8 +68,8 @@ discard block |
||
| 68 | 68 | ) |
| 69 | 69 | ); |
| 70 | 70 | return $_bEnabled |
| 71 | - ? "<a href='{$_sLink}'>" . __( 'Disable Demo', 'admin-page-framework-loader' ) . "</a>" |
|
| 72 | - : "<a href='{$_sLink}'><strong style='font-size: 1em;'>" . __( 'Enable Demo', 'admin-page-framework-loader' ) . "</strong></a>"; |
|
| 71 | + ? "<a href='{$_sLink}'>".__( 'Disable Demo', 'admin-page-framework-loader' )."</a>" |
|
| 72 | + : "<a href='{$_sLink}'><strong style='font-size: 1em;'>".__( 'Enable Demo', 'admin-page-framework-loader' )."</strong></a>"; |
|
| 73 | 73 | |
| 74 | 74 | } |
| 75 | 75 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function __construct() { |
| 25 | 25 | |
| 26 | 26 | new AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion( |
| 27 | - AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_action_get_development_version' // action name |
|
| 27 | + AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_action_get_development_version' // action name |
|
| 28 | 28 | ); |
| 29 | 29 | |
| 30 | 30 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function replyToDoAction() { |
| 41 | 41 | AdminPageFramework_WPUtility::setTransient( |
| 42 | - AdminPageFrameworkLoader_Registry::TRANSIENT_PREFIX . 'devver', |
|
| 42 | + AdminPageFrameworkLoader_Registry::TRANSIENT_PREFIX.'devver', |
|
| 43 | 43 | $this->_getVersion(), // data - if an error occurs, an empty string will be given |
| 44 | 44 | 604800 // for one week |
| 45 | 45 | ); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | $_sPageBody = $this->_getPageBody(); |
| 56 | 56 | $_aHeaders = $_oUtil->getScriptData( |
| 57 | 57 | $_sPageBody, |
| 58 | - '', /// context |
|
| 58 | + '', /// context |
|
| 59 | 59 | array( 'version' => 'Version' ) |
| 60 | 60 | ); |
| 61 | 61 | return $_oUtil->getElement( |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * |
| 27 | 27 | * @since 3.6.2 |
| 28 | 28 | */ |
| 29 | - public function __construct( $sActionName ) { |
|
| 29 | + public function __construct( $sActionName ) { |
|
| 30 | 30 | add_action( |
| 31 | 31 | $sActionName, |
| 32 | 32 | array( $this, 'replyToDoAction' ) |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * |
| 48 | 48 | * @return array |
| 49 | 49 | */ |
| 50 | - public function get( $iItems=0 ) { |
|
| 50 | + public function get( $iItems = 0 ) { |
|
| 51 | 51 | |
| 52 | 52 | $_aOutput = array(); |
| 53 | 53 | $_aURLs = $this->_aURLs; |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | return $_aOutput; |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - $_oFeed = fetch_feed( $_aURLs ); |
|
| 59 | + $_oFeed = fetch_feed( $_aURLs ); |
|
| 60 | 60 | foreach ( $_oFeed->get_items() as $_oItem ) { |
| 61 | 61 | $_aOutput[ $_oItem->get_title() ] = array( |
| 62 | 62 | 'content' => $_oItem->get_content(), |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | 'title' => $_oItem->get_title(), |
| 65 | 65 | 'date' => $_oItem->get_date( 'j F Y, g:i a' ), |
| 66 | 66 | 'author' => $_oItem->get_author(), |
| 67 | - 'link' => $_oItem->get_permalink(), // get_link() may be used as well |
|
| 67 | + 'link' => $_oItem->get_permalink(), // get_link() may be used as well |
|
| 68 | 68 | ); |
| 69 | 69 | } |
| 70 | 70 | |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | * @since DEVVER |
| 28 | 28 | * @return void |
| 29 | 29 | */ |
| 30 | - public function construct() { |
|
| 30 | + public function construct() { |
|
| 31 | 31 | $this->_addDefaultResources(); |
| 32 | 32 | } |
| 33 | 33 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | ), |
| 35 | 35 | 2 => __( 'Header already sent.', 'admin-page-framework-loader' ), |
| 36 | 36 | ); |
| 37 | - if ( ! class_exists( 'AdminPageFramework_AdminNotice' ) ) { |
|
| 37 | + if ( !class_exists( 'AdminPageFramework_AdminNotice' ) ) { |
|
| 38 | 38 | return; |
| 39 | 39 | } |
| 40 | 40 | new AdminPageFramework_AdminNotice( |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | ), |
| 35 | 35 | 2 => __( 'Header already sent.', 'admin-page-framework-loader' ), |
| 36 | 36 | ); |
| 37 | - if ( ! class_exists( 'AdminPageFramework_AdminNotice' ) ) { |
|
| 37 | + if ( ! class_exists( 'AdminPageFramework_AdminNotice' ) ) { |
|
| 38 | 38 | return; |
| 39 | 39 | } |
| 40 | 40 | new AdminPageFramework_AdminNotice( |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | $_aItems = $this->getContentsByHeader( $this->getReadmeContents(), 3 ); |
| 25 | 25 | $_iLastIndex = count( $_aItems ) - 1; |
| 26 | - foreach( $_aItems as $_iIndex => $_aContent ) { |
|
| 26 | + foreach ( $_aItems as $_iIndex => $_aContent ) { |
|
| 27 | 27 | |
| 28 | 28 | $_oParser = new AdminPageFramework_WPReadmeParser; |
| 29 | 29 | $_oParser->setText( $_aContent[ 1 ] ); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $oAdminPage->addSettingSections( |
| 32 | 32 | $this->sPageSlug, // the target page slug |
| 33 | 33 | array( |
| 34 | - 'section_id' => 'examples_' . $_iIndex, |
|
| 34 | + 'section_id' => 'examples_'.$_iIndex, |
|
| 35 | 35 | 'title' => $_aContent[ 0 ], |
| 36 | 36 | 'collapsible' => array( |
| 37 | 37 | 'toggle_all_button' => $_iLastIndex === $_iIndex |
@@ -52,9 +52,9 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * @return string |
| 54 | 54 | */ |
| 55 | - private function getReadMeContents() { |
|
| 55 | + private function getReadMeContents() { |
|
| 56 | 56 | return $this->_getReadmeContents( |
| 57 | - AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/text/examples.txt', |
|
| 57 | + AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/text/examples.txt', |
|
| 58 | 58 | '', |
| 59 | 59 | array( 'Examples' ) |
| 60 | 60 | ); |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | /** |
| 54 | 54 | * @return string |
| 55 | 55 | */ |
| 56 | - private function getReadMeContents() { |
|
| 56 | + private function getReadMeContents() { |
|
| 57 | 57 | return $this->_getReadmeContents( |
| 58 | 58 | AdminPageFrameworkLoader_Registry::$sDirPath . '/readme.txt', // source path |
| 59 | 59 | '', // TOC title |
@@ -21,8 +21,8 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | public function replyToLoadTab( $oAdminPage ) { |
| 23 | 23 | |
| 24 | - $_aSections = $this->getContentsByHeader( $this->getFAQContents(), 4 ); |
|
| 25 | - foreach( $_aSections as $_iIndex => $_aContent ) { |
|
| 24 | + $_aSections = $this->getContentsByHeader( $this->getFAQContents(), 4 ); |
|
| 25 | + foreach ( $_aSections as $_iIndex => $_aContent ) { |
|
| 26 | 26 | |
| 27 | 27 | $_sTitle = $_aContent[ 0 ]; |
| 28 | 28 | $_sContent = $this->_getFAQSubSections( $_aContent[ 1 ] ); |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | $oAdminPage->addSettingSections( |
| 33 | 33 | $this->sPageSlug, // the target page slug |
| 34 | 34 | array( |
| 35 | - 'section_id' => 'faq_sections_' . $_iIndex, |
|
| 35 | + 'section_id' => 'faq_sections_'.$_iIndex, |
|
| 36 | 36 | 'tab_slug' => $this->sTabSlug, |
| 37 | 37 | 'section_tab_slug' => 'apf_faq', |
| 38 | 38 | 'title' => $_sTitle, |
@@ -54,17 +54,17 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | $_aNestedSections = array(); |
| 56 | 56 | $_iLastIndex = count( $aItems ) - 1; |
| 57 | - foreach( $aItems as $_iIndex => $_aContent ) { |
|
| 57 | + foreach ( $aItems as $_iIndex => $_aContent ) { |
|
| 58 | 58 | |
| 59 | - $_oParser = new AdminPageFramework_WPReadmeParser( $_aContent[ 1 ] ); |
|
| 59 | + $_oParser = new AdminPageFramework_WPReadmeParser( $_aContent[ 1 ] ); |
|
| 60 | 60 | |
| 61 | 61 | // If no sections, return the contents of the first item. |
| 62 | - if ( ! $_aContent[ 0 ] ) { |
|
| 62 | + if ( !$_aContent[ 0 ] ) { |
|
| 63 | 63 | return $_oParser->get(); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - $_aNestedSections[] = array( |
|
| 67 | - 'section_id' => 'faq_item_' . $_iIndex, |
|
| 66 | + $_aNestedSections[ ] = array( |
|
| 67 | + 'section_id' => 'faq_item_'.$_iIndex, |
|
| 68 | 68 | 'title' => $_aContent[ 0 ], |
| 69 | 69 | 'collapsible' => array( |
| 70 | 70 | 'toggle_all_button' => $_iLastIndex === $_iIndex |
@@ -80,14 +80,14 @@ discard block |
||
| 80 | 80 | return $_aNestedSections; |
| 81 | 81 | |
| 82 | 82 | } |
| 83 | - private function getFAQContents() { |
|
| 83 | + private function getFAQContents() { |
|
| 84 | 84 | |
| 85 | - $_aReplacements = array( |
|
| 85 | + $_aReplacements = array( |
|
| 86 | 86 | '%PLUGIN_DIR_URL%' => AdminPageFrameworkLoader_Registry::getPluginURL(), |
| 87 | 87 | '%WP_ADMIN_URL%' => admin_url(), |
| 88 | 88 | ); |
| 89 | 89 | $_oWPReadmeParser = new AdminPageFramework_WPReadmeParser( |
| 90 | - AdminPageFrameworkLoader_Registry::$sDirPath . '/readme.txt', |
|
| 90 | + AdminPageFrameworkLoader_Registry::$sDirPath.'/readme.txt', |
|
| 91 | 91 | $_aReplacements |
| 92 | 92 | ); |
| 93 | 93 | return $_oWPReadmeParser->getRawSection( 'Frequently asked questions' ); |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | return $_aNestedSections; |
| 81 | 81 | |
| 82 | 82 | } |
| 83 | - private function getFAQContents() { |
|
| 83 | + private function getFAQContents() { |
|
| 84 | 84 | |
| 85 | 85 | $_aReplacements = array( |
| 86 | 86 | '%PLUGIN_DIR_URL%' => AdminPageFrameworkLoader_Registry::getPluginURL(), |