$value) { $this->{$key} = $value; } $this->label_all_wordpress_plugins = __('All Wordpress plugins by F13Dev.', 'f13-github'); $this->label_api_notice = __('This plugin can be used without an API token, although it is recommended to use one as the number of API calls is quite restrictive without one.', 'f13-github'); $this->label_api_step_1 = __('Log-in to your GitHub account.', 'f13-github'); $this->label_api_step_2 = __('Visit https://github.com/settings/tokens.', 'f13-github'); $this->label_api_step_3 = __('Click the \'Generate new token\' button at the top of the page/', 'f13-github'); $this->label_api_step_4 = __('Re-enter your GitHub password for security.', 'f13-github'); $this->label_api_step_5 = __('Enter a description, such as \'my wordpress site\'.', 'f13-github'); $this->label_api_step_6 = __('Click the \'Generate token\' button at the bottom of the page, no other setting changes are required.', 'f13-github'); $this->label_api_step_7 = __('Copy and paste your new API token. Please note, your access token will only be visible once.', 'f13-github'); $this->label_cache_timeout = __('Cache Timeout (minutes)', 'f13-github'); $this->label_github = __('GitHub', 'f13-github'); $this->label_github_api_token = __('GitHub API Token', 'f13-github'); $this->label_instructions = __('Instructions', 'f13-github'); $this->label_obtain_key = __('To obtain a GitHub API token', 'f13-github'); $this->label_plugins_by_f13 = __('Plugins by F13', 'f13-github'); $this->label_save_changes = __('Save Changes', 'f13-github'); $this->label_widget_user = __('Username for profile widget', 'f13-github'); } public function f13_settings() { $v = '
'; $v .= $item->description; $v .= '
'; $v .= '. '; $v .= ''.$this->label_api_notice.'
'; $v .= '[github user=gituser repo=reponame files=none|names|full|compact cache=time_in_minutes]', 'f13-github').'
[gist id=gist_id cache=time_in_minutes]', 'f13-github'); $v .= '