diff --git a/.editorconfig b/.editorconfig index 71c74217..a541e47e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,9 +13,9 @@ insert_final_newline = true trim_trailing_whitespace = true indent_style = tab -[{*.json,*.yml}] +[*.yml] indent_style = space indent_size = 2 -[{*.txt}] -end_of_line = crlf +[*.md] +trim_trailing_whitespace = false diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 00000000..59a7b87b --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,16 @@ + +## **Issue Description** + +## **Context** + + + +## **Steps to reproduce:** + +1. +2. +3. +## **Expected Result:** + +## **Actual Result:** + \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2f65776b..b0e0653b 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,22 @@ /themes/twentysixteen/ /upgrade/ /uploads/ -node_modules/ \ No newline at end of file +/vendor/ +/node_modules/ +/themes/wporg-support/node_modules/ +plugins/wordpress-importer/ +**/package-lock.json +**/style.css.map +**/debug.log +.phpcs.xml +phpcs.xml +.phpcs.xml.dist + +# Query Monitor's symlink db.php +db.php + +# Chassis requires a custom.ini file, this should be ignored +custom.ini + +# Contibutors plugin +plugins/support-helphub/inc/helphub-contributors/public/css/ diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..175448e1 --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +package-lock=false +save-prefix=~ diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..b009dfb9 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/* diff --git a/.stylelintrc b/.stylelintrc new file mode 100644 index 00000000..54fafbf8 --- /dev/null +++ b/.stylelintrc @@ -0,0 +1,15 @@ +{ + "extends": "stylelint-config-wordpress/scss", + "rules": { + "block-no-empty": null, + "declaration-block-no-shorthand-property-overrides": null, + "declaration-property-unit-whitelist": null, + "font-family-no-missing-generic-family-keyword": null, + "function-parentheses-space-inside": null, + "no-descending-specificity": null, + "no-duplicate-selectors": null, + "selector-list-comma-newline-after": null, + "value-keyword-case": null, + "scss/selector-no-redundant-nesting-selector": null, + } +} diff --git a/.stylelintrc.js b/.stylelintrc.js deleted file mode 100644 index ba3e20cd..00000000 --- a/.stylelintrc.js +++ /dev/null @@ -1,113 +0,0 @@ -module.exports = { - "rules": { - "at-rule-empty-line-before": [ "always", { - except: ["blockless-group"], - ignore: ["after-comment"], - } ], - "at-rule-name-case": "lower", - "at-rule-name-space-after": "always-single-line", - "at-rule-no-unknown": true, - "at-rule-semicolon-newline-after": "always", - "block-closing-brace-newline-after": "always", - "block-closing-brace-newline-before": "always", - "block-opening-brace-newline-after": "always", - "block-opening-brace-space-before": "always", - "color-hex-case": "lower", - "color-hex-length": "short", - "color-named": "never", - "color-no-invalid-hex": true, - "comment-empty-line-before": [ "always", { - ignore: ["stylelint-commands"], - } ], - "declaration-bang-space-after": "never", - "declaration-bang-space-before": "always", - "declaration-block-no-duplicate-properties": [ true, { - ignore: ["consecutive-duplicates"], - } ], - "declaration-block-no-shorthand-property-overrides": true, - "declaration-block-semicolon-newline-after": "always", - "declaration-block-semicolon-space-before": "never", - "declaration-block-trailing-semicolon": "always", - "declaration-colon-newline-after": "always-multi-line", - "declaration-colon-space-after": "always-single-line", - "declaration-colon-space-before": "never", - "font-family-name-quotes": "always-where-recommended", - "font-weight-notation": "numeric", - "function-calc-no-unspaced-operator": true, - "function-comma-space-after": "always", - "function-comma-space-before": "never", - "function-linear-gradient-no-nonstandard-direction": true, - "function-max-empty-lines": 1, - "function-name-case": "lower", - "function-parentheses-space-inside": "never", - "function-url-quotes": "never", - "function-whitespace-after": "always", - "indentation": "tab", - "keyframe-declaration-no-important": true, - "length-zero-no-unit": true, - "max-empty-lines": 2, - "max-line-length": [ 80, { - "ignore": "non-comments", - } ], - "media-feature-colon-space-after": "always", - "media-feature-colon-space-before": "never", - "media-feature-no-missing-punctuation": true, - "media-feature-range-operator-space-after": "always", - "media-feature-range-operator-space-before": "always", - "media-query-list-comma-newline-after": "always-multi-line", - "media-query-list-comma-space-after": "always-single-line", - "media-query-list-comma-space-before": "never", - "no-eol-whitespace": true, - "no-extra-semicolons": true, - "no-invalid-double-slash-comments": true, - "no-missing-end-of-source-newline": true, - "number-leading-zero": "always", - "number-no-trailing-zeros": true, - "property-case": "lower", - "property-no-unknown": true, - "rule-nested-empty-line-before": [ "always", { - ignore: ["after-comment"], - } ], - "rule-non-nested-empty-line-before": [ "always", { - ignore: ["after-comment"], - } ], - "selector-attribute-brackets-space-inside": "never", - "selector-attribute-operator-space-after": "never", - "selector-attribute-operator-space-before": "never", - "selector-attribute-quotes": "always", - "selector-class-pattern": [ - "^[a-z]+(-[a-z]+)*", - { - "message": "Selector should use lowercase and separate words with hyphens (selector-class-pattern)", - }, - ], - "selector-id-pattern": [ - "^[a-z]+(-[a-z]+)*", - { - "message": "Selector should use lowercase and separate words with hyphens (selector-id-pattern)", - }, - ], - "selector-combinator-space-after": "always", - "selector-combinator-space-before": "always", - "selector-list-comma-newline-after": "always", - "selector-list-comma-space-before": "never", - "selector-max-empty-lines": 0, - "selector-pseudo-class-case": "lower", - "selector-pseudo-class-no-unknown": true, - "selector-pseudo-class-parentheses-space-inside": "never", - "selector-pseudo-element-case": "lower", - "selector-pseudo-element-colon-notation": "single", - "selector-pseudo-element-no-unknown": true, - "selector-type-case": "lower", - "selector-type-no-unknown": true, - "shorthand-property-no-redundant-values": true, - "string-no-newline": true, - "string-quotes": "double", - "unit-case": "lower", - "unit-no-unknown": true, - "value-keyword-case": "lower", - "value-list-comma-newline-after": "always-multi-line", - "value-list-comma-space-after": "always-single-line", - "value-list-comma-space-before": "never", - }, -} diff --git a/.travis.yml b/.travis.yml index 507cdbd3..3284539a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,76 +7,88 @@ # @link http://about.travis-ci.org/docs/user/languages/php/ language: php -# Declare versions of PHP to use, w.org currently uses 5.6.18, soon to be 7.x -php: - - 7.1 - - 7.0 - - 5.6 - -# Ditch sudo and use containers. -# @link https://docs.travis-ci.com/user/ci-environment/ -sudo: false +# Tell Travis CI which distro to use +dist: trusty # Travis CI environment matrix -env: - matrix: - - WP_VERSION=latest WP_MULTISITE=0 - - WP_VERSION=nightly WP_MULTISITE=0 - +matrix: + fast_finish: true + include: + # Declare versions of PHP to use, w.org currently uses 7.2, soon to be 7.3 + - php: 7.3 + env: WP_VERSION=latest WP_MULTISITE=0 SNIFF=1 + - php: 7.3 + env: WP_VERSION=nightly WP_MULTISITE=0 + - php: 7.2 + env: WP_VERSION=latest WP_MULTISITE=0 + - php: 7.2 + env: WP_VERSION=nightly WP_MULTISITE=0 + # Setup NPM modules for Travis CI cache maintanence. cache: directories: + - $HOME/.npm - node_modules + - $HOME/.composer/cache + - $HOME/.cache/composer/files + before_install: - npm prune - npm update - + # Use this to prepare your build for testing. # e.g. copy database configurations, environment variables, etc. # Failures in this section will result in build status 'errored'. before_script: - # Install phpunuit test suite - - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION - # Install CodeSniffer for WordPress Coding Standards checks. - - mkdir php-codesniffer && curl -L https://github.com/squizlabs/PHP_CodeSniffer/archive/master.tar.gz | tar xz --strip-components=1 -C php-codesniffer - # Install WordPress Coding Standards. - - mkdir wordpress-coding-standards && curl -L https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/archive/master.tar.gz | tar xz --strip-components=1 -C wordpress-coding-standards - # Hop into CodeSniffer directory. - - cd php-codesniffer - # Set install path for WordPress Coding Standards - # @link https://github.com/squizlabs/PHP_CodeSniffer/blob/4237c2fc98cc838730b76ee9cee316f99286a2a7/CodeSniffer.php#L1941 - - scripts/phpcs --config-set installed_paths ../wordpress-coding-standards - # After CodeSniffer install you should refresh your path. - - phpenv rehash - # Back to the top-level directory - - cd .. + - | + # Remove Xdebug for a huge performance increase: + if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then + phpenv config-rm xdebug.ini + else + echo "xdebug.ini does not exist" + fi + - export PATH="$HOME/.composer/vendor/bin:$PATH" + - | + if [[ "$SNIFF" == "1" ]]; then + composer install --no-suggest --no-interaction + else + composer global require --dev phpunit/phpunit ^6 + fi + - which phpunit + - | + if [[ "$SNIFF" == "1" ]]; then + vendor/bin/phpunit --version + else + phpunit --version + fi + # Install phpunuit test suite + - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION # Run test script commands. # Default is specific to project language. # All commands must exit with code 0 on success. Anything else is considered failure. script: - # Change to the themes folder - - cd themes - # Search theme for PHP syntax errors. - - find . \( -name '*.php' \) -exec php -lf {} \; - # PHPCS WordPress Coding Standards - - ../php-codesniffer/scripts/phpcs -p -s -v -n . --standard=../phpcs.ruleset.xml --extensions=php - # Change to the plugins folder - - cd .. && cd plugins - # Search theme for PHP syntax errors. - - find . \( -name '*.php' \) -exec php -lf {} \; - # PHPCS WordPress Coding Standards - - ../php-codesniffer/scripts/phpcs -p -s -v -n . --standard=../phpcs.ruleset.xml --extensions=php - # Setup NodeJS version using NVM - - node --version - - npm --version - - nvm install 4 - - npm --version - - node --version - # Install NPM modules - - npm install - - npm install -g grunt-cli - # Run CSS, JS, & PHP Grunt tasks (Temporarily using --force so all tasks run) - - grunt --force - # PHPUnit - - cd .. && phpunit + # PHPCS WordPress Coding Standards + - if [[ "$SNIFF" == "1" ]]; then vendor/bin/phpcs -v --runtime-set ignore_warnings_on_exit 1;fi + # Change to the themes folder + - cd themes + # Search theme for PHP syntax errors. + - find . \( -name '*.php' \) -exec php -lf {} \; + # Change to the plugins folder + - cd .. && cd plugins + # Search theme for PHP syntax errors. + - find . \( -name '*.php' \) -exec php -lf {} \; + # Setup NodeJS version using NVM + - node --version + - npm --version + - nvm install 8 + - npm --version + - node --version + # Install NPM modules + - npm install + - npm install -g grunt-cli + # Run CSS, JS, & PHP Grunt tasks (Temporarily using --force so all tasks run) + - grunt travis + # PHPUnit + - cd .. + - if [[ "$SNIFF" == "1" ]]; then vendor/bin/phpunit; else phpunit;fi diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..405d9f0e --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,117 @@ +# Contributing to the Docs Team (HelpHub) + +## Ways to Contribute + +1. [Write documentation](#write-documentation) +2. [Find bugs and create issues](#find-bugs-and-create-issues) +3. [Help code and fix issues](#help-code-and-fix-issues) + 1. [Local Install](#local-install) + 2. [HelpHub Theme](#helphub-theme) +4. [Propose design suggestions and improvements](#propose-design-suggestions-and-improvements) + +---------- + +## Write documentation +There are always teams that need help with writing documentation. The Docs Team can help connect you to the people who need the help. Join our discussions in the [#docs](https://make.wordpress.org/docs/tag/docs/) slack channel on **Thursdays from 17:00 - 18:00 UTC** and offer your help. + +## Find bugs and create issues +Take a look at the HelpHub site located at [wp-helphub.com](https://wp-helphub.com/). If you see any bugs or issues, please create an issue on our GitHub repo here: https://github.com/WordPress/HelpHub/issues. + +## Help code and fix issues + +### Local Install + +#### How to use this repo on your local computer + +1. Install WordPress locally. +2. Rename `wp-content` folder. Later, you will need current Theme files. +3. Clone this repo as `wp-content`.
+``` +$ git clone https://github.com/WordPress/HelpHub.git wp-content +``` +4. Copy back your current Theme files from the renamed folder in above Step 2. +5. Run `npm install` to compile theme's `.scss` files into `style.css` ([see below for more details](#helphub)) +6. Install and activate the bbPress plugin. +7. Activate the **WordPress.org Support** theme from within `/wp-admin`. +8. Activate the **Support HelpHub** plugin from within `/wp-admin`. +9. Under `Settings -> Permalinks` in the `/wp-admin`, change to "Post Name" option, and save changes. +10. Make sure your `php.ini` file includes these lines below as `On`. + +``` +allow_url_fopen = On +allow_url_include = On +``` +Hint: If you are using VVV, follow below steps to locate `php.ini`. +``` +$ cd /vagrant-local +$ vagrant ssh +$ cd /etc/php/7.0/fpm +``` + +#### Import database + +For now, we have two ways for importing database from staging site - via [Importer](#importer) and via [Duplicator](#duplicator) + +##### Importer + +Database from staging site is located in `wp-content/staging-database` folder. There you can find database files for WordPress Importer, Widget Importer & Exporter, Duplicator and UpdraftPlus. + +To import the database using the WordPress Importer from within the `/wp-admin` of your local site, follow these steps: + +1. Go to: `Tools -> Import` and click "Install Now" under WordPress at the bottom. This will install the WordPress Importer. +2. Click "Run Importer" +3. Choose the file mentioned above and click the button, "Upload file and import" +4. Set all the authors to a user account on your local site. +5. Check the box to "Download and import file attachments". +6. Click the button to begin. It may take a while to complete. If there are some failed imports, it should still be okay. + +This file won't import widgets from staging site. For that, you can use `.wie` file, located in `wp-content/staging-database/Widget Importer & Exporter` folder. This file is exported with [Widget Importer & Exporter](https://wordpress.org/plugins/widget-importer-exporter/) plugin and you need this plugin in your local installation in order to import widgets from `.wie` file. + +##### Duplicator + +In `wp-content/staging-database` you'll find `Duplicator` folder containing `.zip` archive. This archive holds `installer-backup.php` and `database.sql` files, created on 13th March 2018. You can use it instead of [Importer](#importer) workflow for importing database. Here is a [guide](https://snapcreek.com/duplicator/docs/quick-start/) for Duplicator. + +Once you have a local install of HelpHub up and running, you can contribute with pull requests either from your own fork or after you've added as a contributor directly in this repository. We are using [Travis CI](https://travis-ci.org/) for tests on every pull request. You can, also, run these tests locally before pushing your code (more on this later). Development covers work on both, theme and plugins and requires following [best practices](https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/) and [WordPress Coding Standards](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards). + +### HelpHub + +#### Requirements: + +- [npm](https://www.npmjs.com/get-npm) +- [Grunt](https://gruntjs.com/) +- [Sass](http://sass-lang.com/) + +HelpHub uses a task runner called [Grunt](https://gruntjs.com/). Grunt contains automated tasks for the project (which can be anything - building svg sprites, minifying css and js files etc). We are using to verify and check the integrity of the CSS, JavaScript, and Sass files within this repository along with compiling the themes Sass files into CSS. + +To be able to run Grunt you need [npm](https://www.npmjs.com/get-npm). We will assume that you already have npm. + + +First, we need to install dependencies from `package.json` file: +``` +npm install +``` + +After this command has run in your terminal you'll have another folder in the root, `node_modules`. This folder is ignored in `.gitignore` and contains all the tools we need for running Grunt tasks, defined in `Gruntfile.js`. + + +The HelpHub theme uses [Sass](http://sass-lang.com/) for applying styles as it provides possibility for breaking one large `style.css` file into smaller partials and, therefore, reduce possible Git conflicts caused with multiple modifications of the same file in different branches. Maintenance is, also, greatly improved. Once modified, Sass (`.scss`) files need to be compiled into `style.css`. + +The Grunt `sass` task compiles all `.scss` files into `style.css`. This means that every time you run this task `style.css` will be overridden with new code from `.scss` files, located in the themes `sass` folder. Hence, instead modifying `style.css` directly, all CSS changes for the HelpHub theme are to be added into appropriate `.scss` partial after which you should run compiler in order to see your changes. Compiling is done with running following command in terminal: + +``` +grunt sass +``` + +If, however, you are adding a lot of CSS changes, instead of running a lot of `sass` tasks, you can run `watch` task, like so: + +``` +grunt watch +``` + +This task tells compiler to watch all changes created in `.scss` files and rebuild a new `style.css` every time you save the file. + +While you can use regular CSS syntax in `.scss` files (as long as Travis tests are passed), we would like to encourage you to [learn](http://sass-lang.com/guide) and use Sass as much as possible. It's good for you and for the project. + +## Propose design suggestions and improvements + +Join our discussions in the [#docs](https://wordpress.slack.com/messages/docs/) [slack](https://make.wordpress.org/chat/) channel on **Mondays from 15:00 - 16:00 UTC** - content, design and development discussion. Or submit your ideas on our GitHub repo [here](https://github.com/WordPress/HelpHub/issues). diff --git a/Gruntfile.js b/Gruntfile.js index ceb747e7..ceae04d9 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -2,16 +2,30 @@ /* global module */ module.exports = function( grunt ) { var HH_CSS = [ - 'plugins/helphub-post-types/assets/css/*.css', - 'themes/helphub/**/*.css' + 'plugins/support-helphub/inc/helphub-*/assets/css/*.css', + 'plugins/support-helphub/inc/table-of-contents-lite/assets/css/*.css', + 'plugins/helphub-contributors/public/css/helphub-contributors-public.css' + ], + + HH_SCSS = [ + 'plugins/**/*.scss', + 'themes/wporg-support/**/*.scss', + '!themes/wporg-support/node_modules/**/*.scss', + '!themes/wporg-support/sass/_normalize.scss', + '!themes/wporg-support/sass/mixins/_breakpoint.scss', + '!themes/wporg-support/sass/mixins/_modular-scale.scss' ], HH_JS = [ - 'plugins/helphub-post-types/assets/js/*.js', + 'plugins/helphub-*/**/*.js', 'themes/helphub/js/*.js' ], - matchdep = require('matchdep'); + autoprefixer = require('autoprefixer'), + + matchdep = require('matchdep'), + + nodeSass = require('node-sass'); // Load tasks. matchdep.filterDev('grunt-*').forEach( grunt.loadNpmTasks ); @@ -21,7 +35,7 @@ module.exports = function( grunt ) { pkg: grunt.file.readJSON( 'package.json' ), checktextdomain: { options: { - text_domain: 'helphub', + text_domain: 'wporg-forums', correct_domain: false, keywords: [ '__:1,2d', @@ -42,8 +56,8 @@ module.exports = function( grunt ) { }, files: { src: [ - 'plugins/helphub-post-types/**/*.php', - 'plugins/helphub-read-time/**/*.php', + 'plugins/support-helphub/**/*.php', + '!plugins/support-helphub/inc/syntaxhighlighter/**/*.php', 'themes/helphub/**/*.php' ], expand: true @@ -82,14 +96,75 @@ module.exports = function( grunt ) { src: HH_JS } }, + postcss: { + options: { + map: false, + processors: [ + autoprefixer({ + browsers: [ 'extends @wordpress/browserslist-config' ], + cascade: false + }) + ], + failOnError: false + }, + helphub: { + expand: true, + src: 'themes/wporg-support/style.css' + }, + contributors: { + expand: true, + src: 'plugins/support-helphub/inc/helphub-contributors/public/css/helphub-contributors-public.css' + } + }, + sass: { + helphub: { + expand: true, + ext: '.css', + cwd: 'themes/wporg-support/sass/', + dest: 'themes/wporg-support/', + src: [ 'style.scss' ], + options: { + implementation: nodeSass, + indentType: 'tab', + indentWidth: 1, + outputStyle: 'expanded' + } + }, + contributors: { + expand: true, + ext: '.css', + cwd: 'plugins/support-helphub/inc/helphub-contributors/src/sass/', + dest: 'plugins/support-helphub/inc/helphub-contributors/public/css/', + src: [ 'helphub-contributors-public.scss' ], + options: { + implementation: nodeSass, + indentType: 'tab', + indentWidth: 1, + outputStyle: 'expanded' + } + } + }, stylelint: { css: { + expand: true, + src: HH_CSS + }, + + scss: { options: { - configFile: '.stylelintrc.js', - format: 'css' + syntax: 'scss' }, expand: true, - src: HH_CSS + src: HH_SCSS + } + }, + watch: { + config: { + files: 'Gruntfile.js' + }, + sass: { + files: HH_SCSS, + tasks: [ 'sass', 'postcss:helphub', 'postcss:contributors' ] } } }); @@ -111,6 +186,8 @@ module.exports = function( grunt ) { 'checkDependencies', 'csstest', 'jstest', - 'phptest' + 'phptest', + 'sass', + 'postcss' ] ); }; diff --git a/README.md b/README.md index 8506737d..d896c9f8 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,24 @@ # HelpHub -[![Build Status](https://travis-ci.org/Kenshino/HelpHub.svg?branch=master)](https://travis-ci.org/Kenshino/HelpHub) +[![Build Status](https://travis-ci.com/WordPress/HelpHub.svg?branch=master)](https://travis-ci.com/WordPress/HelpHub) -HelpHub is going to be the new portal for all WordPress user documentation that currently resides on the [WordPress Codex](https://codex.wordpress.org/). This repo is where we will be managing development of this new portal. +HelpHub is going to be the new portal for all WordPress user documentation that currently resides on the [WordPress Codex](https://codex.wordpress.org/). This repo is where we will be managing the development of this new portal. ## Get Involved -You can get involved in development (or any other aspect of the project) by attending our weekly meetings in the #docs channel of [the Making WordPress Slack](https://make.wordpress.org/chat/) every Tuesday at 14:00 UTC. +You can get involved in development (or any other aspect of the project) by attending our weekly meetings in the #docs channel of [the Making WordPress Slack](https://make.wordpress.org/chat/) every Monday at 15:00 UTC. ## How to use this repo -To use this repo, simply create a new WordPress site on your local machine (using whatever development environment suits you), then empty out the `wp-content` folder and clone this repo into it. You will also need to add the following line to your site's `wp-config.php` file: - -``` -define( 'WPORGPATH', 'https://wordpress.org/' ); -``` +To use this repo, simply create a new WordPress site on your local machine (using whatever development environment suits you), then empty out the `wp-content` folder and clone this repo into it. After logging in to the admin area activate `wprog-support` theme for the site to work. +You can get more information about running the HelpHub code base locally via reading the [contributing document](https://github.com/WordPress/HelpHub/blob/master/CONTRIBUTING.md) ## Workflow -Anyone is welcome to fork the repo and send pull requests, but the project collaborators (listed below) have push access directly to the repo. **All pull requests will be be reviewed by at least one collaborator with commit access and the PR must pass tests. Collaborators will be responsible for merging their own pull requests once the reviews has been approved. Major feature development will require a review from the project lead, minor ones do not.** +Anyone is welcome to fork the repo and send pull requests, but the project collaborators (listed below) have push access directly to the repo. **All pull requests will be reviewed by at least one collaborator with commit access and the PR must pass tests. Collaborators will be responsible for merging their own pull requests once the reviews have been approved. Major feature development will require a review from the project lead, minor ones do not.** + +We use ZenHub for project management, see https://github.com/WordPress/HelpHub/issues/79 for help on using it ### Feature development @@ -31,9 +30,11 @@ Any fixes that do not qualify as new features are to done in individual branches ### Development guidelines -As this is a WordPress community project, all development must have a strong committment to accessibility and responsive design. We will also be following the [WordPress coding standards](https://codex.wordpress.org/WordPress_Coding_Standards) throughout the project. +As this is a WordPress community project, all development must have a strong commitment to accessibility and responsive design. We will also be following the [WordPress coding standards](https://codex.wordpress.org/WordPress_Coding_Standards) throughout the project. -Given that we will ultimately need to localise the whole site for different languages, please use `helphub` as the text domain for all text strings. +Given that we will ultimately need to localize the whole site for different languages, please use `wporg-forums` as the text domain for all text strings. + +Database from staging site is located in `wp-content/staging-database` folder. There you can find database files for WordPress Importer, Widget Importer & Exporter, Duplicator and UpdraftPlus. ### Design guidelines @@ -43,19 +44,37 @@ See the [HelpHub wireframes](https://wp-commhub.mybalsamiq.com/projects/helphub/ Project Lead: [Jon Ang](https://profiles.wordpress.org/kenshino) -The following people are active developers on the project and are all listed as collaborators on this repo: - -| Name | GitHub username | Slack username | -|-------------------- |------------------- |---------------- | -| Hugh Lashbrooke | hlashbrooke | hlashbrooke | -| Sara Cope | saracope | sarassassin | -| Justin Greer | justingreerbbi | justingreerbbi | -| Nicole Arnold | NicoleA | nlarnold1 | -| Jon Ang | kenshino | kenshino | -| Stephanie Green | greensteph | greensteph | -| Jonathan Bossenger | jonathanbossenger | jon_bossenger | -| Jay Hoffmann | JasonHoffmann | jayhoffmann | -| Carl Alberto | carl-alberto | carlalberto | -| Marius Jensen | clorith | clorith | -| Jude Rosario | JudeRosario | lumberhack | -| Stephen Edgar | ntwb | netweb | +The following people are active developers on the project in last year and are all listed as collaborators on this repo: + +| Name | GitHub username | Slack username | +|-----------------------|-----------------------|-------------------| +| Jon Ang | @kenshino | kenshino | +| Stephen Edgar | @ntwb | netweb | +| Marius Jensen | @clorith | clorith | +| Milana Cap | @zzap | zzap | +| Akira Tachibana | @atachibana | atachibana | +| Carl Alberto | @carl-alberto | carlalberto | +| Felipe Elia | @felipeelia | felipeelia | +| Joy Reynolds | @joyously | joyously | +| Mukesh Panchal | @mukeshpanchal27 | mukesh27 | +| Subrata Sarkar | @emfluenceindia | subratasarkar | +| Burhan Nasir | @burhandodhy | burhandodhy | + + +People who have helped the project but are not active contributors (any more): + +| Name | GitHub username | Slack username | +|-----------------------|-----------------------|-------------------| +| Mark Uraine | @mapk | mapk | +| Justin Greer | @justingreerbbi | justingreerbbi | +| Takayuki Miyauchi | @miya0001 | miyauchi | +| Hugh Lashbrooke | @hlashbrooke | hlashbrooke | +| Hiroshi Urabe | @torounit | toro_unit | +| Mário Valney | @mariovalney | mariovalney | +| Matt Cromwell | @mathetos | webdevmattcrom | +| Juliette | @jrfnl | jrf | +| Gary Pendergast | @pento | pento | +| Toshihiro Kanai | @mirucon | mirucon | +| Hidetaka Okamoto | @hideokamoto | motchi0214 | +| | @bravokeyl | bravokeyl | + diff --git a/composer.json b/composer.json new file mode 100644 index 00000000..88cf24b2 --- /dev/null +++ b/composer.json @@ -0,0 +1,22 @@ +{ + "name": "wordpress/helphub", + "license": "GPL-2.0-or-later", + "description": "The WordPress user documentation portal.", + "homepage": "https://wordpress.org", + "keywords": [ + "helphub", "wordpress", "wp" + ], + "support": { + "issues": "https://github.com/Kenshino/HelpHub" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.5", + "wp-coding-standards/wpcs": "^2.0", + "phpcompatibility/phpcompatibility-wp": "^2.0", + "phpunit/phpunit": "^6" + }, + "scripts": { + "format": "phpcbf --report-summary --report-source", + "lint": "phpcs --report-summary --report-source" + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 00000000..8ddc72e9 --- /dev/null +++ b/composer.lock @@ -0,0 +1,1798 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "17185fcb1661f8bc2d5c5dde3d2dac91", + "packages": [], + "packages-dev": [ + { + "name": "dealerdirect/phpcodesniffer-composer-installer", + "version": "v0.5.0", + "source": { + "type": "git", + "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git", + "reference": "e749410375ff6fb7a040a68878c656c2e610b132" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/e749410375ff6fb7a040a68878c656c2e610b132", + "reference": "e749410375ff6fb7a040a68878c656c2e610b132", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.0", + "php": "^5.3|^7", + "squizlabs/php_codesniffer": "^2|^3" + }, + "require-dev": { + "composer/composer": "*", + "phpcompatibility/php-compatibility": "^9.0", + "sensiolabs/security-checker": "^4.1.0" + }, + "type": "composer-plugin", + "extra": { + "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" + }, + "autoload": { + "psr-4": { + "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Franck Nijhof", + "email": "franck.nijhof@dealerdirect.com", + "homepage": "http://www.frenck.nl", + "role": "Developer / IT Manager" + } + ], + "description": "PHP_CodeSniffer Standards Composer Installer Plugin", + "homepage": "http://www.dealerdirect.com", + "keywords": [ + "PHPCodeSniffer", + "PHP_CodeSniffer", + "code quality", + "codesniffer", + "composer", + "installer", + "phpcs", + "plugin", + "qa", + "quality", + "standard", + "standards", + "style guide", + "stylecheck", + "tests" + ], + "time": "2018-10-26T13:21:45+00:00" + }, + { + "name": "doctrine/instantiator", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", + "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", + "shasum": "" + }, + "require": { + "php": "^7.1" + }, + "require-dev": { + "athletic/athletic": "~0.1.8", + "ext-pdo": "*", + "ext-phar": "*", + "phpunit/phpunit": "^6.2.3", + "squizlabs/php_codesniffer": "^3.0.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "http://ocramius.github.com/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://github.com/doctrine/instantiator", + "keywords": [ + "constructor", + "instantiate" + ], + "time": "2017-07-22T11:58:36+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.8.1", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", + "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", + "shasum": "" + }, + "require": { + "php": "^7.1" + }, + "replace": { + "myclabs/deep-copy": "self.version" + }, + "require-dev": { + "doctrine/collections": "^1.0", + "doctrine/common": "^2.6", + "phpunit/phpunit": "^7.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + }, + "files": [ + "src/DeepCopy/deep_copy.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "time": "2018-06-11T23:09:50+00:00" + }, + { + "name": "phar-io/manifest", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/2df402786ab5368a0169091f61a7c1e0eb6852d0", + "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-phar": "*", + "phar-io/version": "^1.0.1", + "php": "^5.6 || ^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "time": "2017-03-05T18:14:27+00:00" + }, + { + "name": "phar-io/version", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/a70c0ced4be299a63d32fa96d9281d03e94041df", + "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "time": "2017-03-05T17:38:23+00:00" + }, + { + "name": "phpcompatibility/php-compatibility", + "version": "9.1.1", + "source": { + "type": "git", + "url": "https://github.com/PHPCompatibility/PHPCompatibility.git", + "reference": "2b63c5d284ab8857f7b1d5c240ddb507a6b2293c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/2b63c5d284ab8857f7b1d5c240ddb507a6b2293c", + "reference": "2b63c5d284ab8857f7b1d5c240ddb507a6b2293c", + "shasum": "" + }, + "require": { + "php": ">=5.3", + "squizlabs/php_codesniffer": "^2.3 || ^3.0.2" + }, + "conflict": { + "squizlabs/php_codesniffer": "2.6.2" + }, + "require-dev": { + "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0" + }, + "suggest": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.", + "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." + }, + "type": "phpcodesniffer-standard", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Contributors", + "homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors" + }, + { + "name": "Wim Godden", + "homepage": "https://github.com/wimg", + "role": "lead" + }, + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + } + ], + "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.", + "homepage": "http://techblog.wimgodden.be/tag/codesniffer/", + "keywords": [ + "compatibility", + "phpcs", + "standards" + ], + "time": "2018-12-30T23:16:27+00:00" + }, + { + "name": "phpcompatibility/phpcompatibility-paragonie", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git", + "reference": "9160de79fcd683b5c99e9c4133728d91529753ea" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/9160de79fcd683b5c99e9c4133728d91529753ea", + "reference": "9160de79fcd683b5c99e9c4133728d91529753ea", + "shasum": "" + }, + "require": { + "phpcompatibility/php-compatibility": "^9.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4" + }, + "suggest": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", + "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." + }, + "type": "phpcodesniffer-standard", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Wim Godden", + "role": "lead" + }, + { + "name": "Juliette Reinders Folmer", + "role": "lead" + } + ], + "description": "A set of rulesets for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by the Paragonie polyfill libraries.", + "homepage": "http://phpcompatibility.com/", + "keywords": [ + "compatibility", + "paragonie", + "phpcs", + "polyfill", + "standards" + ], + "time": "2018-12-16T19:10:44+00:00" + }, + { + "name": "phpcompatibility/phpcompatibility-wp", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git", + "reference": "cb303f0067cd5b366a41d4fb0e254fb40ff02efd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/cb303f0067cd5b366a41d4fb0e254fb40ff02efd", + "reference": "cb303f0067cd5b366a41d4fb0e254fb40ff02efd", + "shasum": "" + }, + "require": { + "phpcompatibility/php-compatibility": "^9.0", + "phpcompatibility/phpcompatibility-paragonie": "^1.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3" + }, + "suggest": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", + "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." + }, + "type": "phpcodesniffer-standard", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Wim Godden", + "role": "lead" + }, + { + "name": "Juliette Reinders Folmer", + "role": "lead" + } + ], + "description": "A ruleset for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.", + "homepage": "http://phpcompatibility.com/", + "keywords": [ + "compatibility", + "phpcs", + "standards", + "wordpress" + ], + "time": "2018-10-07T18:31:37+00:00" + }, + { + "name": "phpdocumentor/reflection-common", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", + "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "time": "2017-09-11T18:02:19+00:00" + }, + { + "name": "phpdocumentor/reflection-docblock", + "version": "4.3.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "94fd0001232e47129dd3504189fa1c7225010d08" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08", + "reference": "94fd0001232e47129dd3504189fa1c7225010d08", + "shasum": "" + }, + "require": { + "php": "^7.0", + "phpdocumentor/reflection-common": "^1.0.0", + "phpdocumentor/type-resolver": "^0.4.0", + "webmozart/assert": "^1.0" + }, + "require-dev": { + "doctrine/instantiator": "~1.0.5", + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^6.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "time": "2017-11-30T07:14:17+00:00" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "0.4.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7", + "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7", + "shasum": "" + }, + "require": { + "php": "^5.5 || ^7.0", + "phpdocumentor/reflection-common": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^5.2||^4.8.24" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "time": "2017-07-14T14:27:02+00:00" + }, + { + "name": "phpspec/prophecy", + "version": "1.8.0", + "source": { + "type": "git", + "url": "https://github.com/phpspec/prophecy.git", + "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06", + "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": "^5.3|^7.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0", + "sebastian/comparator": "^1.1|^2.0|^3.0", + "sebastian/recursion-context": "^1.0|^2.0|^3.0" + }, + "require-dev": { + "phpspec/phpspec": "^2.5|^3.2", + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.8.x-dev" + } + }, + "autoload": { + "psr-0": { + "Prophecy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "http://everzet.com" + }, + { + "name": "Marcello Duarte", + "email": "marcello.duarte@gmail.com" + } + ], + "description": "Highly opinionated mocking framework for PHP 5.3+", + "homepage": "https://github.com/phpspec/prophecy", + "keywords": [ + "Double", + "Dummy", + "fake", + "mock", + "spy", + "stub" + ], + "time": "2018-08-05T17:53:17+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "5.3.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "c89677919c5dd6d3b3852f230a663118762218ac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c89677919c5dd6d3b3852f230a663118762218ac", + "reference": "c89677919c5dd6d3b3852f230a663118762218ac", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": "^7.0", + "phpunit/php-file-iterator": "^1.4.2", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-token-stream": "^2.0.1", + "sebastian/code-unit-reverse-lookup": "^1.0.1", + "sebastian/environment": "^3.0", + "sebastian/version": "^2.0.1", + "theseer/tokenizer": "^1.1" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "suggest": { + "ext-xdebug": "^2.5.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.3.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "time": "2018-04-06T15:36:58+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "1.4.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "time": "2017-11-27T13:52:08+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "time": "2015-06-21T13:50:34+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "1.0.9", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "time": "2017-02-26T11:10:40+00:00" + }, + { + "name": "phpunit/php-token-stream", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "791198a2c6254db10131eecfe8c06670700904db" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db", + "reference": "791198a2c6254db10131eecfe8c06670700904db", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.2.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "time": "2017-11-27T05:48:46+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "6.5.13", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "0973426fb012359b2f18d3bd1e90ef1172839693" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0973426fb012359b2f18d3bd1e90ef1172839693", + "reference": "0973426fb012359b2f18d3bd1e90ef1172839693", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "myclabs/deep-copy": "^1.6.1", + "phar-io/manifest": "^1.0.1", + "phar-io/version": "^1.0", + "php": "^7.0", + "phpspec/prophecy": "^1.7", + "phpunit/php-code-coverage": "^5.3", + "phpunit/php-file-iterator": "^1.4.3", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-timer": "^1.0.9", + "phpunit/phpunit-mock-objects": "^5.0.9", + "sebastian/comparator": "^2.1", + "sebastian/diff": "^2.0", + "sebastian/environment": "^3.1", + "sebastian/exporter": "^3.1", + "sebastian/global-state": "^2.0", + "sebastian/object-enumerator": "^3.0.3", + "sebastian/resource-operations": "^1.0", + "sebastian/version": "^2.0.1" + }, + "conflict": { + "phpdocumentor/reflection-docblock": "3.0.2", + "phpunit/dbunit": "<3.0" + }, + "require-dev": { + "ext-pdo": "*" + }, + "suggest": { + "ext-xdebug": "*", + "phpunit/php-invoker": "^1.1" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "6.5.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "time": "2018-09-08T15:10:43+00:00" + }, + { + "name": "phpunit/phpunit-mock-objects", + "version": "5.0.10", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", + "reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/cd1cf05c553ecfec36b170070573e540b67d3f1f", + "reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.5", + "php": "^7.0", + "phpunit/php-text-template": "^1.2.1", + "sebastian/exporter": "^3.1" + }, + "conflict": { + "phpunit/phpunit": "<6.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.5.11" + }, + "suggest": { + "ext-soap": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Mock Object library for PHPUnit", + "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", + "keywords": [ + "mock", + "xunit" + ], + "time": "2018-08-09T05:50:03+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "time": "2017-03-04T06:30:41+00:00" + }, + { + "name": "sebastian/comparator", + "version": "2.1.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/34369daee48eafb2651bea869b4b15d75ccc35f9", + "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9", + "shasum": "" + }, + "require": { + "php": "^7.0", + "sebastian/diff": "^2.0 || ^3.0", + "sebastian/exporter": "^3.1" + }, + "require-dev": { + "phpunit/phpunit": "^6.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "time": "2018-02-01T13:46:46+00:00" + }, + { + "name": "sebastian/diff", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/347c1d8b49c5c3ee30c7040ea6fc446790e6bddd", + "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd", + "shasum": "" + }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff" + ], + "time": "2017-08-03T08:09:46+00:00" + }, + { + "name": "sebastian/environment", + "version": "3.1.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/cd0871b3975fb7fc44d11314fd1ee20925fce4f5", + "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5", + "shasum": "" + }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "time": "2017-07-01T08:51:00+00:00" + }, + { + "name": "sebastian/exporter", + "version": "3.1.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "234199f4528de6d12aaa58b612e98f7d36adb937" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/234199f4528de6d12aaa58b612e98f7d36adb937", + "reference": "234199f4528de6d12aaa58b612e98f7d36adb937", + "shasum": "" + }, + "require": { + "php": "^7.0", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "time": "2017-04-03T13:19:02+00:00" + }, + { + "name": "sebastian/global-state", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4", + "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4", + "shasum": "" + }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "time": "2017-04-27T15:39:26+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5", + "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5", + "shasum": "" + }, + "require": { + "php": "^7.0", + "sebastian/object-reflector": "^1.1.1", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "time": "2017-08-03T12:35:26+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "773f97c67f28de00d397be301821b06708fca0be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be", + "reference": "773f97c67f28de00d397be301821b06708fca0be", + "shasum": "" + }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "time": "2017-03-29T09:07:27+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8", + "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8", + "shasum": "" + }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "time": "2017-03-03T06:23:57+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "time": "2015-07-28T20:34:47+00:00" + }, + { + "name": "sebastian/version", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "time": "2016-10-03T07:35:21+00:00" + }, + { + "name": "squizlabs/php_codesniffer", + "version": "3.4.0", + "source": { + "type": "git", + "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", + "reference": "379deb987e26c7cd103a7b387aea178baec96e48" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/379deb987e26c7cd103a7b387aea178baec96e48", + "reference": "379deb987e26c7cd103a7b387aea178baec96e48", + "shasum": "" + }, + "require": { + "ext-simplexml": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + }, + "bin": [ + "bin/phpcs", + "bin/phpcbf" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Greg Sherwood", + "role": "lead" + } + ], + "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "homepage": "http://www.squizlabs.com/php-codesniffer", + "keywords": [ + "phpcs", + "standards" + ], + "time": "2018-12-19T23:57:18+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/cb2f008f3f05af2893a87208fe6a6c4985483f8b", + "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "time": "2017-04-07T12:08:54+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://github.com/webmozart/assert.git", + "reference": "0df1908962e7a3071564e857d86874dad1ef204a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a", + "reference": "0df1908962e7a3071564e857d86874dad1ef204a", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.6", + "sebastian/version": "^1.0.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "time": "2018-01-29T19:49:41+00:00" + }, + { + "name": "wp-coding-standards/wpcs", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git", + "reference": "c9eaadaafefce36b3cb7e06eb15305b8c4cae9ce" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/c9eaadaafefce36b3cb7e06eb15305b8c4cae9ce", + "reference": "c9eaadaafefce36b3cb7e06eb15305b8c4cae9ce", + "shasum": "" + }, + "require": { + "php": ">=5.4", + "squizlabs/php_codesniffer": "^3.3.1" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0", + "phpcompatibility/php-compatibility": "^9.0", + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + }, + "suggest": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically." + }, + "type": "phpcodesniffer-standard", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Contributors", + "homepage": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/graphs/contributors" + } + ], + "description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions", + "keywords": [ + "phpcs", + "standards", + "wordpress" + ], + "time": "2019-01-16T10:13:16+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [] +} diff --git a/package.json b/package.json index 73fc38f0..cbda6375 100644 --- a/package.json +++ b/package.json @@ -5,19 +5,28 @@ }, "description": "The WordPress user documentation portal.", "devDependencies": { - "grunt": "~1.0.1", + "@wordpress/browserslist-config": "~2.2.2", + "autoprefixer": "~9.3.1", + "grunt": "~1.0.0", "grunt-check-dependencies": "~1.0.0", - "grunt-checktextdomain": "~1.0.1", - "grunt-contrib-jshint": "~1.1.0", - "grunt-jscs": "~3.0.1", + "grunt-checktextdomain": "~1.0.0", + "grunt-contrib-copy": "~1.0.0", + "grunt-contrib-jshint": "~2.0.0", + "grunt-contrib-watch": "~1.1.0", + "grunt-jscs": "~3.0.0", "grunt-jsvalidate": "~0.2.2", - "grunt-stylelint": "~0.6.0", - "matchdep": "~1.0.1", - "stylelint": "~7.7.0", - "stylelint-config-wordpress": "~9.1.1" + "grunt-postcss": "~0.9.0", + "grunt-sass": "~3.0.2", + "grunt-stylelint": "~0.10.1", + "matchdep": "~2.0.0", + "node-sass": "~4.9.4", + "select2": "~4.0.6-rc.1", + "stylelint": "~9.7.0", + "stylelint-config-wordpress": "~13.1.0", + "stylelint-scss": "~3.3.2" }, "engines": { - "node": ">=4.2.1" + "node": ">=8" }, "keywords": [ "community", @@ -32,5 +41,8 @@ "type": "git", "url": "https://github.com/Kenshino/HelpHub" }, - "version": "0.1.0" + "version": "0.1.0", + "browserslist": [ + "extends @wordpress/browserslist-config" + ] } diff --git a/phpcs.ruleset.xml b/phpcs.ruleset.xml deleted file mode 100644 index 4400af28..00000000 --- a/phpcs.ruleset.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - A custom set of code standard rules to check for WordPress themes. - - plugins/syntaxhighlighter/* - - - - - - - - diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 00000000..f11475a5 --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,28 @@ + + + Apply WordPress Coding Standards to all HelpHub files. + + + + + + + + + + + + ./themes/ + ./plugins/ + + + + + + + + + /node_modules/* + /vendor/* + + diff --git a/plugins/helphub-post-types/assets/js/admin.js b/plugins/helphub-post-types/assets/js/admin.js deleted file mode 100644 index 34bd07eb..00000000 --- a/plugins/helphub-post-types/assets/js/admin.js +++ /dev/null @@ -1,56 +0,0 @@ -jQuery(document).ready(function($){ - - - // Instantiates the variable that holds the media library frame. - var gallery_data_frame; - - // Runs when the image button is clicked. - jQuery( '.postbox' ).on( 'click', '.helphub-upload', function( event ) { - - // Prevents the default action from occuring. - event.preventDefault(); - - // store button object - $button = $(this); - - // If the frame already exists, re-open it. - if ( gallery_data_frame ) { - gallery_data_frame.open(); - return; - } - - title = $button.data( 'title' ) ? $button.data( 'title' ) : helphub_admin.default_title; - button = $button.data( 'button' ) ? $button.data( 'button' ) : helphub_admin.default_button; - library = $button.data( 'library' ) ? $button.data( 'library' ) : ''; - - // Sets up the media library frame - gallery_data_frame = wp.media.frames.gallery_data_frame = wp.media({ - title: title, - button: { text: button }, - library: { type: library } - }); - - // Runs when an image is selected. - gallery_data_frame.on( 'select', function(){ - - // Grabs the attachment selection and creates a JSON representation of the model. - var media_attachment = gallery_data_frame.state().get( 'selection' ).first().toJSON(); - - // Sends the attachment URL to our custom image input field. - $button.prev( 'input.helphub-upload-field' ).val( media_attachment.url ); - - }); - - // Opens the media library frame. - gallery_data_frame.open(); - }); - - if ( $( 'input[type="date"]' ).hasClass( 'helphub-meta-date' ) ) { - $( '.helphub-meta-date' ).datepicker({ - changeMonth: true, - changeYear: true, - formatDate: 'MM, dd, yy' - }); - } // bust cache - -}); \ No newline at end of file diff --git a/plugins/helphub-post-types/assets/js/gallery.js b/plugins/helphub-post-types/assets/js/gallery.js deleted file mode 100644 index 5659bbcb..00000000 --- a/plugins/helphub-post-types/assets/js/gallery.js +++ /dev/null @@ -1,106 +0,0 @@ -/** - * Created by User on 29/12/2015. - */ -jQuery(document).ready(function($){ - // Uploading files - var helphub_gallery_frame; - var $gallery_container = $( '#helphub_images_container') - var $image_gallery_ids = $( '#helphub_image_gallery' ); - var $gallery_images = $gallery_container.find( 'ul.product_images' ); - var $gallery_ul = $gallery_container.find( 'ul li.image' ); - - jQuery( '.add_helphub_images' ).on( 'click', 'a', function( event ) { - - var attachment_ids = $image_gallery_ids.val(); - - event.preventDefault(); - //event.stopPropagation(); - //event.stopImmediatePropagation(); - - // If the media frame already exists, reopen it. - if ( helphub_gallery_frame ) { - helphub_gallery_frame.open(); - return; - } - - // Create the media frame. - helphub_gallery_frame = wp.media.frames.downloadable_file = wp.media({ - // Set the title of the modal. - title: helphub_helphub_gallery.gallery_title, - button: { - text: helphub_helphub_gallery.gallery_button, - }, - multiple: true - }); - - // When an image is selected, run a callback. - helphub_gallery_frame.on( 'select', function() { - - var selection = helphub_gallery_frame.state().get( 'selection' ); - - selection.map( function( attachment ) { - - attachment = attachment.toJSON(); - - if ( attachment.id ) { - attachment_ids = attachment_ids ? attachment_ids + "," + attachment.id : attachment.id; - - $gallery_images.append('\ -
  • \ - \ - \ -
  • '); - } - - } ); - - $image_gallery_ids.val( attachment_ids ); - }); - - // Finally, open the modal. - helphub_gallery_frame.open(); - }); - - // Image ordering - $gallery_images.sortable({ - items: 'li.image', - cursor: 'move', - scrollSensitivity:40, - forcePlaceholderSize: true, - forceHelperSize: false, - helper: 'clone', - opacity: 0.65, - placeholder: 'helphub-metabox-sortable-placeholder', - start:function(event,ui){ - ui.item.css( 'background-color','#f6f6f6' ); - }, - stop:function(event,ui){ - ui.item.removeAttr( 'style' ); - }, - update: function(event, ui) { - var attachment_ids = ''; - $gallery_container.find( 'ul li.image' ).css( 'cursor','default' ).each(function() { - var attachment_id = jQuery(this).attr( 'data-attachment_id' ); - attachment_ids = attachment_ids + attachment_id + ','; - }); - $image_gallery_ids.val( attachment_ids ); - } - }); - // Remove images - $gallery_container.on( 'click', 'a.delete', function() { - $(this).closest( 'li.image' ).remove(); - - var attachment_ids = ''; - - $gallery_ul.css( 'cursor','default' ).each(function() { - var attachment_id = jQuery(this).attr( 'data-attachment_id' ); - attachment_ids = attachment_ids + attachment_id + ','; - }); - - $image_gallery_ids.val( attachment_ids ); - - return false; - } ); -} ); diff --git a/plugins/support-helphub/inc/helphub-codex-languages/assets/css/codex-languages.css b/plugins/support-helphub/inc/helphub-codex-languages/assets/css/codex-languages.css new file mode 100644 index 00000000..0e3f4e5f --- /dev/null +++ b/plugins/support-helphub/inc/helphub-codex-languages/assets/css/codex-languages.css @@ -0,0 +1,8 @@ +.entry-content .language-links { + border: 1px solid #ccc; + color: #333; + font-size: 90%; + line-height: 1.5; + padding: 10px; + text-align: left; +} diff --git a/plugins/support-helphub/inc/helphub-codex-languages/class-helphub-codex-languages.php b/plugins/support-helphub/inc/helphub-codex-languages/class-helphub-codex-languages.php new file mode 100644 index 00000000..ef4ab711 --- /dev/null +++ b/plugins/support-helphub/inc/helphub-codex-languages/class-helphub-codex-languages.php @@ -0,0 +1,251 @@ +token = 'helphub'; + $this->plugin_url = plugin_dir_url( __FILE__ ); + $this->version = '1.0.0'; + + register_activation_hook( __FILE__, array( $this, 'install' ) ); + + add_action( 'init', array( $this, 'load_plugin_textdomain' ) ); + + add_shortcode( 'codex_languages', array( $this, 'codex_languages_func' ) ); + } // End __construct() + + /** + * Short code for Codex Language link. + * + * Note for pt-br, zh-cn and zh-tw: In short codes, hypen causes many troubles + * so it have to be removed. + * + * @example [languages en="Version 4.6" ja="version 4.6"] + * @param string $atts language indicator. Refer Multilingual_Codex. + * @access public + * @since 1.0.0 + */ + public function codex_languages_func( $atts ) { + wp_enqueue_style( 'helphub-codex-languages-style', $this->plugin_url . 'assets/css/codex-languages.css', array(), '1.0.0' ); + $str = ''; + return $str; + } // End codex_languages_func() + + /** + * Main HelpHub_Codex_Languages Instance + * + * Ensures only one instance of HelpHub_Codex_Languages is loaded or can be loaded. + * + * @since 1.0.0 + * @static + * @see HelpHub_Codex_Languages() + * @return Main HelpHub_Codex_Languages instance + */ + public static function instance() { + if ( is_null( self::$_instance ) ) { + self::$_instance = new self(); + } + return self::$_instance; + } // End instance() + + /** + * Load the localisation file. + * + * @access public + * @since 1.0.0 + */ + public function load_plugin_textdomain() { + load_plugin_textdomain( 'wporg-forums', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); + } // End load_plugin_textdomain() + + /** + * Cloning is forbidden. + * + * @access public + * @since 1.0.0 + */ + public function __clone() { + _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'wporg-forums' ), '1.0.0' ); + } // End __clone() + + /** + * Unserializing instances of this class is forbidden. + * + * @access public + * @since 1.0.0 + */ + public function __wakeup() { + _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'wporg-forums' ), '1.0.0' ); + } // End __wakeup() + + /** + * Installation. Runs on activation. + * + * @access public + * @since 1.0.0 + */ + public function install() { + $this->_log_version_number(); + } // End install() + + /** + * Log the plugin version number. + * + * @access private + * @since 1.0.0 + */ + private function _log_version_number() { + // Log the version number. + update_option( $this->token . '-version', $this->version ); + } // End _log_version_number() +} // End Class diff --git a/plugins/helphub-post-types/classes/index.php b/plugins/support-helphub/inc/helphub-codex-languages/index.php similarity index 100% rename from plugins/helphub-post-types/classes/index.php rename to plugins/support-helphub/inc/helphub-codex-languages/index.php diff --git a/plugins/support-helphub/inc/helphub-codex-languages/readme.txt b/plugins/support-helphub/inc/helphub-codex-languages/readme.txt new file mode 100644 index 00000000..c987bb84 --- /dev/null +++ b/plugins/support-helphub/inc/helphub-codex-languages/readme.txt @@ -0,0 +1,102 @@ +=== Helphub Codex Languages === +Contributors: Akira Tachibana +Donate link: +Tags: 1.0 +Requires at least: 4.0.0 +Tested up to: 4.0.0 +Stable tag: 1.0.0 +License: GPLv3 or later +License URI: http://www.gnu.org/licenses/gpl-3.0.html + +Short code for links to the codex translated articles from HelpHub + +== Description == + +This plugin provides shortcode "codex_languages" to make a links to the codex tranlslated articles. +It is the same role with the Codex Template:Languages. + +The list of supported language, keyword and link are as followings: +NOTE: pt-br, zh-cn and zh-cw are ptbr_codex, zhcn_codex and zhcw_codex by shortcode restriction. + +* Arabic / ar_codex / codex.wordpress.org/ar:
    +* Azerbaijani / azr_codex / codex.wordpress.org/azr:
    +* Azeri / azb_codex / codex.wordpress.org/azb:
    +* Bulgarian / bg_codex / codex.wordpress.org/bg:
    +* Bengali / bn_codex / codex.wordpress.org/bn:
    +* Bosnian / bs_codex / codex.wordpress.org/bs:
    +* Catalan / ca_codex / codex.wordpress.org/ca:
    +* Czech / cs_codex / codex.wordpress.org/cs:
    +* Danish / da_codex / codex.wordpress.org/da:
    +* German / de_codex / codex.wordpress.org/de:
    +* Greek / el_codex / wpgreece.org/
    +* Spanish / es_codex / codex.wordpress.org/es:
    +* Finnish / fi_codex / codex.wordpress.org/fi:
    +* French / fr_codex / codex.wordpress.org/fr:
    +* Croatian / hr_codex / codex.wordpress.org/hr:
    +* Hebrew / he_codex / codex.wordpress.org/he:
    +* Hindi / hi_codex / codex.wordpress.org/hi:
    +* Hungarian / hu_codex / codex.wordpress.org/hu
    +* Indonesian / id_codex / id.wordpress.net/codex/
    +* Italian / it_codex / codex.wordpress.org/it:
    +* Japanese / ja_codex / wpdocs.sourceforge.jp/
    +* Georgian / ka_codex / codex.wordpress.org/ka:
    +* Khmer / km_codex / khmerwp.com/
    +* Korean / ko_codex / wordpress.co.kr/codex/
    +* Lao / lo_codex / www.laowordpress.com/
    +* Macedonian / mk_codex / codex.wordpress.org/mk:
    +* Moldavian / md_codex / codex.wordpress.org/md:
    +* Mongolian / mn_codex / codex.wordpress.org/mn:
    +* Myanmar / mya_codex / www.myanmarwp.com/
    +* Dutch / nl_codex / codex.wordpress.org/nl:
    +* Persian / fa_codex / codex.wp-persian.com/
    +* Farsi / fax_codex / www.isawpi.ir/wiki/
    +* Polish / pl_codex / codex.wordpress.org/pl:
    +* Portuguese_Português / Português / codex.wordpress.org/pt:
    +* Brazilian Portuguese / Português do Brasil / ptbr_codex / codex.wordpress.org/pt-br:
    +* Romanian / ro_codex / codex.wordpress.org/ro:
    +* Russian / ru_codex / codex.wordpress.org/ru:
    +* Serbian / sr_codex / codex.wordpress.org/sr:
    +* Slovak / sk_codex / codex.wordpress.org/sk:
    +* Slovenian / sl_codex / codex.wordpress.org/sl:
    +* Albanian / sq_codex / codex.wordpress.org/al:
    +* Swedish / sv_codex / wp-support.se/dokumentation/
    +* Tamil / ta_codex / codex.wordpress.com/ta:
    +* Telugu / te_codex / codex.wordpress.org/te:
    +* Thai / th_codex / codex.wordthai.com/
    +* Turkish / tr_codex / codex.wordpress.org/tr:
    +* Ukrainian / uk_codex / codex.wordpress.org/uk:
    +* Vietnamese / vi_codex / codex.wordpress.org/vi:
    +* Chinese / , "zhcn_codex / codex.wordpress.org/zh-cn:
    +* Chinese (Taiwan) / 中文(繁體) / zhtw_codex / codex.wordpress.org/zh-tw:
    +* Kannada / kn_codex / codex.wordpress.org/kn:
    + +== Usage == + +In your post, insert shortcode "codex_languages" with language keyword and article title. + +Example: + [codex_languages en="Version 4.6" codex_ja="version 4.6"] + +== Installation == + +Installing "Helphub Codex Languages" can be done either by searching for "Helphub Codex Languages" via the "Plugins > Add New" screen in your WordPress dashboard, or by using the following steps: + +1. Upload the ZIP file through the "Plugins > Add New > Upload" screen in your WordPress dashboard. +2. Activate the plugin through the 'Plugins' menu in WordPress +3. Visit the settings screen and configure, as desired. + +== Frequently Asked Questions == + += Why does language keyword have 'codex_' prefix such as 'codex_ja'? = +Simple keywords such as 'ja' were reserved for the future internatinalized HelpHub site. + += Why are keywords of pt-br, ch-zn and ch-tw are 'ptbr_codex', 'chzn_codex' and 'chtw_codex'? = +This is because shortcode spec that cannot handle hyphen character well. +Refer https://codex.wordpress.org/Shortcode_API#Hyphens. + +== Upgrade Notice == + +== Changelog == + += 1.0.0 = +* Initial release. diff --git a/plugins/support-helphub/inc/helphub-contributors/LICENSE.txt b/plugins/support-helphub/inc/helphub-contributors/LICENSE.txt new file mode 100644 index 00000000..d159169d --- /dev/null +++ b/plugins/support-helphub/inc/helphub-contributors/LICENSE.txt @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/plugins/support-helphub/inc/helphub-contributors/README.txt b/plugins/support-helphub/inc/helphub-contributors/README.txt new file mode 100644 index 00000000..f9faafd3 --- /dev/null +++ b/plugins/support-helphub/inc/helphub-contributors/README.txt @@ -0,0 +1,33 @@ +=== HelpHub Contributors === +Contributors: milana_cap +Donate link: +Tags: 1.0 +Requires at least: 4.7 +Tested up to: 4.7 +Stable tag: 1.0 +License: GPLv2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html + +WordPress plugin for tracking contributors to wordpress.org Documenation team's HelpHub project. + +== Description == + +== Installation == + +1. Upload the ZIP file through the "Plugins > Add New > Upload" screen in your WordPress dashboard. +2. Activate the plugin through the 'Plugins' menu in WordPress +3. Go to edit-post screen and add wp.org usernames to "Contributors" field in "Publish" meta-box. + +== Frequently Asked Questions == + +== Screenshots == + +== Upgrade Notice == + += 1.0.0 = +* Initial release. + +== Changelog == + += 1.0.0 = +* Initial release. diff --git a/plugins/support-helphub/inc/helphub-contributors/admin/class-helphub-contributors-admin.php b/plugins/support-helphub/inc/helphub-contributors/admin/class-helphub-contributors-admin.php new file mode 100644 index 00000000..8ccff49d --- /dev/null +++ b/plugins/support-helphub/inc/helphub-contributors/admin/class-helphub-contributors-admin.php @@ -0,0 +1,184 @@ +helphub_contributors = $helphub_contributors; + $this->version = $version; + + add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) ); + add_action( 'post_submitbox_misc_actions', array( $this, 'add_contributors' ) ); + add_action( 'save_post', array( $this, 'save_post' ), 10, 2 ); + + // Show contributors for all post types with edit UI. + // Easily hide it with post_type_supports() + $post_types = get_post_types( array( 'show_ui' => true ) ); + if ( ! empty( $post_types ) ) { + foreach ( $post_types as $post_type ) { + add_post_type_support( $post_type, 'helphub-contributors' ); + add_action( "manage_edit-{$post_type}_columns", array( $this, 'add_column' ) ); + add_action( "manage_{$post_type}_posts_custom_column", array( $this, 'show_column' ), 10, 2 ); + } + } + } + + /** + * Enqueue assets for the admin area. + * + * @since 1.0.0 + */ + public function admin_enqueue_scripts() { + // Styles. + wp_enqueue_style( 'select2', plugin_dir_url( __FILE__ ) . 'css/select2.min.css', array(), '1.0.0' ); + // Scripts. + wp_enqueue_script( 'select2', plugin_dir_url( __FILE__ ) . 'js/select2.min.js', array( 'jquery' ), '1.0.0', true ); + wp_enqueue_script( $this->helphub_contributors, plugin_dir_url( __FILE__ ) . 'js/helphub-contributors-admin.js', array( 'jquery' ), $this->version, false ); + } + /** + * Add select field to Publish metabox. + * Attached to 'post_submitbox_misc_actions' action hook. + */ + public function add_contributors() { + $post = get_post(); + + if ( ! $post ) { + return; + } + + if ( ! post_type_supports( $post->post_type, 'helphub-contributors' ) ) { + return; + } + // Set nonce. + wp_nonce_field( 'helphub-contributors-save', 'helphub_contributors_nonce' ); + // Get existing contributors. + $contributors = get_post_meta( $post->ID, 'helphub_contributors' ); ?> + +
    + +

    +
    + @' . esc_html( $contributor ) . ''; + + if ( end( $contributors ) == $contributor ) { + $contributor_link .= esc_html__( '.', 'wporg-forums' ); + } else { + $contributor_link .= esc_html__( ', ', 'wporg-forums' ); + } + + echo $contributor_link; + } + endif; + } +} diff --git a/plugins/support-helphub/inc/helphub-contributors/admin/css/select2.min.css b/plugins/support-helphub/inc/helphub-contributors/admin/css/select2.min.css new file mode 100644 index 00000000..60d59904 --- /dev/null +++ b/plugins/support-helphub/inc/helphub-contributors/admin/css/select2.min.css @@ -0,0 +1 @@ +.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb} diff --git a/plugins/support-helphub/inc/helphub-contributors/admin/index.php b/plugins/support-helphub/inc/helphub-contributors/admin/index.php new file mode 100644 index 00000000..8142269b --- /dev/null +++ b/plugins/support-helphub/inc/helphub-contributors/admin/index.php @@ -0,0 +1 @@ +0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}if((o||q)&&p){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),o)for(l=o.length;l>0;l-=1)if((e=p[o.slice(0,l).join("/")])&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&q&&q[d]&&(i=q[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=w.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),o.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){r[a]=b}}function j(a){if(e(s,a)){var c=s[a];delete s[a],u[a]=!0,n.apply(b,c)}if(!e(r,a)&&!e(u,a))throw new Error("No "+a);return r[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return a?k(a):[]}function m(a){return function(){return t&&t.config&&t.config[a]||{}}}var n,o,p,q,r={},s={},t={},u={},v=Object.prototype.hasOwnProperty,w=[].slice,x=/\.js$/;p=function(a,b){var c,d=k(a),e=d[0],g=b[1];return a=d[1],e&&(e=f(e,g),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(g)):f(a,g):(a=f(a,g),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},q={require:function(a){return g(a)},exports:function(a){var b=r[a];return void 0!==b?b:r[a]={}},module:function(a){return{id:a,uri:"",exports:r[a],config:m(a)}}},n=function(a,c,d,f){var h,k,m,n,o,t,v,w=[],x=typeof d;if(f=f||a,t=l(f),"undefined"===x||"function"===x){for(c=!c.length&&d.length?["require","exports","module"]:c,o=0;o0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h":">",'"':""","'":"'","/":"/"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c.__cache={};var e=0;return c.GetUniqueElementId=function(a){var b=a.getAttribute("data-select2-id");return null==b&&(a.id?(b=a.id,a.setAttribute("data-select2-id",b)):(a.setAttribute("data-select2-id",++e),b=e.toString())),b},c.StoreData=function(a,b,d){var e=c.GetUniqueElementId(a);c.__cache[e]||(c.__cache[e]={}),c.__cache[e][b]=d},c.GetData=function(b,d){var e=c.GetUniqueElementId(b);return d?c.__cache[e]&&null!=c.__cache[e][d]?c.__cache[e][d]:a(b).data(d):c.__cache[e]},c.RemoveData=function(a){var b=c.GetUniqueElementId(a);null!=c.__cache[b]&&delete c.__cache[b]},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('
      ');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('
    • '),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),d[0].className+=" select2-results__message",this.$results.append(d)},c.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c0?b.first().trigger("mouseenter"):a.first().trigger("mouseenter"),this.ensureHighlightVisible()},c.prototype.setClasses=function(){var c=this;this.data.current(function(d){var e=a.map(d,function(a){return a.id.toString()});c.$results.find(".select2-results__option[aria-selected]").each(function(){var c=a(this),d=b.GetData(this,"data"),f=""+d.id;null!=d.element&&d.element.selected||null==d.element&&a.inArray(f,e)>-1?c.attr("aria-selected","true"):c.attr("aria-selected","false")})})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(c){var d=document.createElement("li");d.className="select2-results__option";var e={role:"treeitem","aria-selected":"false"};c.disabled&&(delete e["aria-selected"],e["aria-disabled"]="true"),null==c.id&&delete e["aria-selected"],null!=c._resultId&&(d.id=c._resultId),c.title&&(d.title=c.title),c.children&&(e.role="group",e["aria-label"]=c.text,delete e["aria-selected"]);for(var f in e){var g=e[f];d.setAttribute(f,g)}if(c.children){var h=a(d),i=document.createElement("strong");i.className="select2-results__group";a(i);this.template(c,i);for(var j=[],k=0;k",{class:"select2-results__options select2-results__options--nested"});n.append(j),h.append(i),h.append(n)}else this.template(c,d);return b.StoreData(d,"data",c),d},c.prototype.bind=function(c,d){var e=this,f=c.id+"-results";this.$results.attr("id",f),c.on("results:all",function(a){e.clear(),e.append(a.data),c.isOpen()&&(e.setClasses(),e.highlightFirstItem())}),c.on("results:append",function(a){e.append(a.data),c.isOpen()&&e.setClasses()}),c.on("query",function(a){e.hideMessages(),e.showLoading(a)}),c.on("select",function(){c.isOpen()&&(e.setClasses(),e.highlightFirstItem())}),c.on("unselect",function(){c.isOpen()&&(e.setClasses(),e.highlightFirstItem())}),c.on("open",function(){e.$results.attr("aria-expanded","true"),e.$results.attr("aria-hidden","false"),e.setClasses(),e.ensureHighlightVisible()}),c.on("close",function(){e.$results.attr("aria-expanded","false"),e.$results.attr("aria-hidden","true"),e.$results.removeAttr("aria-activedescendant")}),c.on("results:toggle",function(){var a=e.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),c.on("results:select",function(){var a=e.getHighlightedResults();if(0!==a.length){var c=b.GetData(a[0],"data");"true"==a.attr("aria-selected")?e.trigger("close",{}):e.trigger("select",{data:c})}}),c.on("results:previous",function(){var a=e.getHighlightedResults(),b=e.$results.find("[aria-selected]"),c=b.index(a);if(!(c<=0)){var d=c-1;0===a.length&&(d=0);var f=b.eq(d);f.trigger("mouseenter");var g=e.$results.offset().top,h=f.offset().top,i=e.$results.scrollTop()+(h-g);0===d?e.$results.scrollTop(0):h-g<0&&e.$results.scrollTop(i)}}),c.on("results:next",function(){var a=e.getHighlightedResults(),b=e.$results.find("[aria-selected]"),c=b.index(a),d=c+1;if(!(d>=b.length)){var f=b.eq(d);f.trigger("mouseenter");var g=e.$results.offset().top+e.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=e.$results.scrollTop()+h-g;0===d?e.$results.scrollTop(0):h>g&&e.$results.scrollTop(i)}}),c.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),c.on("results:message",function(a){e.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=e.$results.scrollTop(),c=e.$results.get(0).scrollHeight-b+a.deltaY,d=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&c<=e.$results.height();d?(e.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(e.$results.scrollTop(e.$results.get(0).scrollHeight-e.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(c){var d=a(this),f=b.GetData(this,"data");if("true"===d.attr("aria-selected"))return void(e.options.get("multiple")?e.trigger("unselect",{originalEvent:c,data:f}):e.trigger("close",{}));e.trigger("select",{originalEvent:c,data:f})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(c){var d=b.GetData(this,"data");e.getHighlightedResults().removeClass("select2-results__option--highlighted"),e.trigger("results:focus",{data:d,element:a(this)})})},c.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),c<=2?this.$results.scrollTop(0):(g>this.$results.outerHeight()||g<0)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b,c);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var c=a('');return this._tabindex=0,null!=b.GetData(this.$element[0],"old-tabindex")?this._tabindex=b.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),c.attr("title",this.$element.attr("title")),c.attr("tabindex",this._tabindex),this.$selection=c,c},d.prototype.bind=function(a,b){var d=this,e=(a.id,a.id+"-results");this.container=a,this.$selection.on("focus",function(a){d.trigger("focus",a)}),this.$selection.on("blur",function(a){d._handleBlur(a)}),this.$selection.on("keydown",function(a){d.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){d.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){d.update(a.data)}),a.on("open",function(){d.$selection.attr("aria-expanded","true"),d.$selection.attr("aria-owns",e),d._attachCloseHandler(a)}),a.on("close",function(){d.$selection.attr("aria-expanded","false"),d.$selection.removeAttr("aria-activedescendant"),d.$selection.removeAttr("aria-owns"),d.$selection.focus(),window.setTimeout(function(){d.$selection.focus()},0),d._detachCloseHandler(a)}),a.on("enable",function(){d.$selection.attr("tabindex",d._tabindex)}),a.on("disable",function(){d.$selection.attr("tabindex","-1")})},d.prototype._handleBlur=function(b){var c=this;window.setTimeout(function(){document.activeElement==c.$selection[0]||a.contains(c.$selection[0],document.activeElement)||c.trigger("blur",b)},1)},d.prototype._attachCloseHandler=function(c){a(document.body).on("mousedown.select2."+c.id,function(c){var d=a(c.target),e=d.closest(".select2");a(".select2.select2-container--open").each(function(){a(this),this!=e[0]&&b.GetData(this,"element").select2("close")})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){b.find(".selection").append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(a){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c,d){function e(){e.__super__.constructor.apply(this,arguments)}return c.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html(''),a},e.prototype.bind=function(a,b){var c=this;e.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",d),this.$selection.on("mousedown",function(a){1===a.which&&c.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("blur",function(a){}),a.on("focus",function(b){a.isOpen()||c.$selection.focus()})},e.prototype.clear=function(){var a=this.$selection.find(".select2-selection__rendered");a.empty(),a.removeAttr("title")},e.prototype.display=function(a,b){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(a,b))},e.prototype.selectionContainer=function(){return a("")},e.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d),c.attr("title",b.title||b.text)},e}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(a,b){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('
        '),a},d.prototype.bind=function(b,e){var f=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){f.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){if(!f.options.get("disabled")){var d=a(this),e=d.parent(),g=c.GetData(e[0],"data");f.trigger("unselect",{originalEvent:b,data:g})}})},d.prototype.clear=function(){var a=this.$selection.find(".select2-selection__rendered");a.empty(),a.removeAttr("title")},d.prototype.display=function(a,b){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(a,b))},d.prototype.selectionContainer=function(){return a('
      • ×
      • ')},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d1||c)return a.call(this,b);this.clear();var d=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(d)},b}),b.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(a,b,c){function d(){}return d.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},d.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var d=this.$selection.find(".select2-selection__clear");if(0!==d.length){b.stopPropagation();var e=c.GetData(d[0],"data"),f=this.$element.val();this.$element.val(this.placeholder.id);var g={data:e};if(this.trigger("clear",g),g.prevented)return void this.$element.val(f);for(var h=0;h0||0===d.length)){var e=a('×');c.StoreData(e[0],"data",d),this.$selection.find(".select2-selection__rendered").prepend(e)}},d}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return this._transferTabIndex(),d},d.prototype.bind=function(a,d,e){var f=this;a.call(this,d,e),d.on("open",function(){f.$search.trigger("focus")}),d.on("close",function(){f.$search.val(""),f.$search.removeAttr("aria-activedescendant"),f.$search.trigger("focus")}),d.on("enable",function(){f.$search.prop("disabled",!1),f._transferTabIndex()}),d.on("disable",function(){f.$search.prop("disabled",!0)}),d.on("focus",function(a){f.$search.trigger("focus")}),d.on("results:focus",function(a){f.$search.attr("aria-activedescendant",a.id)}),this.$selection.on("focusin",".select2-search--inline",function(a){f.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){f._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){if(a.stopPropagation(),f.trigger("keypress",a),f._keyUpPrevented=a.isDefaultPrevented(),a.which===c.BACKSPACE&&""===f.$search.val()){var d=f.$searchContainer.prev(".select2-selection__choice");if(d.length>0){var e=b.GetData(d[0],"data");f.searchRemoveChoice(e),a.preventDefault()}}});var g=document.documentMode,h=g&&g<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){if(h)return void f.$selection.off("input.search input.searchcheck");f.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(h&&"input"===a.type)return void f.$selection.off("input.search input.searchcheck");var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&f.handleSearch(a)})},d.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){var c=this.$search[0]==document.activeElement;if(this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),c){this.$element.find("[data-select2-tag]").length?this.$element.focus():this.$search.focus()}},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.$search.val(b.text),this.handleSearch()},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{a=.75*(this.$search.val().length+1)+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],g=["opening","closing","selecting","unselecting","clearing"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),b.define("select2/data/base",["../utils"],function(a){function b(a,c){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(a,b){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),null!=c.id?d+="-"+c.id.toString():d+="-"+a.generateChars(4),d},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){"status"in d&&(0===d.status||"0"===d.status)||e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&null!=a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h0&&b.term.length>this.maximumInputLength)return void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}});a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;if(d.maximumSelectionLength>0&&f>=d.maximumSelectionLength)return void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}});a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a,b){function c(){}return c.prototype.render=function(b){var c=b.call(this),d=a('');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},c.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(b){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val(""),e.$search.blur()}),c.on("focus",function(){c.isOpen()||e.$search.focus()}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){e.showSearch(a)?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}})},c.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.showSearch=function(a,b){return!0},c}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){e.$results.offset().top+e.$results.outerHeight(!1)+50>=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1)&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('
      • '),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=d.get("dropdownParent")||a(document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.destroy=function(a){a.call(this),this.$dropdownContainer.remove()},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a(""),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c,d){var e=this,f="scroll.select2."+d.id,g="resize.select2."+d.id,h="orientationchange.select2."+d.id,i=this.$container.parents().filter(b.hasScroll);i.each(function(){b.StoreData(this,"select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(c){var d=b.GetData(this,"select2-scroll-position");a(this).scrollTop(d.y)}),a(window).on(f+" "+g+" "+h,function(a){e._positionDropdown(),e._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c,d){var e="scroll.select2."+d.id,f="resize.select2."+d.id,g="orientationchange.select2."+d.id;this.$container.parents().filter(b.hasScroll).off(e),a(window).off(e+" "+f+" "+g)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.topf.bottom+h.height,l={left:f.left,top:g.bottom},m=this.$dropdownParent;"static"===m.css("position")&&(m=m.offsetParent());var n=m.offset();l.top-=n.top,l.left-=n.left,c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-n.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.position="relative",a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),null==l.tokenSeparators&&null==l.tokenizer||(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.multiple?l.selectionAdapter=e:l.selectionAdapter=d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){null==c(d,e.children[g])&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var h=b(e.text).toUpperCase(),i=b(d.term).toUpperCase();return h.indexOf(i)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(!0,this.defaults,f)},new D}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),d.GetData(a[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),d.StoreData(a[0],"data",d.GetData(a[0],"select2Tags")),d.StoreData(a[0],"tags",!0)),d.GetData(a[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),a.attr("ajax--url",d.GetData(a[0],"ajaxUrl")),d.StoreData(a[0],"ajax-Url",d.GetData(a[0],"ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,d.GetData(a[0])):d.GetData(a[0]);var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,d){null!=c.GetData(a[0],"select2")&&c.GetData(a[0],"select2").destroy(),this.$element=a,this.id=this._generateId(a),d=d||{},this.options=new b(d,a),e.__super__.constructor.call(this);var f=a.attr("tabindex")||0;c.StoreData(a[0],"old-tabindex",f),a.attr("tabindex","-1");var g=this.options.get("dataAdapter");this.dataAdapter=new g(a,this.options);var h=this.render();this._placeContainer(h);var i=this.options.get("selectionAdapter");this.selection=new i(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,h);var j=this.options.get("dropdownAdapter");this.dropdown=new j(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,h);var k=this.options.get("resultsAdapter");this.results=new k(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){l.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),c.StoreData(a[0],"select2",this),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b=b.replace(/(:|\.|\[|\]|,)/g,""),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return e<=0?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;h=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this.$element.on("focus.select2",function(a){b.trigger("focus",a)}),this._syncA=c.bind(this._syncAttributes,this),this._syncS=c.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._syncA),a.each(c,b._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",b._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",b._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",b._syncS,!1))},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle","focus"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("focus",function(a){b.focus(a)}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("blur",function(){a.$container.removeClass("select2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open",{}),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ESC||c===d.TAB||c===d.UP&&b.altKey?(a.close(),b.preventDefault()):c===d.ENTER?(a.trigger("results:select",{}),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle",{}),b.preventDefault()):c===d.UP?(a.trigger("results:previous",{}),b.preventDefault()):c===d.DOWN&&(a.trigger("results:next",{}),b.preventDefault()):(c===d.ENTER||c===d.SPACE||c===d.DOWN&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},e.prototype._syncSubtree=function(a,b){var c=!1,d=this;if(!a||!a.target||"OPTION"===a.target.nodeName||"OPTGROUP"===a.target.nodeName){if(b)if(b.addedNodes&&b.addedNodes.length>0)for(var e=0;e0&&(c=!0);else c=!0;c&&this.dataAdapter.current(function(a){d.trigger("selection:update",{data:a})})}},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===b&&(b={}),a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.trigger("query",{})},e.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},e.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=a&&0!==a.length||(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",c.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),c.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},e.prototype.render=function(){var b=a('');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),c.StoreData(b[0],"element",this.$element),b},e}),b.define("jquery-mousewheel",["jquery"],function(a){return a}),b.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(a,b,c,d,e){if(null==a.fn.select2){var f=["open","close","destroy"];a.fn.select2=function(b){if("object"==typeof(b=b||{}))return this.each(function(){var d=a.extend(!0,{},b);new c(a(this),d)}),this;if("string"==typeof b){var d,g=Array.prototype.slice.call(arguments,1);return this.each(function(){var a=e.GetData(this,"select2");null==a&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2."),d=a[b].apply(a,g)}),a.inArray(b,f)>-1?this:d}throw new Error("Invalid arguments for Select2: "+b)}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c}); \ No newline at end of file diff --git a/plugins/support-helphub/inc/helphub-contributors/helphub-contributors.php b/plugins/support-helphub/inc/helphub-contributors/helphub-contributors.php new file mode 100644 index 00000000..1e55f76e --- /dev/null +++ b/plugins/support-helphub/inc/helphub-contributors/helphub-contributors.php @@ -0,0 +1,37 @@ +helphub_contributors = 'helphub-contributors'; + $this->version = '1.0.0'; + add_action( 'init', array( $this, 'set_locale' ) ); + $this->required_dependencies(); + $this->admin_hooks(); + $this->frontend_hooks(); + register_activation_hook( __FILE__, array( $this, 'activate' ) ); + } + + /** + * Define the locale for plugin. + * + * @since 1.0.0 + * @access public + */ + public function set_locale() { + load_plugin_textdomain( + $this->get_helphub_contributors(), false, dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/' + ); + } + + /** + * Required dependencies for plugin. + * + * @since 1.0.0 + * @access private + */ + private function required_dependencies() { + /** + * The class responsible for defining all actions that occur in the admin area. + */ + require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-helphub-contributors-admin.php'; + /** + * The class responsible for defining all actions that occur in the public-facing + * side of the site. + */ + require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-helphub-contributors-public.php'; + } + + /** + * Register admin hooks. + * + * @since 1.0.0 + * @access private + */ + private function admin_hooks() { + return new HelpHub_Contributors_Admin( $this->get_helphub_contributors(), $this->get_version() ); + } + + /** + * Register frontend hooks. + * + * @since 1.0.0 + * @access private + */ + private function frontend_hooks() { + return new HelpHub_Contributors_Public( $this->get_helphub_contributors(), $this->get_version() ); + } + + /** + * The unique identifier of the plugin. + * + * @since 1.0.0 + * @return string The name of the plugin. + */ + public function get_helphub_contributors() { + return $this->helphub_contributors; + } + + /** + * The version number of the plugin. + * + * @since 1.0.0 + * @return string The version number of the plugin. + */ + public function get_version() { + return $this->version; + } + + /** + * Activation of the plugin. + * + * @access public + * @since 1.0.0 + */ + public function activate() { + $this->update_version(); + } + + /** + * Update version number. + * + * @access private + * @since 1.0.0 + */ + private function update_version() { + update_option( $this->helphub_contributors . '-version', $this->version ); + } + + /** + * Single class instance + * + * @return HelpHub_Contributors instance + */ + public static function instance() { + if ( ! self::$_instance ) { + self::$_instance = new self(); + } + + return self::$_instance; + } +} diff --git a/plugins/support-helphub/inc/helphub-contributors/includes/index.php b/plugins/support-helphub/inc/helphub-contributors/includes/index.php new file mode 100644 index 00000000..8142269b --- /dev/null +++ b/plugins/support-helphub/inc/helphub-contributors/includes/index.php @@ -0,0 +1 @@ +helphub_contributors = $helphub_contributors; + $this->version = $version; + add_action( 'wp_enqueue_scripts', array( $this, 'public_enqueue_scripts' ) ); + add_filter( 'the_content', array( $this, 'show_contributors' ) ); + } + + /** + * Enqueue assets for the frontend. + * + * @since 1.0.0 + */ + public function public_enqueue_scripts() { + // Styles. + wp_enqueue_style( $this->helphub_contributors, plugin_dir_url( __FILE__ ) . 'css/helphub-contributors-public.css', array(), $this->version ); + } + + /** + * Show contributors after post content. + * Attached to 'the_content' filter hook. + * + * @param string $content Post content + * @return string Returns post content with appended contributors list + */ + public function show_contributors( $content ) { + $contributors_markup = ''; + + $meta = get_post_meta( get_the_ID(), 'helphub_contributors' ); + + if ( is_array( $meta ) && ! empty( $meta ) ) : + + $contributors = $meta[0]; + + if ( is_array( $contributors ) && ! empty( $contributors ) ) : + + $contributors_items = ''; + + foreach ( $contributors as $contributor ) : + // Get user object. + $contributor_object = get_user_by( 'slug', $contributor ); + + if ( is_object( $contributor_object ) ) : + + $data = array( + 'user_nicename' => $contributor_object->data->user_nicename, + 'display_name' => $contributor_object->data->display_name, + 'user_email' => $contributor_object->data->user_email, + ); + + /** + * Filters retrived data. + * + * @since 1.0.0 + * + * @param array $data Array of users data + * @param obj $contributor_object WP_User Object + */ + $data = apply_filters( 'helphub_contributors_user_data', $data, $contributor_object ); + + $contributor_url = 'https://profiles.wordpress.org/' . $data['user_nicename']; + $contributor_gravatar = ''; + $contributor_name = '' . esc_html( $data['display_name'] ) . ''; + $contributor_username = '@' . esc_html( $data['user_nicename'] ) . ''; + + /** + * Filters contributor text. + * + * @since 1.0.0 + * + * @param string $contributor_name Contributor display_name. + * @param string $contributor_username Contributor wp.org username. + */ + $contributor_text = apply_filters( 'helphub_contributors_contributor_text', '

        ' . $contributor_name . $contributor_username . '

        ' ); + + // Build the link + $contributor_link = '' . $contributor_gravatar . $contributor_text . ''; + + /** + * Filters contributor link. + * + * @since 1.0.0 + * + * @param string $contributor_link Contributor link markup. + * @param string $contributor_url Contributor wp.org profile URL. + * @param string $contributor_gravatar Contributor gravatar markup. + * @param string $contributor_text Contributor wp.org display_name and username. + */ + $contributor_link = apply_filters( 'helphub_contributors_contributor_link', $contributor_link, $contributor_url, $contributor_gravatar, $contributor_text ); + + $contributor_item = '
        ' . $contributor_link . '
        '; + + /** + * Filters contributor item. + * + * @since 1.0.0 + * + * @param string $contributor_item Contributor list item markup. + */ + $contributor_item = apply_filters( 'helphub_contributors_contributor_item', $contributor_item ); + + $contributors_items .= $contributor_item; + + else : + + // Display message if no user is found with provided username. + /* translators: %s: Username, do not translate. */ + $contributors_items .= '

        ' . sprintf( __( '%s is not a valid username.', 'wporg-forums' ), '' . $contributor . '' ) . '

        '; + + endif; // is_object( $contributor_object ) + + endforeach; // $contributors as $contributor + + $contributors_heading = '
        ' . esc_html__( 'Contributors', 'wporg-forums' ) . '
        '; + $contributors_list = '
        ' . $contributors_items . '
        '; + + // Build the markup + $contributors_markup = '
        ' . $contributors_heading . $contributors_list . '
        '; + + /** + * Filters contributors markup. + * + * @since 1.0.0 + * + * @param string $contributors_markup Contributors markup. + * @param string $contributors_heading Contributors heading. + * @param string $contributors_list Contributors list markup. + * @param string $contributors_items Contributors list items markup, without '
          '. + */ + $contributors_markup = apply_filters( 'helphub_contributors', $contributors_markup, $contributors_heading, $contributors_list, $contributors_items ); + + endif; // is_array( $contributors ) && ! empty( $contributors ) + + endif; // is_array( $meta ) && ! empty( $meta ) + + $output = $content . $contributors_markup; + + /** + * Filters complete output, post content and contributors markup. + * + * @since 1.0.0 + * + * @param string $output Complete output, post content and contributors markup. + * @param string $content Post content, accessed via 'the_content' filter. + * @param string $contributors_markup Contributors markup, appened to post content. + */ + return apply_filters( 'helphub_contributors_output', $output, $content, $contributors_markup ); + } +} diff --git a/plugins/support-helphub/inc/helphub-contributors/public/index.php b/plugins/support-helphub/inc/helphub-contributors/public/index.php new file mode 100644 index 00000000..8142269b --- /dev/null +++ b/plugins/support-helphub/inc/helphub-contributors/public/index.php @@ -0,0 +1 @@ + div { + display: inline-block; + width: 100%; + box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); + border-radius: 3px; + margin-bottom: 20px; + vertical-align: middle; + + @media (min-width: 690px) { + width: 70%; + } + + @media (min-width: 768px) { + width: 48%; + } + + &:nth-child(2n+2) { + + @media (min-width: 768px) { + float: right; + } + } + } +} diff --git a/plugins/support-helphub/inc/helphub-contributors/uninstall.php b/plugins/support-helphub/inc/helphub-contributors/uninstall.php new file mode 100644 index 00000000..b0cc42b0 --- /dev/null +++ b/plugins/support-helphub/inc/helphub-contributors/uninstall.php @@ -0,0 +1,15 @@ +_version = $version; + $this->_token = 'helphub_custom_roles'; + + $this->file = $file; + $this->dir = dirname( $this->file ); + + $this->add_helphub_customrole(); + + add_action( 'admin_init', array( $this, 'hh_restrict_admin_pages' ), 0 ); + + add_action( 'admin_menu', array( $this, 'hh_hide_thememenu' ), 0 ); + + } // End __construct () + + /** + * This will add restriction to the custom rule. + */ + public function hh_restrict_admin_pages() { + + if ( $this->check_ifhelphub_editor() ) { + global $pagenow; + $restricted_pages = array( + 'themes.php', + ); + if ( in_array( $pagenow, $restricted_pages, true ) ) { + wp_safe_redirect( admin_url( '/' ) ); + exit; + } + } + } + + /** + * This will hide the themes.php under Appearances if using a custom HelpHub Editor. + */ + public function hh_hide_thememenu() { + if ( $this->check_ifhelphub_editor() ) { + remove_submenu_page( 'themes.php', 'themes.php' ); + } + } + + /** + * Check if a current user's assigned role is a HelpHub Editor. + * + * @return boolean returns true if a current user's assigned role is a HelpHub Editor. + */ + public function check_ifhelphub_editor() { + $user_roles = wp_get_current_user()->roles; + if ( in_array( 'helphub_editor', $user_roles, true ) ) { + return true; + } + return false; + } + + /** + * Main HelpHub_Custom_Roles Instance + * + * Ensures only one instance of HelpHub_Custom_Roles is loaded or can be loaded. + * + * @param string $file Filename of site. + * @param string $version Version number. + * @since 1.0.0 + * @static + * @see HelpHub_Custom_Roles() + * @return Main HelpHub_Custom_Roles instance + */ + public static function instance( $file = '', $version = '1.0.0' ) { + if ( is_null( self::$_instance ) ) { + self::$_instance = new self( $file, $version ); + } + return self::$_instance; + } // End instance () + + /** + * Cloning is forbidden. + * + * @since 1.0.0 + */ + public function __clone() { + _doing_it_wrong( __FUNCTION__, esc_html( __( 'Sorry, this is not allowed.', 'wporg-forums' ) ), esc_html( $this->_version ) ); + } // End __clone () + + /** + * Unserializing instances of this class is forbidden. + * + * @since 1.0.0 + */ + public function __wakeup() { + _doing_it_wrong( __FUNCTION__, esc_html( __( 'Sorry, this is not allowed.', 'wporg-forums' ) ), esc_html( $this->_version ) ); + } // End __wakeup () + + /** + * Log the plugin version number. + * + * @access public + * @since 1.0.0 + * @return void + */ + private function _log_version_number() { + update_option( $this->_token . '_version', $this->_version ); + } // End _log_version_number () + + /** + * Adds a HelpHub custom role. + */ + public function add_helphub_customrole() { + + // Load users library. + if ( ! function_exists( 'get_editable_roles' ) ) { + require_once ABSPATH . 'wp-admin/includes/user.php'; + } + get_editable_roles(); + $role = 'helphub_editor'; + + // Check if the custom role is already added. + global $wp_roles; + $default_editorroles = $wp_roles->get_role( 'editor' ); + if ( empty( $GLOBALS['wp_roles']->is_role( $role ) ) ) { + $wp_roles->add_role( $role, __( 'HelpHub Editor', 'wporg-forums' ), $default_editorroles->capabilities ); + + $wp_roles->add_cap( $role, 'edit_theme_options' ); + } + } +} + +/** + * Returns the main instance of HelpHub_Custom_Roles to prevent the need to use globals. + * + * @since 1.0.0 + * @return object HelpHub_Custom_Roles + */ +function helphub_custom_roles() { + $instance = HelpHub_Custom_Roles::instance( __FILE__, '1.0.0' ); + return $instance; +} + +helphub_custom_roles(); diff --git a/plugins/helphub-post-types/index.php b/plugins/support-helphub/inc/helphub-customroles/index.php similarity index 100% rename from plugins/helphub-post-types/index.php rename to plugins/support-helphub/inc/helphub-customroles/index.php diff --git a/plugins/support-helphub/inc/helphub-front-page-blocks/helphub-front-page-blocks.php b/plugins/support-helphub/inc/helphub-front-page-blocks/helphub-front-page-blocks.php new file mode 100644 index 00000000..fc8b1dd8 --- /dev/null +++ b/plugins/support-helphub/inc/helphub-front-page-blocks/helphub-front-page-blocks.php @@ -0,0 +1,19 @@ + 'helphub-front-page-block', + 'description' => __( 'Add a link block to support pages', 'wporg-forums' ), + ); + + parent::__construct( 'helphub_front_page_block', __( '(HelpHub) Link block', 'wporg-forums' ), $widget_options ); + } + + /** + * Output the widget on the front end. + * + * @param array $args The widget arguments, passed on from the themes widget area. + * @param array $instance This individual widgets settings. + * + * @return void + */ + public function widget( $args, $instance ) { + include( dirname( __FILE__ ) . '/widget-front-end.php' ); + } + + /** + * Generate the widget settings. + * + * @param array $instance The widget instance and arguments. + * + * @return void + */ + public function form( $instance ) { + include( dirname( __FILE__ ) . '/widget-back-end.php' ); + } + + /** + * Save the widget settings from the admin. + * + * @param array $new_instance The old widget instance, for comparison. + * @param array $old_instance The new widget instance, to be saved. + * + * @return array + */ + public function update( $new_instance, $old_instance ) { + $save_instance = array(); + + $save_instance['icon'] = ( ! empty( $new_instance['icon'] ) ? strip_tags( $new_instance['icon'] ) : '' ); + $save_instance['title'] = ( ! empty( $new_instance['title'] ) ? strip_tags( $new_instance['title'] ) : '' ); + $save_instance['description'] = ( ! empty( $new_instance['description'] ) ? strip_tags( $new_instance['description'] ) : '' ); + $save_instance['categoryid'] = ( ! empty( $new_instance['categoryid'] ) ? strip_tags( $new_instance['categoryid'] ) : '' ); + $save_instance['menu'] = ( ! empty( $new_instance['menu'] ) ? strip_tags( $new_instance['menu'] ) : '' ); + + return $save_instance; + } +} diff --git a/plugins/support-helphub/inc/helphub-front-page-blocks/includes/widget-back-end.php b/plugins/support-helphub/inc/helphub-front-page-blocks/includes/widget-back-end.php new file mode 100644 index 00000000..3602fa1a --- /dev/null +++ b/plugins/support-helphub/inc/helphub-front-page-blocks/includes/widget-back-end.php @@ -0,0 +1,71 @@ + + +

          + + +

          + +

          + + +

          + +

          + + +

          + +

          + + +

          + +

          + + +

          diff --git a/plugins/support-helphub/inc/helphub-front-page-blocks/includes/widget-front-end.php b/plugins/support-helphub/inc/helphub-front-page-blocks/includes/widget-front-end.php new file mode 100644 index 00000000..31217fe5 --- /dev/null +++ b/plugins/support-helphub/inc/helphub-front-page-blocks/includes/widget-front-end.php @@ -0,0 +1,42 @@ + + + +
          + + +

          +
          +

          +
            + %s', + esc_url( $menu_item->url ), + esc_html( $menu_item->title ) + ); + } + ?> +
          +
          + +' + + '' + + '
            ' + + '
          • ×
          • ' + + '
          ' + + '' ); + } + + } ); + + $ImageGalleryIds.val( AttachmentIds ); + }); + + // Finally, open the modal. + HelphubGalleryFrame.open(); + }); + + // Image ordering + $GalleryImages.sortable({ + items: 'li.image', + cursor: 'move', + scrollSensitivity: 40, + forcePlaceholderSize: true, + forceHelperSize: false, + helper: 'clone', + opacity: 0.65, + placeholder: 'helphub-metabox-sortable-placeholder', + start: function( event, ui ) { + ui.item.css( 'background-color', '#f6f6f6' ); + }, + stop: function( event, ui ) { + ui.item.removeAttr( 'style' ); + }, + update: function() { + var AttachmentIds = ''; + $GalleryContainer.find( 'ul li.image' ).css( 'cursor', 'default' ).each( function() { + var AttachmentId = jQuery( this ).attr( 'data-attachment_id' ); + AttachmentIds = AttachmentIds + AttachmentId + ','; + }); + $ImageGalleryIds.val( AttachmentIds ); + } + }); + + // Remove images + $GalleryContainer.on( 'click', 'a.delete', function() { + var AttachmentIds = ''; + + $( this ).closest( 'li.image' ).remove(); + + $GalleryUl.css( 'cursor', 'default' ).each( function() { + var AttachmentId = jQuery( this ).attr( 'data-attachment_id' ); + AttachmentIds = AttachmentIds + AttachmentId + ','; + }); + + $ImageGalleryIds.val( AttachmentIds ); + + return false; + } ); +} ); diff --git a/plugins/helphub-post-types/classes/class-helphub-post-types-post-type.php b/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-post-type.php similarity index 64% rename from plugins/helphub-post-types/classes/class-helphub-post-types-post-type.php rename to plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-post-type.php index 064a85d1..9567a5d2 100644 --- a/plugins/helphub-post-types/classes/class-helphub-post-types-post-type.php +++ b/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-post-type.php @@ -72,17 +72,18 @@ class HelpHub_Post_Types_Post_Type { * * @access public * @since 1.0.0 - * @param string $post_type The post type id/handle. - * @param string $singular The singular pronunciation of the post type name. - * @param string $plural The plural pronunciation of the post type name. - * @param array $args The typical arguments allowed to register a post type. - * @param array $taxonomies The list of taxonomies that the post type is associated with. + * + * @param string $post_type The post type id/handle. + * @param string $singular The singular pronunciation of the post type name. + * @param string $plural The plural pronunciation of the post type name. + * @param array $args The typical arguments allowed to register a post type. + * @param array $taxonomies The list of taxonomies that the post type is associated with. */ public function __construct( $post_type = 'thing', $singular = '', $plural = '', $args = array(), $taxonomies = array() ) { - $this->post_type = $post_type; - $this->singular = $singular; - $this->plural = $plural; - $this->args = $args; + $this->post_type = $post_type; + $this->singular = $singular; + $this->plural = $plural; + $this->args = $args; $this->taxonomies = $taxonomies; add_action( 'init', array( $this, 'register_post_type' ) ); @@ -96,14 +97,19 @@ public function __construct( $post_type = 'thing', $singular = '', $plural = '', add_filter( 'enter_title_here', array( $this, 'enter_title_here' ) ); add_filter( 'post_updated_messages', array( $this, 'updated_messages' ) ); - if ( 'edit.php' === $pagenow && isset( $_GET['post_type'] ) && $this->post_type === $_GET['post_type'] ) { - add_filter( 'manage_edit-' . $this->post_type . '_columns', array( $this, 'register_custom_column_headings' ), 10, 1 ); + if ( 'edit.php' === $pagenow && isset( $_GET['post_type'] ) && $this->post_type === $_GET['post_type'] ) { // WPCS: input var ok; CSRF ok. + add_filter( + 'manage_edit-' . $this->post_type . '_columns', array( + $this, + 'register_custom_column_headings', + ), 10, 1 + ); add_action( 'manage_posts_custom_column', array( $this, 'register_custom_columns' ), 10, 2 ); } } add_action( 'admin_init', array( $this, 'add_menu_order' ) ); add_action( 'after_setup_theme', array( $this, 'ensure_post_thumbnails_support' ) ); - add_action( 'after_setup_theme', array( $this, 'register_image_sizes' ) ); + add_filter( 'jetpack_sitemap_post_types', array( $this, 'add_to_sitemaps' ) ); } // End __construct() /** @@ -119,38 +125,51 @@ public function register_post_type() { } $labels = array( - 'name' => sprintf( _x( '%s', 'post type general name', 'helphub' ), $this->plural ), /* @codingStandardsIgnoreLine */ - 'singular_name' => sprintf( _x( '%s', 'post type singular name', 'helphub' ), $this->singular ), /* @codingStandardsIgnoreLine */ - 'add_new' => _x( 'Add New', $this->post_type, 'helphub' ), - 'add_new_item' => sprintf( __( 'Add New %s', 'helphub' ), $this->singular ), - 'edit_item' => sprintf( __( 'Edit %s', 'helphub' ), $this->singular ), - 'new_item' => sprintf( __( 'New %s', 'helphub' ), $this->singular ), - 'all_items' => sprintf( __( 'All %s', 'helphub' ), $this->plural ), - 'view_item' => sprintf( __( 'View %s', 'helphub' ), $this->singular ), - 'search_items' => sprintf( __( 'Search %a', 'helphub' ), $this->plural ), - 'not_found' => sprintf( __( 'No %s Found', 'helphub' ), $this->plural ), - 'not_found_in_trash' => sprintf( __( 'No %s Found In Trash', 'helphub' ), $this->plural ), - 'parent_item_colon' => '', - 'menu_name' => $this->plural, + 'name' => $this->plural, + 'singular_name' => $this->singular, + 'add_new' => _x( 'Add New', 'add new helphub post', 'wporg-forums' ), + /* translators: %s: Post type name. */ + 'add_new_item' => sprintf( __( 'Add New %s', 'wporg-forums' ), $this->singular ), + /* translators: %s: Post type name. */ + 'edit_item' => sprintf( __( 'Edit %s', 'wporg-forums' ), $this->singular ), + /* translators: %s: Post type name. */ + 'new_item' => sprintf( __( 'New %s', 'wporg-forums' ), $this->singular ), + /* translators: %s: Plural post type name. */ + 'all_items' => sprintf( __( 'All %s', 'wporg-forums' ), $this->plural ), + /* translators: %s: Post type name. */ + 'view_item' => sprintf( __( 'View %s', 'wporg-forums' ), $this->singular ), + /* translators: %s: Plural post type name. */ + 'search_items' => sprintf( __( 'Search %a', 'wporg-forums' ), $this->plural ), + /* translators: %s: Plural post type name. */ + 'not_found' => sprintf( __( 'No %s Found', 'wporg-forums' ), $this->plural ), + /* translators: %s: Plural post type name. */ + 'not_found_in_trash' => sprintf( __( 'No %s Found In Trash', 'wporg-forums' ), $this->plural ), + 'parent_item_colon' => '', + 'menu_name' => $this->plural, ); - $single_slug = apply_filters( 'helphub_single_slug', sanitize_title_with_dashes( $this->singular ) ); + $single_slug = apply_filters( 'helphub_single_slug', sanitize_title_with_dashes( $this->singular ) ); $archive_slug = apply_filters( 'helphub_archive_slug', sanitize_title_with_dashes( $this->plural ) ); $defaults = array( - 'labels' => $labels, - 'public' => true, - 'publicly_queryable' => true, - 'show_ui' => true, - 'show_in_menu' => true, - 'query_var' => true, - 'rewrite' => array( 'slug' => $single_slug ), - 'capability_type' => 'post', - 'has_archive' => $archive_slug, - 'hierarchical' => false, - 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'page-attributes', 'revisions' ), - 'menu_position' => 5, - 'menu_icon' => 'dashicons-smiley', + 'labels' => $labels, + 'public' => true, + 'publicly_queryable' => true, + 'show_ui' => true, + 'show_in_menu' => true, + 'query_var' => true, + 'rewrite' => array( + 'slug' => $single_slug, + ), + 'capability_type' => 'post', + 'has_archive' => $archive_slug, + 'hierarchical' => false, + 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'page-attributes', 'revisions' ), + 'menu_position' => 5, + 'menu_icon' => 'dashicons-smiley', + 'show_in_rest' => true, + 'rest_base' => $archive_slug, + 'rest_controller_class' => 'WP_REST_Posts_Controller', ); $args = wp_parse_args( $this->args, $defaults ); @@ -176,22 +195,22 @@ public function register_taxonomy() { * Add custom columns for the "manage" screen of this post type. * * @access public + * * @param string $column_name The name of the column. - * @param int $id The ID. + * @param int $id The ID. + * * @since 1.0.0 * @return void */ public function register_custom_columns( $column_name, $id ) { - global $post; - switch ( $column_name ) { case 'image': // Displays img tag. - echo $this->get_image( $id, 40 ); /* @codingStandardsIgnoreLine */ - break; - + echo $this->get_image( $id, 40 ); + /* @codingStandardsIgnoreLine */ + break; default: - break; + break; } } // End register_custom_columns() @@ -199,19 +218,25 @@ public function register_custom_columns( $column_name, $id ) { * Add custom column headings for the "manage" screen of this post type. * * @access public + * * @param array $defaults The default value. + * * @since 1.0.0 * @return array $defaults */ public function register_custom_column_headings( $defaults ) { - $new_columns = array( 'image' => __( 'Image', 'helphub' ) ); + $new_columns = array( + 'image' => __( 'Image', 'wporg-forums' ), + ); $last_item = array(); - if ( isset( $defaults['date'] ) ) { unset( $defaults['date'] ); } + if ( isset( $defaults['date'] ) ) { + unset( $defaults['date'] ); + } if ( count( $defaults ) > 2 ) { - $last_item = array_slice( $defaults, -1 ); + $last_item = array_slice( $defaults, - 1 ); array_pop( $defaults ); } @@ -231,7 +256,9 @@ public function register_custom_column_headings( $defaults ) { * Update messages for the post type admin. * * @since 1.0.0 + * * @param array $messages Array of messages for all post types. + * * @return array Modified array. */ public function updated_messages( $messages ) { @@ -240,20 +267,27 @@ public function updated_messages( $messages ) { $permalink = get_permalink( $post_ID ); /* @codingStandardsIgnoreLine */ $messages[ $this->post_type ] = array( - 0 => '', // Unused. Messages start at index 1. - 1 => sprintf( __( '%3$s updated. %1$sView %4$s%2$s', 'helphub' ), '', '', $this->singular, strtolower( $this->singular ) ), - 2 => __( 'Custom field updated.', 'helphub' ), - 3 => __( 'Custom field deleted.', 'helphub' ), - 4 => sprintf( __( '%s updated.', 'helphub' ), $this->singular ), + 0 => '', + // Unused. Messages start at index 1. + /* translators: %1$s: Post link tag. %2$s: Close post link tag. %3$s: Post type name. %4$s: Lowercase post type name. */ + 1 => sprintf( __( '%3$s updated. %1$sView %4$s%2$s', 'wporg-forums' ), '', '', $this->singular, strtolower( $this->singular ) ), + 2 => __( 'Custom field updated.', 'wporg-forums' ), + 3 => __( 'Custom field deleted.', 'wporg-forums' ), + /* translators: %s: Post type name. */ + 4 => sprintf( __( '%s updated.', 'wporg-forums' ), $this->singular ), /* translators: %s: date and time of the revision */ - 5 => isset( $_GET['revision'] ) ? sprintf( __( '%1$s restored to revision from %2$s', 'helphub' ), $this->singular, wp_post_revision_title( (int) $_GET['revision'], false ) ): false, - 6 => sprintf( __( '%1$s published. %3$sView %2$s%4$s', 'helphub' ), $this->singular, strtolower( $this->singular ), '', '' ), - 7 => sprintf( __( '%s saved.', 'helphub' ), $this->singular ), - 8 => sprintf( __( '%1$s submitted. %2$sPreview %3$s%4$s', 'helphub' ), $this->singular, strtolower( $this->singular ), '', '' ), - 9 => sprintf( __( '%1$s scheduled for: %1$s. %2$sPreview %2$s%3$s', 'helphub' ), $this->singular, strtolower( $this->singular ), - // translators: Publish box date format, see http://php.net/date. - '' . date_i18n( __( 'M j, Y @ G:i', 'helphub' ), strtotime( $post->post_date ) ) . '', '', '' ), - 10 => sprintf( __( '%1$s draft updated. %2$sPreview %3$s%4$s', 'helphub' ), $this->singular, strtolower( $this->singular ), '', '' ), + 5 => isset( $_GET['revision'] ) ? sprintf( __( '%1$s restored to revision from %2$s', 'wporg-forums' ), $this->singular, wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, + // WPCS: CSRF ok; input var ok. + /* translators: %1$s Post type name. %2$s: Lowercase post type name. %3$s: Post link tag. %4$s: Close post link tag. */ + 6 => sprintf( __( '%1$s published. %3$sView %2$s%4$s', 'wporg-forums' ), $this->singular, strtolower( $this->singular ), '', '' ), + /* translators: %s: Post type name. */ + 7 => sprintf( __( '%s saved.', 'wporg-forums' ), $this->singular ), + /* translators: %1$s: Post type name. %2$s: Lowercase post type name. %3$s: Post link tag. %4$s: Close post link tag. */ + 8 => sprintf( __( '%1$s submitted. %2$sPreview %3$s%4$s', 'wporg-forums' ), $this->singular, strtolower( $this->singular ), '', '' ), + /* translators: %1$s: Post type name. %2$s: Lowercase post type name. */ + 9 => sprintf( __( '%1$s scheduled for: %1$s. %2$sPreview %2$s%3$s', 'wporg-forums' ), $this->singular, strtolower( $this->singular ), '' . date_i18n( __( 'M j, Y @ G:i', 'wporg-forums' ), strtotime( $post->post_date ) ) . '', '', '' ), + /* translators: %1$s: Post type name. %2$s: Lowercase post type name. %3$s: Close post link tag. %4$s: Close post link tag. */ + 10 => sprintf( __( '%1$s draft updated. %3$sPreview %2$s%4$s', 'wporg-forums' ), $this->singular, strtolower( $this->singular ), '', '' ), ); return $messages; @@ -269,9 +303,19 @@ public function updated_messages( $messages ) { */ public function meta_box_setup() { if ( 'post' === $this->post_type ) { - add_meta_box( $this->post_type . '-display', __( 'Display Settings', 'helphub' ), array( $this, 'meta_box_content' ), $this->post_type, 'normal', 'high' ); + add_meta_box( + $this->post_type . '-display', __( 'Display Settings', 'wporg-forums' ), array( + $this, + 'meta_box_content', + ), $this->post_type, 'normal', 'high' + ); } elseif ( 'helphub_version' === $this->post_type ) { - add_meta_box( $this->post_type . '-version-meta', __( 'Display Settings', 'helphub' ), array( $this, 'meta_box_version_content' ), $this->post_type, 'normal', 'high' ); + add_meta_box( + $this->post_type . '-version-meta', __( 'Display Settings', 'wporg-forums' ), array( + $this, + 'meta_box_version_content', + ), $this->post_type, 'normal', 'high' + ); } } // End meta_box_setup() @@ -306,7 +350,9 @@ public function meta_box_version_content() { * * @access public * @since 1.0.0 + * * @param array $field_data The field data to populate the rendering function. + * * @return void */ public function meta_box_content_render( $field_data ) { @@ -336,7 +382,7 @@ public function meta_box_content_render( $field_data ) { case 'text': case 'url': $field = ''; - $html .= '' . $field . "\n"; + $html .= '' . $field . "\n"; if ( isset( $v['description'] ) ) { $html .= '

          ' . $v['description'] . '

          ' . "\n"; } @@ -344,7 +390,7 @@ public function meta_box_content_render( $field_data ) { break; case 'textarea': $field = ''; - $html .= '' . $field . "\n"; + $html .= '' . $field . "\n"; if ( isset( $v['description'] ) ) { $html .= '

          ' . $v['description'] . '

          ' . "\n"; } @@ -352,10 +398,15 @@ public function meta_box_content_render( $field_data ) { break; case 'editor': ob_start(); - wp_editor( $data, $k, array( 'media_buttons' => false, 'textarea_rows' => 10 ) ); + wp_editor( + $data, $k, array( + 'media_buttons' => false, + 'textarea_rows' => 10, + ) + ); $field = ob_get_contents(); ob_end_clean(); - $html .= '' . $field . "\n"; + $html .= '' . $field . "\n"; if ( isset( $v['description'] ) ) { $html .= '

          ' . $v['description'] . '

          ' . "\n"; } @@ -373,9 +424,9 @@ public function meta_box_content_render( $field_data ) { $data_atts .= sprintf( 'data-library="%s" ', esc_attr( $v['media-frame']['library'] ) ); } - $field = ''; - $field .= ''; - $html .= '' . $field . "\n"; + $field = ''; + $field .= ''; + $html .= '' . $field . "\n"; if ( isset( $v['description'] ) ) { $html .= '

          ' . $v['description'] . '

          ' . "\n"; } @@ -388,7 +439,7 @@ public function meta_box_content_render( $field_data ) { $field .= '

          ' . "\n"; } } - $html .= '' . $field . "\n"; + $html .= '' . $field . "\n"; if ( isset( $v['description'] ) ) { $html .= '

          ' . $v['description'] . '

          ' . "\n"; } @@ -399,17 +450,17 @@ public function meta_box_content_render( $field_data ) { if ( isset( $v['description'] ) ) { $field .= '

          ' . $v['description'] . '

          ' . "\n"; } - $html .= '' . $field . "\n"; + $html .= '' . $field . "\n"; $html .= '' . "\n"; break; case 'multicheck': $field = ''; if ( isset( $v['options'] ) && is_array( $v['options'] ) ) { foreach ( $v['options'] as $val => $option ) { - $field .= '

          ' . "\n"; + $field .= '

          ' . "\n"; } } - $html .= '' . $field . "\n"; + $html .= '' . $field . "\n"; if ( isset( $v['description'] ) ) { $html .= '

          ' . $v['description'] . '

          ' . "\n"; } @@ -423,7 +474,7 @@ public function meta_box_content_render( $field_data ) { } } $field .= '' . "\n"; - $html .= '' . $field . "\n"; + $html .= '' . $field . "\n"; if ( isset( $v['description'] ) ) { $html .= '

          ' . $v['description'] . '

          ' . "\n"; } @@ -434,7 +485,7 @@ public function meta_box_content_render( $field_data ) { $data = time(); } $field = ''; - $html .= '' . $field . "\n"; + $html .= '' . $field . "\n"; if ( isset( $v['description'] ) ) { $html .= '

          ' . $v['description'] . '

          ' . "\n"; } @@ -443,21 +494,22 @@ public function meta_box_content_render( $field_data ) { default: $field = apply_filters( 'helphub_data_field_type_' . $v['type'], null, $k, $data, $v ); if ( $field ) { - $html .= '' . $field . "\n"; + $html .= '' . $field . "\n"; if ( isset( $v['description'] ) ) { $html .= '

          ' . $v['description'] . '

          ' . "\n"; } $html .= '' . "\n"; } break; - } - } + } // End switch(). + } // End foreach(). $html .= '' . "\n"; $html .= '' . "\n"; - } + } // End if(). - echo $html; /* @codingStandardsIgnoreLine */ + echo $html; + /* @codingStandardsIgnoreLine */ } // End meta_box_content() /** @@ -465,21 +517,22 @@ public function meta_box_content_render( $field_data ) { * * @access public * @since 1.0.0 + * * @param int $post_id The post ID. + * * @return int $post_id */ public function meta_box_save( $post_id ) { - global $post, $messages; - // Verify. $plugin_basename = plugin_basename( dirname( HelpHub_Post_Types()->plugin_path ) ); - $nonce_key = 'helphub_' . $this->post_type . '_noonce'; + $nonce_key = 'helphub_' . $this->post_type . '_noonce'; /* @codingStandardsIgnoreLine */ if ( empty( $_POST[ $nonce_key ] ) || ( get_post_type() != $this->post_type ) || ! wp_verify_nonce( $_POST[ $nonce_key ], $plugin_basename ) ) { return $post_id; } - if ( isset( $_POST['post_type'] ) && 'page' === $_POST['post_type'] ) { /* @codingStandardsIgnoreLine */ + if ( isset( $_POST['post_type'] ) && 'page' === $_POST['post_type'] ) { + /* @codingStandardsIgnoreLine */ if ( ! current_user_can( 'edit_page', $post_id ) ) { return $post_id; } @@ -490,24 +543,28 @@ public function meta_box_save( $post_id ) { } $field_data = $this->get_custom_fields_settings(); - $fields = array_keys( $field_data ); + $fields = array_keys( $field_data ); foreach ( $fields as $f ) { switch ( $field_data[ $f ]['type'] ) { case 'url': - ${$f} = isset( $_POST[ $f ] ) ? esc_url( $_POST[ $f ] ): ''; /* @codingStandardsIgnoreLine */ + ${$f} = isset( $_POST[ $f ] ) ? esc_url( $_POST[ $f ] ) : ''; + /* @codingStandardsIgnoreLine */ break; case 'textarea': case 'editor': - ${$f} = isset( $_POST[ $f ] ) ? wp_kses_post( trim( $_POST[ $f ] ) ): ''; /* @codingStandardsIgnoreLine */ + ${$f} = isset( $_POST[ $f ] ) ? wp_kses_post( trim( $_POST[ $f ] ) ) : ''; + /* @codingStandardsIgnoreLine */ break; case 'checkbox': - ${$f} = isset( $_POST[ $f ] ) ? 'yes': 'no'; /* @codingStandardsIgnoreLine */ + ${$f} = isset( $_POST[ $f ] ) ? 'yes' : 'no'; + /* @codingStandardsIgnoreLine */ break; case 'multicheck': // Ensure checkbox is array and whitelist accepted values against options. - ${$f} = isset( $_POST[ $f ] ) && is_array( $field_data[ $f ]['options'] ) ? (array) array_intersect( (array) $_POST[ $f ], array_flip( $field_data[ $f ]['options'] ) ) : ''; /* @codingStandardsIgnoreLine */ + ${$f} = isset( $_POST[ $f ] ) && is_array( $field_data[ $f ]['options'] ) ? (array) array_intersect( (array) $_POST[ $f ], array_flip( $field_data[ $f ]['options'] ) ) : ''; + /* @codingStandardsIgnoreLine */ break; case 'radio': case 'select': @@ -516,13 +573,16 @@ public function meta_box_save( $post_id ) { if ( is_array( $field_data[ $f ]['options'] ) ) { $values = array_keys( $field_data[ $f ]['options'] ); } - ${$f} = isset( $_POST[ $f ] ) && in_array( $_POST[ $f ], $values ) ? $_POST[ $f ]: ''; /* @codingStandardsIgnoreLine */ + ${$f} = isset( $_POST[ $f ] ) && in_array( $_POST[ $f ], $values ) ? $_POST[ $f ] : ''; + /* @codingStandardsIgnoreLine */ break; case 'date': - ${$f} = isset( $_POST[ $f ] ) ? strtotime( wp_strip_all_tags( $_POST[ $f ] ) ): ''; /* @codingStandardsIgnoreLine */ + ${$f} = isset( $_POST[ $f ] ) ? strtotime( wp_strip_all_tags( $_POST[ $f ] ) ) : ''; + /* @codingStandardsIgnoreLine */ break; default: - ${$f} = isset( $_POST[ $f ] ) ? strip_tags( trim( $_POST[ $f ] ) ): ''; /* @codingStandardsIgnoreLine */ + ${$f} = isset( $_POST[ $f ] ) ? strip_tags( trim( $_POST[ $f ] ) ) : ''; + /* @codingStandardsIgnoreLine */ break; } @@ -530,13 +590,16 @@ public function meta_box_save( $post_id ) { if ( 'read_time' !== $f ) { update_post_meta( $post_id, '_' . $f, ${$f} ); } - } + } // End foreach(). // Save the project gallery image IDs. if ( isset( $_POST['helphub_image_gallery'] ) ) : /* @codingStandardsIgnoreLine */ - $attachment_ids = array_filter( explode( ',', sanitize_text_field( $_POST['helphub_image_gallery'] ) ) ); /* @codingStandardsIgnoreLine */ + $attachment_ids = array_filter( explode( ',', sanitize_text_field( $_POST['helphub_image_gallery'] ) ) ); + /* @codingStandardsIgnoreLine */ update_post_meta( $post_id, '_helphub_image_gallery', implode( ',', $attachment_ids ) ); endif; + + return $post_id; } // End meta_box_save() /** @@ -544,15 +607,18 @@ public function meta_box_save( $post_id ) { * * @access public * @since 1.0.0 + * * @param string $title The title. + * * @return string $title */ public function enter_title_here( $title ) { - if ( get_post_type() == $this->post_type ) { + if ( get_post_type() === $this->post_type ) { if ( 'post' === get_post_type() ) { - $title = __( 'Enter the article title here', 'helphub' ); + $title = __( 'Enter the article title here', 'wporg-forums' ); } } + return $title; } // End enter_title_here() @@ -589,19 +655,19 @@ public function get_custom_fields_post_display_settings() { $fields = array(); $fields['read_time'] = array( - 'name' => __( 'Article Read Time', 'helphub' ), - 'description' => __( 'Leave this empty, calculation is automatic', 'helphub' ), - 'type' => 'text', - 'default' => '', - 'section' => 'info', + 'name' => __( 'Article Read Time', 'wporg-forums' ), + 'description' => __( 'Leave this empty, calculation is automatic', 'wporg-forums' ), + 'type' => 'text', + 'default' => '', + 'section' => 'info', ); $fields['custom_read_time'] = array( - 'name' => __( 'Custom Read Time', 'helphub' ), - 'description' => __( 'Only fill up this field if the automated calculation is incorrect', 'helphub' ), - 'type' => 'text', - 'default' => '', - 'section' => 'info', + 'name' => __( 'Custom Read Time', 'wporg-forums' ), + 'description' => __( 'Only fill up this field if the automated calculation is incorrect', 'wporg-forums' ), + 'type' => 'text', + 'default' => '', + 'section' => 'info', ); return $fields; @@ -618,16 +684,16 @@ public function get_custom_fields_version_display_settings() { $fields = array(); $fields['version_date'] = array( - 'name' => __( 'Date Released', 'helphub' ), - 'description' => __( 'Date this WordPress Version was released', 'helphub' ), + 'name' => __( 'Date Released', 'wporg-forums' ), + 'description' => __( 'Date this WordPress Version was released', 'wporg-forums' ), 'type' => 'date', 'default' => '', 'section' => 'info', ); $fields['musician_codename'] = array( - 'name' => __( 'Musician', 'helphub' ), - 'description' => __( 'The Jazz Musician this release was named after', 'helphub' ), + 'name' => __( 'Musician', 'wporg-forums' ), + 'description' => __( 'The Jazz Musician this release was named after', 'wporg-forums' ), 'type' => 'text', 'default' => '', 'section' => 'info', @@ -637,12 +703,12 @@ public function get_custom_fields_version_display_settings() { } - /** * Get the image for the given ID. * - * @param int $id The post ID. + * @param int $id The post ID. * @param mixed $size Image dimension. (default: "thing-thumbnail"). + * * @since 1.0.0 * @return string tag. */ @@ -662,18 +728,6 @@ protected function get_image( $id, $size = 'thing-thumbnail' ) { return $response; } // End get_image() - /** - * Register image sizes. - * - * @access public - * @since 1.0.0 - */ - public function register_image_sizes() { - // if ( function_exists( 'add_image_size' ) ) { - // add_image_size( $this->post_type . '-thumbnail', 150, 9999 ); // 150 pixels wide (and unlimited height) - // } - } // End register_image_sizes() - /** * Run on activation. * @@ -702,7 +756,9 @@ private function flush_rewrite_rules() { * @since 1.0.0 */ public function ensure_post_thumbnails_support() { - if ( ! current_theme_supports( 'post-thumbnails' ) ) { add_theme_support( 'post-thumbnails' ); } + if ( ! current_theme_supports( 'post-thumbnails' ) ) { + add_theme_support( 'post-thumbnails' ); + } } // End ensure_post_thumbnails_support() /** @@ -713,6 +769,17 @@ public function ensure_post_thumbnails_support() { */ public function add_menu_order() { add_post_type_support( 'post', 'page-attributes' ); - } // End ens + } // End add_menu_order() + + /** + * Add the post_type to Jetpack Sitemaps. + * + * @access public + * @since 1.0.0 + */ + public function add_to_sitemaps( $post_types ) { + $post_types[] = $this->post_type; + return $post_types; + } // End add_to_sitemaps() } // End Class diff --git a/plugins/helphub-post-types/classes/class-helphub-post-types-taxonomy.php b/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-taxonomy.php similarity index 54% rename from plugins/helphub-post-types/classes/class-helphub-post-types-taxonomy.php rename to plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-taxonomy.php index 8f89e17e..fa952a9b 100644 --- a/plugins/helphub-post-types/classes/class-helphub-post-types-taxonomy.php +++ b/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-taxonomy.php @@ -27,7 +27,7 @@ class HelpHub_Post_Types_Taxonomy { * * @access private * @since 1.3.0 - * @var string + * @var array */ private $post_type; @@ -72,23 +72,23 @@ class HelpHub_Post_Types_Taxonomy { * * @access public * @since 1.3.0 - * @param string $post_type The post type key. + * @param array $post_type The post type key. * @param string $token The taxonomy key. * @param string $singular Singular name. * @param string $plural Plural name. * @param array $args Array of argument overrides. */ - public function __construct( $post_type = 'thing', $token = 'thing-category', $singular = '', $plural = '', $args = array() ) { + public function __construct( $post_type = array(), $token = 'thing-category', $singular = '', $plural = '', $args = array() ) { $this->post_type = $post_type; - $this->token = esc_attr( $token ); - $this->singular = esc_html( $singular ); - $this->plural = esc_html( $plural ); + $this->token = esc_attr( $token ); + $this->singular = esc_html( $singular ); + $this->plural = esc_html( $plural ); - if ( '' == $this->singular ) { - $this->singular = __( 'Category', 'helphub' ); + if ( '' === $this->singular ) { + $this->singular = __( 'Category', 'wporg-forums' ); } - if ( '' == $this->plural ) { - $this->plural = __( 'Categories', 'helphub' ); + if ( '' === $this->plural ) { + $this->plural = __( 'Categories', 'wporg-forums' ); } $this->args = wp_parse_args( $args, $this->_get_default_args() ); @@ -105,15 +105,16 @@ public function __construct( $post_type = 'thing', $token = 'thing-category', $s */ private function _get_default_args() { return array( - 'labels' => $this->_get_default_labels(), - 'public' => true, - 'hierarchical' => true, - 'show_ui' => true, - 'show_admin_column' => true, - 'query_var' => true, - 'show_in_nav_menus' => false, - 'show_tagcloud' => false, - 'rewrite' => array( + 'labels' => $this->_get_default_labels(), + 'public' => true, + 'hierarchical' => true, + 'show_ui' => true, + 'show_in_rest' => true, + 'show_admin_column' => true, + 'query_var' => true, + 'show_in_nav_menus' => false, + 'show_tagcloud' => false, + 'rewrite' => array( 'slug' => str_replace( 'helphub_', '', esc_attr( $this->token ) ), ), ); @@ -128,17 +129,25 @@ private function _get_default_args() { */ private function _get_default_labels() { return array( - 'name' => sprintf( _x( '%s', 'taxonomy general name', 'helphub' ), $this->plural ), /* @codingStandardsIgnoreLine */ - 'singular_name' => sprintf( _x( '%s', 'taxonomy singular name', 'helphub' ), $this->singular ), /* @codingStandardsIgnoreLine */ - 'search_items' => sprintf( __( 'Search %s', 'helphub' ), $this->plural ), - 'all_items' => sprintf( __( 'All %s', 'helphub' ), $this->plural ), - 'parent_item' => sprintf( __( 'Parent %s', 'helphub' ), $this->singular ), - 'parent_item_colon' => sprintf( __( 'Parent %s:', 'helphub' ), $this->singular ), - 'edit_item' => sprintf( __( 'Edit %s', 'helphub' ), $this->singular ), - 'update_item' => sprintf( __( 'Update %s', 'helphub' ), $this->singular ), - 'add_new_item' => sprintf( __( 'Add New %s', 'helphub' ), $this->singular ), - 'new_item_name' => sprintf( __( 'New %s Name', 'helphub' ), $this->singular ), - 'menu_name' => $this->plural, + 'name' => sprintf( _x( '%s', 'taxonomy general name', 'wporg-forums' ), $this->plural ), /* @codingStandardsIgnoreLine */ + 'singular_name' => sprintf( _x( '%s', 'taxonomy singular name', 'wporg-forums' ), $this->singular ), /* @codingStandardsIgnoreLine */ + /* translators: %s: Plural of the search label. */ + 'search_items' => sprintf( __( 'Search %s', 'wporg-forums' ), $this->plural ), + /* translators: %s: Plural name of the post type. */ + 'all_items' => sprintf( __( 'All %s', 'wporg-forums' ), $this->plural ), + /* translators: %s: Post type name. */ + 'parent_item' => sprintf( __( 'Parent %s', 'wporg-forums' ), $this->singular ), + /* translators: %s: Post type name. */ + 'parent_item_colon' => sprintf( __( 'Parent %s:', 'wporg-forums' ), $this->singular ), + /* translators: %s: Post type name. */ + 'edit_item' => sprintf( __( 'Edit %s', 'wporg-forums' ), $this->singular ), + /* translators: %s: Post type name. */ + 'update_item' => sprintf( __( 'Update %s', 'wporg-forums' ), $this->singular ), + /* translators: %s: Post type name. */ + 'add_new_item' => sprintf( __( 'Add New %s', 'wporg-forums' ), $this->singular ), + /* translators: %s: Post type name. */ + 'new_item_name' => sprintf( __( 'New %s Name', 'wporg-forums' ), $this->singular ), + 'menu_name' => $this->plural, ); } // End _get_default_labels() @@ -150,6 +159,6 @@ private function _get_default_labels() { * @return void */ public function register() { - register_taxonomy( esc_attr( $this->token ), esc_attr( $this->post_type ), (array) $this->args ); + register_taxonomy( esc_attr( $this->token ), (array) $this->post_type, (array) $this->args ); } // End register() } // End Class diff --git a/plugins/helphub-post-types/helphub-post-types.php b/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types.php similarity index 57% rename from plugins/helphub-post-types/helphub-post-types.php rename to plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types.php index 7b46cef8..1bb676a3 100644 --- a/plugins/helphub-post-types/helphub-post-types.php +++ b/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types.php @@ -1,55 +1,26 @@ token = 'helphub'; - $this->plugin_url = plugin_dir_url( __FILE__ ); - $this->plugin_path = plugin_dir_path( __FILE__ ); - $this->version = '1.0.0'; + $this->token = 'helphub'; + $this->plugin_url = plugin_dir_url( __FILE__ ); + $this->plugin_path = plugin_dir_path( __FILE__ ); + $this->version = '1.0.0'; /* Post Types - Start */ - require_once( 'classes/class-helphub-post-types-post-type.php' ); - require_once( 'classes/class-helphub-post-types-taxonomy.php' ); + require_once( dirname( __FILE__ ) . '/class-helphub-post-types-post-type.php' ); + require_once( dirname( __FILE__ ) . '/class-helphub-post-types-taxonomy.php' ); - // Register an example post type. To register other post types, duplicate this line. - $this->post_types['post'] = new HelpHub_Post_Types_Post_Type( 'post', __( 'Post', 'helphub' ), __( 'Posts', 'helphub' ), array( 'menu_icon' => 'dashicons-post' ) ); - $this->post_types['helphub_version'] = new HelpHub_Post_Types_Post_Type( 'helphub_version', __( 'WordPress Version', 'helphub' ), __( 'WordPress Versions', 'helphub' ), array( 'menu_icon' => 'dashicons-wordpress' ) ); + $this->post_types['post'] = new HelpHub_Post_Types_Post_Type( + 'post', __( 'Post', 'wporg-forums' ), __( 'Posts', 'wporg-forums' ), array( + 'menu_icon' => 'dashicons-post', + ) + ); + $this->post_types['helphub_article'] = new HelpHub_Post_Types_Post_Type( + 'helphub_article', __( 'Article', 'wporg-forums' ), __( 'Articles', 'wporg-forums' ), array( + 'menu_icon' => 'dashicons-media-document', + ) + ); + $this->post_types['helphub_version'] = new HelpHub_Post_Types_Post_Type( + 'helphub_version', __( 'WordPress Version', 'wporg-forums' ), __( 'WordPress Versions', 'wporg-forums' ), array( + 'menu_icon' => 'dashicons-wordpress', + ) + ); /* Post Types - End */ // Register an example taxonomy. To register more taxonomies, duplicate this line. - $this->taxonomies['helphub_persona'] = new HelpHub_Post_Types_Taxonomy( 'post', 'helphub_persona', __( 'Persona', 'helphub' ), __( 'Personas', 'helphub' ) ); - $this->taxonomies['helphub_experience'] = new HelpHub_Post_Types_Taxonomy( 'post', 'helphub_experience', __( 'Experience', 'helphub' ), __( 'Experiences', 'helphub' ) ); - $this->taxonomies['helphub_major_release'] = new HelpHub_Post_Types_Taxonomy( 'helphub_version', 'helphub_major_release', __( 'Major Release', 'helphub' ), __( 'Major Releases', 'helphub' ) ); + $this->taxonomies['helphub_category'] = new HelpHub_Post_Types_Taxonomy( array( 'post', 'helphub_article' ), 'category', __( 'Category', 'wporg-forums' ), __( 'Categories', 'wporg-forums' ) ); + $this->taxonomies['helphub_persona'] = new HelpHub_Post_Types_Taxonomy( array( 'post', 'helphub_article' ), 'helphub_persona', __( 'Persona', 'wporg-forums' ), __( 'Personas', 'wporg-forums' ) ); + $this->taxonomies['helphub_experience'] = new HelpHub_Post_Types_Taxonomy( array( 'post', 'helphub_article' ), 'helphub_experience', __( 'Experience', 'wporg-forums' ), __( 'Experiences', 'wporg-forums' ) ); + $this->taxonomies['helphub_major_release'] = new HelpHub_Post_Types_Taxonomy( 'helphub_version', 'helphub_major_release', __( 'Major Release', 'wporg-forums' ), __( 'Major Releases', 'wporg-forums' ) ); register_activation_hook( __FILE__, array( $this, 'install' ) ); add_action( 'init', array( $this, 'load_plugin_textdomain' ) ); + add_action( 'pre_get_posts', array( $this, 'fix_archive_category' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) ); } // End __construct() @@ -187,25 +172,38 @@ public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } + return self::$_instance; } // End instance() /** * Load the localisation file. * - * @access public - * @since 1.0.0 + * @access public + * @since 1.0.0 */ public function load_plugin_textdomain() { - load_plugin_textdomain( 'helphub', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); + load_plugin_textdomain( 'wporg-forums', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); } // End load_plugin_textdomain() + /** + * Make sure category archive actually loads + * + * @access public + * @since 1.1.0 + */ + public function fix_archive_category( WP_Query $query ) { + if ( ! is_admin() && is_category() && $query->is_main_query() ) { + $query->set( 'post_type', 'helphub_article' ); + } + } // End fix_archive_category() + /** * Enqueue post type admin Styles. * * @access public - * @since 1.0.0 - * @return void + * @since 1.0.0 + * @return void */ public function enqueue_admin_styles() { global $pagenow; @@ -220,18 +218,20 @@ public function enqueue_admin_styles() { wp_enqueue_style( 'jquery-ui-datepicker' ); endif; endif; - wp_localize_script( 'helphub-post-types-admin', 'helphub_admin', + wp_localize_script( + 'helphub-post-types-admin', 'HelphubAdmin', array( - 'default_title' => __( 'Upload', 'helphub' ), - 'default_button' => __( 'Select this', 'helphub' ), + 'default_title' => __( 'Upload', 'wporg-forums' ), + 'default_button' => __( 'Select this', 'wporg-forums' ), ) ); - wp_localize_script( 'helphub-post-types-gallery', 'helphub_gallery', + wp_localize_script( + 'helphub-post-types-gallery', 'HelphubGallery', array( - 'gallery_title' => __( 'Add Images to Product Gallery', 'helphub' ), - 'gallery_button' => __( 'Add to gallery', 'helphub' ), - 'delete_image' => __( 'Delete image', 'helphub' ), + 'gallery_title' => __( 'Add Images to Product Gallery', 'wporg-forums' ), + 'gallery_button' => __( 'Add to gallery', 'wporg-forums' ), + 'delete_image' => __( 'Delete image', 'wporg-forums' ), ) ); @@ -244,7 +244,7 @@ public function enqueue_admin_styles() { * @since 1.0.0 */ public function __clone() { - _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'helphub' ), '1.0.0' ); + _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'wporg-forums' ), '1.0.0' ); } // End __clone() /** @@ -254,7 +254,7 @@ public function __clone() { * @since 1.0.0 */ public function __wakeup() { - _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'helphub' ), '1.0.0' ); + _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'wporg-forums' ), '1.0.0' ); } // End __wakeup() /** diff --git a/plugins/table-of-contents-lite/index.php b/plugins/support-helphub/inc/helphub-post-types/classes/index.php similarity index 100% rename from plugins/table-of-contents-lite/index.php rename to plugins/support-helphub/inc/helphub-post-types/classes/index.php diff --git a/plugins/support-helphub/inc/helphub-post-types/helphub-post-types.php b/plugins/support-helphub/inc/helphub-post-types/helphub-post-types.php new file mode 100644 index 00000000..f11104b5 --- /dev/null +++ b/plugins/support-helphub/inc/helphub-post-types/helphub-post-types.php @@ -0,0 +1,36 @@ +post_type, $calculate_for_posts ) ) { + if ( ! in_array( $post->post_type, $calculate_for_posts, true ) ) { return; } @@ -91,7 +93,8 @@ function hh_calculate_and_update_post_read_time( $post_id, $post, $update ) { preg_match_all( '/(img|src)\=(\"|\')[^\"\'\>]+/i', $post->post_content, $media ); // Adjust read time given the number of images. - if ( $image_count = count( $media[0] ) ) { + $image_count = count( $media[0] ); + if ( $image_count ) { $readtime = ( $image_count * 12 - $image_count + $readtime ); } @@ -110,7 +113,7 @@ function hh_calculate_and_update_post_read_time( $post_id, $post, $update ) { */ function hh_get_readtime( $post_id ) { - if ( 0 == $post_id || ! is_numeric( $post_id ) ) { + if ( 0 === $post_id || ! is_numeric( $post_id ) ) { global $post; $post_id = $post->ID; } @@ -124,7 +127,6 @@ function hh_get_readtime( $post_id ) { $read_time = get_post_meta( $post_id, '_read_time', true ); } - /* echo $read_time; */ return $read_time; } @@ -166,7 +168,8 @@ function hh_get_the_read_time( $post_id = null ) { // Convert reading time to minutes. $reading_time = (int) $read_time < 60 ? '1' : (string) round( $read_time / 60 ); - return sprintf( _n( 'Reading Time: %s Minute', 'Reading Time: %s Minutes', $reading_time, 'helphub' ), $reading_time ); + /* translators: %s: Read time in minutes. */ + return sprintf( _n( 'Reading Time: %s Minute', 'Reading Time: %s Minutes', $reading_time, 'wporg-forums' ), $reading_time ); } /** diff --git a/plugins/helphub-read-time/readme.txt b/plugins/support-helphub/inc/helphub-read-time/readme.txt similarity index 96% rename from plugins/helphub-read-time/readme.txt rename to plugins/support-helphub/inc/helphub-read-time/readme.txt index 1e4b0ef0..3732bdd2 100644 --- a/plugins/helphub-read-time/readme.txt +++ b/plugins/support-helphub/inc/helphub-read-time/readme.txt @@ -14,7 +14,7 @@ Generates a rough read time estimate for a post. == Usage == -Display read time for a single post in the loop. +Display read time for a single post in the loop. `` Display the read time for a post outside the loop. @@ -28,7 +28,7 @@ Adjusting Words Per Minute Average can be filtered using Pre tag content holds a bit more weight than normal words. The weight of the word count in pre tags is twice than normal (2 x Word Count). The weight can be modified by using the filter `read_time_offset_weight` which is set to 1 by default since the offset word count is added to the final word count total. -Increasing `read_time_offset_weight` will increase the weight of the pre tag word count. +Increasing `read_time_offset_weight` will increase the weight of the pre tag word count. Final Word Count + ( Offset Word Count * Offset Weight ) diff --git a/plugins/support-helphub/inc/table-of-contents-lite/assets/css/style.css b/plugins/support-helphub/inc/table-of-contents-lite/assets/css/style.css new file mode 100644 index 00000000..2d062401 --- /dev/null +++ b/plugins/support-helphub/inc/table-of-contents-lite/assets/css/style.css @@ -0,0 +1,158 @@ +.content-area h1, +.content-area h2, +.content-area h3, +.content-area h4 { + margin: 0.4em 0 1.1em 0; + font-weight: 400; + border-bottom: 0 none; + padding: 0; +} + +.entry-content .toc-heading, +.entry-content h2.toc-heading, +.entry-content h3.toc-heading, +.entry-content h4.toc-heading, +.entry-content h5.toc-heading, +.entry-content h6.toc-heading { + clear: left; + float: none !important; + text-transform: none; + font-weight: 400; +} + +.entry-content h2.toc-heading { + font-size: 1.45rem; /* 26px */ + line-height: 1.5em; /* 39px */ +} + +.entry-content h3.toc-heading { + font-size: 1.15rem; /* 21px */ + line-height: 1.475em; /* 31px */ +} + +.entry-content h4.toc-heading { + font-size: 1rem; /* 18px */ +} + +.table-of-contents { + float: right; + width: 250px; + background-color: #fff; + box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); + border: 1px solid #eee; + border-radius: 3px; + margin: 0 0 15px 15px; + z-index: 1; + position: relative; + color: #555d66; +} + +@media (min-width: 971px) { + + div.table-of-contents { + margin: -15px -30px 15px 15px; + } +} + +@media (max-width: 480px) { + + div.table-of-contents { + display: none; + } +} + +.table-of-contents h2.toc-title { + + /** + * originally font-size is 1.3em defined in wporg-breathe theme, + * which is correctly 17px but in HelpHub style this inheritance is wrong + * and 1.3em becomes 21px so we'll define font-size and line-height here + * until issue is fixed in theme itself. + * + * Recently edited to use rem values instead of pixels. + */ + margin: 0; + padding: 7px 12px; + font-size: 0.95rem; + font-weight: 400; + color: #32373c; + text-transform: uppercase; + border-bottom: 1px solid #eee; +} + +/** + * Same thing with font-size and line-height as above + */ +.table-of-contents .items { + font-size: 0.8rem; + margin: 0; + list-style-type: none; + padding: 1rem; +} + +.table-of-contents .items li { + padding: 4px; +} + +.table-of-contents .items li ul li, +.table-of-contents .items li ul li ul li { + padding-bottom: 0; +} + +/** + * Hiding second level table of contents links. + * With the second level, things looks too messy and + * information in the small area is too overwhelming. + */ +.table-of-contents .items li ul { + display: none; +} + +/** + * This should be inherited from p2-breathe + */ +.table-of-contents .items li a, +.table-of-contents .items li a:visited { + text-decoration: none; +} + +.table-of-contents .items li a:hover { + color: #0073aa; + text-decoration: underline; +} + +/** + * This should be inherited from p2-breathe + */ +.table-of-contents .items li ul { + list-style: disc; + margin-left: 16px; +} + +.table-of-contents .items li ul li { + list-style: disc; +} + +/* Highlight current heading and adjust scroll position for fixed toolbar */ +.toc-heading:target { + border-left: 5px solid #0073aa; + padding-left: 5px; + margin-left: -10px; +} + +p.toc-jump { + position: relative; + height: 50px; + text-align: right; + font-size: 12px; +} + +p.toc-jump::after { + content: ""; + display: table; + clear: both; +} + +p.toc-jump { + z-index: 1; +} diff --git a/plugins/table-of-contents-lite/includes/class-table-of-contents-lite.php b/plugins/support-helphub/inc/table-of-contents-lite/includes/class-table-of-contents-lite.php similarity index 69% rename from plugins/table-of-contents-lite/includes/class-table-of-contents-lite.php rename to plugins/support-helphub/inc/table-of-contents-lite/includes/class-table-of-contents-lite.php index 399ddc98..a601b8fe 100644 --- a/plugins/table-of-contents-lite/includes/class-table-of-contents-lite.php +++ b/plugins/support-helphub/inc/table-of-contents-lite/includes/class-table-of-contents-lite.php @@ -15,20 +15,20 @@ * * Functionalities needed to generate the table of contents. * - * @package WordPress + * @package WordPress * @subpackage HelpHub_Post_Types - * @category Plugin - * @author Carl Alberto - * @since 1.0.0 + * @category Plugin + * @author Carl Alberto + * @since 1.0.0 */ class Table_Of_Contents_Lite { /** * The single instance of Table_Of_Contents_Lite. * - * @var object - * @access private - * @since 1.0.0 + * @var object + * @access private + * @since 1.0.0 */ private static $_instance = null; @@ -108,18 +108,20 @@ class Table_Of_Contents_Lite { * Constructor function. * * @access public - * @param string $file filename of the plugin. - * @param string $version version number of plugin. + * + * @param string $file filename of the plugin. + * @param string $version version number of plugin. + * * @since 1.0.0 * @return void */ public function __construct( $file = '', $version = '1.0.0' ) { $this->_version = $version; - $this->_token = 'table_of_contents_lite'; + $this->_token = 'table_of_contents_lite'; // Load plugin environment variables. - $this->file = $file; - $this->dir = dirname( $this->file ); + $this->file = $file; + $this->dir = dirname( $this->file ); $this->assets_dir = trailingslashit( $this->dir ) . 'assets'; $this->assets_url = esc_url( trailingslashit( plugins_url( '/assets/', $this->file ) ) ); @@ -142,6 +144,13 @@ public function __construct( $file = '', $version = '1.0.0' ) { public function plugin_init() { $plugin_text_domain = 'table-of-contents-lite'; load_plugin_textdomain( $plugin_text_domain, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); + add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); + } + /** + * Load style + */ + public function enqueue_scripts() { + wp_enqueue_style( 'table-of-contents', TABLE_OF_CONTENTS_URL . 'assets/css/style.css', array(), '1.0' ); } /** @@ -149,15 +158,18 @@ public function plugin_init() { * * @since 1.0.0 * @static - * @param string $file filename of the plugin. - * @param string $version version number of plugin. - * @see Table_Of_Contents_Lite() - * @return Main Table_Of_Contents_Lite instance + * + * @param string $file filename of the plugin. + * @param string $version version number of plugin. + * + * @see Table_Of_Contents_Lite() + * @return Main Table_Of_Contents_Lite instance */ public static function instance( $file = '', $version = '1.0.0' ) { if ( is_null( self::$_instance ) ) { self::$_instance = new self( $file, $version ); } + return self::$_instance; } // End instance () @@ -167,7 +179,7 @@ public static function instance( $file = '', $version = '1.0.0' ) { * @since 1.0.0 */ public function __clone() { - _doing_it_wrong( __FUNCTION__, esc_html_e( 'Cheatin’ huh?' ) ); + _doing_it_wrong( __FUNCTION__, esc_html_e( 'Cheatin’ huh?', 'wporg-forums' ) ); } // End __clone () /** @@ -176,7 +188,7 @@ public function __clone() { * @since 1.0.0 */ public function __wakeup() { - _doing_it_wrong( __FUNCTION__, esc_html_e( 'Cheatin’ huh?' ) ); + _doing_it_wrong( __FUNCTION__, esc_html_e( 'Cheatin’ huh?', 'wporg-forums' ) ); } // End __wakeup () /** @@ -204,11 +216,16 @@ private function _log_version_number() { /** * Main function that adds the TOC to the regular content of each post. * - * @param longtext $content contains the post content. - * @return longtext generatod TOC based from the h tags in the $content plus the $content at the end. + * @param longtext $content contains the post content. + * + * @return longtext generatod TOC based from the h tags in the $content plus the $content at the end. */ public function add_toc( $content ) { + if ( ! is_singular() ) { + return $content; + } + $toc = ''; $items = $this->get_tags_in_content( 'h([1-4])', $content ); // returns the h1-h4 tags inside the_content. @@ -216,71 +233,78 @@ public function add_toc( $content ) { return $content; } - for ( $i = 1; $i <= 4; $i++ ) { + for ( $i = 1; $i <= 4; $i ++ ) { $content = $this->add_ids_and_jumpto_links( "h$i", $content ); } if ( $items ) { $contents_header = sprintf( 'h%s', $items[0][2] ); - $toc = sprintf( '%s
          ', $toc ); - $last_item = false; + $toc .= '
          '; + $toc .= '

          ' . __( 'Topics', 'wporg-forums' ) . '

          '; + $toc .= '
            '; + $last_item = false; foreach ( $items as $item ) { + $last_item = $item[2]; if ( $last_item ) { if ( $last_item < $item[2] ) { - $toc = sprintf( '%s
              ', $toc ); + $toc .= '
                '; } elseif ( $last_item > $item[2] ) { - $toc = sprintf( '%s
              ', $toc ); + $toc .= '
            '; } else { - $toc = sprintf( '%s', $toc ); + $toc .= ''; } } - $last_item = $item[2]; - $toc .= sprintf( '
          • %2s', sanitize_title_with_dashes( $item[3] ), $item[3] ); + $toc .= sprintf( '
          • %2s', sanitize_title_with_dashes( remove_accents( $item[3] ) ), $item[3] ); } - $toc = sprintf( '%s
          ', $toc ); + $toc .= '
        '; } + return $toc . $content; } /** * Filters all header tags in the current content. * - * @param string $tag header tags to be included, default h1-h4. - * @param string $content content to be filtered. - * @return array $matches all filtered header tags. + * @param string $tag header tags to be included, default h1-h4. + * @param string $content content to be filtered. + * + * @return array $matches all filtered header tags. */ public function get_tags_in_content( $tag, $content = '' ) { if ( empty( $content ) ) { $content = get_the_content(); } preg_match_all( "/(<{$tag}>)(.*)(<\/{$tag}>)/", $content, $matches, PREG_SET_ORDER ); + return $matches; } /** * Appends the filtered header tags on the start fo the $content. * - * @param string $tag depending on the tag, it will place the TOC link deeper in the ul - li tag. - * @param longtext $content content to be filtered. - * @return array $content returns the content with the partial TOC on top. + * @param string $tag depending on the tag, it will place the TOC link deeper in the ul - li tag. + * @param longtext $content content to be filtered. + * + * @return array $content returns the content with the partial TOC on top. */ public function add_ids_and_jumpto_links( $tag, $content ) { - $items = $this->get_tags_in_content( $tag, $content ); - $first = true; - $matches = array(); + $items = $this->get_tags_in_content( $tag, $content ); + $first = true; + $matches = array(); $replacements = array(); foreach ( $items as $item ) { $replacement = ''; - $matches[] = $item[0]; - $id = sanitize_title_with_dashes( $item[2] ); + $matches[] = $item[0]; + $id = sanitize_title_with_dashes( remove_accents( $item[2] ) ); if ( ! $first ) { - $replacement .= '

        ' . __( 'Top ↑', 'table-of-contents-lite' ) . '

        '; + $replacement .= '

        ' . __( 'Top ↑', 'wporg-forums' ) . '

        '; } else { $first = false; } $a11y_text = sprintf( '%s', $item[2] ); - $anchor = sprintf( '%2$s', $id, $a11y_text ); + $hash = __( '', 'wporg-forums' ); + $anchor = sprintf( '%2$s %3$s', $id, $hash, $a11y_text ); $replacement .= sprintf( '<%1$s class="toc-heading" id="%2$s" tabindex="-1">%3$s %4$s', $tag, $id, $item[2], $anchor ); $replacements[] = $replacement; } diff --git a/plugins/support-helphub/inc/table-of-contents-lite/index.php b/plugins/support-helphub/inc/table-of-contents-lite/index.php new file mode 100644 index 00000000..80327027 --- /dev/null +++ b/plugins/support-helphub/inc/table-of-contents-lite/index.php @@ -0,0 +1,5 @@ +\n" -"Language-Team: LANGUAGE \n" - -#: syntaxhighlighter.php:248 -msgid "Default" -msgstr "" - -#: syntaxhighlighter.php:249 -msgid "Django" -msgstr "" - -#: syntaxhighlighter.php:250 -msgid "Eclipse" -msgstr "" - -#: syntaxhighlighter.php:251 -msgid "Emacs" -msgstr "" - -#: syntaxhighlighter.php:252 -msgid "Fade to Grey" -msgstr "" - -#: syntaxhighlighter.php:253 -msgid "Midnight" -msgstr "" - -#: syntaxhighlighter.php:254 -msgid "RDark" -msgstr "" - -#: syntaxhighlighter.php:255 -msgid "[None]" -msgstr "" - -#: syntaxhighlighter.php:267 syntaxhighlighter.php:998 -msgid "SyntaxHighlighter Settings" -msgstr "" - -#: syntaxhighlighter.php:267 -msgid "SyntaxHighlighter" -msgstr "" - -#: syntaxhighlighter.php:308 -msgid "Settings" -msgstr "" - -#: syntaxhighlighter.php:660 -msgid "show source" -msgstr "" - -#: syntaxhighlighter.php:661 -msgid "view source" -msgstr "" - -#: syntaxhighlighter.php:662 -msgid "copy to clipboard" -msgstr "" - -#: syntaxhighlighter.php:663 -msgid "The code is in your clipboard now" -msgstr "" - -#: syntaxhighlighter.php:664 -msgid "print" -msgstr "" - -#: syntaxhighlighter.php:665 syntaxhighlighter.php:672 -msgid "?" -msgstr "" - -#: syntaxhighlighter.php:666 syntaxhighlighter.php:673 -msgid "SyntaxHighlighter\\n\\n" -msgstr "" - -#: syntaxhighlighter.php:667 syntaxhighlighter.php:674 -msgid "Can't find brush for: " -msgstr "" - -#: syntaxhighlighter.php:668 syntaxhighlighter.php:675 -msgid "Brush wasn't configured for html-script option: " -msgstr "" - -#: syntaxhighlighter.php:671 -msgid "+ expand source" -msgstr "" - -#: syntaxhighlighter.php:986 -msgid "Are you sure you want to reset your settings to the defaults?" -msgstr "" - -#: syntaxhighlighter.php:990 -msgid "Settings reset to defaults." -msgstr "" - -#: syntaxhighlighter.php:1007 -msgid "Highlighter Version" -msgstr "" - -#: syntaxhighlighter.php:1012 -msgid "Version 3.x" -msgstr "" - -#: syntaxhighlighter.php:1013 -msgid "Version 2.x" -msgstr "" - -#: syntaxhighlighter.php:1021 -msgid "" -"Version 3 allows visitors to easily highlight portions of your code with " -"their mouse (either by dragging or double-clicking) and copy it to their " -"clipboard. No toolbar containing a Flash-based button is required." -msgstr "" - -#: syntaxhighlighter.php:1022 -msgid "" -"Version 2 allows for line wrapping, something that version 3 does not do at " -"this time." -msgstr "" - -#: syntaxhighlighter.php:1026 -msgid "Color Theme" -msgstr "" - -#: syntaxhighlighter.php:1038 syntaxhighlighter.php:1041 -msgid "Load All Brushes" -msgstr "" - -#: syntaxhighlighter.php:1042 -msgid "" -"Always load all language files (for directly using <pre> " -"tags rather than shortcodes)
             If left " -"unchecked (default), then language files will only be loaded when needed
             If unsure, leave this box unchecked" -msgstr "" - -#: syntaxhighlighter.php:1048 -msgid "Defaults" -msgstr "" - -#: syntaxhighlighter.php:1050 -msgid "" -"All of the settings below can be configured on a per-code block basis, but " -"you can control the defaults of all code blocks here." -msgstr "" - -#: syntaxhighlighter.php:1054 syntaxhighlighter.php:1057 -msgid "Miscellaneous" -msgstr "" - -#: syntaxhighlighter.php:1059 -msgid "Display line numbers" -msgstr "" - -#: syntaxhighlighter.php:1060 -msgid "Display the toolbar" -msgstr "" - -#: syntaxhighlighter.php:1061 -msgid "Automatically make URLs clickable" -msgstr "" - -#: syntaxhighlighter.php:1062 -msgid "Collapse code boxes" -msgstr "" - -#: syntaxhighlighter.php:1063 -msgid "Use the light display mode, best for single lines of code" -msgstr "" - -#: syntaxhighlighter.php:1064 -msgid "Use smart tabs allowing tabs being used for alignment" -msgstr "" - -#: syntaxhighlighter.php:1065 -msgid "" -"Wrap long lines (v2.x only, disabling this will make a scrollbar show " -"instead)" -msgstr "" - -#: syntaxhighlighter.php:1066 -msgid "" -"Enable "HTML script" mode by default (see the bottom of this page " -"for details). Checking this box is not recommended as this mode only works " -"with certain languages." -msgstr "" - -#: syntaxhighlighter.php:1071 -msgid "Additional CSS Class(es)" -msgstr "" - -#: syntaxhighlighter.php:1075 -msgid "Starting Line Number" -msgstr "" - -#: syntaxhighlighter.php:1079 -msgid "Line Number Padding" -msgstr "" - -#: syntaxhighlighter.php:1084 -msgid "Off" -msgstr "" - -#: syntaxhighlighter.php:1085 -msgid "Automatic" -msgstr "" - -#: syntaxhighlighter.php:1101 -msgid "Tab Size" -msgstr "" - -#: syntaxhighlighter.php:1105 -msgid "Title" -msgstr "" - -#: syntaxhighlighter.php:1108 -msgid "" -"Some optional default text to display above each code block or as the " -"clickable text for collapsed code blocks." -msgstr "" - -#: syntaxhighlighter.php:1118 syntaxhighlighter.php:1121 -msgid "Reset to Defaults" -msgstr "" - -#: syntaxhighlighter.php:1120 -msgid "Save Changes" -msgstr "" - -#: syntaxhighlighter.php:1128 -msgid "Preview" -msgstr "" - -#: syntaxhighlighter.php:1130 -msgid "Click "Save Changes" to update this preview." -msgstr "" - -#: syntaxhighlighter.php:1149 -msgid "PHP Code Example" -msgstr "" - -#: syntaxhighlighter.php:1151 -msgid "Hello World!" -msgstr "" - -#: syntaxhighlighter.php:1153 -msgid "This line is highlighted." -msgstr "" - -#: syntaxhighlighter.php:1156 -msgid "" -"\t\tThis\tis\tan\r\n" -"\t\texample\tof\tsmart\r\n" -"\t\ttabs." -msgstr "" - -#: syntaxhighlighter.php:1161 -msgid "WordPress" -msgstr "" - -#: syntaxhighlighter.php:1172 -msgid "Shortcode Parameters" -msgstr "" - -#: syntaxhighlighter.php:1174 -msgid "" -"These are the parameters you can pass to the shortcode and what they do. For " -"the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s." -msgstr "" - -#: syntaxhighlighter.php:1177 -msgctxt "language parameter" -msgid "" -"%1$s or %2$s — The language syntax to highlight with. You can " -"alternately just use that as the tag, such as [php]code[/php]. " -"Click here for a list of valid tags (under "" -"aliases")." -msgstr "" - -#: syntaxhighlighter.php:1178 -msgctxt "autolinks parameter" -msgid "%s — Toggle automatic URL linking." -msgstr "" - -#: syntaxhighlighter.php:1179 -msgctxt "classname parameter" -msgid "%s — Add an additional CSS class to the code box." -msgstr "" - -#: syntaxhighlighter.php:1180 -msgctxt "collapse parameter" -msgid "" -"%s — Toggle collapsing the code box by default, requiring a click to " -"expand it. Good for large code posts." -msgstr "" - -#: syntaxhighlighter.php:1181 -msgctxt "firstline parameter" -msgid "" -"%s — An interger specifying what number the first line should be (for " -"the line numbering)." -msgstr "" - -#: syntaxhighlighter.php:1182 -msgctxt "gutter parameter" -msgid "%s — Toggle the left-side line numbering." -msgstr "" - -#: syntaxhighlighter.php:1183 -msgctxt "highlight parameter" -msgid "" -"%1$s — A comma-separated list of line numbers to highlight. You can " -"also specify a range. Example: %2$s" -msgstr "" - -#: syntaxhighlighter.php:1184 -msgctxt "htmlscript parameter" -msgid "" -"%s — Toggle highlighting any extra HTML/XML. Good for when you're " -"mixing HTML/XML with another language, such as having PHP inside an HTML web " -"page. The above preview has it enabled for example. This only works with " -"certain languages." -msgstr "" - -#: syntaxhighlighter.php:1185 -msgctxt "light parameter" -msgid "" -"%s — Toggle light mode which disables the gutter and toolbar all at " -"once." -msgstr "" - -#: syntaxhighlighter.php:1186 -msgctxt "padlinenumbers parameter" -msgid "" -"%s — Controls line number padding. Valid values are false " -"(no padding), true (automatic padding), or an integer (forced " -"padding)." -msgstr "" - -#: syntaxhighlighter.php:1187 -msgctxt "title parameter" -msgid "" -"%1$s (v3 only) — Sets some text to show up before the code. Very " -"useful when combined with the %2$s parameter." -msgstr "" - -#: syntaxhighlighter.php:1188 -msgctxt "toolbar parameter" -msgid "" -"%s — Toggle the toolbar (buttons in v2, the about question mark in v3)" -msgstr "" - -#: syntaxhighlighter.php:1189 -msgctxt "wraplines parameter" -msgid "%s (v2 only) — Toggle line wrapping." -msgstr "" - -#: syntaxhighlighter.php:1192 -msgid "Some example shortcodes:" -msgstr "" - -#: syntaxhighlighter.php:1195 syntaxhighlighter.php:1196 -#: syntaxhighlighter.php:1197 syntaxhighlighter.php:1198 -msgid "your code here" -msgstr "" - -#: syntaxhighlighter.php:1196 -msgid "example-filename.php" -msgstr "" - -#. Plugin Name of the plugin/theme -msgid "SyntaxHighlighter Evolved" -msgstr "" - -#. Plugin URI of the plugin/theme -msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/" -msgstr "" - -#. Description of the plugin/theme -msgid "" -"Easily post syntax-highlighted code to your site without having to modify " -"the code at all. Uses Alex Gorbatchev's SyntaxHighlighter. TIP: Don't " -"use the Visual editor if you don't want your code mangled. TinyMCE will " -"\"clean up\" your HTML." -msgstr "" - -#. Author of the plugin/theme -msgid "Alex Mills (Viper007Bond)" -msgstr "" - -#. Author URI of the plugin/theme -msgid "http://www.viper007bond.com/" -msgstr "" diff --git a/plugins/syntaxhighlighter/localization/syntaxhighlighter-da_DK.mo b/plugins/syntaxhighlighter/localization/syntaxhighlighter-da_DK.mo deleted file mode 100644 index 6492fcd6..00000000 Binary files a/plugins/syntaxhighlighter/localization/syntaxhighlighter-da_DK.mo and /dev/null differ diff --git a/plugins/syntaxhighlighter/localization/syntaxhighlighter-da_DK.po b/plugins/syntaxhighlighter/localization/syntaxhighlighter-da_DK.po deleted file mode 100644 index 36f01329..00000000 --- a/plugins/syntaxhighlighter/localization/syntaxhighlighter-da_DK.po +++ /dev/null @@ -1,312 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: Syntax Highlighter 2.3.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-11-09 08:02+0100\n" -"PO-Revision-Date: \n" -"Last-Translator: Team Blogos \n" -"Language-Team: Team Blogos \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2;plural=n != 1;\n" -"X-Poedit-Language: Danish\n" -"X-Poedit-Country: DENMARK\n" -"X-Poedit-SourceCharset: utf-8\n" -"X-Poedit-KeywordsList: __;_c;_e;__ngettext:1,2;__ngettext_noop:1,2;_n:1,2;_nc:1,2;_n_noop:1,2\n" -"X-Poedit-Basepath: d:\\wordpress\\plugins\\syntaxhighlighter\n" -"X-Poedit-SearchPath-0: d:\\wordpress\\plugins\\syntaxhighlighter\n" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:206 -msgid "Default" -msgstr "Standard" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:207 -msgid "Django" -msgstr "Django" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:208 -msgid "Eclipse" -msgstr "Eclipse" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:209 -msgid "Emacs" -msgstr "Emacs" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:210 -msgid "Fade to Grey" -msgstr "Fade til gråt" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:211 -msgid "Midnight" -msgstr "Midnight" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:212 -msgid "RDark" -msgstr "RDark" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:213 -msgid "[None]" -msgstr "[Ingen]" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:220 -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:842 -msgid "SyntaxHighlighter Settings" -msgstr "SyntaxHighlighter-indstillinger" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:220 -msgid "SyntaxHighlighter" -msgstr "SyntaxHighlighter" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:251 -msgid "Settings" -msgstr "Indstillinger" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:539 -msgid "show source" -msgstr "vis kilde" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:540 -msgid "view source" -msgstr "Vis kilde" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:541 -msgid "copy to clipboard" -msgstr "Kopiér til clipboard" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:542 -msgid "The code is in your clipboard now" -msgstr "Koden er i dit clipboard nu" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:543 -msgid "print" -msgstr "udskriv" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:544 -msgid "?" -msgstr "?" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:545 -msgid "" -"SyntaxHighlighter\\n" -"\\n" -msgstr "" -"SyntaxHighlighter\\n" -"\\n" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:546 -msgid "Can't find brush for: " -msgstr "Kan ikke finde penslen (syntaks-definitioner) til: " - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:547 -msgid "Brush wasn't configured for html-script option: " -msgstr "Pensel (syntaks-definitioner) er ikke konfigureret for html-script-indstillignen: " - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:830 -msgid "Are you sure you want to reset your settings to the defaults?" -msgstr "Er du sikker på, at du ønsker at nulstille dine indstillinger standardværdierne?" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:834 -msgid "Settings reset to defaults." -msgstr "Indstillinger nulstillet til standardværdierne." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:851 -msgid "Color Theme" -msgstr "Farvetema" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:866 -msgid "Defaults" -msgstr "Standardværdier" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:868 -msgid "All of the settings below can be configured on a per-code box basis, but you can control the defaults of all code boxes here." -msgstr "Alle indstillinger nedenfor kan konfigureres for hver kode-boks for sig, men du kan kontrollere standardværdierne for alle kode-bokse her." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:872 -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:875 -msgid "Miscellaneous" -msgstr "Forskelligt" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:877 -msgid "Display line numbers" -msgstr "Vis linjenumre" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:878 -msgid "Display the toolbar" -msgstr "Vis værktøjslinje" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:879 -msgid "Automatically make URLs clickable" -msgstr "Lav automatisk URL'er klikbare" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:880 -msgid "Collapse code boxes" -msgstr "Vis kodebokse med koden skjult" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:881 -msgid "Use the light display mode, best for single lines of code" -msgstr "Brug \"bar visning\" – bedst for enkelte linjer af kode" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:882 -msgid "Use smart tabs allowing tabs being used for alignment" -msgstr "Brug smarte tabs, så tabs kan bruges til opstilling" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:883 -msgid "Wrap long lines, using an icon to show where line wraps occur (disabling this will make a scrollbar show instead)" -msgstr "Del lange linjer med et ikon, der viser, hvor linjedeling forekommer (deaktiverer du dette, vises en scrollbar i stedet)" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:884 -msgid "Enable "HTML script" mode by default (see the bottom of this page for details). Checking this box is not recommended as this mode only works with certain languages." -msgstr "Aktivér "HTML-script"-funktion som standard (se detaljerne nederst på denne side). Det anbefales ikke at krydse af her, da denne funktion kun fungerer med visse sprog." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:889 -msgid "Additional CSS Class(es)" -msgstr "Ekstra CSS-class(es)" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:893 -msgid "Starting Line Number" -msgstr "Første linjenummer:" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:897 -msgid "Line Number Padding" -msgstr "Padding omkring linjenumre" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:902 -msgid "Off" -msgstr "Fra" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:903 -msgid "Automatic" -msgstr "Automatisk" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:921 -msgid "Tab Size" -msgstr "Tabstørrelse:" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:927 -msgid "Save Changes" -msgstr "Gem ændringer" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:928 -msgid "Reset to Defaults" -msgstr "Gendan til standardværdier" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:933 -msgid "Preview" -msgstr "Forhåndsvisning" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:935 -msgid "Click "Save Changes" to update this preview." -msgstr "Klik "Gem ændringer" for at opdatere denne forhåndsvisning." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:947 -msgid "PHP Code Example" -msgstr "Eksempel på PHP-kode" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:949 -msgid "Hello World!" -msgstr "Hej verden!" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:951 -msgid "This line is highlighted." -msgstr "Denne linje er fremhævet." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:954 -msgid "" -"\t\tThis\tis\tan\n" -"\t\texample\tof\tsmart\n" -"\t\ttabs." -msgstr "" -"\t\tDette\ter\tet\n" -"\t\teksempel\tpå\tsmarte\n" -"\t\ttabs." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:969 -msgid "Shortcode Parameters" -msgstr "Kortkode-parametre." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:971 -#, php-format -msgid "These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s." -msgstr "Her er parametrene, du kan medtage i kortkoderne, samt hvad de gør. For de booleske (dvs. til/fra), brug %1$s/%2$s eller %3$s/%4$s" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:974 -#, php-format -msgid "%1$s or %2$s — The language syntax to highlight with. You can alternately just use that as the tag, such as [php]code[/php]. Click here for a list of valid tags (under "aliases")." -msgstr "%1$s eller %2$s — Sprogsyntaksen til at fremhæve med. Alternativt kan du bruge dem som tags, så som [php]code[/php]. Klik her, hvis du vil se en liste med gyldige tags (under "aliasser")." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:975 -#, php-format -msgid "%s — Toggle automatic URL linking." -msgstr "%s — Slår automatisk URL-linkning til/fra." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:976 -#, php-format -msgid "%s — Add an additional CSS class to the code box." -msgstr "%s — Tilføjer en ekstra CSS-class til kode-boksen." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:977 -#, php-format -msgid "%s — Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts." -msgstr "%s — Som standard skjules koden i kodeboksen, så der skal klikkes for at vise koden. Nyttigt til indlæg med megen kode." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:978 -#, php-format -msgid "%s — An interger specifying what number the first line should be (for the line numbering)." -msgstr "%s — Et heltal, som angiver, hvilken nummer den første linje skal have (til brug for linjenummerering)." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:979 -#, php-format -msgid "%s — Toggle the left-side line numbering." -msgstr "%s — Skifter mellem linjenummerering til venstre og til højre." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:980 -#, php-format -msgid "%s — A comma-sperated list of line numbers to highlight." -msgstr "%s — En kommasepareret liste med linjenumre, der skal fremhæves." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:981 -#, php-format -msgid "%s — Toggle highlighting any extra HTML/XML. Good for when you're mixing HTML/XML with another language, such as having PHP inside an HTML web page. The above preview has it enabled for example. This only works with certain languages." -msgstr "%s — Slår fremhævelse af ekstra HTML/XML til/fra. Det er nyttigt, når du bruger HTML/XML sammen med et andet sprog, som f.eks. hvis du har PHP på en HTML-webside. Eksempelvis har ovenstående forhåndsvisning det aktiveret. Funktionen virker kun med visse sprog." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:982 -#, php-format -msgid "%s — Toggle light mode which disables the gutter and toolbar all at once." -msgstr "%s — Slår \"bar fremvisning\" til/fra, hvilket skjuler \"afløbsrenden\" og værktøjslinjen med det samme." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:983 -#, php-format -msgid "%s — Controls line number padding. Valid values are false (no padding), true (automatic padding), or an integer (forced padding)." -msgstr "%s — Kontrollerer padding omkring linjenumre. Gyldige værdier er false (inge padding), true (automatisk padding) eller en integer (tvungen padding)." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:984 -#, php-format -msgid "%s — Toggle the toolbar containing the helpful buttons." -msgstr "%s — Slår værktøjslinjen med nyttige knapper til/fra." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:985 -#, php-format -msgid "%s — Toggle line wrapping." -msgstr "%s — Slår linjedeling til/fra." - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:988 -msgid "Some example shortcodes:" -msgstr "Nogle eksempler på kortkoder:" - -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:991 -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:992 -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:993 -#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:994 -msgid "your code here" -msgstr "din kode her" - -#~ msgid "expand source" -#~ msgstr "udvid kode" -#~ msgid "Show a ruler column along the top of the code box" -#~ msgstr "Vis en lineal for oven på kodeboksen" -#~ msgid "%s — Toggle the column ruler at the top of the code box." -#~ msgstr "%s — Slår kolonnelinealen til/fra i toppen af kodeboksen." -#~ msgid "Cheatin’ uh?" -#~ msgstr "Snyder du, hva'?" - diff --git a/plugins/syntaxhighlighter/localization/syntaxhighlighter-de_DE.mo b/plugins/syntaxhighlighter/localization/syntaxhighlighter-de_DE.mo deleted file mode 100644 index e884b60a..00000000 Binary files a/plugins/syntaxhighlighter/localization/syntaxhighlighter-de_DE.mo and /dev/null differ diff --git a/plugins/syntaxhighlighter/localization/syntaxhighlighter-de_DE.po b/plugins/syntaxhighlighter/localization/syntaxhighlighter-de_DE.po deleted file mode 100644 index 53902d27..00000000 --- a/plugins/syntaxhighlighter/localization/syntaxhighlighter-de_DE.po +++ /dev/null @@ -1,455 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR Viper007Bond -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: SyntaxHighlighter Evolved\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-12-10 22:14+0100\n" -"PO-Revision-Date: 2014-01-18 18:14+0100\n" -"Last-Translator: Michael Berger \n" -"Language-Team: Michael Berger \n" -"Language: de_DE\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;" -"_n_noop:1,2;_c;_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;" -"esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" -"X-Poedit-Basepath: ../\n" -"X-Poedit-SourceCharset: UTF-8\n" -"X-Generator: Poedit 1.5.7\n" -"X-Poedit-SearchPath-0: .\n" - -#: syntaxhighlighter.php:250 -msgid "Default" -msgstr "Standard" - -#: syntaxhighlighter.php:251 -msgid "Django" -msgstr "Django" - -#: syntaxhighlighter.php:252 -msgid "Eclipse" -msgstr "Eclipse" - -#: syntaxhighlighter.php:253 -msgid "Emacs" -msgstr "Emacs" - -#: syntaxhighlighter.php:254 -msgid "Fade to Grey" -msgstr "Fade to Grey" - -#: syntaxhighlighter.php:255 -msgid "Midnight" -msgstr "Midnight" - -#: syntaxhighlighter.php:256 -msgid "RDark" -msgstr "RDark" - -#: syntaxhighlighter.php:257 -msgid "[None]" -msgstr "[ohne]" - -#: syntaxhighlighter.php:269 syntaxhighlighter.php:990 -msgid "SyntaxHighlighter Settings" -msgstr "SyntaxHighlighter Einstellungen" - -#: syntaxhighlighter.php:269 -msgid "SyntaxHighlighter" -msgstr "SyntaxHighlighter" - -#: syntaxhighlighter.php:300 -msgid "Settings" -msgstr "Einstellungen" - -#: syntaxhighlighter.php:652 -msgid "show source" -msgstr "Quelltext aufklappen" - -#: syntaxhighlighter.php:653 -msgid "view source" -msgstr "Quelltext anzeigen" - -#: syntaxhighlighter.php:654 -msgid "copy to clipboard" -msgstr "In die Zwischenablage kopieren" - -#: syntaxhighlighter.php:655 -msgid "The code is in your clipboard now" -msgstr "Der Quelltext wurde in die Zwischenablage kopiert" - -#: syntaxhighlighter.php:656 -msgid "print" -msgstr "Drucken" - -#: syntaxhighlighter.php:657 syntaxhighlighter.php:664 -msgid "?" -msgstr "?" - -#: syntaxhighlighter.php:658 syntaxhighlighter.php:665 -msgid "SyntaxHighlighter\\n\\n" -msgstr "SyntaxHighlighter\\n\\n" - -#: syntaxhighlighter.php:659 syntaxhighlighter.php:666 -msgid "Can't find brush for: " -msgstr "Keine Syntax-Datei vorhanden für: " - -#: syntaxhighlighter.php:660 syntaxhighlighter.php:667 -msgid "Brush wasn't configured for html-script option: " -msgstr "Die Syntax-Datei ist nicht für die „htmlscript” Option konfiguriert: " - -#: syntaxhighlighter.php:663 -msgid "+ expand source" -msgstr "+ Quelltext aufklappen" - -#: syntaxhighlighter.php:978 -msgid "Are you sure you want to reset your settings to the defaults?" -msgstr "Bist du sicher, dass du alle Einstellungen zurücksetzen willst?" - -#: syntaxhighlighter.php:982 -msgid "Settings reset to defaults." -msgstr "Alle Einstellungen wurden zurückgesetzt." - -#: syntaxhighlighter.php:999 -msgid "Highlighter Version" -msgstr "Highlighter Version" - -#: syntaxhighlighter.php:1004 -msgid "Version 3.x" -msgstr "Version 3.x" - -#: syntaxhighlighter.php:1005 -msgid "Version 2.x" -msgstr "Version 2.x" - -#: syntaxhighlighter.php:1013 -msgid "" -"Version 3 allows visitors to easily highlight portions of your code with " -"their mouse (either by dragging or double-clicking) and copy it to their " -"clipboard. No toolbar containing a Flash-based button is required." -msgstr "" -"

        In Version 3.x können Teile des Quelltextes mit der " -"Maus markiert und in die Zwischenablage kopiert werden, ohne dass Adobe " -"Flash benötigt wird.
        In Version 2.x können lange Zeilen mittels " -"Zeilenumbruch angezeigt werden.

        " - -#: syntaxhighlighter.php:1014 -msgid "" -"Version 2 allows for line wrapping, something that version 3 does not do at " -"this time." -msgstr " " - -#: syntaxhighlighter.php:1018 -msgid "Color Theme" -msgstr "Farbschema" - -#: syntaxhighlighter.php:1030 syntaxhighlighter.php:1033 -msgid "Load All Brushes" -msgstr "Alle Syntax-Dateien laden" - -#: syntaxhighlighter.php:1034 -msgid "" -"Always load all language files (for directly using <pre> " -"tags rather than shortcodes)
             If left " -"unchecked (default), then language files will only be loaded when needed
             If unsure, leave this box unchecked" -msgstr "" -"Immer alle Syntax-Dateien laden, um <pre> Tags anstelle " -"von Shortcodes verwenden zu können.

        Wenn diese " -"Option deaktiviert ist, werden die Syntax-Dateien nur bei Bedarf geladen " -"(Voreinstellung). Im Zweifel solltest du diese Option deaktiviert lassen.

        " - -#: syntaxhighlighter.php:1040 -msgid "Defaults" -msgstr "Voreinstellungen" - -#: syntaxhighlighter.php:1042 -msgid "" -"All of the settings below can be configured on a per-code block basis, but " -"you can control the defaults of all code blocks here." -msgstr "" -"Alle folgenden Einstellungen können mit den unten beschriebenen Shortcode " -"Parametern pro Quelltext-Block festgelegt werden. Du kannst hier aber die " -"Voreinstellungen für alle Quellcode-Blöcke festlegen." - -#: syntaxhighlighter.php:1046 syntaxhighlighter.php:1049 -msgid "Miscellaneous" -msgstr "Allgemein" - -#: syntaxhighlighter.php:1051 -msgid "Display line numbers" -msgstr "gutter — Zeilennummern anzeigen" - -#: syntaxhighlighter.php:1052 -msgid "Display the toolbar" -msgstr "toolbar — Toolbar anzeigen" - -#: syntaxhighlighter.php:1053 -msgid "Automatically make URLs clickable" -msgstr "autolinks — URLs im Quelltext als Link darstellen" - -#: syntaxhighlighter.php:1054 -msgid "Collapse code boxes" -msgstr "collapse — Quelltext-Block zugeklappt anzeigen" - -#: syntaxhighlighter.php:1055 -msgid "Use the light display mode, best for single lines of code" -msgstr "" -"light — Keine Zeilennummern und kein Toolbar anzeigen" - -#: syntaxhighlighter.php:1056 -msgid "Use smart tabs allowing tabs being used for alignment" -msgstr "smarttabs — Tabstopps zur Ausrichtung verwenden" - -#: syntaxhighlighter.php:1057 -msgid "" -"Wrap long lines (v2.x only, disabling this will make a scrollbar show " -"instead)" -msgstr "" -"wraplines — Zu lange Zeilen mittels Zeilenumbruch statt " -"einer Bildlaufleiste darstellen (nur in Version 2.x möglich)" - -#: syntaxhighlighter.php:1058 -msgid "" -"Enable "HTML script" mode by default (see the bottom of this page " -"for details). Checking this box is not recommended as this mode only works " -"with certain languages." -msgstr "" -"htmlscript — HTML/XML innerhalb des Quelltextes " -"hervorheben. Es wird nicht empfohlen, diesen Modus als Voreinstellung zu " -"verwenden, da er nur bei bestimmten Programmiersprachen verfügbar ist." - -#: syntaxhighlighter.php:1063 -msgid "Additional CSS Class(es)" -msgstr "Zusätzliche CSS Klasse(n)" - -#: syntaxhighlighter.php:1067 -msgid "Starting Line Number" -msgstr "Erste Zeilennummer" - -#: syntaxhighlighter.php:1071 -msgid "Line Number Padding" -msgstr "Führende Nullen anzeigen" - -#: syntaxhighlighter.php:1076 -msgid "Off" -msgstr "Keine" - -#: syntaxhighlighter.php:1077 -msgid "Automatic" -msgstr "Automatisch" - -#: syntaxhighlighter.php:1093 -msgid "Tab Size" -msgstr "Tabulatorbreite" - -#: syntaxhighlighter.php:1097 -msgid "Title" -msgstr "Überschrift" - -#: syntaxhighlighter.php:1100 -msgid "" -"Some optional default text to display above each code block or as the " -"clickable text for collapsed code blocks." -msgstr "" -"

        Überschrift für den Quelltext (nur in Version 3.x " -"möglich)

        " - -#: syntaxhighlighter.php:1110 syntaxhighlighter.php:1113 -msgid "Reset to Defaults" -msgstr "Alle Einstellungen zurücksetzen" - -#: syntaxhighlighter.php:1112 -msgid "Save Changes" -msgstr "Änderungen speichern" - -#: syntaxhighlighter.php:1120 -msgid "Preview" -msgstr "Vorschau" - -#: syntaxhighlighter.php:1122 -msgid "Click "Save Changes" to update this preview." -msgstr "Klicke „Änderungen speichern” zur Aktualisierung der Vorschau." - -#: syntaxhighlighter.php:1141 -msgid "PHP Code Example" -msgstr "PHP Quelltext Beispiel" - -#: syntaxhighlighter.php:1143 -msgid "Hello World!" -msgstr "Hallo Welt!" - -#: syntaxhighlighter.php:1145 -msgid "This line is highlighted." -msgstr "Diese Zeile ist hervorgehoben." - -#: syntaxhighlighter.php:1148 -msgid "" -"\t\tThis\tis\tan\n" -"\t\texample\tof\tsmart\n" -"\t\ttabs." -msgstr "" -"\t\tDies\tist\tein\n" -"\t\tBeispiel\tfür\tSmart\n" -"\t\tTabs." - -#: syntaxhighlighter.php:1153 -msgid "WordPress" -msgstr "WordPress" - -#: syntaxhighlighter.php:1164 -msgid "Shortcode Parameters" -msgstr "Shortcodes" - -#: syntaxhighlighter.php:1166 -#, php-format -msgid "" -"These are the parameters you can pass to the shortcode and what they do. For " -"the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s." -msgstr "" -"Liste der Shortcode Parameter und ihrer Funktion. Für boolesche Werte (d.h. " -"an/aus), verwende %1$s/%2$s oder %3$s/%4$s." - -#: syntaxhighlighter.php:1169 -#, php-format -msgctxt "language parameter" -msgid "" -"%1$s or %2$s — The language syntax to highlight with. You can " -"alternately just use that as the tag, such as [php]code[/php]. " -"Click here for a list of valid tags (under "" -"aliases")." -msgstr "" -"%1$s oder %2$s — Programmiersprache des Quelltextes festlegen. Du " -"kannst alternativ auch nur den Namen der Programmiersprache als Tag " -"verwenden. Beispiel: [php]code[/php]. Eine Liste der gültigen " -"Tags findest du auf dieser Seite unter dem " -"Navigationspunkt syntaxes." - -#: syntaxhighlighter.php:1170 -#, php-format -msgctxt "autolinks parameter" -msgid "%s — Toggle automatic URL linking." -msgstr "%s — URLs im Quelltext als Link darstellen." - -#: syntaxhighlighter.php:1171 -#, php-format -msgctxt "classname parameter" -msgid "%s — Add an additional CSS class to the code box." -msgstr "" -"%s — Zusätzliche CSS Klasse(n) für den Quelltext-Block einbinden. " -"Mehrere Klassen durch Leerzeichen voneinander trennen." - -#: syntaxhighlighter.php:1172 -#, php-format -msgctxt "collapse parameter" -msgid "" -"%s — Toggle collapsing the code box by default, requiring a click to " -"expand it. Good for large code posts." -msgstr "" -"%s — Quelltext-Block zugeklappt anzeigen. Zum Aufklappen ist dann ein " -"Klick auf den Quelltext-Block notwendig. Diese Einstellung eignet sich " -"insbesondere für längere Quelltexte." - -#: syntaxhighlighter.php:1173 -#, php-format -msgctxt "firstline parameter" -msgid "" -"%s — An interger specifying what number the first line should be (for " -"the line numbering)." -msgstr "" -"%s — Erste Zeilennummer für die Nummerierung der Quelltextzeilen " -"festlegen." - -#: syntaxhighlighter.php:1174 -#, php-format -msgctxt "gutter parameter" -msgid "%s — Toggle the left-side line numbering." -msgstr "%s — Zeilennummern anzeigen." - -#: syntaxhighlighter.php:1175 -#, php-format -msgctxt "highlight parameter" -msgid "" -"%1$s — A comma-sperated list of line numbers to highlight. You can " -"also specify a range. Example: %2$s" -msgstr "" -"%1$s — Quelltextzeilen hervorheben. Die Angabe erfolgt in Form einer " -"kommaseparierten Liste oder eines Bereichs: %2$s" - -#: syntaxhighlighter.php:1176 -#, php-format -msgctxt "htmlscript parameter" -msgid "" -"%s — Toggle highlighting any extra HTML/XML. Good for when you're " -"mixing HTML/XML with another language, such as having PHP inside an HTML web " -"page. The above preview has it enabled for example. This only works with " -"certain languages." -msgstr "" -"%s — HTML/XML innerhalb des Quelltextes hervorheben. Diese Option ist " -"geeignet, wenn HTML/XML und eine andere Sprache gemischt werden (z.B. PHP " -"innerhalb einer HTML Webseite in der obigen Vorschau). Diese Option ist " -"jedoch nur für bestimmte Programmiersprachen verfügbar." - -#: syntaxhighlighter.php:1177 -#, php-format -msgctxt "light parameter" -msgid "" -"%s — Toggle light mode which disables the gutter and toolbar all at " -"once." -msgstr "%s — Keine Zeilennummern und kein Toolbar anzeigen." - -#: syntaxhighlighter.php:1178 -#, php-format -msgctxt "padlinenumbers parameter" -msgid "" -"%s — Controls line number padding. Valid values are false " -"(no padding), true (automatic padding), or an integer (forced " -"padding)." -msgstr "" -"%s — Führenden Nullen anzeigen. Gültige Werte sind false " -"(keine führenden Nullen), true (automatische Anzahl führender " -"Nullen) oder ein Integer Wert (feste Anzahl von Stellen)." - -#: syntaxhighlighter.php:1179 -#, php-format -msgctxt "title parameter" -msgid "" -"%1$s (v3 only) — Sets some text to show up before the code. Very " -"useful when combined with the %2$s parameter." -msgstr "" -"%1$s (nur Version 3.x) — Überschrift für den Quelltext. Diese Option " -"empfiehlt sich, wenn %2$s verwendet wird." - -#: syntaxhighlighter.php:1180 -#, php-format -msgctxt "toolbar parameter" -msgid "" -"%s — Toggle the toolbar (buttons in v2, the about question mark in v3)" -msgstr "%s — Toolbar anzeigen." - -#: syntaxhighlighter.php:1181 -#, php-format -msgctxt "wraplines parameter" -msgid "%s (v2 only) — Toggle line wrapping." -msgstr "" -"%s (nur Version 2.x) — Zu lange Zeilen mittels Zeilenumbruch statt " -"einer Bildlaufleiste darstellen." - -#: syntaxhighlighter.php:1184 -msgid "Some example shortcodes:" -msgstr "Einige Beispiele für Shortcodes:" - -#: syntaxhighlighter.php:1187 syntaxhighlighter.php:1188 -#: syntaxhighlighter.php:1189 syntaxhighlighter.php:1190 -msgid "your code here" -msgstr "Hier steht der Quelltext" - -#: syntaxhighlighter.php:1188 -msgid "example-filename.php" -msgstr "beispieldatei.php" diff --git a/plugins/syntaxhighlighter/localization/syntaxhighlighter-it_IT.mo b/plugins/syntaxhighlighter/localization/syntaxhighlighter-it_IT.mo deleted file mode 100644 index 6f103204..00000000 Binary files a/plugins/syntaxhighlighter/localization/syntaxhighlighter-it_IT.mo and /dev/null differ diff --git a/plugins/syntaxhighlighter/localization/syntaxhighlighter-it_IT.po b/plugins/syntaxhighlighter/localization/syntaxhighlighter-it_IT.po deleted file mode 100644 index b4988966..00000000 --- a/plugins/syntaxhighlighter/localization/syntaxhighlighter-it_IT.po +++ /dev/null @@ -1,422 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR Viper007Bond -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: SyntaxHighlighter Evolved in italiano\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-06-04 14:07+0100\n" -"PO-Revision-Date: 2011-06-04 14:15+0100\n" -"Last-Translator: Gianni Diurno (aka gidibao) \n" -"Language-Team: Gianni Diurno | gidibao.net\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-Language: Italian\n" -"X-Poedit-Country: ITALY\n" -"X-Poedit-KeywordsList: __;_e;esc_attr__;esc_attr_e;esc_html__;esc_html_e\n" -"X-Poedit-Basepath: ../\n" -"X-Poedit-SourceCharset: utf-8\n" -"X-Poedit-SearchPath-0: .\n" - -#: syntaxhighlighter.php:245 -msgid "Default" -msgstr "Predefinito" - -#: syntaxhighlighter.php:246 -msgid "Django" -msgstr "Django" - -#: syntaxhighlighter.php:247 -msgid "Eclipse" -msgstr "Eclipse" - -#: syntaxhighlighter.php:248 -msgid "Emacs" -msgstr "Emacs" - -#: syntaxhighlighter.php:249 -msgid "Fade to Grey" -msgstr "Fade to Grey" - -#: syntaxhighlighter.php:250 -msgid "Midnight" -msgstr "Midnight" - -#: syntaxhighlighter.php:251 -msgid "RDark" -msgstr "RDark" - -#: syntaxhighlighter.php:252 -msgid "[None]" -msgstr "[nessuno]" - -#: syntaxhighlighter.php:264 -#: syntaxhighlighter.php:954 -msgid "SyntaxHighlighter Settings" -msgstr "Impostazioni SyntaxHighlighter" - -#: syntaxhighlighter.php:264 -msgid "SyntaxHighlighter" -msgstr "SyntaxHighlighter" - -#: syntaxhighlighter.php:295 -msgid "Settings" -msgstr "Impostazioni" - -#: syntaxhighlighter.php:616 -msgid "show source" -msgstr "mostra sorgente" - -#: syntaxhighlighter.php:617 -msgid "view source" -msgstr "vedi sorgente" - -#: syntaxhighlighter.php:618 -msgid "copy to clipboard" -msgstr "copia negli appunti" - -#: syntaxhighlighter.php:619 -msgid "The code is in your clipboard now" -msgstr "Il codice é da ora nei tuoi appunti" - -#: syntaxhighlighter.php:620 -msgid "print" -msgstr "stampa" - -#: syntaxhighlighter.php:621 -#: syntaxhighlighter.php:628 -msgid "?" -msgstr "info" - -#: syntaxhighlighter.php:622 -#: syntaxhighlighter.php:629 -msgid "" -"SyntaxHighlighter\\n" -"\\n" -msgstr "" -"SyntaxHighlighter\\n" -"\\n" - -#: syntaxhighlighter.php:623 -#: syntaxhighlighter.php:630 -msgid "Can't find brush for: " -msgstr "Non é stato possibile trovare il file di sintassi per: " - -#: syntaxhighlighter.php:624 -#: syntaxhighlighter.php:631 -msgid "Brush wasn't configured for html-script option: " -msgstr "Il file di sintassi non é stato configurato per l'opzione html-script" - -#: syntaxhighlighter.php:627 -msgid "+ expand source" -msgstr "+ espandi sorgente" - -#: syntaxhighlighter.php:942 -msgid "Are you sure you want to reset your settings to the defaults?" -msgstr "Sei certo di volere ripristinare le impostazioni alle predefinite?" - -#: syntaxhighlighter.php:946 -msgid "Settings reset to defaults." -msgstr "Ripristina le impostazioni alle predefinite" - -#: syntaxhighlighter.php:963 -msgid "Highlighter Version" -msgstr "Versione Highlighter" - -#: syntaxhighlighter.php:968 -msgid "Version 3.x" -msgstr "Versione 3.x" - -#: syntaxhighlighter.php:969 -msgid "Version 2.x" -msgstr "Versione 2.x" - -#: syntaxhighlighter.php:977 -msgid "Version 3 allows visitors to easily highlight portions of your code with their mouse (either by dragging or double-clicking) and copy it to their clipboard. No toolbar containing a Flash-based button is required." -msgstr "La versione 3 permette agli utenti di evidenziare facilmente con il mouse delle porzioni del tuo codice (altresì spostare/doppio-click) potendolo copiare nei loro appunti. Non sarà necessaria nessuna toolbar contenente un pulsante a base-Flash." - -#: syntaxhighlighter.php:978 -msgid "Version 2 allows for line wrapping, something that version 3 does not do at this time." -msgstr "La versione 2 permette il wrap per la linea, funzione questa non ancora disponibile per la versione 3." - -#: syntaxhighlighter.php:982 -msgid "Color Theme" -msgstr "Colore del tema" - -#: syntaxhighlighter.php:994 -#: syntaxhighlighter.php:997 -msgid "Load All Brushes" -msgstr "Carica tutti i brush" - -#: syntaxhighlighter.php:998 -msgid "Always load all language files (for directly using <pre> tags rather than shortcodes)
             If left unchecked (default), then language files will only be loaded when needed
             If unsure, leave this box unchecked" -msgstr "Carica sempre tutti i file di linguaggio (per utilizzo diretto dei tag <pre> piuttosto che gli shortcode)
             Se non attivo (predefinito), i file di linguaggio saranno caricati secondo necessità
          " - -#: syntaxhighlighter.php:1004 -msgid "Defaults" -msgstr "Parametri predefiniti" - -#: syntaxhighlighter.php:1006 -msgid "All of the settings below can be configured on a per-code block basis, but you can control the defaults of all code blocks here." -msgstr "Tutte le impostazioni qui sotto potranno essere configurate singolarmente comunque, sarà altresì possibile controllare qui le predefinite per tutti i blocchi codice." - -#: syntaxhighlighter.php:1010 -#: syntaxhighlighter.php:1013 -msgid "Miscellaneous" -msgstr "Varie" - -#: syntaxhighlighter.php:1015 -msgid "Display line numbers" -msgstr "mostra la numerazione delle linee" - -#: syntaxhighlighter.php:1016 -msgid "Display the toolbar" -msgstr "mostra la barra degli strumenti" - -#: syntaxhighlighter.php:1017 -msgid "Automatically make URLs clickable" -msgstr "rendi gli URL cliccabili (in automatico)" - -#: syntaxhighlighter.php:1018 -msgid "Collapse code boxes" -msgstr "comprimi le caselle del codice" - -#: syntaxhighlighter.php:1019 -msgid "Use the light display mode, best for single lines of code" -msgstr "utilizza la modalità light del tema, ideale per le singole linee di codice" - -#: syntaxhighlighter.php:1020 -msgid "Use smart tabs allowing tabs being used for alignment" -msgstr "utilizza le smart tabs in modo che le tag siano utilizzate per l'allineamento" - -#: syntaxhighlighter.php:1021 -msgid "Wrap long lines (v2.x only, disabling this will make a scrollbar show instead)" -msgstr "Wrap per le righe di grandi dimensioni (solo v2.x, disattivando l'opzione si otterrà una barra di scorrimento)" - -#: syntaxhighlighter.php:1022 -msgid "Enable "HTML script" mode by default (see the bottom of this page for details). Checking this box is not recommended as this mode only works with certain languages." -msgstr "Abilita la modalità "HTML script" come predefinita (vedi i dettagli a fondo pagina). La selezione di questa casella non é raccomandabile poiché la funzione lavora solamente con alcuni linguaggi." - -#: syntaxhighlighter.php:1027 -msgid "Additional CSS Class(es)" -msgstr "classe/i CSS addizionali" - -#: syntaxhighlighter.php:1031 -msgid "Starting Line Number" -msgstr "Numero di inizio linea" - -#: syntaxhighlighter.php:1035 -msgid "Line Number Padding" -msgstr "Padding numerazione linea" - -#: syntaxhighlighter.php:1040 -msgid "Off" -msgstr "Spento" - -#: syntaxhighlighter.php:1041 -msgid "Automatic" -msgstr "Automatico" - -#: syntaxhighlighter.php:1057 -msgid "Tab Size" -msgstr "Dimensione tab" - -#: syntaxhighlighter.php:1061 -msgid "Title" -msgstr "Titolo" - -#: syntaxhighlighter.php:1064 -msgid "Some optional default text to display above each code block or as the clickable text for collapsed code blocks." -msgstr "Testo predefinito e facoltativo da mostrare al di sopra di ogni blocco codice o come testo cliccabile per i blocchi codice da espandere." - -#: syntaxhighlighter.php:1074 -#: syntaxhighlighter.php:1077 -msgid "Reset to Defaults" -msgstr "Ripristina alle predefinite" - -#: syntaxhighlighter.php:1076 -msgid "Save Changes" -msgstr "Salva le modifiche" - -#: syntaxhighlighter.php:1084 -msgid "Preview" -msgstr "Anteprima della casella" - -#: syntaxhighlighter.php:1086 -msgid "Click "Save Changes" to update this preview." -msgstr "Clicca "Salva le modifiche" per visualizzare l'anteprima aggiornata." - -#: syntaxhighlighter.php:1105 -msgid "PHP Code Example" -msgstr "Codice PHP di esempio" - -#: syntaxhighlighter.php:1107 -msgid "Hello World!" -msgstr "Hello World!" - -#: syntaxhighlighter.php:1109 -msgid "This line is highlighted." -msgstr "Questa linea é evidenziata." - -#: syntaxhighlighter.php:1112 -msgid "" -"\t\tThis\tis\tan\n" -"\t\texample\tof\tsmart\n" -"\t\ttabs." -msgstr "" -"\t\tQuesto\té\tun\n" -"\t\tesempio\tdi\tsmart\n" -"\t\ttabs." - -#: syntaxhighlighter.php:1117 -msgid "WordPress" -msgstr "WordPress" - -#: syntaxhighlighter.php:1128 -msgid "Shortcode Parameters" -msgstr "Parametri per lo shortcode" - -#: syntaxhighlighter.php:1130 -#, php-format -msgid "These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s." -msgstr "Lista dei parametri (e loro funzioni) che potrai inserire nello shortcode. Per i booleani (es: on/off), inserisci %1$s/%2$s oppure %3$s/%4$s." - -#: syntaxhighlighter.php:1148 -msgid "Some example shortcodes:" -msgstr "Alcuni esempi di shortcode:" - -#: syntaxhighlighter.php:1151 -#: syntaxhighlighter.php:1152 -#: syntaxhighlighter.php:1153 -#: syntaxhighlighter.php:1154 -msgid "your code here" -msgstr "inserisci qui il tuo codice" - -#: syntaxhighlighter.php:1152 -msgid "example-filename.php" -msgstr "example-filename.php" - -#~ msgid "" -#~ "%1$s or %2$s — The language syntax to highlight with. You can " -#~ "alternately just use that as the tag, such as [php]code[/php]. Click here for a list of valid tags (under " -#~ ""aliases")." -#~ msgstr "" -#~ "%1$s oppure %2$s — Il linguaggio da evidenziare. Potrai in " -#~ "alternativa utilizzarne il solo nome. Ad esempio: [php]code[/php]. Clicca qui per la lista dei tag validi (sotto " -#~ ""aliases")." - -#~ msgid "%s — Toggle automatic URL linking." -#~ msgstr "%s — Commutazione automatica collegamento ad un URL." - -#~ msgid "%s — Add an additional CSS class to the code box." -#~ msgstr "" -#~ "%s — Aggiungi una classe CSS addizionale alla casella per il codice." - -#~ msgid "" -#~ "%s — Toggle collapsing the code box by default, requiring a click " -#~ "to expand it. Good for large code posts." -#~ msgstr "" -#~ "%s — Commuta in automatico (predefinita) la compressione della " -#~ "casella. Sarà necessario cliccare sulla casella per espanderla. Ottimo " -#~ "per l'inserimento di codici di grande dimensione." - -#~ msgid "" -#~ "%s — An interger specifying what number the first line should be " -#~ "(for the line numbering)." -#~ msgstr "" -#~ "%s — Un numero intero per definire con quale numero abbia inizio la " -#~ "prima linea (per la numerazione)." - -#~ msgid "%s — Toggle the left-side line numbering." -#~ msgstr "%s — Commutazione numerazione della linea nel lato sinistro." - -#~ msgid "" -#~ "%1$s — A comma-sperated list of line numbers to highlight. You can " -#~ "also specify a range. Example: %2$s" -#~ msgstr "" -#~ "%1$s — Lista delle linee da evidenziare (numeri separati da una " -#~ "virgola). Puoi anche specificare il range. Esempio: %2$s" - -#~ msgid "" -#~ "%s — Toggle highlighting any extra HTML/XML. Good for when you're " -#~ "mixing HTML/XML with another language, such as having PHP inside an HTML " -#~ "web page. The above preview has it enabled for example. This only works " -#~ "with certain languages." -#~ msgstr "" -#~ "%s — Commuta mettendo in evidenza ogni HTML/XML extra. Ottima " -#~ "soluzione qualora utilizzassi del HTML/XML con un altro linguaggio (ad " -#~ "esempio del codice PHP inserito nel HTML di una pagina web). Vedi " -#~ "l'anteprima qui sopra. Questa funziona solamente per alcuni linguaggi." - -#~ msgid "" -#~ "%s — Toggle light mode which disables the gutter and toolbar all at " -#~ "once." -#~ msgstr "" -#~ "%s — Commuta alla modalità light del tema disattivando " -#~ "contemporaneamente il gutter e la toolbar." - -#~ msgid "" -#~ "%s — Controls line number padding. Valid values are false (no padding), true (automatic padding), or an integer " -#~ "(forced padding)." -#~ msgstr "" -#~ "%s — Controlla il padding per la linea di numerazione. I valori " -#~ "validi sono false (nessun padding), true " -#~ "(padding automatico) oppure un numero intero (padding forzato)." - -#~ msgid "" -#~ "%1$s — Sets some text to show up before the code. Very useful when " -#~ "combined with the %2$s parameter." -#~ msgstr "" -#~ "%1$s — Imposta il testo da mostrare prima del codice. Molto utile " -#~ "in combinazione con il parametro %2$s." - -#~ msgid "%s — Toggle the toolbar containing the helpful buttons." -#~ msgstr "%s — Commutazione toolbar contenente i pulsanti opzione." - -#~ msgid "%s — Toggle line wrapping." -#~ msgstr "%s — Commuta il wrapping della riga." - -#~ msgid "SyntaxHighlighter Evolved" -#~ msgstr "SyntaxHighlighter Evolved" - -#~ msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/" -#~ msgstr "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/" - -#~ msgid "" -#~ "Easily post syntax-highlighted code to your site without having to modify " -#~ "the code at all. Uses Alex Gorbatchev's SyntaxHighlighter v2.0.320 and some code " -#~ "by Andrew Ozz of Automattic." -#~ msgstr "" -#~ "Inserisci con semplicità il codice syntax-highlight nel tuo blog senza " -#~ "l'obbligo di doverlo modificare. Utilizza il SyntaxHighlighter " -#~ "v2.0.320 di Alex Gorbatchev ed un po' di codice da Andrew Ozz di Automattic." - -#~ msgid "Viper007Bond" -#~ msgstr "Viper007Bond" - -#~ msgid "http://www.viper007bond.com/" -#~ msgstr "http://www.viper007bond.com/" - -#~ msgid "Show a ruler column along the top of the code box" -#~ msgstr "" -#~ "mostra in alto del box per il codice una riga graduata per le colonne" - -#~ msgid "Font Size (Percentage)" -#~ msgstr "Dimensione font (percentuale)" - -#~ msgid "%s — Toggle the column ruler at the top of the code box." -#~ msgstr "" -#~ "%s — Commuta la riga graduata posizionata nella parte superiore del " -#~ "box per il codice." - -#~ msgid "Cheatin’ uh?" -#~ msgstr "Problemi! uh?" diff --git a/plugins/syntaxhighlighter/localization/syntaxhighlighter-ja.mo b/plugins/syntaxhighlighter/localization/syntaxhighlighter-ja.mo deleted file mode 100644 index 3b024903..00000000 Binary files a/plugins/syntaxhighlighter/localization/syntaxhighlighter-ja.mo and /dev/null differ diff --git a/plugins/syntaxhighlighter/localization/syntaxhighlighter-ja.po b/plugins/syntaxhighlighter/localization/syntaxhighlighter-ja.po deleted file mode 100644 index 8cd65034..00000000 --- a/plugins/syntaxhighlighter/localization/syntaxhighlighter-ja.po +++ /dev/null @@ -1,354 +0,0 @@ -# Translation of SyntaxHighlighter Evolved in Japanese -# This file is distributed under the same license as the SyntaxHighlighter Evolved package. -msgid "" -msgstr "" -"PO-Revision-Date: 2014-04-06 21:14:45+0000\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: GlotPress/0.1\n" -"Project-Id-Version: SyntaxHighlighter Evolved\n" - -#: syntaxhighlighter.php:665 syntaxhighlighter.php:672 -msgid "?" -msgstr "SyntaxHighlighterについて" - -#: syntaxhighlighter.php:662 -msgid "copy to clipboard" -msgstr "クリップボードへコピー" - -#: syntaxhighlighter.php:308 -msgid "Settings" -msgstr "設定" - -#: syntaxhighlighter.php:664 -msgid "print" -msgstr "印刷" - -#: syntaxhighlighter.php:663 -msgid "The code is in your clipboard now" -msgstr "コードをクリップボードへコピーしました" - -#: syntaxhighlighter.php:661 -msgid "view source" -msgstr "ソースを表示" - -#: syntaxhighlighter.php:660 -msgid "show source" -msgstr "ソースを見る" - -#: syntaxhighlighter.php:267 -msgid "SyntaxHighlighter" -msgstr "SyntaxHighlighter" - -#: syntaxhighlighter.php:267 syntaxhighlighter.php:998 -msgid "SyntaxHighlighter Settings" -msgstr "SyntaxHighlighterの設定" - -#: syntaxhighlighter.php:255 -msgid "[None]" -msgstr "[なし]" - -#: syntaxhighlighter.php:254 -msgid "RDark" -msgstr "RDark" - -#: syntaxhighlighter.php:253 -msgid "Midnight" -msgstr "Midnight" - -#: syntaxhighlighter.php:252 -msgid "Fade to Grey" -msgstr "Fade to Grey" - -#: syntaxhighlighter.php:251 -msgid "Emacs" -msgstr "Emacs" - -#: syntaxhighlighter.php:250 -msgid "Eclipse" -msgstr "Eclipse" - -#: syntaxhighlighter.php:249 -msgid "Django" -msgstr "Django" - -#: syntaxhighlighter.php:248 -msgid "Default" -msgstr "Default" - -#: syntaxhighlighter.php:666 syntaxhighlighter.php:673 -msgid "SyntaxHighlighter\\n\\n" -msgstr "SyntaxHighlighter\\n\\n" - -#: syntaxhighlighter.php:667 syntaxhighlighter.php:674 -msgid "Can't find brush for: " -msgstr "指定のブラシが見つかりませんでした: " - -#: syntaxhighlighter.php:668 syntaxhighlighter.php:675 -msgid "Brush wasn't configured for html-script option: " -msgstr "HTMLスクリプトのオプションのためにブラシが構成されませんでした: " - -#: syntaxhighlighter.php:671 -msgid "+ expand source" -msgstr "ソースを表示" - -#: syntaxhighlighter.php:986 -msgid "Are you sure you want to reset your settings to the defaults?" -msgstr "設定を初期化してもよいですか?" - -#: syntaxhighlighter.php:990 -msgid "Settings reset to defaults." -msgstr "設定を初期化する" - -#: syntaxhighlighter.php:1007 -msgid "Highlighter Version" -msgstr "SyntaxHighlighterのバージョン" - -#: syntaxhighlighter.php:1012 -msgid "Version 3.x" -msgstr "バージョン 3.x" - -#: syntaxhighlighter.php:1013 -msgid "Version 2.x" -msgstr "バージョン 2.x" - -#: syntaxhighlighter.php:1021 -msgid "Version 3 allows visitors to easily highlight portions of your code with their mouse (either by dragging or double-clicking) and copy it to their clipboard. No toolbar containing a Flash-based button is required." -msgstr "バージョン3は、訪問者が簡単にマウスを使用して(ドラッグかダブルクリック)、コードの部分を強調表示し、クリップボードにへコピーできます。Flashベースボタンを含むツールバーが不要です。" - -#: syntaxhighlighter.php:1022 -msgid "Version 2 allows for line wrapping, something that version 3 does not do at this time." -msgstr "バージョン2は行 の折り返しが許可されています、この機能は現時点でバージョン3はサポートされません" - -#: syntaxhighlighter.php:1026 -msgid "Color Theme" -msgstr "テーマ" - -#: syntaxhighlighter.php:1038 syntaxhighlighter.php:1041 -msgid "Load All Brushes" -msgstr "すべてのブラシを読み込む" - -#: syntaxhighlighter.php:1042 -msgid "Always load all language files (for directly using <pre> tags rather than shortcodes)
             If left unchecked (default), then language files will only be loaded when needed
             If unsure, leave this box unchecked" -msgstr "常にすべての言語ファイルを読込みます(ショートコードではなく、<pre>タグを直接使用する場合)
             オフ(デフォルト)の場合、言語ファイルは必要に応じてロードされます。
             よくわからない場合は、このチェックボックスをオフのままにしてください。" - -#: syntaxhighlighter.php:1048 -msgid "Defaults" -msgstr "規定の設定" - -#: syntaxhighlighter.php:1050 -msgid "All of the settings below can be configured on a per-code block basis, but you can control the defaults of all code blocks here." -msgstr "設定はコードの出力ごとに構成できますが、規定の設定をここで指定できます" - -#: syntaxhighlighter.php:1054 syntaxhighlighter.php:1057 -msgid "Miscellaneous" -msgstr "一般" - -#: syntaxhighlighter.php:1059 -msgid "Display line numbers" -msgstr "行番号を表示する" - -#: syntaxhighlighter.php:1060 -msgid "Display the toolbar" -msgstr "ツールバーを表示する" - -#: syntaxhighlighter.php:1061 -msgid "Automatically make URLs clickable" -msgstr "自動リンクを有効にする" - -#: syntaxhighlighter.php:1062 -msgid "Collapse code boxes" -msgstr "コードボックスの表示を閉じておく" - -#: syntaxhighlighter.php:1063 -msgid "Use the light display mode, best for single lines of code" -msgstr "軽い表示モードを使う" - -#: syntaxhighlighter.php:1064 -msgid "Use smart tabs allowing tabs being used for alignment" -msgstr "インデントタブを許容するスマートタブを使う" - -#: syntaxhighlighter.php:1065 -msgid "Wrap long lines (v2.x only, disabling this will make a scrollbar show instead)" -msgstr "長い行を折り返す(v2.xのみ、横スクロールバーを無効にする)" - -#: syntaxhighlighter.php:1066 -msgid "Enable "HTML script" mode by default (see the bottom of this page for details). Checking this box is not recommended as this mode only works with certain languages." -msgstr ""HTMLスクリプト" モードを有効にする。 (詳細はこのページの下を参照)。Checking this box is not recommended as this mode only works with certain languages." - -#: syntaxhighlighter.php:1071 -msgid "Additional CSS Class(es)" -msgstr "追加のCSSのclass名(複数可能)" - -#: syntaxhighlighter.php:1075 -msgid "Starting Line Number" -msgstr "行番号の開始" - -#: syntaxhighlighter.php:1079 -msgid "Line Number Padding" -msgstr "行番号の余白" - -#: syntaxhighlighter.php:1084 -msgid "Off" -msgstr "なし" - -#: syntaxhighlighter.php:1085 -msgid "Automatic" -msgstr "自動" - -#: syntaxhighlighter.php:1101 -msgid "Tab Size" -msgstr "タブのサイズ" - -#: syntaxhighlighter.php:1105 -msgid "Title" -msgstr "タイトル" - -#: syntaxhighlighter.php:1108 -msgid "Some optional default text to display above each code block or as the clickable text for collapsed code blocks." -msgstr "いくつかのオプションの既定のテキストは、各コードブロックの上または折りたたまれたコードブロックのクリック可能なテキストとして表示する" - -#: syntaxhighlighter.php:1118 syntaxhighlighter.php:1121 -msgid "Reset to Defaults" -msgstr "設定を初期化" - -#: syntaxhighlighter.php:1120 -msgid "Save Changes" -msgstr "変更を保存" - -#: syntaxhighlighter.php:1128 -msgid "Preview" -msgstr "プレビュー" - -#: syntaxhighlighter.php:1130 -msgid "Click "Save Changes" to update this preview." -msgstr "プレビューを更新するには "変更を保存" をクリックしてください" - -#: syntaxhighlighter.php:1149 -msgid "PHP Code Example" -msgstr "PHP コードサンプル" - -#: syntaxhighlighter.php:1151 -msgid "Hello World!" -msgstr "Hello World!" - -#: syntaxhighlighter.php:1153 -msgid "This line is highlighted." -msgstr "この行はハイライトされました" - -#: syntaxhighlighter.php:1156 -msgid "" -"\t\tThis\tis\tanr\n" -"\t\texample\tof\tsmartr\n" -"\t\ttabs." -msgstr "" -"\t\tこの\t行は\tスマートr\n" -"\t\tタブ\tの\t例r\n" -"\t\tです。" - -#: syntaxhighlighter.php:1161 -msgid "WordPress" -msgstr "WordPress" - -#: syntaxhighlighter.php:1172 -msgid "Shortcode Parameters" -msgstr "ショートコードパラメータ" - -#: syntaxhighlighter.php:1174 -msgid "These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s." -msgstr "これらはショートコードで渡すことができるパラメータと説明です。 bool値(有効・無効など)の指定には %1$s/%2$s または %3$s/%4$s を渡してください。" - -#: syntaxhighlighter.php:1177 -msgctxt "language parameter" -msgid "%1$s or %2$s — The language syntax to highlight with. You can alternately just use that as the tag, such as [php]code[/php]. Click here for a list of valid tags (under "aliases")." -msgstr "%1$s または %2$s — ハイライトするコードの言語。パラメータ指定だけでなく[php]code[/php]のように言語をタグとして記述できます。有効なタグのリストは こちらをクリック ("aliases"の下を参照)" - -#: syntaxhighlighter.php:1178 -msgctxt "autolinks parameter" -msgid "%s — Toggle automatic URL linking." -msgstr "%s — 自動リンクの有効・無効" - -#: syntaxhighlighter.php:1179 -msgctxt "classname parameter" -msgid "%s — Add an additional CSS class to the code box." -msgstr "%s — コードボックスに追加するCSSのclass" - -#: syntaxhighlighter.php:1180 -msgctxt "collapse parameter" -msgid "%s — Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts." -msgstr "%s — コードボックスをデフォルトの状態で閉じるかどうか。コードボックスを開くにはクリックが要求されます。長いコードの出力の際に有効です。" - -#: syntaxhighlighter.php:1181 -msgctxt "firstline parameter" -msgid "%s — An interger specifying what number the first line should be (for the line numbering)." -msgstr "%s — 行番号の出力の際に、最初の行の番号を表す数値" - -#: syntaxhighlighter.php:1182 -msgctxt "gutter parameter" -msgid "%s — Toggle the left-side line numbering." -msgstr "%s — 左側に行番号を配置するかどうか" - -#: syntaxhighlighter.php:1183 -msgctxt "highlight parameter" -msgid "%1$s — A comma-separated list of line numbers to highlight. You can also specify a range. Example: %2$s" -msgstr "%1$s — ハイライトする行番号のカンマ区切りのリスト。範囲を指定することもできます。 例: %2$s" - -#: syntaxhighlighter.php:1184 -msgctxt "htmlscript parameter" -msgid "%s — Toggle highlighting any extra HTML/XML. Good for when you're mixing HTML/XML with another language, such as having PHP inside an HTML web page. The above preview has it enabled for example. This only works with certain languages." -msgstr "%s — HTML/XML をハイライトするかどうか。HTMLウェブページで PHP を使うようにHTML/XMLとプログラムが混在するような時に有効です。上のプレビューではこの設定が有効になっています。これは特定の言語でしか動作しません。" - -#: syntaxhighlighter.php:1185 -msgctxt "light parameter" -msgid "%s — Toggle light mode which disables the gutter and toolbar all at once." -msgstr "%s — 行番号やツールバーを無効にする軽い表示モードのオン・オフ" - -#: syntaxhighlighter.php:1186 -msgctxt "padlinenumbers parameter" -msgid "%s — Controls line number padding. Valid values are false (no padding), true (automatic padding), or an integer (forced padding)." -msgstr "%s — 行番号の余白。有効な値は、 false(余白なし), true (自動)、数値(余白)" - -#: syntaxhighlighter.php:1187 -msgctxt "title parameter" -msgid "%1$s (v3 only) — Sets some text to show up before the code. Very useful when combined with the %2$s parameter." -msgstr "%1$s (v3のみ) — コードの前に表示される表題テキスト。%2$sのパラメータと合わせて使うと有効です。" - -#: syntaxhighlighter.php:1188 -msgctxt "toolbar parameter" -msgid "%s — Toggle the toolbar (buttons in v2, the about question mark in v3)" -msgstr "%s — ツールバーのオン・オフ(v2のボタン、v3のクエッションマーク)" - -#: syntaxhighlighter.php:1189 -msgctxt "wraplines parameter" -msgid "%s (v2 only) — Toggle line wrapping." -msgstr "%s (v2のみ) — 折り返しの有効・無効" - -#: syntaxhighlighter.php:1192 -msgid "Some example shortcodes:" -msgstr "引数指定の例:" - -#: syntaxhighlighter.php:1195 syntaxhighlighter.php:1196 -#: syntaxhighlighter.php:1197 syntaxhighlighter.php:1198 -msgid "your code here" -msgstr "ここにコードを入れます" - -#: syntaxhighlighter.php:1196 -msgid "example-filename.php" -msgstr "example-filename.php" - -msgid "SyntaxHighlighter Evolved" -msgstr "SyntaxHighlighter Evolved" - -msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/" -msgstr "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/" - -msgid "Easily post syntax-highlighted code to your site without having to modify the code at all. Uses Alex Gorbatchev's SyntaxHighlighter. TIP: Don't use the Visual editor if you don't want your code mangled. TinyMCE will \"clean up\" your HTML." -msgstr "コードを全く変更することなく、簡単にシンタックス・ハイライトされたコードをサイトに投稿できます。Alex GorbatchevのSyntaxHighlighterを使用しています。ヒント:コードを台無しにされたくないのであれば、ビジュアルエディターを使わないでください。TinyMCEはHTMLを\"クリーンアップ\"してしまいます。" - -msgid "Alex Mills (Viper007Bond)" -msgstr "Alex Mills (Viper007Bond)" - -msgid "http://www.viper007bond.com/" -msgstr "http://www.viper007bond.com/" \ No newline at end of file diff --git a/plugins/syntaxhighlighter/localization/syntaxhighlighter-tr_TR.mo b/plugins/syntaxhighlighter/localization/syntaxhighlighter-tr_TR.mo deleted file mode 100644 index f2244d2a..00000000 Binary files a/plugins/syntaxhighlighter/localization/syntaxhighlighter-tr_TR.mo and /dev/null differ diff --git a/plugins/syntaxhighlighter/localization/syntaxhighlighter-tr_TR.po b/plugins/syntaxhighlighter/localization/syntaxhighlighter-tr_TR.po deleted file mode 100644 index 6aad393b..00000000 --- a/plugins/syntaxhighlighter/localization/syntaxhighlighter-tr_TR.po +++ /dev/null @@ -1,276 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR Viper007Bond -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: http://wordpress.org/tag/syntaxhighlighter\n" -"POT-Creation-Date: 2009-03-29 05:19+0000\n" -"PO-Revision-Date: 2009-07-06 12:36+0200\n" -"Last-Translator: Alper \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: syntaxhighlighter.php:128 -msgid "Default" -msgstr "Varsayılan" - -#: syntaxhighlighter.php:129 -msgid "Django" -msgstr "Avakado Yeşili" - -#: syntaxhighlighter.php:130 -msgid "Emacs" -msgstr "Siyah" - -#: syntaxhighlighter.php:131 -msgid "Fade to Grey" -msgstr "Gri" - -#: syntaxhighlighter.php:132 -msgid "Midnight" -msgstr "Gece Yarısı" - -#: syntaxhighlighter.php:133 -msgid "RDark" -msgstr "Prusya Mavisi" - -#: syntaxhighlighter.php:134 -msgid "[None]" -msgstr "Hiçbiri" - -#: syntaxhighlighter.php:181 -#: syntaxhighlighter.php:526 -msgid "SyntaxHighlighter Settings" -msgstr "SyntaxHighlighter Ayarlari" - -#. #-#-#-#-# plugin.pot (PACKAGE VERSION) #-#-#-#-# -#. Plugin Name of an extension -#: syntaxhighlighter.php:181 -msgid "SyntaxHighlighter" -msgstr "SyntaxHighlighter" - -#: syntaxhighlighter.php:329 -msgid "expand source" -msgstr "kaynağı genişlet" - -#: syntaxhighlighter.php:330 -msgid "view source" -msgstr "kaynağı göster" - -#: syntaxhighlighter.php:331 -msgid "copy to clipboard" -msgstr "panoya kopyala" - -#: syntaxhighlighter.php:332 -msgid "The code is in your clipboard now" -msgstr "Simdi panoya kopyalandi." - -#: syntaxhighlighter.php:333 -msgid "print" -msgstr "yazdır" - -#: syntaxhighlighter.php:334 -msgid "?" -msgstr "?" - -#: syntaxhighlighter.php:335 -msgid "" -"SyntaxHighlighter\\n" -"\\n" -msgstr "" -"SyntaxHighlighter\\n" -"\\n" - -#: syntaxhighlighter.php:336 -msgid "Can't find brush for: " -msgstr "Fırça bulunamadı :" - -#: syntaxhighlighter.php:337 -msgid "Brush wasn't configured for html-script option: " -msgstr "Firça Html-script seçenegi için yapilandirilmis degil: " - -#: syntaxhighlighter.php:509 -msgid "Settings reset to defaults." -msgstr "Varsayilan ayarlara dön." - -#: syntaxhighlighter.php:517 -msgid "Are you sure you want to reset your settings to the defaults?" -msgstr "Varsayilan ayarlara geri dönmek istediginize emin misiniz ?" - -#: syntaxhighlighter.php:536 -msgid "Color Theme" -msgstr "Tema rengi" - -#: syntaxhighlighter.php:551 -msgid "Defaults" -msgstr "Varsayılan" - -#: syntaxhighlighter.php:553 -msgid "All of the settings below can also be configured on a per-code box basis." -msgstr "Asagidaki tüm ayarlar \"tik\" isareti konularak yapilandirilabilir." - -#: syntaxhighlighter.php:557 -#: syntaxhighlighter.php:560 -msgid "Miscellaneous" -msgstr "Çeşitli Ayarlar" - -#: syntaxhighlighter.php:562 -msgid "Display line numbers" -msgstr "Satir numaralarini göster." - -#: syntaxhighlighter.php:563 -msgid "Display the toolbar" -msgstr "Araç çubugunu göster" - -#: syntaxhighlighter.php:564 -msgid "Automatically make URLs clickable" -msgstr "Url'leri otomatik tiklanabilir yap" - -#: syntaxhighlighter.php:565 -msgid "Collapse code boxes" -msgstr "Kod kutusunu daralt" - -#: syntaxhighlighter.php:566 -msgid "Show a ruler column along the top of the code box" -msgstr "Sütun için cetveli görüntüle" - -#: syntaxhighlighter.php:567 -msgid "Use the light display mode, best for single lines of code" -msgstr "En iyi tek satir için aydinlatma modunu kullan." - -#: syntaxhighlighter.php:568 -msgid "Use smart tabs allowing tabs being used for alignment" -msgstr "Hizalama için akilli sekmeleri kullan." - -#: syntaxhighlighter.php:573 -msgid "Additional CSS Class(es)" -msgstr "Ek CSS Sinif(lar)i" - -#: syntaxhighlighter.php:577 -msgid "Starting Line Number" -msgstr "Satir baslama numarasi" - -#: syntaxhighlighter.php:582 -msgid "Font Size (Percentage)" -msgstr "Yazi boyutu (Yüzde olarak)" - -#: syntaxhighlighter.php:588 -msgid "Tab Size" -msgstr "Sekme Boyutu" - -#: syntaxhighlighter.php:594 -msgid "Save Changes" -msgstr "Degisiklikleri kaydet" - -#: syntaxhighlighter.php:595 -msgid "Reset to Defaults" -msgstr "Varsayilan ayarlara dön" - -#: syntaxhighlighter.php:600 -msgid "Preview" -msgstr "Önizleme" - -#: syntaxhighlighter.php:602 -msgid "Click "Save Changes" to update this preview." -msgstr "Önizlemeyi güncellemek için "Degisiklikleri Kaydet" tiklayin" - -#: syntaxhighlighter.php:637 -msgid "Shortcode Parameters" -msgstr "Kisakod parametreleri" - -#: syntaxhighlighter.php:639 -#, php-format -msgid "These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s." -msgstr "Asağıdakı parametreleri uygulamak istediginiz yerde girebilirsiniz. (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s." - -#: syntaxhighlighter.php:642 -#, php-format -msgid "%1$s or %2$s — The language syntax to highlight with. You can alternately just use that as the tag, such as [php]code[/php]. Click here for a list of valid tags (under "aliases")." -msgstr "%1$s or %2$s — Dili sözdizimi ile vurgulamak için. Alternatif olarak bu etiketi kullanabilrsiniz, örneğin [php]code[/php]. Tıkla geçerli etiketlerin listesi için ( "aliases" altında)." - -#: syntaxhighlighter.php:643 -#, php-format -msgid "%s — Toggle automatic URL linking." -msgstr "%s — Geçiş için otomatik URL bağlantısı." - -#: syntaxhighlighter.php:644 -#, php-format -msgid "%s — Add an additional CSS class to the code box." -msgstr "%s — Kod kutusunu ek bir CSS sınıf eklemek." - -#: syntaxhighlighter.php:645 -#, php-format -msgid "%s — Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts." -msgstr "%s — Kod kutusunu daraltın, büyültmek için tıklama gerekir. Uzun kodlar için kullanışlı." - -#: syntaxhighlighter.php:646 -#, php-format -msgid "%s — An interger specifying what number the first line should be (for the line numbering)." -msgstr "%s — Satir numarasinin ne olacağna dair bir tamsayi." - -#: syntaxhighlighter.php:647 -#, php-format -msgid "%s — Toggle the left-side line numbering." -msgstr "%s — Sol tarafı satır numaralama." - -#: syntaxhighlighter.php:648 -#, php-format -msgid "%s — A comma-sperated list of line numbers to highlight." -msgstr "%s — Virgülle ayrilmiş listelerin satir numaralarını vurgulamak." - -#: syntaxhighlighter.php:649 -#, php-format -msgid "%s — Toggle highlighting any extra HTML/XML. Good for when you're mixing HTML/XML with another language, such as having PHP inside an HTML web page. The above preview has it enabled for example." -msgstr "%s — extra html/xml leri vurgulamak için, Html/Xml leri bir başka dil ile karışık kullandığınzda iyidir. Örneğin, PHp'nin HTML sayfasinda kullanmak gibi. Yukardaki önizleme buna bir örnektir." - -#: syntaxhighlighter.php:650 -#, php-format -msgid "%s — Toggle light mode which disables the gutter, toolbar, and ruler all at once." -msgstr "%s — Numaranladırmayı, araç çubuğuınu, cetveli bir seferde kaldıran sade mod." - -#: syntaxhighlighter.php:651 -#, php-format -msgid "%s — Toggle the column ruler at the top of the code box." -msgstr "%s — Kodu kutusunun üstündeki sütun cetveli aktifleştir." - -#: syntaxhighlighter.php:652 -#, php-format -msgid "%s — Toggle the toolbar containing the helpful buttons." -msgstr "%s — Geçiş yapmak için araç çubuğu içeren yararlı düğmeler." - -#: syntaxhighlighter.php:655 -msgid "Some example shortcodes:" -msgstr "Bazı örnek kodlar:" - -#: syntaxhighlighter.php:658 -#: syntaxhighlighter.php:659 -#: syntaxhighlighter.php:660 -#: syntaxhighlighter.php:661 -msgid "your code here" -msgstr "kod buraya" - -#: syntaxhighlighter.php:676 -msgid "Cheatin’ uh?" -msgstr "Hile ha ?" - -#. Plugin URI of an extension -msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/" -msgstr "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/" - -#. Description of an extension -msgid "Easily post code to your blog while still maintaining complete control over it's display. Uses Alex Gorbatchev's SyntaxHighlighter and code by Automattic." -msgstr "%s — extra html/xml leri vurgulamak için. Html/Xml leri bir başka dil ile karışık kullandığınzda iyidir. Örneğin, PHp'nin HTML sayfasinda kullanmak gibi. Yukardaki önizleme buna bir örnektir." - -#. Author of an extension -msgid "Viper007Bond" -msgstr "Viper007Bond" - -#. Author URI of an extension -msgid "http://www.viper007bond.com/" -msgstr "http://www.viper007bond.com/" - diff --git a/plugins/syntaxhighlighter/localization/syntaxhighlighter-uk.mo b/plugins/syntaxhighlighter/localization/syntaxhighlighter-uk.mo deleted file mode 100644 index ace73a88..00000000 Binary files a/plugins/syntaxhighlighter/localization/syntaxhighlighter-uk.mo and /dev/null differ diff --git a/plugins/syntaxhighlighter/localization/syntaxhighlighter-uk.po b/plugins/syntaxhighlighter/localization/syntaxhighlighter-uk.po deleted file mode 100644 index adae6d4c..00000000 --- a/plugins/syntaxhighlighter/localization/syntaxhighlighter-uk.po +++ /dev/null @@ -1,330 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: \n" -"POT-Creation-Date: \n" -"PO-Revision-Date: \n" -"Last-Translator: Dmitro Kondryuk \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR Viper007Bond -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#msgid "" -#msgstr "" -#: syntaxhighlighter.php:209 -msgid "Default" -msgstr "По замовчуванню" - -#: syntaxhighlighter.php:210 -msgid "Django" -msgstr "Django" - -#: syntaxhighlighter.php:211 -msgid "Eclipse" -msgstr "Eclipse" - -#: syntaxhighlighter.php:212 -msgid "Emacs" -msgstr "Emacs" - -#: syntaxhighlighter.php:213 -msgid "Fade to Grey" -msgstr "З переходом в сірий" - -#: syntaxhighlighter.php:214 -msgid "Midnight" -msgstr "Північ" - -#: syntaxhighlighter.php:215 -msgid "RDark" -msgstr "RDark" - -#: syntaxhighlighter.php:216 -msgid "[None]" -msgstr "Жодного" - -#: syntaxhighlighter.php:223 -#: syntaxhighlighter.php:845 -msgid "SyntaxHighlighter Settings" -msgstr "Налаштування SyntaxHighlighter" - -#: syntaxhighlighter.php:223 -msgid "SyntaxHighlighter" -msgstr "SyntaxHighlighter" - -#: syntaxhighlighter.php:254 -msgid "Settings" -msgstr "Налаштування" - -#: syntaxhighlighter.php:542 -msgid "show source" -msgstr "показати код" - -#: syntaxhighlighter.php:543 -msgid "view source" -msgstr "дивитись код" - -#: syntaxhighlighter.php:544 -msgid "copy to clipboard" -msgstr "скопіювати у буфер" - -#: syntaxhighlighter.php:545 -msgid "The code is in your clipboard now" -msgstr "Код скопійовано у буфер" - -#: syntaxhighlighter.php:546 -msgid "print" -msgstr "друк" - -#: syntaxhighlighter.php:547 -msgid "?" -msgstr "?" - -#: syntaxhighlighter.php:548 -msgid "" -"SyntaxHighlighter\\n" -"\\n" -msgstr "" -"SyntaxHighlighter\\n" -"\\n" - -#: syntaxhighlighter.php:549 -msgid "Can't find brush for: " -msgstr "Не можу знайти \"кольорову схему\" для:" - -#: syntaxhighlighter.php:550 -msgid "Brush wasn't configured for html-script option: " -msgstr "\"Кольорова схема\" не налаштована для опції html-script" - -#: syntaxhighlighter.php:833 -msgid "Are you sure you want to reset your settings to the defaults?" -msgstr "Ви впевнені, що хочете повернутися до стандартних налаштувань?" - -#: syntaxhighlighter.php:837 -msgid "Settings reset to defaults." -msgstr "Налаштування зкинуті до стандартних" - -#: syntaxhighlighter.php:854 -msgid "Color Theme" -msgstr "Кольорова схема" - -#: syntaxhighlighter.php:869 -msgid "Defaults" -msgstr "За замовчуванням" - -#: syntaxhighlighter.php:871 -msgid "All of the settings below can be configured on a per-code box basis, but you can control the defaults of all code boxes here." -msgstr "Усі налаштування можуть бути сконфігуровані при використанні коротких кодів, але Ви можете також зробити налаштування для усіх блоків коду тут" - -#: syntaxhighlighter.php:875 -#: syntaxhighlighter.php:878 -msgid "Miscellaneous" -msgstr "Інше" - -#: syntaxhighlighter.php:880 -msgid "Display line numbers" -msgstr "Показувати номери рядків" - -#: syntaxhighlighter.php:881 -msgid "Display the toolbar" -msgstr "Показувати панель інструментів" - -#: syntaxhighlighter.php:882 -msgid "Automatically make URLs clickable" -msgstr "Робити лінки клікабельними" - -#: syntaxhighlighter.php:883 -msgid "Collapse code boxes" -msgstr "Звертати блоки коду" - -#: syntaxhighlighter.php:884 -msgid "Use the light display mode, best for single lines of code" -msgstr "Використовувати \"легкий\" вигляд (добре для однорядкового коду)" - -#: syntaxhighlighter.php:885 -msgid "Use smart tabs allowing tabs being used for alignment" -msgstr "Використовувати закладки" - -#: syntaxhighlighter.php:886 -msgid "Wrap long lines (disabling this will make a scrollbar show instead)" -msgstr "Переносити слова у довгих рядках" - -#: syntaxhighlighter.php:887 -msgid "Enable "HTML script" mode by default (see the bottom of this page for details). Checking this box is not recommended as this mode only works with certain languages." -msgstr "Активувати "HTML script" режим по замовчуванню (деталі внизу сторінки). Не рекомендується відмічати цю опцію, в цьому режимі плагін працює лише з декількома мовами." - -#: syntaxhighlighter.php:892 -msgid "Additional CSS Class(es)" -msgstr "Додаткові класи CSS" - -#: syntaxhighlighter.php:896 -msgid "Starting Line Number" -msgstr "Початковий номер рядка" - -#: syntaxhighlighter.php:900 -msgid "Line Number Padding" -msgstr "Відступ в номерах рядків" - -#: syntaxhighlighter.php:903 -msgid "Load All Brushes" -msgstr "Підгружати усі стилі" - -#: syntaxhighlighter.php:904 -msgid "Always load all language files (for directly using <pre> tags rather than shortcodes)
             If left unchecked (default), then language files will only be loaded when needed" -msgstr "Завжди завантажувати усі файли мов для підсвітки (для використання з тегом <pre> замість використання коротких кодів)
             Якщо не вмикати(по замовчуванню), тоді файли будуть підгружатись тільки при потребі" - -#: syntaxhighlighter.php:905 -msgid "Off" -msgstr "Вимкнути" - -#: syntaxhighlighter.php:906 -msgid "Automatic" -msgstr "Автоматично" - -#: syntaxhighlighter.php:924 -msgid "Tab Size" -msgstr "Розмір закладки" - -#: syntaxhighlighter.php:930 -msgid "Save Changes" -msgstr "Зберегти зміни" - -#: syntaxhighlighter.php:931 -msgid "Reset to Defaults" -msgstr "Відновати початкові налаштування" - -#: syntaxhighlighter.php:936 -msgid "Preview" -msgstr "Прев'ю" - -#: syntaxhighlighter.php:938 -msgid "Click "Save Changes" to update this preview." -msgstr "Натисніть "Зберегти зміни" аби оновити прев'ю, що наведене нижче." - -#: syntaxhighlighter.php:950 -msgid "PHP Code Example" -msgstr "Приклад PHP коду" - -#: syntaxhighlighter.php:952 -msgid "Hello World!" -msgstr "Привіт світ!" - -#: syntaxhighlighter.php:954 -msgid "This line is highlighted." -msgstr "Цей рядок підсвічений" - -#: syntaxhighlighter.php:957 -msgid "" -"\t\tThis\tis\tan\r\n" -"\t\texample\tof\tsmart\r\n" -"\t\ttabs." -msgstr "" -"\t\tThis\tis\tan\r\n" -"\t\texample\tof\tsmart\r\n" -"\t\ttabs." - -#: syntaxhighlighter.php:972 -msgid "Shortcode Parameters" -msgstr "Параметри коротких кодів" - -#: syntaxhighlighter.php:974 -#, php-format -msgid "These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s." -msgstr "Параметри, які Ви можете використати у коротких кодах, та їх призначення. Для логічних параметрів (як увімкнути/вимкнути), використовується %1$s/%2$s або %3$s/%4$s." - -#: syntaxhighlighter.php:977 -#, php-format -msgid "%1$s or %2$s — The language syntax to highlight with. You can alternately just use that as the tag, such as [php]code[/php]. Click here for a list of valid tags (under "aliases")." -msgstr "1%s або %2$s — Мова, синтаксис якої потрібно підсвічувати. Можете скористатись тегом, наприклад, [php]code[/php]. Для перегляду усіх варіантів натисніть тут" - -#: syntaxhighlighter.php:978 -#, php-format -msgid "%s — Toggle automatic URL linking." -msgstr "%s — Дозволяє увімкнути чи вимкнути \"активність\" лінків (автоматичо робить лінки \"клікабельними\"). По замовчуванню - увімкнено." - -#: syntaxhighlighter.php:979 -#, php-format -msgid "%s — Add an additional CSS class to the code box." -msgstr "%s — Додати додатковий клас CSS до блоку з кодом" - -#: syntaxhighlighter.php:980 -#, php-format -msgid "%s — Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts." -msgstr "%s — Дозволяє увімкнути чи вимкнути показ блоку у зверненому вигляді. Якщо увімкнете, блок буде прихованим." - -#: syntaxhighlighter.php:981 -#, php-format -msgid "%s — An interger specifying what number the first line should be (for the line numbering)." -msgstr "%s — Вкажіть число, починаючи з якого нумерувати рядки" - -#: syntaxhighlighter.php:982 -#, php-format -msgid "%s — Toggle the left-side line numbering." -msgstr "%s — Дозволяє увімкнути чи вимкнути нумерацію рядків." - -#: syntaxhighlighter.php:983 -#, php-format -msgid "%s — A comma-sperated list of line numbers to highlight." -msgstr "%s — Список номерів рядків через кому, які треба \"підсвітити\"" - -#: syntaxhighlighter.php:984 -#, php-format -msgid "%s — Toggle highlighting any extra HTML/XML. Good for when you're mixing HTML/XML with another language, such as having PHP inside an HTML web page. The above preview has it enabled for example. This only works with certain languages." -msgstr "%s — Дозволяє увімкнути чи вимкнути підсвітку HTML/XML коду. Наприклад корисно, коли Ви публікуєте змішаний код ( HTML/XML та PHP, чи інш.) Працює з обмеженою кількістю мов." - -#: syntaxhighlighter.php:985 -#, php-format -msgid "%s — Toggle light mode which disables the gutter and toolbar all at once." -msgstr "%s — Дозволяє увімкнути чи вимкнути полегшену версію блоку з кодом (без нумерації рядків та панелі інструментів)" - -#: syntaxhighlighter.php:986 -#, php-format -msgid "%s — Controls line number padding. Valid values are false (no padding), true (automatic padding), or an integer (forced padding)." -msgstr "%s — Контролює відступ в номерах рядків. Може приймати значення false (без відступів), true (з автоматичними відступами) або число (примусовий відступ на Х знаків)." - -#: syntaxhighlighter.php:987 -#, php-format -msgid "%s — Toggle the toolbar containing the helpful buttons." -msgstr "%s — Дозволяє увімкнути чи вимкнути панель інструментів з корисними кнопками" - -#: syntaxhighlighter.php:988 -#, php-format -msgid "%s — Toggle line wrapping." -msgstr "%s — Дозволяє увімкнути чи вимкнути перенесення слів в довгих рядках коду." - -#: syntaxhighlighter.php:991 -msgid "Some example shortcodes:" -msgstr "декілька коротких кодів для прикладу" - -#: syntaxhighlighter.php:994 -#: syntaxhighlighter.php:995 -#: syntaxhighlighter.php:996 -#: syntaxhighlighter.php:997 -msgid "your code here" -msgstr "ваш код тут" - -#. Plugin Name of an extension -msgid "SyntaxHighlighter Evolved" -msgstr "SyntaxHighlighter Evolved" - -#. Plugin URI of an extension -msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/" -msgstr "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/" - -#. Description of an extension -msgid "Easily post syntax-highlighted code to your site without having to modify the code at all. Uses Alex Gorbatchev's SyntaxHighlighter v2.0.320 and some code by Andrew Ozz of Automattic." -msgstr "Легко підсвічує код на Вашому сайті за допомогою коротких кодів. Використовує SyntaxHighlighter v2.0.320 від Alex Gorbatchev та деякі доробки від Andrew Ozz з Automattic." - -#. Author of an extension -msgid "Viper007Bond" -msgstr "Viper007Bond" - -#. Author URI of an extension -msgid "http://www.viper007bond.com/" -msgstr "http://www.viper007bond.com/" - diff --git a/plugins/syntaxhighlighter/localization/syntaxhighlighter-zh_CN.mo b/plugins/syntaxhighlighter/localization/syntaxhighlighter-zh_CN.mo deleted file mode 100644 index 46d64f4e..00000000 Binary files a/plugins/syntaxhighlighter/localization/syntaxhighlighter-zh_CN.mo and /dev/null differ diff --git a/plugins/syntaxhighlighter/localization/syntaxhighlighter-zh_CN.po b/plugins/syntaxhighlighter/localization/syntaxhighlighter-zh_CN.po deleted file mode 100644 index 3bcf9ea8..00000000 --- a/plugins/syntaxhighlighter/localization/syntaxhighlighter-zh_CN.po +++ /dev/null @@ -1,288 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR Viper007Bond -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-08-10 22:08+0800\n" -"PO-Revision-Date: 2009-08-11 16:23+0800\n" -"Last-Translator: Hinker \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-Language: Chinese\n" -"X-Poedit-Country: CHINA\n" -"X-Poedit-SourceCharset: utf-8\n" - -#: syntaxhighlighter.php:141 -msgid "Default" -msgstr "缺省值" - -#: syntaxhighlighter.php:142 -msgid "Django" -msgstr "Django" - -#: syntaxhighlighter.php:143 -msgid "Emacs" -msgstr "Emacs" - -#: syntaxhighlighter.php:144 -msgid "Fade to Grey" -msgstr "Fade to Grey" - -#: syntaxhighlighter.php:145 -msgid "Midnight" -msgstr "Midnight" - -#: syntaxhighlighter.php:146 -msgid "RDark" -msgstr "RDark" - -#: syntaxhighlighter.php:147 -msgid "[None]" -msgstr "[无]" - -#: syntaxhighlighter.php:194 -msgid "SyntaxHighlighter Settings" -msgstr "SyntaxHighlighter设置" - -#: syntaxhighlighter.php:194 -msgid "SyntaxHighlighter" -msgstr "SyntaxHighlighter" - -#: syntaxhighlighter.php:219 -msgid "Settings" -msgstr "设定" - -#: syntaxhighlighter.php:361 -msgid "expand source" -msgstr "展开代码框" - -#: syntaxhighlighter.php:362 -msgid "view source" -msgstr "查看源代码" - -#: syntaxhighlighter.php:363 -msgid "copy to clipboard" -msgstr "复制到剪贴板" - -#: syntaxhighlighter.php:364 -msgid "The code is in your clipboard now" -msgstr "代码现在在你的剪贴板" - -#: syntaxhighlighter.php:365 -msgid "print" -msgstr "打印" - -#: syntaxhighlighter.php:366 -msgid "?" -msgstr "帮助" - -#: syntaxhighlighter.php:367 -msgid "" -"SyntaxHighlighter\\n" -"\\n" -msgstr "" -"SyntaxHighlighter\\n" -"\\n" - -#: syntaxhighlighter.php:368 -msgid "Can't find brush for: " -msgstr "无法找到Brush:" - -#: syntaxhighlighter.php:369 -msgid "Brush wasn't configured for html-script option: " -msgstr "Brush不能设置 html-script选项" - -#: syntaxhighlighter.php:554 -msgid "Are you sure you want to reset your settings to the defaults?" -msgstr "您确定想要将首选项重置为默认设置吗?" - -#: syntaxhighlighter.php:670 -#, php-format -msgid "These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s." -msgstr "这些参数你能够设置在简码中。对于布尔值(即 on/off),使用 %1$s/%2$s 或者 %3$s/%4$s。" - -#: syntaxhighlighter.php:673 -#, php-format -msgid "%1$s or %2$s — The language syntax to highlight with. You can alternately just use that as the tag, such as [php]code[/php]. Click here for a list of valid tags (under "aliases")." -msgstr "%1$s 或者 %2$s — 要高亮显示的代码语言。你能够像标签一样交替使用它们,例如[php]code[/php]点击这里有一个有效的标签列表 (在"aliases"的下面)。" - -#: syntaxhighlighter.php:674 -#, php-format -msgid "%s — Toggle automatic URL linking." -msgstr "%s — 切换自动URL链接。" - -#: syntaxhighlighter.php:675 -#, php-format -msgid "%s — Add an additional CSS class to the code box." -msgstr "%s — 加一个附加的CSS类到代码框。" - -#: syntaxhighlighter.php:676 -#, php-format -msgid "%s — Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts." -msgstr "%s — 切换缺省代码框收缩选项,请求点击展开代码。张贴大段代码时比较好看。" - -#: syntaxhighlighter.php:677 -#, php-format -msgid "%s — An interger specifying what number the first line should be (for the line numbering)." -msgstr "%s — 你想要在代码第一行显示的指定整数(有行号显示时)。" - -#: syntaxhighlighter.php:678 -#, php-format -msgid "%s — Toggle the left-side line numbering." -msgstr "%s — 切换左边行号显示。" - -#: syntaxhighlighter.php:679 -#, php-format -msgid "%s — A comma-sperated list of line numbers to highlight." -msgstr "%s — 需要高亮行号的逗号分隔列表" - -#: syntaxhighlighter.php:680 -#, php-format -msgid "%s — Toggle highlighting any extra HTML/XML. Good for when you're mixing HTML/XML with another language, such as having PHP inside an HTML web page. The above preview has it enabled for example." -msgstr "%s — 切换任意HTML/XML扩展高亮。当 HTML/XML和其它语言混合时是有用的,比如在一个HTML网页里包含PHP。上面的预览这个选项是激活的。" - -#: syntaxhighlighter.php:681 -#, php-format -msgid "%s — Toggle light mode which disables the gutter, toolbar, and ruler all at once." -msgstr "%s — 切换高亮模式,此模式下装订线、工具条和标尺不可见。" - -#: syntaxhighlighter.php:682 -#, php-format -msgid "%s — Toggle the column ruler at the top of the code box." -msgstr "%s — 切换代码框部的列标尺显示。" - -#: syntaxhighlighter.php:683 -#, php-format -msgid "%s — Toggle the toolbar containing the helpful buttons." -msgstr "%s — 切换工具条上的帮助按钮。" - -#: syntaxhighlighter.php:684 -#, php-format -msgid "%s — Toggle line wrapping." -msgstr "%s — 切换自动换行。" - -#: syntaxhighlighter.php:708 -msgid "Cheatin’ uh?" -msgstr "Cheatin’ uh?" - -#: syntaxhighlighter.php:546 -msgid "Settings reset to defaults." -msgstr "将设置重置为默认值" - -#: syntaxhighlighter.php:573 -msgid "Color Theme" -msgstr "颜色主题" - -#: syntaxhighlighter.php:588 -msgid "Defaults" -msgstr "默认值" - -#: syntaxhighlighter.php:590 -msgid "All of the settings below can also be configured on a per-code box basis." -msgstr "下面的所有设定都能在基本pre-code框中配置" - -#: syntaxhighlighter.php:594 -#: syntaxhighlighter.php:597 -msgid "Miscellaneous" -msgstr "杂项" - -#: syntaxhighlighter.php:599 -msgid "Display line numbers" -msgstr "显示行号" - -#: syntaxhighlighter.php:600 -msgid "Display the toolbar" -msgstr "显示工具条" - -#: syntaxhighlighter.php:601 -msgid "Automatically make URLs clickable" -msgstr "自动转换URI为可点击" - -#: syntaxhighlighter.php:602 -msgid "Collapse code boxes" -msgstr "收缩代码框" - -#: syntaxhighlighter.php:603 -msgid "Show a ruler column along the top of the code box" -msgstr "允许在代码框的顶部显示列标尺" - -#: syntaxhighlighter.php:604 -msgid "Use the light display mode, best for single lines of code" -msgstr "用高亮显示模式,最好在单行代码中使用" - -#: syntaxhighlighter.php:605 -msgid "Use smart tabs allowing tabs being used for alignment" -msgstr "使用智能制表符允许制表符对齐" - -#: syntaxhighlighter.php:606 -msgid "Wrap long lines, using an icon to show where line wraps occur (disabling this will make a scrollbar show instead)" -msgstr "自动换行长的行,用一个图标指示换行的地方(禁用此选项将用滚动条代替显示)" - -#: syntaxhighlighter.php:611 -msgid "Additional CSS Class(es)" -msgstr "附加的CSS类(es)" - -#: syntaxhighlighter.php:615 -msgid "Starting Line Number" -msgstr "开始行号" - -#: syntaxhighlighter.php:619 -msgid "Tab Size" -msgstr "制表符长度" - -#: syntaxhighlighter.php:625 -msgid "Save Changes" -msgstr "保存更改" - -#: syntaxhighlighter.php:626 -msgid "Reset to Defaults" -msgstr "重置为默认值" - -#: syntaxhighlighter.php:631 -msgid "Preview" -msgstr "预览" - -#: syntaxhighlighter.php:633 -msgid "Click "Save Changes" to update this preview." -msgstr "点击 "保存更改" 更新这段预览。" - -#: syntaxhighlighter.php:668 -msgid "Shortcode Parameters" -msgstr "简码参数" - -#: syntaxhighlighter.php:687 -msgid "Some example shortcodes:" -msgstr "一些简码示例" - -#: syntaxhighlighter.php:690 -#: syntaxhighlighter.php:691 -#: syntaxhighlighter.php:692 -#: syntaxhighlighter.php:693 -msgid "your code here" -msgstr "这里写你的代码" - -#~ msgid "Font Size (Percentage)" -#~ msgstr "字体大小(百分比)" -#~ msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/" -#~ msgstr "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/" -#~ msgid "" -#~ "Easily post code to your blog while still maintaining complete control " -#~ "over it's display. Uses Alex Gorbatchev's SyntaxHighlighter and code by Automattic." -#~ msgstr "" -#~ "很容易的粘贴代码到你的博客中,同时保持显示的完整控制。使用Alex Gorbatchev" -#~ "的 SyntaxHighlighter, 由Automattic编程。" -#~ msgid "Viper007Bond" -#~ msgstr "Viper007Bond" -#~ msgid "http://www.viper007bond.com/" -#~ msgstr "http://www.viper007bond.com/" - diff --git a/plugins/syntaxhighlighter/readme.txt b/plugins/syntaxhighlighter/readme.txt deleted file mode 100644 index 3252668d..00000000 --- a/plugins/syntaxhighlighter/readme.txt +++ /dev/null @@ -1,263 +0,0 @@ -=== SyntaxHighlighter Evolved === -Contributors: Viper007Bond, automattic -Donate link: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/donate/ -Tags: code, sourcecode, php, xhtml, html, css, WordPress.com -Requires at least: 4.2.3 -Tested up to: 4.5 -Stable tag: trunk - -Easily post syntax-highlighted code to your site without having to modify the code at all. As seen on WordPress.com. - -== Description == - -SyntaxHighlighter Evolved allows you to easily post syntax-highlighted code to your site without losing its formatting or making any manual changes. It uses the [SyntaxHighlighter JavaScript package by Alex Gorbatchev](http://alexgorbatchev.com/wiki/SyntaxHighlighter). - -For a live demo, see [this plugin's homepage](http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/). - -For a list of supported languages (most widely used languages are supported), see the [WordPress.com support document](http://en.support.wordpress.com/code/posting-source-code/). - -*[As seen on WordPress.com.](http://en.blog.wordpress.com/2009/12/02/better-source-code-posting/)* - -== Installation == - -###Upgrading From A Previous Version### - -To upgrade from a previous version of this plugin, delete the entire folder and files from the previous version of the plugin and then follow the installation instructions below. - -###Uploading The Plugin### - -Extract all files from the ZIP file, **making sure to keep the file/folder structure intact**, and then upload it to `/wp-content/plugins/`. - -**See Also:** ["Installing Plugins" article on the WP Codex](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins) - -###Plugin Activation### - -Go to the admin area of your WordPress install and click on the "Plugins" menu. Click on "Activate" for the "SyntaxHighlighter" plugin. - -###Plugin Usage### - -Just wrap your code in `[language]`, such as `[php]code here[/php]` or `[css]code here[/css]`. For a list of supported languages (all widely used languages are supported), please [click here](http://alexgorbatchev.com/wiki/SyntaxHighlighter:Brushes). - -You do not need to escape HTML entities or anything, just post your code as-is. The plugin will handle the rest. - -The shortcodes accept a wide variety of parameters. For details, see the bottom of the plugin's settings page. - -== Frequently Asked Questions == - -= The code is just being displayed raw. It isn't being converted into a code box or anything. What's wrong? = - -Make sure your theme's `footer.php` file has `` somewhere inside of it, otherwise the plugin won't be able to do it's thing. - -== Screenshots == - -1. Example code display of some PHP inside some HTML. -2. A part of the Settings page which controls the defaults. - -== ChangeLog == - -= Version 3.2.1 = - -* Fix shortcode issues that would occur during post editing if the code contained what looked like opening HTML tags such as `` tag. Props [NoMad1337](http://www.tacticalcode.de/). - -= Version 3.1.6 = - -* Kill off v2 copy-to-clipboard SWF file due to XSS security issue with the file. If you want to be able to copy/paste, use the better v3. -* Switch from using a `` tag to a `' . "\n"; - } - - - // Output any needed scripts. This is meant for the footer. - function maybe_output_scripts() { - global $wp_styles; - - if ( 1 == $this->settings['loadallbrushes'] ) - $this->usedbrushes = array_flip( array_values( $this->brushes ) ); - - if ( empty($this->usedbrushes) ) - return; - - $scripts = array(); - foreach ( $this->usedbrushes as $brush => $unused ) - $scripts[] = 'syntaxhighlighter-brush-' . strtolower( $brush ); - - wp_print_scripts( $scripts ); - - // Stylesheets can't be in the footer, so inject them via Javascript - echo " -'s - function shortcode_callback( $atts, $code = '', $tag = false ) { - global $post; - - if ( false === $tag || empty($code) ) - return $code; - - // Avoid PHP notices - if ( !isset($post) ) - $post = null; - - $code = apply_filters( 'syntaxhighlighter_precode', $code, $atts, $tag ); - - // Error fixing for [tag="language"] - if ( isset($atts[0]) ) { - $atts = $this->attributefix( $atts ); - $atts['language'] = $atts[0]; - unset($atts[0]); - } - - // Default out all of the available parameters to "false" (easy way to check if they're set or not) - // Note this isn't the same as if the user passes the string "false" to the shortcode - $atts = (array) apply_filters( 'syntaxhighlighter_shortcodeatts', shortcode_atts( array( - 'language' => false, - 'lang' => false, - 'type' => false, // language alias - 'autolinks' => false, - 'classname' => false, - 'collapse' => false, - 'firstline' => false, - 'fontsize' => false, - 'gutter' => false, - 'highlight' => false, - 'htmlscript' => false, - 'light' => false, - 'padlinenumbers' => false, - 'smarttabs' => false, - 'tabsize' => false, - 'title' => $this->settings['title'], - 'toolbar' => false, - 'wraplines' => false, - ), $atts ) ); - - // Check for language shortcode tag such as [php]code[/php] - if ( isset($this->brushes[$tag]) ) { - $lang = $tag; - } - - // If a valid tag is not used, it must be sourcecode/source/code - else { - $atts = $this->attributefix( $atts ); - - // Check for the "language" attribute - if ( false !== $atts['language'] ) - $lang = $atts['language']; - - // Check for the "lang" attribute - elseif ( false !== $atts['lang'] ) - $lang = $atts['lang']; - - // Default to plain text - else - $lang = 'text'; - - // All language aliases are lowercase - $lang = strtolower( $lang ); - - // Validate passed attribute - if ( !isset($this->brushes[$lang]) ) - return $code; - } - - // Switch from the alias to the real brush name (so custom aliases can be used) - $lang = $this->brushes[$lang]; - - // Register this brush as used so it's script will be outputted - $this->usedbrushes[$lang] = true; - - $params = array(); - $params[] = "brush: $lang;"; - - // Fix bug that prevents collapse from working if the toolbar is off or light mode is on - if ( 'true' == $atts['collapse'] || '1' === $atts['collapse'] || 1 == $this->settings['collapse'] ) { - $atts['toolbar'] = 'true'; - $atts['light'] = 'false'; - } - - // Parameter renaming (the shortcode API doesn't like parameter names with dashes) - $rename_map = array( - 'autolinks' => 'auto-links', - 'classname' => 'class-name', - 'firstline' => 'first-line', - 'fontsize' => 'font-size', - 'htmlscript' => 'html-script', - 'padlinenumbers' => 'pad-line-numbers', - 'smarttabs' => 'smart-tabs', - 'tabsize' => 'tab-size', - 'wraplines' => 'wrap-lines', - ); - - // Allowed configuration parameters and their type - // Use the proper names (see above) - $allowed_atts = (array) apply_filters( 'syntaxhighlighter_allowedatts', array( - 'auto-links' => 'boolean', - 'class-name' => 'other', - 'collapse' => 'boolean', - 'first-line' => 'integer', - 'font-size' => 'integer', - 'gutter' => 'boolean', - 'highlight' => 'other', - 'html-script' => 'boolean', - 'light' => 'boolean', - 'pad-line-numbers' => 'other', - 'smart-tabs' => 'boolean', - 'tab-size' => 'integer', - 'title' => 'other', - 'toolbar' => 'boolean', - 'wrap-lines' => 'boolean', - ) ); - - $title = ''; - - // Sanitize configuration parameters and such - foreach ( $atts as $key => $value ) { - $key = strtolower( $key ); - - // Put back parameter names that have been renamed for shortcode use - if ( !empty($rename_map[$key]) ) - $key = $rename_map[$key]; - - // This this parameter if it's unknown, not set, or the language which was already handled - if ( empty($allowed_atts[$key]) || false === $value || in_array( $key, array( 'language', 'lang' ) ) ) - continue; - - // Sanitize values - switch ( $allowed_atts[$key] ) { - case 'boolean': - $value = strtolower( $value ); - if ( 'true' === $value || '1' === $value || 'on' == $value ) - $value = 'true'; - elseif ( 'false' === $value || '0' === $value || 'off' == $value ) - $value = 'false'; - else - continue 2; // Invalid value, ditch parameter - break; - - // integer - case 'integer': - $value = (int) $value; - break; - } - - // Sanitize the "classname" parameter - if ( 'class-name' == $key ) - $value = trim( preg_replace( '/[^a-zA-Z0-9 _-]/i', '', $value ) ); - - // Special sanitization for "pad-line-numbers" - if ( 'pad-line-numbers' == $key ) { - $value = strtolower( $value ); - if ( 'true' === $value || '1' === $value ) - $value = 'true'; - elseif ( 'false' === $value || '0' === $value ) - $value = 'false'; - else - $value = (int) $value; - } - - // Add % sign to "font-size" - if ( 'font-size' == $key ) - $value = $value . '%'; - - // If "html-script", then include the XML brush as it's needed - if ( 'html-script' == $key && 'true' == $value ) - $this->usedbrushes['xml'] = true; - - // Sanitize row highlights - if ( 'highlight' == $key ) { - if ( false === strpos( $value, ',' ) && false === strpos( $value, '-' ) ) { - $value = (int) $value; - } else { - $lines = explode( ',', $value ); - $highlights = array(); - - foreach ( $lines as $line ) { - // Line range - if ( false !== strpos( $line, '-' ) ) { - list( $range_start, $range_end ) = array_map( 'intval', explode( '-', $line ) ); - if ( ! $range_start || ! $range_end || $range_end <= $range_start ) - continue; - - for ( $i = $range_start; $i <= $range_end; $i++ ) - $highlights[] = $i; - } else { - $highlights[] = (int) $line; - } - } - - natsort( $highlights ); - - $value = implode( ',', $highlights ); - } - - if ( empty( $value ) ) - continue; - - // Wrap highlight in [ ] - $params[] = "$key: [$value];"; - continue; - } - - // Don't allow HTML in the title parameter - if ( 'title' == $key ) { - $value = strip_tags( html_entity_decode( strip_tags( $value ) ) ); - } - - $params[] = "$key: $value;"; - - // Set the title variable if the title parameter is set (but not for feeds) - if ( 'title' == $key && ! is_feed() ) - $title = ' title="' . esc_attr( $value ) . '"'; - } - - $code = ( false === strpos( $code, '<' ) && false === strpos( $code, '>' ) && 2 == $this->get_code_format($post) ) ? strip_tags( $code ) : htmlspecialchars( $code ); - - $params[] = 'notranslate'; // For Google, see http://otto42.com/9k - - $params = apply_filters( 'syntaxhighlighter_cssclasses', $params ); // Use this to add additional CSS classes / SH parameters - - return apply_filters( 'syntaxhighlighter_htmlresult', '
        ' . $code . '
        ' );; - } - - - // Settings page - function settings_page() { ?> - - - -
        - -

        - -
        - - - - - - - - - - - - - - - - - -
        -
        -
        - -
        - -
        -
        - - -
        -
        - -

        - -

        - - - - - - - - - - - - - - - - - - - - - - - - - - -
        -
        - - -
        -
        -
        -
        -
        -
        -
        - -
        -
        - -
        -
        - -
        - -

        -' . "\n"; - echo '' . "\n"; - } -?> -

        - -
        - -

        - -

        - - '; - - $title = ( empty( $this->settings['title'] ) && 1 != $this->settings['collapse'] ) ? ' title="Code example: (this example was added using the title parameter)"' : ''; - - // Site owners may opt to disable the short tags, i.e. [php] - $democode = apply_filters( 'syntaxhighlighter_democode', '[sourcecode language="php" htmlscript="true" highlight="12"' . $title . '] - - - - PHP Code Example - - -

        ' . __( 'PHP Code Example', 'syntaxhighlighter' ) . '

        - -

        - -

        ' . __( 'This line is highlighted.', 'syntaxhighlighter' ) . '

        - -
        -' . __( ' This is an - example of smart - tabs.', 'syntaxhighlighter' ) . ' -
        - -

        ' . __( 'WordPress' ) . '

        - -[/sourcecode]' ); - - $this->codeformat = 1; - echo $this->parse_shortcodes( $democode ); - $this->codeformat = false; - - echo '
        '; -?> - -

        - -

        true', '1', 'false', '0' ); ?>

        - -
          -
        • [php]code[/php]. Click here for a list of valid tags (under "aliases").', 'language parameter', 'syntaxhighlighter' ), 'lang', 'language', 'http://alexgorbatchev.com/wiki/SyntaxHighlighter:Brushes' ); ?>
        • -
        • autolinks' ); ?>
        • -
        • classname' ); ?>
        • -
        • collapse' ); ?>
        • -
        • firstline' ); ?>
        • -
        • gutter' ); ?>
        • -
        • highlight', '2,5-10,12' ); ?>
        • -
        • htmlscript' ); ?>
        • -
        • light' ); ?>
        • -
        • false (no padding), true (automatic padding), or an integer (forced padding).', 'padlinenumbers parameter', 'syntaxhighlighter' ), 'padlinenumbers' ); ?>
        • -
        • title', 'collapse' ); ?>
        • -
        • toolbar' ); ?>
        • -
        • wraplines' ); ?>
        • -
        - -

        - -
          -
        • [php][/php]
        • -
        • [css autolinks="false" classname="myclass" collapse="false" firstline="1" gutter="true" highlight="1-3,6,9" htmlscript="false" light="false" padlinenumbers="false" smarttabs="true" tabsize="4" toolbar="true" title=""][/css]
        • -
        • [code lang="js"][/code]
        • -
        • [sourcecode language="plain"][/sourcecode]
        • -
        - -maybe_output_scripts(); ?> - - - -defaultsettings; - $_REQUEST['_wp_http_referer'] = add_query_arg( 'defaults', 'true', $_REQUEST['_wp_http_referer'] ); - } else { - $settings['shversion'] = ( ! empty($settings['shversion']) && 2 == $settings['shversion'] ) ? 2 : 3; - - $settings['theme'] = ( ! empty($settings['theme']) && isset($this->themes[$settings['theme']]) ) ? strtolower($settings['theme']) : $this->defaultsettings['theme']; - - $settings['loadallbrushes'] = ( ! empty($settings['loadallbrushes']) ) ? 1 : 0; - $settings['autolinks'] = ( ! empty($settings['autolinks']) ) ? 1 : 0; - $settings['collapse'] = ( ! empty($settings['collapse']) ) ? 1 : 0; - $settings['gutter'] = ( ! empty($settings['gutter']) ) ? 1 : 0; - $settings['light'] = ( ! empty($settings['light']) ) ? 1 : 0; - $settings['smarttabs'] = ( ! empty($settings['smarttabs']) ) ? 1 : 0; - $settings['toolbar'] = ( ! empty($settings['toolbar']) ) ? 1 : 0; // May be overridden below - $settings['wraplines'] = ( ! empty($settings['wraplines']) ) ? 1 : 0; // 2.x only for now - - // If the version changed, then force change the toolbar version setting - if ( $settings['shversion'] != $this->settings['shversion'] ) { - $settings['toolbar'] = ( 2 == $settings['shversion'] ) ? 1 : 0; - } - - if ( 'true' != $settings['padlinenumbers'] && 'false' != $settings['padlinenumbers'] ) - $settings['padlinenumbers'] = (int) $settings['padlinenumbers']; - - $settings['classname'] = ( !empty($settings['classname']) ) ? preg_replace( '/[^ A-Za-z0-9_-]*/', '', $settings['classname'] ) : ''; - $settings['firstline'] = (int) ( ( !empty($settings['firstline']) ) ? $settings['firstline'] : $this->defaultsettings['firstline'] ); - $settings['tabsize'] = (int) ( ( !empty($settings['tabsize']) ) ? $settings['tabsize'] : $this->defaultsettings['tabsize'] ); - } - - return $settings; - } -} - - -// Start this plugin once all other plugins are fully loaded -add_action( 'init', 'SyntaxHighlighter', 5 ); -function SyntaxHighlighter() { - global $SyntaxHighlighter; - $SyntaxHighlighter = new SyntaxHighlighter(); -} \ No newline at end of file diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/LGPLv3.txt b/plugins/syntaxhighlighter/syntaxhighlighter2/LGPLv3.txt deleted file mode 100644 index 3f9959fc..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/LGPLv3.txt +++ /dev/null @@ -1,165 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - - This version of the GNU Lesser General Public License incorporates -the terms and conditions of version 3 of the GNU General Public -License, supplemented by the additional permissions listed below. - - 0. Additional Definitions. - - As used herein, "this License" refers to version 3 of the GNU Lesser -General Public License, and the "GNU GPL" refers to version 3 of the GNU -General Public License. - - "The Library" refers to a covered work governed by this License, -other than an Application or a Combined Work as defined below. - - An "Application" is any work that makes use of an interface provided -by the Library, but which is not otherwise based on the Library. -Defining a subclass of a class defined by the Library is deemed a mode -of using an interface provided by the Library. - - A "Combined Work" is a work produced by combining or linking an -Application with the Library. The particular version of the Library -with which the Combined Work was made is also called the "Linked -Version". - - The "Minimal Corresponding Source" for a Combined Work means the -Corresponding Source for the Combined Work, excluding any source code -for portions of the Combined Work that, considered in isolation, are -based on the Application, and not on the Linked Version. - - The "Corresponding Application Code" for a Combined Work means the -object code and/or source code for the Application, including any data -and utility programs needed for reproducing the Combined Work from the -Application, but excluding the System Libraries of the Combined Work. - - 1. Exception to Section 3 of the GNU GPL. - - You may convey a covered work under sections 3 and 4 of this License -without being bound by section 3 of the GNU GPL. - - 2. Conveying Modified Versions. - - If you modify a copy of the Library, and, in your modifications, a -facility refers to a function or data to be supplied by an Application -that uses the facility (other than as an argument passed when the -facility is invoked), then you may convey a copy of the modified -version: - - a) under this License, provided that you make a good faith effort to - ensure that, in the event an Application does not supply the - function or data, the facility still operates, and performs - whatever part of its purpose remains meaningful, or - - b) under the GNU GPL, with none of the additional permissions of - this License applicable to that copy. - - 3. Object Code Incorporating Material from Library Header Files. - - The object code form of an Application may incorporate material from -a header file that is part of the Library. You may convey such object -code under terms of your choice, provided that, if the incorporated -material is not limited to numerical parameters, data structure -layouts and accessors, or small macros, inline functions and templates -(ten or fewer lines in length), you do both of the following: - - a) Give prominent notice with each copy of the object code that the - Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the object code with a copy of the GNU GPL and this license - document. - - 4. Combined Works. - - You may convey a Combined Work under terms of your choice that, -taken together, effectively do not restrict modification of the -portions of the Library contained in the Combined Work and reverse -engineering for debugging such modifications, if you also do each of -the following: - - a) Give prominent notice with each copy of the Combined Work that - the Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the Combined Work with a copy of the GNU GPL and this license - document. - - c) For a Combined Work that displays copyright notices during - execution, include the copyright notice for the Library among - these notices, as well as a reference directing the user to the - copies of the GNU GPL and this license document. - - d) Do one of the following: - - 0) Convey the Minimal Corresponding Source under the terms of this - License, and the Corresponding Application Code in a form - suitable for, and under terms that permit, the user to - recombine or relink the Application with a modified version of - the Linked Version to produce a modified Combined Work, in the - manner specified by section 6 of the GNU GPL for conveying - Corresponding Source. - - 1) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (a) uses at run time - a copy of the Library already present on the user's computer - system, and (b) will operate properly with a modified version - of the Library that is interface-compatible with the Linked - Version. - - e) Provide Installation Information, but only if you would otherwise - be required to provide such information under section 6 of the - GNU GPL, and only to the extent that such information is - necessary to install and execute a modified version of the - Combined Work produced by recombining or relinking the - Application with a modified version of the Linked Version. (If - you use option 4d0, the Installation Information must accompany - the Minimal Corresponding Source and Corresponding Application - Code. If you use option 4d1, you must provide the Installation - Information in the manner specified by section 6 of the GNU GPL - for conveying Corresponding Source.) - - 5. Combined Libraries. - - You may place library facilities that are a work based on the -Library side by side in a single library together with other library -facilities that are not Applications and are not covered by this -License, and convey such a combined library under terms of your -choice, if you do both of the following: - - a) Accompany the combined library with a copy of the same work based - on the Library, uncombined with any other library facilities, - conveyed under the terms of this License. - - b) Give prominent notice with the combined library that part of it - is a work based on the Library, and explaining where to find the - accompanying uncombined form of the same work. - - 6. Revised Versions of the GNU Lesser General Public License. - - The Free Software Foundation may publish revised and/or new versions -of the GNU Lesser General Public License from time to time. Such new -versions will be similar in spirit to the present version, but may -differ in detail to address new problems or concerns. - - Each version is given a distinguishing version number. If the -Library as you received it specifies that a certain numbered version -of the GNU Lesser General Public License "or any later version" -applies to it, you have the option of following the terms and -conditions either of that published version or of any later version -published by the Free Software Foundation. If the Library as you -received it does not specify a version number of the GNU Lesser -General Public License, you may choose any version of the GNU Lesser -General Public License ever published by the Free Software Foundation. - - If the Library as you received it specifies that a proxy can decide -whether future versions of the GNU Lesser General Public License shall -apply, that proxy's public statement of acceptance of any version is -permanent authorization for you to choose that version for the -Library. \ No newline at end of file diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushAS3.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushAS3.js deleted file mode 100644 index 985a3e8d..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushAS3.js +++ /dev/null @@ -1,61 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.AS3 = function() -{ - // Created by Peter Atoria @ http://iAtoria.com - - var inits = 'class interface function package'; - - var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' + - 'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' + - 'extends false final finally flash_proxy for get if implements import in include Infinity ' + - 'instanceof int internal is isFinite isNaN isXMLName label namespace NaN native new null ' + - 'Null Number Object object_proxy override parseFloat parseInt private protected public ' + - 'return set static String super switch this throw true try typeof uint undefined unescape ' + - 'use void while with' - ; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings - { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers - { regex: new RegExp(this.getKeywords(inits), 'gm'), css: 'color3' }, // initializations - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords - { regex: new RegExp('var', 'gm'), css: 'variable' }, // variable - { regex: new RegExp('trace', 'gm'), css: 'color1' } // trace - ]; - - this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags); -}; - -SyntaxHighlighter.brushes.AS3.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.AS3.aliases = ['actionscript3', 'as3']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushBash.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushBash.js deleted file mode 100644 index f94b9515..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushBash.js +++ /dev/null @@ -1,66 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.Bash = function() -{ - var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne gt lt ge le'; - var commands = 'alias apropos awk basename bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' + - 'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' + - 'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' + - 'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' + - 'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' + - 'import install join kill less let ln local locate logname logout look lpc lpr lprint ' + - 'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' + - 'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' + - 'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' + - 'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' + - 'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' + - 'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' + - 'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' + - 'vi watch wc whereis which who whoami Wget xargs yes' - ; - - this.findMatches = function(regexList, code) - { - code = code.replace(/>/g, '>').replace(/</g, '<'); - this.code = code; - return SyntaxHighlighter.Highlighter.prototype.findMatches.apply(this, [regexList, code]); - }; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords - { regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands - ]; -} - -SyntaxHighlighter.brushes.Bash.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.Bash.aliases = ['bash', 'shell']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushCSharp.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushCSharp.js deleted file mode 100644 index 60b5be5c..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushCSharp.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.CSharp = function() -{ - var keywords = 'abstract as base bool break byte case catch char checked class const ' + - 'continue decimal default delegate do double else enum event explicit ' + - 'extern false finally fixed float for foreach get goto if implicit in int ' + - 'interface internal is lock long namespace new null object operator out ' + - 'override params private protected public readonly ref return sbyte sealed set ' + - 'short sizeof stackalloc static string struct switch this throw true try ' + - 'typeof uint ulong unchecked unsafe ushort using virtual void while'; - - function fixComments(match, regexInfo) - { - var css = (match[0].indexOf("///") == 0) - ? 'color1' - : 'comments' - ; - - return [new SyntaxHighlighter.Match(match[0], match.index, css)]; - } - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments - { regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings - { regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword - { regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial' - { regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield' - ]; - - this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); -}; - -SyntaxHighlighter.brushes.CSharp.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.CSharp.aliases = ['c#', 'c-sharp', 'csharp']; - diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushColdFusion.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushColdFusion.js deleted file mode 100644 index 57de5215..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushColdFusion.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.ColdFusion = function() -{ - // Contributed by Jen - // http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus - - var funcs = 'Abs ACos AddSOAPRequestHeader AddSOAPResponseHeader AjaxLink AjaxOnLoad ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt ' + - 'ArrayInsertAt ArrayIsDefined ArrayIsEmpty ArrayLen ArrayMax ArrayMin ArraySet ArraySort ArraySum ArraySwap ArrayToList ' + - 'Asc ASin Atn BinaryDecode BinaryEncode BitAnd BitMaskClear BitMaskRead BitMaskSet BitNot BitOr BitSHLN BitSHRN BitXor ' + - 'Ceiling CharsetDecode CharsetEncode Chr CJustify Compare CompareNoCase Cos CreateDate CreateDateTime CreateObject ' + - 'CreateODBCDate CreateODBCDateTime CreateODBCTime CreateTime CreateTimeSpan CreateUUID DateAdd DateCompare DateConvert ' + - 'DateDiff DateFormat DatePart Day DayOfWeek DayOfWeekAsString DayOfYear DaysInMonth DaysInYear DE DecimalFormat DecrementValue ' + - 'Decrypt DecryptBinary DeleteClientVariable DeserializeJSON DirectoryExists DollarFormat DotNetToCFType Duplicate Encrypt ' + - 'EncryptBinary Evaluate Exp ExpandPath FileClose FileCopy FileDelete FileExists FileIsEOF FileMove FileOpen FileRead ' + - 'FileReadBinary FileReadLine FileSetAccessMode FileSetAttribute FileSetLastModified FileWrite Find FindNoCase FindOneOf ' + - 'FirstDayOfMonth Fix FormatBaseN GenerateSecretKey GetAuthUser GetBaseTagData GetBaseTagList GetBaseTemplatePath ' + - 'GetClientVariablesList GetComponentMetaData GetContextRoot GetCurrentTemplatePath GetDirectoryFromPath GetEncoding ' + - 'GetException GetFileFromPath GetFileInfo GetFunctionList GetGatewayHelper GetHttpRequestData GetHttpTimeString ' + - 'GetK2ServerDocCount GetK2ServerDocCountLimit GetLocale GetLocaleDisplayName GetLocalHostIP GetMetaData GetMetricData ' + - 'GetPageContext GetPrinterInfo GetProfileSections GetProfileString GetReadableImageFormats GetSOAPRequest GetSOAPRequestHeader ' + - 'GetSOAPResponse GetSOAPResponseHeader GetTempDirectory GetTempFile GetTemplatePath GetTickCount GetTimeZoneInfo GetToken ' + - 'GetUserRoles GetWriteableImageFormats Hash Hour HTMLCodeFormat HTMLEditFormat IIf ImageAddBorder ImageBlur ImageClearRect ' + - 'ImageCopy ImageCrop ImageDrawArc ImageDrawBeveledRect ImageDrawCubicCurve ImageDrawLine ImageDrawLines ImageDrawOval ' + - 'ImageDrawPoint ImageDrawQuadraticCurve ImageDrawRect ImageDrawRoundRect ImageDrawText ImageFlip ImageGetBlob ImageGetBufferedImage ' + - 'ImageGetEXIFTag ImageGetHeight ImageGetIPTCTag ImageGetWidth ImageGrayscale ImageInfo ImageNegative ImageNew ImageOverlay ImagePaste ' + - 'ImageRead ImageReadBase64 ImageResize ImageRotate ImageRotateDrawingAxis ImageScaleToFit ImageSetAntialiasing ImageSetBackgroundColor ' + - 'ImageSetDrawingColor ImageSetDrawingStroke ImageSetDrawingTransparency ImageSharpen ImageShear ImageShearDrawingAxis ImageTranslate ' + - 'ImageTranslateDrawingAxis ImageWrite ImageWriteBase64 ImageXORDrawingMode IncrementValue InputBaseN Insert Int IsArray IsBinary ' + - 'IsBoolean IsCustomFunction IsDate IsDDX IsDebugMode IsDefined IsImage IsImageFile IsInstanceOf IsJSON IsLeapYear IsLocalHost ' + - 'IsNumeric IsNumericDate IsObject IsPDFFile IsPDFObject IsQuery IsSimpleValue IsSOAPRequest IsStruct IsUserInAnyRole IsUserInRole ' + - 'IsUserLoggedIn IsValid IsWDDX IsXML IsXmlAttribute IsXmlDoc IsXmlElem IsXmlNode IsXmlRoot JavaCast JSStringFormat LCase Left Len ' + - 'ListAppend ListChangeDelims ListContains ListContainsNoCase ListDeleteAt ListFind ListFindNoCase ListFirst ListGetAt ListInsertAt ' + - 'ListLast ListLen ListPrepend ListQualify ListRest ListSetAt ListSort ListToArray ListValueCount ListValueCountNoCase LJustify Log ' + - 'Log10 LSCurrencyFormat LSDateFormat LSEuroCurrencyFormat LSIsCurrency LSIsDate LSIsNumeric LSNumberFormat LSParseCurrency LSParseDateTime ' + - 'LSParseEuroCurrency LSParseNumber LSTimeFormat LTrim Max Mid Min Minute Month MonthAsString Now NumberFormat ParagraphFormat ParseDateTime ' + - 'Pi PrecisionEvaluate PreserveSingleQuotes Quarter QueryAddColumn QueryAddRow QueryConvertForGrid QueryNew QuerySetCell QuotedValueList Rand ' + - 'Randomize RandRange REFind REFindNoCase ReleaseComObject REMatch REMatchNoCase RemoveChars RepeatString Replace ReplaceList ReplaceNoCase ' + - 'REReplace REReplaceNoCase Reverse Right RJustify Round RTrim Second SendGatewayMessage SerializeJSON SetEncoding SetLocale SetProfileString ' + - 'SetVariable Sgn Sin Sleep SpanExcluding SpanIncluding Sqr StripCR StructAppend StructClear StructCopy StructCount StructDelete StructFind ' + - 'StructFindKey StructFindValue StructGet StructInsert StructIsEmpty StructKeyArray StructKeyExists StructKeyList StructKeyList StructNew ' + - 'StructSort StructUpdate Tan TimeFormat ToBase64 ToBinary ToScript ToString Trim UCase URLDecode URLEncodedFormat URLSessionFormat Val ' + - 'ValueList VerifyClient Week Wrap Wrap WriteOutput XmlChildPos XmlElemNew XmlFormat XmlGetNodeType XmlNew XmlParse XmlSearch XmlTransform ' + - 'XmlValidate Year YesNoFormat'; - - var keywords = 'cfabort cfajaximport cfajaxproxy cfapplet cfapplication cfargument cfassociate cfbreak cfcache cfcalendar ' + - 'cfcase cfcatch cfchart cfchartdata cfchartseries cfcol cfcollection cfcomponent cfcontent cfcookie cfdbinfo ' + - 'cfdefaultcase cfdirectory cfdiv cfdocument cfdocumentitem cfdocumentsection cfdump cfelse cfelseif cferror ' + - 'cfexchangecalendar cfexchangeconnection cfexchangecontact cfexchangefilter cfexchangemail cfexchangetask ' + - 'cfexecute cfexit cffeed cffile cfflush cfform cfformgroup cfformitem cfftp cffunction cfgrid cfgridcolumn ' + - 'cfgridrow cfgridupdate cfheader cfhtmlhead cfhttp cfhttpparam cfif cfimage cfimport cfinclude cfindex ' + - 'cfinput cfinsert cfinterface cfinvoke cfinvokeargument cflayout cflayoutarea cfldap cflocation cflock cflog ' + - 'cflogin cfloginuser cflogout cfloop cfmail cfmailparam cfmailpart cfmenu cfmenuitem cfmodule cfNTauthenticate ' + - 'cfobject cfobjectcache cfoutput cfparam cfpdf cfpdfform cfpdfformparam cfpdfparam cfpdfsubform cfpod cfpop ' + - 'cfpresentation cfpresentationslide cfpresenter cfprint cfprocessingdirective cfprocparam cfprocresult ' + - 'cfproperty cfquery cfqueryparam cfregistry cfreport cfreportparam cfrethrow cfreturn cfsavecontent cfschedule ' + - 'cfscript cfsearch cfselect cfset cfsetting cfsilent cfslider cfsprydataset cfstoredproc cfswitch cftable ' + - 'cftextarea cfthread cfthrow cftimer cftooltip cftrace cftransaction cftree cftreeitem cftry cfupdate cfwddx ' + - 'cfwindow cfxml cfzip cfzipparam'; - - var operators = 'all and any between cross in join like not null or outer some'; - - this.regexList = [ - { regex: new RegExp('--(.*)$', 'gm'), css: 'comments' }, // one line and multiline comments - { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // single quoted strings - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings - { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // functions - { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such - { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword - ]; -} - -SyntaxHighlighter.brushes.ColdFusion.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.ColdFusion.aliases = ['coldfusion','cf']; \ No newline at end of file diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushCpp.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushCpp.js deleted file mode 100644 index c80c1cb9..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushCpp.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.Cpp = function() -{ - // Copyright 2006 Shin, YoungJin - - var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' + - 'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' + - 'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' + - 'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' + - 'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' + - 'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' + - 'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' + - 'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' + - 'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' + - 'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' + - 'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' + - 'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' + - 'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' + - 'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' + - 'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' + - 'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' + - 'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' + - 'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' + - 'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' + - '__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' + - 'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' + - 'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' + - 'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' + - 'va_list wchar_t wctrans_t wctype_t wint_t signed'; - - var keywords = 'break case catch class const __finally __exception __try ' + - 'const_cast continue private public protected __declspec ' + - 'default delete deprecated dllexport dllimport do dynamic_cast ' + - 'else enum explicit extern if for friend goto inline ' + - 'mutable naked namespace new noinline noreturn nothrow ' + - 'register reinterpret_cast return selectany ' + - 'sizeof static static_cast struct switch template this ' + - 'thread throw true false try typedef typeid typename union ' + - 'using uuid virtual void volatile whcar_t while'; - - var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' + - 'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' + - 'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' + - 'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' + - 'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' + - 'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' + - 'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' + - 'fwrite getc getchar gets perror printf putc putchar puts remove ' + - 'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' + - 'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' + - 'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' + - 'mbtowc qsort rand realloc srand strtod strtol strtoul system ' + - 'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' + - 'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' + - 'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' + - 'clock ctime difftime gmtime localtime mktime strftime time'; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings - { regex: /^ *#.*/gm, css: 'preprocessor' }, - { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' }, - { regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' }, - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' } - ]; -}; - -SyntaxHighlighter.brushes.Cpp.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.Cpp.aliases = ['cpp', 'c']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushCss.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushCss.js deleted file mode 100644 index a431ec2c..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushCss.js +++ /dev/null @@ -1,93 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.CSS = function() -{ - function getKeywordsCSS(str) - { - return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b'; - }; - - function getValuesCSS(str) - { - return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b'; - }; - - var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' + - 'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' + - 'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' + - 'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' + - 'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' + - 'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' + - 'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' + - 'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' + - 'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' + - 'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' + - 'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' + - 'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' + - 'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' + - 'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index'; - - var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+ - 'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+ - 'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+ - 'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+ - 'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+ - 'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+ - 'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+ - 'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+ - 'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+ - 'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+ - 'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+ - 'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+ - 'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+ - 'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow'; - - var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif'; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings - { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors - { regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes - { regex: /!important/g, css: 'color3' }, // !important - { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords - { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values - { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts - ]; - - this.forHtmlScript({ - left: /(<|<)\s*style.*?(>|>)/gi, - right: /(<|<)\/\s*style\s*(>|>)/gi - }); -}; - -SyntaxHighlighter.brushes.CSS.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.CSS.aliases = ['css']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushDelphi.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushDelphi.js deleted file mode 100644 index 44877652..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushDelphi.js +++ /dev/null @@ -1,57 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.Delphi = function() -{ - var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' + - 'case char class comp const constructor currency destructor div do double ' + - 'downto else end except exports extended false file finalization finally ' + - 'for function goto if implementation in inherited int64 initialization ' + - 'integer interface is label library longint longword mod nil not object ' + - 'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' + - 'pint64 pointer private procedure program property pshortstring pstring ' + - 'pvariant pwidechar pwidestring protected public published raise real real48 ' + - 'record repeat set shl shortint shortstring shr single smallint string then ' + - 'threadvar to true try type unit until uses val var varirnt while widechar ' + - 'widestring with word write writeln xor'; - - this.regexList = [ - { regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *) - { regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { } - { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings - { regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags - { regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345 - { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3 - { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword - ]; -}; - -SyntaxHighlighter.brushes.Delphi.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.Delphi.aliases = ['delphi', 'pascal', 'pas']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushDiff.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushDiff.js deleted file mode 100644 index 4cf667ad..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushDiff.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.Diff = function() -{ - this.regexList = [ - { regex: /^\+\+\+.*$/gm, css: 'color2' }, - { regex: /^\-\-\-.*$/gm, css: 'color2' }, - { regex: /^\s.*$/gm, css: 'color1' }, - { regex: /^@@.*@@$/gm, css: 'variable' }, - { regex: /^\+[^\+]{1}.*$/gm, css: 'string' }, - { regex: /^\-[^\-]{1}.*$/gm, css: 'comments' } - ]; -}; - -SyntaxHighlighter.brushes.Diff.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.Diff.aliases = ['diff', 'patch']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushErlang.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushErlang.js deleted file mode 100644 index e040592e..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushErlang.js +++ /dev/null @@ -1,54 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.Erlang = function() -{ - // Contributed by Jean-Lou Dupont - // http://jldupont.blogspot.com/2009/06/erlang-syntax-highlighter.html - - // According to: http://erlang.org/doc/reference_manual/introduction.html#1.5 - var keywords = 'after and andalso band begin bnot bor bsl bsr bxor '+ - 'case catch cond div end fun if let not of or orelse '+ - 'query receive rem try when xor'+ - // additional - ' module export import define'; - - this.regexList = [ - { regex: new RegExp("[A-Z][A-Za-z0-9_]+", 'g'), css: 'constants' }, - { regex: new RegExp("\\%.+", 'gm'), css: 'comments' }, - { regex: new RegExp("\\?[A-Za-z0-9_]+", 'g'), css: 'preprocessor' }, - { regex: new RegExp("[a-z0-9_]+:[a-z0-9_]+", 'g'), css: 'functions' }, - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } - ]; -}; - -SyntaxHighlighter.brushes.Erlang.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.Erlang.aliases = ['erl', 'erlang']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushGroovy.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushGroovy.js deleted file mode 100644 index 4872777b..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushGroovy.js +++ /dev/null @@ -1,69 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.Groovy = function() -{ - // Contributed by Andres Almiray - // http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter - - var keywords = 'as assert break case catch class continue def default do else extends finally ' + - 'if in implements import instanceof interface new package property return switch ' + - 'throw throws try while public protected private static'; - var types = 'void boolean byte char short int long float double'; - var constants = 'null'; - var methods = 'allProperties count get size '+ - 'collect each eachProperty eachPropertyName eachWithIndex find findAll ' + - 'findIndexOf grep inject max min reverseEach sort ' + - 'asImmutable asSynchronized flatten intersect join pop reverse subMap toList ' + - 'padRight padLeft contains eachMatch toCharacter toLong toUrl tokenize ' + - 'eachFile eachFileRecurse eachB yte eachLine readBytes readLine getText ' + - 'splitEachLine withReader append encodeBase64 decodeBase64 filterLine ' + - 'transformChar transformLine withOutputStream withPrintWriter withStream ' + - 'withStreams withWriter withWriterAppend write writeLine '+ - 'dump inspect invokeMethod print println step times upto use waitForOrKill '+ - 'getText'; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings - { regex: /""".*"""/g, css: 'string' }, // GStrings - { regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'value' }, // numbers - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // goovy keyword - { regex: new RegExp(this.getKeywords(types), 'gm'), css: 'color1' }, // goovy/java type - { regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, // constants - { regex: new RegExp(this.getKeywords(methods), 'gm'), css: 'functions' } // methods - ]; - - this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); -} - -SyntaxHighlighter.brushes.Groovy.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.Groovy.aliases = ['groovy']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushJScript.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushJScript.js deleted file mode 100644 index fdb7398f..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushJScript.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.JScript = function() -{ - var keywords = 'break case catch continue ' + - 'default delete do else false ' + - 'for function if in instanceof ' + - 'new null return super switch ' + - 'this throw true try typeof var while with' - ; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings - { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords - ]; - - this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags); -}; - -SyntaxHighlighter.brushes.JScript.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.JScript.aliases = ['js', 'jscript', 'javascript']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushJava.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushJava.js deleted file mode 100644 index 810049bf..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushJava.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.Java = function() -{ - var keywords = 'abstract assert boolean break byte case catch char class const ' + - 'continue default do double else enum extends ' + - 'false final finally float for goto if implements import ' + - 'instanceof int interface long native new null ' + - 'package private protected public return ' + - 'short static strictfp super switch synchronized this throw throws true ' + - 'transient try void volatile while'; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments - { regex: /\/\*([^\*][\s\S]*)?\*\//gm, css: 'comments' }, // multiline comments - { regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings - { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers - { regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno - { regex: /\@interface\b/g, css: 'color2' }, // @interface keyword - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword - ]; - - this.forHtmlScript({ - left : /(<|<)%[@!=]?/g, - right : /%(>|>)/g - }); -}; - -SyntaxHighlighter.brushes.Java.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.Java.aliases = ['java']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushJavaFX.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushJavaFX.js deleted file mode 100644 index e22c2ecf..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushJavaFX.js +++ /dev/null @@ -1,60 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.JavaFX = function() -{ - // Contributed by Patrick Webster - // http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html - var datatypes = 'Boolean Byte Character Double Duration ' - + 'Float Integer Long Number Short String Void' - ; - - var keywords = 'abstract after and as assert at before bind bound break catch class ' - + 'continue def delete else exclusive extends false finally first for from ' - + 'function if import in indexof init insert instanceof into inverse last ' - + 'lazy mixin mod nativearray new not null on or override package postinit ' - + 'protected public public-init public-read replace return reverse sizeof ' - + 'step super then this throw true try tween typeof var where while with ' - + 'attribute let private readonly static trigger' - ; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, - { regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // numbers - { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } - ]; - this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); -}; - -SyntaxHighlighter.brushes.JavaFX.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.JavaFX.aliases = ['jfx', 'javafx']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushPerl.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushPerl.js deleted file mode 100644 index 6858508d..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushPerl.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.Perl = function() -{ - // Contributed by David Simmons-Duffin and Marty Kube - - var funcs = - 'abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr ' + - 'chroot close closedir connect cos crypt defined delete each endgrent ' + - 'endhostent endnetent endprotoent endpwent endservent eof exec exists ' + - 'exp fcntl fileno flock fork format formline getc getgrent getgrgid ' + - 'getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr ' + - 'getnetbyname getnetent getpeername getpgrp getppid getpriority ' + - 'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' + - 'getservbyname getservbyport getservent getsockname getsockopt glob ' + - 'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' + - 'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' + - 'oct open opendir ord pack pipe pop pos print printf prototype push ' + - 'quotemeta rand read readdir readline readlink readpipe recv rename ' + - 'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' + - 'semget semop send setgrent sethostent setnetent setpgrp setpriority ' + - 'setprotoent setpwent setservent setsockopt shift shmctl shmget shmread ' + - 'shmwrite shutdown sin sleep socket socketpair sort splice split sprintf ' + - 'sqrt srand stat study substr symlink syscall sysopen sysread sysseek ' + - 'system syswrite tell telldir time times tr truncate uc ucfirst umask ' + - 'undef unlink unpack unshift utime values vec wait waitpid warn write'; - - var keywords = - 'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' + - 'for foreach goto if import last local my next no our package redo ref ' + - 'require return sub tie tied unless untie until use wantarray while'; - - this.regexList = [ - { regex: new RegExp('#[^!].*$', 'gm'), css: 'comments' }, - { regex: new RegExp('^\\s*#!.*$', 'gm'), css: 'preprocessor' }, // shebang - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, - { regex: new RegExp('(\\$|@|%)\\w+', 'g'), css: 'variable' }, - { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } - ]; - - this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); -} - -SyntaxHighlighter.brushes.Perl.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.Perl.aliases = ['perl', 'Perl', 'pl']; \ No newline at end of file diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushPhp.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushPhp.js deleted file mode 100644 index 559963a1..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushPhp.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.Php = function() -{ - var funcs = 'abs acos acosh addcslashes addslashes ' + - 'array_change_key_case array_chunk array_combine array_count_values array_diff '+ - 'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+ - 'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+ - 'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+ - 'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+ - 'array_push array_rand array_reduce array_reverse array_search array_shift '+ - 'array_slice array_splice array_sum array_udiff array_udiff_assoc '+ - 'array_udiff_uassoc array_uintersect array_uintersect_assoc '+ - 'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+ - 'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+ - 'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+ - 'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+ - 'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+ - 'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+ - 'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+ - 'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+ - 'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+ - 'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+ - 'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+ - 'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+ - 'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+ - 'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+ - 'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+ - 'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+ - 'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+ - 'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+ - 'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+ - 'parse_ini_file parse_str parse_url passthru pathinfo print readlink realpath rewind rewinddir rmdir '+ - 'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+ - 'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+ - 'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+ - 'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+ - 'strtoupper strtr strval substr substr_compare'; - - var keywords = 'and or xor array as break case ' + - 'cfunction class const continue declare default die do else ' + - 'elseif enddeclare endfor endforeach endif endswitch endwhile ' + - 'extends for foreach function include include_once global if ' + - 'new old_function return static switch use require require_once ' + - 'var while abstract interface public implements extends private protected throw'; - - var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__'; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings - { regex: /\$\w+/g, css: 'variable' }, // variables - { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions - { regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword - ]; - - this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); -}; - -SyntaxHighlighter.brushes.Php.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.Php.aliases = ['php']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushPlain.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushPlain.js deleted file mode 100644 index 74562e14..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushPlain.js +++ /dev/null @@ -1,35 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.Plain = function() -{ -}; - -SyntaxHighlighter.brushes.Plain.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.Plain.aliases = ['text', 'plain']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushPowerShell.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushPowerShell.js deleted file mode 100644 index 9cce267a..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushPowerShell.js +++ /dev/null @@ -1,76 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.PowerShell = function() -{ - // Contributes by B.v.Zanten, Getronics - // http://confluence.atlassian.com/display/CONFEXT/New+Code+Macro - - var keywords = 'Add-Content Add-History Add-Member Add-PSSnapin Clear(-Content)? Clear-Item ' + - 'Clear-ItemProperty Clear-Variable Compare-Object ConvertFrom-SecureString Convert-Path ' + - 'ConvertTo-Html ConvertTo-SecureString Copy(-Item)? Copy-ItemProperty Export-Alias ' + - 'Export-Clixml Export-Console Export-Csv ForEach(-Object)? Format-Custom Format-List ' + - 'Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command ' + - 'Get-Content Get-Credential Get-Culture Get-Date Get-EventLog Get-ExecutionPolicy ' + - 'Get-Help Get-History Get-Host Get-Item Get-ItemProperty Get-Location Get-Member ' + - 'Get-PfxCertificate Get-Process Get-PSDrive Get-PSProvider Get-PSSnapin Get-Service ' + - 'Get-TraceSource Get-UICulture Get-Unique Get-Variable Get-WmiObject Group-Object ' + - 'Import-Alias Import-Clixml Import-Csv Invoke-Expression Invoke-History Invoke-Item ' + - 'Join-Path Measure-Command Measure-Object Move(-Item)? Move-ItemProperty New-Alias ' + - 'New-Item New-ItemProperty New-Object New-PSDrive New-Service New-TimeSpan ' + - 'New-Variable Out-Default Out-File Out-Host Out-Null Out-Printer Out-String Pop-Location ' + - 'Push-Location Read-Host Remove-Item Remove-ItemProperty Remove-PSDrive Remove-PSSnapin ' + - 'Remove-Variable Rename-Item Rename-ItemProperty Resolve-Path Restart-Service Resume-Service ' + - 'Select-Object Select-String Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content ' + - 'Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-Location Set-PSDebug ' + - 'Set-Service Set-TraceSource Set(-Variable)? Sort-Object Split-Path Start-Service ' + - 'Start-Sleep Start-Transcript Stop-Process Stop-Service Stop-Transcript Suspend-Service ' + - 'Tee-Object Test-Path Trace-Command Update-FormatData Update-TypeData Where(-Object)? ' + - 'Write-Debug Write-Error Write(-Host)? Write-Output Write-Progress Write-Verbose Write-Warning'; - var alias = 'ac asnp clc cli clp clv cpi cpp cvpa diff epal epcsv fc fl ' + - 'ft fw gal gc gci gcm gdr ghy gi gl gm gp gps group gsv ' + - 'gsnp gu gv gwmi iex ihy ii ipal ipcsv mi mp nal ndr ni nv oh rdr ' + - 'ri rni rnp rp rsnp rv rvpa sal sasv sc select si sl sleep sort sp ' + - 'spps spsv sv tee cat cd cp h history kill lp ls ' + - 'mount mv popd ps pushd pwd r rm rmdir echo cls chdir del dir ' + - 'erase rd ren type % \\?'; - - this.regexList = [ - { regex: /#.*$/gm, css: 'comments' }, // one line comments - { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // variables $Computer1 - { regex: /\-[a-zA-Z]+\b/g, css: 'keyword' }, // Operators -not -and -eq - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings - { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' }, - { regex: new RegExp(this.getKeywords(alias), 'gmi'), css: 'keyword' } - ]; -}; - -SyntaxHighlighter.brushes.PowerShell.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.PowerShell.aliases = ['powershell', 'ps']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushPython.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushPython.js deleted file mode 100644 index eb1077e7..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushPython.js +++ /dev/null @@ -1,66 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.Python = function() -{ - // Contributed by Gheorghe Milas and Ahmad Sherif - - var keywords = 'and assert break class continue def del elif else ' + - 'except exec finally for from global if import in is ' + - 'lambda not or pass print raise return try yield while'; - - var funcs = '__import__ abs all any apply basestring bin bool buffer callable ' + - 'chr classmethod cmp coerce compile complex delattr dict dir ' + - 'divmod enumerate eval execfile file filter float format frozenset ' + - 'getattr globals hasattr hash help hex id input int intern ' + - 'isinstance issubclass iter len list locals long map max min next ' + - 'object oct open ord pow print property range raw_input reduce ' + - 'reload repr reversed round set setattr slice sorted staticmethod ' + - 'str sum super tuple type type unichr unicode vars xrange zip'; - - var special = 'None True False self cls class_'; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, - { regex: /^\s*@\w+/gm, css: 'decorator' }, - { regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' }, - { regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' }, - { regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' }, - { regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' }, - { regex: /\b\d+\.?\w*/g, css: 'value' }, - { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, - { regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' } - ]; - - this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); -}; - -SyntaxHighlighter.brushes.Python.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.Python.aliases = ['py', 'python']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushRuby.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushRuby.js deleted file mode 100644 index 6cf0b731..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushRuby.js +++ /dev/null @@ -1,57 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.Ruby = function() -{ - // Contributed by Erik Peterson. - - var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' + - 'END end ensure false for if in module new next nil not or raise redo rescue retry return ' + - 'self super then throw true undef unless until when while yield'; - - var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' + - 'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' + - 'ThreadGroup Thread Time TrueClass'; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings - { regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants - { regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols - { regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords - { regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins - ]; - - this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); -}; - -SyntaxHighlighter.brushes.Ruby.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.Ruby.aliases = ['ruby', 'rails', 'ror', 'rb']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushScala.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushScala.js deleted file mode 100644 index 6e595f71..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushScala.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.Scala = function() -{ - // Contributed by Yegor Jbanov and David Bernard. - - var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' + - 'override try lazy for var catch throw type extends class while with new final yield abstract ' + - 'else do if return protected private this package false'; - - var keyops = '[_:=><%#@]+'; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments - { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line strings - { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quoted string - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings - { regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords - { regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword - ]; -} - -SyntaxHighlighter.brushes.Scala.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.Scala.aliases = ['scala']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushSql.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushSql.js deleted file mode 100644 index 0fe121c4..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushSql.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.Sql = function() -{ - var funcs = 'abs avg case cast coalesce convert count current_timestamp ' + - 'current_user day isnull left lower month nullif replace right ' + - 'session_user space substring sum system_user upper user year'; - - var keywords = 'absolute action add after alter as asc at authorization begin bigint ' + - 'binary bit by cascade char character check checkpoint close collate ' + - 'column commit committed connect connection constraint contains continue ' + - 'create cube current current_date current_time cursor database date ' + - 'deallocate dec decimal declare default delete desc distinct double drop ' + - 'dynamic else end end-exec escape except exec execute false fetch first ' + - 'float for force foreign forward free from full function global goto grant ' + - 'group grouping having hour ignore index inner insensitive insert instead ' + - 'int integer intersect into is isolation key last level load local max min ' + - 'minute modify move name national nchar next no numeric of off on only ' + - 'open option order out output partial password precision prepare primary ' + - 'prior privileges procedure public read real references relative repeatable ' + - 'restrict return returns revoke rollback rollup rows rule schema scroll ' + - 'second section select sequence serializable set size smallint static ' + - 'statistics table temp temporary then time timestamp to top transaction ' + - 'translation trigger true truncate uncommitted union unique update values ' + - 'varchar varying view when where with work'; - - var operators = 'all and any between cross in join like not null or outer some'; - - this.regexList = [ - { regex: /--(.*)$/gm, css: 'comments' }, // one line and multiline comments - { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings - { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings - { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions - { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such - { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword - ]; -}; - -SyntaxHighlighter.brushes.Sql.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.Sql.aliases = ['sql']; - diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushVb.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushVb.js deleted file mode 100644 index bded9dd0..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushVb.js +++ /dev/null @@ -1,58 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.Vb = function() -{ - var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' + - 'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' + - 'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' + - 'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' + - 'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' + - 'Function Get GetType GoSub GoTo Handles If Implements Imports In ' + - 'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' + - 'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' + - 'NotInheritable NotOverridable Object On Option Optional Or OrElse ' + - 'Overloads Overridable Overrides ParamArray Preserve Private Property ' + - 'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' + - 'Return Select Set Shadows Shared Short Single Static Step Stop String ' + - 'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' + - 'Variant When While With WithEvents WriteOnly Xor'; - - this.regexList = [ - { regex: /'.*$/gm, css: 'comments' }, // one line comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings - { regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword - ]; - - this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); -}; - -SyntaxHighlighter.brushes.Vb.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.Vb.aliases = ['vb', 'vbnet']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushXml.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushXml.js deleted file mode 100644 index 23fb7e4e..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shBrushXml.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -SyntaxHighlighter.brushes.Xml = function() -{ - function process(match, regexInfo) - { - var constructor = SyntaxHighlighter.Match, - code = match[0], - tag = new XRegExp('(<|<)[\\s\\/\\?]*(?[:\\w-\\.]+)', 'xg').exec(code), - result = [] - ; - - if (match.attributes != null) - { - var attributes, - regex = new XRegExp('(? [\\w:\\-\\.]+)' + - '\\s*=\\s*' + - '(? ".*?"|\'.*?\'|\\w+)', - 'xg'); - - while ((attributes = regex.exec(code)) != null) - { - result.push(new constructor(attributes.name, match.index + attributes.index, 'color1')); - result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string')); - } - } - - if (tag != null) - result.push( - new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword') - ); - - return result; - } - - this.regexList = [ - { regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // - { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // - { regex: new XRegExp('(<|<)[\\s\\/\\?]*(\\w+)(?.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process } - ]; -}; - -SyntaxHighlighter.brushes.Xml.prototype = new SyntaxHighlighter.Highlighter(); -SyntaxHighlighter.brushes.Xml.aliases = ['xml', 'xhtml', 'xslt', 'html']; diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shCore.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shCore.js deleted file mode 100644 index 938c48b3..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shCore.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('c(!1q.2X){h 2X=l(){h p={6b:{"1s-R":"","84-2y":1,"83-2y-7W":I,"1I":v,"8d-89":I,"1H-2Q":4,"3g":I,"1w":I,"66":N,"8k-8l":I,"88":N,"5h-1p":I,"1L-1l":N},M:{4T:I,69:v,5l:16,5k:16,8B:N,8f:N,8s:"54",1f:{5q:"53 1g",5d:"9N 1g",5i:"9O 6q 6p",78:"9M C 9L 1V 9I 6p 9J",3t:"3t",6C:"?",1A:"2X\\n\\n",6T:"9K\'t 9P 2O D: ",7x:"9Q 9W\'t 9X D 1L-1l 9V: ",77:"<1L 9t=\\"2s://5x.6x.6B/9s/9x\\"><6z><9y 2s-9E=\\"9F-9D\\" 63=\\"1X/1L; 9C=9z-8\\" /><3i>9A 2X<33 1m=\\"39-9Y:9Z,an,ao,am-al;ai-3f:#aj;3f:#ak;39-2Q:ap;1X-6G:6u;\\">2X6O 2.1.ag (a5 15 6h)2s://6I.3ka3 a0 a1 f 1l, a2 8R 6q 8Q 8O 8W!8V C 8U 8X.8K 8N-6h 8M 8S."},8u:N},1r:{4Z:v,9o:v,3m:v,6f:{}},2d:{},8h:{9g:/\\/\\*[\\s\\S]*?\\*\\//3b,9d:/\\/\\/.*$/3b,9e:/#.*$/3b,9j:/"([^\\\\"\\n]|\\\\.)*"/g,9n:/\'([^\\\\\'\\n]|\\\\.)*\'/g,9m:/"([^\\\\"]|\\\\.)*"/g,8Y:/\'([^\\\\\']|\\\\.)*\'/g,9k:/(&X;|<)!--[\\s\\S]*?--(&Z;|>)/3b,43:/&X;\\w+:\\/\\/[\\w-.\\/?%&=@:;]*&Z;|\\w+:\\/\\/[\\w-.\\/?%&=@:;]*/g,9c:{G:/(&X;|<)\\?=?/g,1d:/\\?(&Z;|>)/g},93:{G:/(&X;|<)%=?/g,1d:/%(&Z;|>)/g},92:{G:/(&X;|<)\\s*1l.*?(&Z;|>)/4e,1d:/(&X;|<)\\/\\s*1l\\s*(&Z;|>)/4e}},1w:{1c:l(3O){h 3T=Q.22("3Y"),5s=p.1w.7d;3T.L="1w";D(h 30 1V 5s){h 6i=5s[30],5t=W 6i(3O),1Y=5t.1c();3O.6g[30]=5t;c(1Y==v){1J}c(7X(1Y)=="91"){1Y=p.1w.6m(1Y,3O.1k,30)}1Y.L+="5v "+30;3T.2p(1Y)}q 3T},6m:l(5L,7j,5K){h a=Q.22("a"),5N=a.1m,5D=p.M,5M=5D.5l,5J=5D.5k;a.27="#"+5K;a.3i=5L;a.5j=7j;a.76=5K;a.1Q=5L;c(40(5M)==N){5N.26=5M+"75"}c(40(5J)==N){5N.2e=5J+"75"}a.9l=l(e){97{p.1w.6M(f,e||1q.6Y,f.5j,f.76)}98(e){p.B.1A(e.6n)}q N};q a},6M:l(7i,7g,7b,7h,7f){h 5G=p.1r.6f[7b],5H;c(5G==v||(5H=5G.6g[7h])==v){q v}q 5H.2z(7i,7g,7f)},7d:{5q:l(5b){f.1c=l(){c(5b.V("66")!=I){q}q p.M.1f.5q};f.2z=l(5c,8T,8P){h A=5b.A;5c.7y.4p(5c);A.L=A.L.E("5O","")}},5d:l(6R){f.1c=l(){q p.M.1f.5d};f.2z=l(b1,bU,bV){h 3J=p.B.3d(6R.5g).E(/"+3J+"");2A.Q.4o()}},5i:l(64){h 3C,c2,6a=64.1k;f.1c=l(){h 2V=p.M;c(2V.69==v){q v}l 1E(56){h 5m="";D(h 5f 1V 56){5m+=""}q 5m};l 2i(5n){h 5p="";D(h 5o 1V 5n){5p+=" "+5o+"=\'"+5n[5o]+"\'"}q 5p};h 67={26:2V.5l,2e:2V.5k,1k:6a+"bY",4r:"bZ/x-71-6V",3i:p.M.1f.5i},5V={bE:"ay",bD:"bC",bA:"5j="+6a,c4:"N"},5U=2V.69,3x;c(/bG/i.1R(6K.7k)){3x="<4h"+2i({bH:"bM:bN-bL-bK-bI-bJ",c3:"2s://ck.cj.3k/cm/71/c9/6V/c8.c7#6O=9,0,0,0"})+2i(67)+">"+1E(5V)+1E({c6:5U})+""}F{3x=""}3C=Q.22("A");3C.1Q=3x;q 3C};f.2z=l(cf,ce,62){h 7c=62.cd;6U(7c){2K"7q":h 61=p.B.2T(p.B.3d(64.5g).E(/&X;/g,"<").E(/&Z;/g,">").E(/&aT;/g,"&"));c(1q.74){1q.74.aU("1X",61)}F{q p.B.2T(61)}2K"aR":p.B.1A(p.M.1f.78);2h;2K"aP":p.B.1A(62.6n);2h}}},aV:l(65){f.1c=l(){q p.M.1f.3t};f.2z=l(aW,bz,b0){h 1Z=Q.22("aZ"),1N=v;c(p.1r.3m!=v){Q.33.4p(p.1r.3m)}p.1r.3m=1Z;1Z.1m.aX="aY:aO;26:6r;2e:6r;G:-6j;4w:-6j;";Q.33.2p(1Z);1N=1Z.5Q.Q;6J(1N,1q.Q);1N.3D(""+65.A.1Q+"");1N.4o();1Z.5Q.4F();1Z.5Q.3t();l 6J(6N,6E){h 2I=6E.4O("4n");D(h i=0;i<2I.u;i++){c(2I[i].6y.6P()=="6A"&&/aE\\.1a$/.1R(2I[i].27)){6N.3D("<4n 4r=\\"1X/1a\\" 6y=\\"6A\\" 27=\\""+2I[i].27+"\\">")}}}}},az:l(aA){f.1c=l(){q p.M.1f.6C};f.2z=l(aF,aG){h 2A=p.B.4z("","4k",aM,aK,"7a=0"),1N=2A.Q;1N.3D(p.M.1f.77);1N.4o();2A.4F()}}}},B:{Y:l(49,73,3y){3y=3e.aH(3y||0,0);D(h i=3y;i<49.u;i++){c(49[i]==73){q i}}q-1},6d:l(72){q 72+3e.aI(3e.b2()*b3).2u()},6c:l(51,4L){h 3h={},1W;D(1W 1V 51){3h[1W]=51[1W]}D(1W 1V 4L){3h[1W]=4L[1W]}q 3h},80:l(4J){6U(4J){2K"I":q I;2K"N":q N}q 4J},4z:l(43,6W,4B,4H,2N){h x=(6X.26-4B)/2,y=(6X.2e-4H)/2;2N+=", G="+x+", 4w="+y+", 26="+4B+", 2e="+4H;2N=2N.E(/^,/,"");h 4E=1q.bk(43,6W,2N);4E.4F();q 4E},7C:l(1G,1T,1U){c(1G.6Z){1G["e"+1T+1U]=1U;1G[1T+1U]=l(){1G["e"+1T+1U](1q.6Y)};1G.6Z("bw"+1T,1G[1T+1U])}F{1G.bv(1T,1U,N)}},1A:l(z){1A(p.M.1f.1A+z)},4u:l(4N,6Q){h 2r=p.1r.4Z,3V=v;c(2r==v){2r={};D(h 2L 1V p.2d){h 42=p.2d[2L].bu;c(42==v){1J}p.2d[2L].R=2L.6P();D(h i=0;i<42.u;i++){2r[42[i]]=2L}}p.1r.4Z=2r}3V=p.2d[2r[4N]];c(3V==v&&6Q!=N){p.B.1A(p.M.1f.6T+4N)}q 3V},46:l(z,6S){h 2E=z.1P("\\n");D(h i=0;i<2E.u;i++){2E[i]=6S(2E[i])}q 2E.5A("\\n")},8C:l(z){q z.E(/^[ ]*[\\n]+|[\\n]*[ ]*$/g,"")},8H:l(z){h 3X,45={},4P=W U("^\\\\[(?<4c>(.*?))\\\\]$"),7e=W U("(?[\\\\w-]+)"+"\\\\s*:\\\\s*"+"(?<24>"+"[\\\\w-%#]+|"+"\\\\[.*?\\\\]|"+"\\".*?\\"|"+"\'.*?\'"+")\\\\s*;?","g");2j((3X=7e.T(z))!=v){h 2f=3X.24.E(/^[\'"]|[\'"]$/g,"");c(2f!=v&&4P.1R(2f)){h m=4P.T(2f);2f=m.4c.u>0?m.4c.1P(/\\s*,\\s*/):[]}45[3X.R]=2f}q 45},7K:l(z,1a){c(z==v||z.u==0||z=="\\n"){q z}z=z.E(/"+2l+""})}q z},7V:l(6l,6o){h 32=6l.2u();2j(32.u<6o){32="0"+32}q 32},6k:l(){h 3w=Q.22("A"),3B,3o=0,44=Q.33,1k=p.B.6d("6k"),36="",4U="";3w.1Q=36+"6e\\">"+36+"1p\\">"+36+"2y\\">"+36+"63"+"\\"><4G 1s=\\"b5\\"><4G 1k=\\""+1k+"\\">&2B;"+4U+4U+2Y+2Y+2Y+2Y;44.2p(3w);3B=Q.bb(1k);c(/bg/i.1R(6K.7k)){h 6v=1q.be(3B,v);3o=85(6v.bc("26"))}F{3o=3B.bd}44.4p(3w);q 3o},8b:l(79,6s){h 1H="";D(h i=0;i<6s;i++){1H+=" "}q 79.E(/\\t/g,1H)},8a:l(2Z,4f){h bF=2Z.1P("\\n"),1H="\\t",4d="";D(h i=0;i<50;i++){4d+=" "}l 8x(3s,18,8A){q 3s.29(0,18)+4d.29(0,8A)+3s.29(18+1,3s.u)};2Z=p.B.46(2Z,l(20){c(20.Y(1H)==-1){q 20}h 18=0;2j((18=20.Y(1H))!=-1){h 8w=4f-18%4f;20=8x(20,18,8w)}q 20});q 2Z},3d:l(z){h br=/|&X;br\\s*\\/?&Z;/4e;c(p.M.8B==I){z=z.E(br,"\\n")}c(p.M.8f==I){z=z.E(br,"")}q z},2G:l(z){q z.E(/^\\s+|\\s+$/g,"")},2T:l(z){h 21=p.B.3d(z).1P("\\n"),bf=W bh(),8D=/^\\s*/,2a=ba;D(h i=0;i<21.u&&2a>0;i++){h 4x=21[i];c(p.B.2G(4x).u==0){1J}h 4I=8D.T(4x);c(4I==v){q z}2a=3e.2a(4I[0].u,2a)}c(2a>0){D(h i=0;i<21.u;i++){21[i]=21[i].29(2a)}}q 21.5A("\\n")},82:l(35,31){c(35.H<31.H){q-1}F{c(35.H>31.H){q 1}F{c(35.u<31.u){q-1}F{c(35.u>31.u){q 1}}}}q 0},2D:l(8q,34){l 8n(4D,8r){q[W p.4v(4D[0],4D.H,8r.1a)]};h b4=0,4s=v,3L=[],8p=34.4X?34.4X:8n;2j((4s=34.3K.T(8q))!=v){3L=3L.2t(8p(4s,34))}q 3L},8m:l(8o){h X="&X;",Z="&Z;";q 8o.E(p.8h.43,l(m){h 4j="",47="";c(m.Y(X)==0){47=X;m=m.3U(X.u)}c(m.Y(Z)==m.u-Z.u){m=m.3U(0,m.u-Z.u);4j=Z}q 47+""+m+""+4j})},8v:l(){h 3N=Q.4O("1l"),4i=[];D(h i=0;i<3N.u;i++){c(3N[i].4r=="6e"){4i.K(3N[i])}}q 4i},8I:l(4b){h 4q="",1v=p.B.2G(4b),3R=N;c(1v.Y(4q)==0){1v=1v.3U(4q.u);3R=I}c(1v.Y(3S)==1v.u-3S.u){1v=1v.3U(0,1v.u-3S.u);3R=I}q 3R?1v:4b}},1I:l(8E,4R){l 8e(4g){h 4Q=[];D(h i=0;i<4g.u;i++){4Q.K(4g[i])}q 4Q};h 2q=4R?[4R]:8e(Q.4O(p.M.8s)),8J="1Q",2k=v,4S=p.M;c(4S.4T){2q=2q.2t(p.B.8v())}c(2q.u===0){q}D(h i=0;i<2q.u;i++){h 2M=2q[i],28=p.B.8H(2M.L),1D,2W,25;28=p.B.6c(8E,28);1D=28["2O"];c(1D==v){1J}c(28["1L-1l"]=="I"||p.6b["1L-1l"]==I){2k=W p.4a(1D);1D="b9"}F{h 3P=p.B.4u(1D);c(3P){1D=3P.R;2k=W 3P()}F{1J}}2W=2M[8J];c(4S.4T){2W=p.B.8I(2W)}28["2O-R"]=1D;2k.1I(2W,28);25=2k.A;c(p.M.8u){25=Q.22("bj");25.24=2k.A.1Q;25.1m.26="bt";25.1m.2e="bx"}2M.7y.bs(25,2M)}},bq:l(7H){p.B.7C(1q,"bl",l(){p.1I(7H)})}};p.4v=l(4A,7G,1a){f.24=4A;f.H=7G;f.u=4A.u;f.1a=1a;f.5Y=v};p.4v.14.2u=l(){q f.24};p.4a=l(4K){h 3z=p.B.4u(4K),2g,4W=W p.2d.bm(),bn=v;c(3z==v){q}2g=W 3z();f.4m=4W;c(2g.3I==v){p.B.1A(p.M.1f.7x+4K);q}4W.59.K({3K:2g.3I.C,4X:7p});l 3A(4Y,7w){D(h j=0;j<4Y.u;j++){4Y[j].H+=7w}};l 7p(19,bp){h 7n=19.C,1o=[],4M=2g.59,7l=19.H+19.G.u,2U=2g.3I,1n;D(h i=0;i<4M.u;i++){1n=p.B.2D(7n,4M[i]);3A(1n,7l);1o=1o.2t(1n)}c(2U.G!=v&&19.G!=v){1n=p.B.2D(19.G,2U.G);3A(1n,19.H);1o=1o.2t(1n)}c(2U.1d!=v&&19.1d!=v){1n=p.B.2D(19.1d,2U.1d);3A(1n,19.H+19[0].bo(19.1d));1o=1o.2t(1n)}D(h j=0;j<1o.u;j++){1o[j].5Y=3z.R}q 1o}};p.4a.14.1I=l(7t,7s){f.4m.1I(7t,7s);f.A=f.4m.A};p.7I=l(){};p.7I.14={V:l(7J,7Z){h 4l=f.1E[7J];q p.B.80(4l==v?7Z:4l)},1c:l(7Y){q Q.22(7Y)},8i:l(2F,81){h 3u=[];c(2F!=v){D(h i=0;i<2F.u;i++){c(7X(2F[i])=="4h"){3u=3u.2t(p.B.2D(81,2F[i]))}}}q 3u.aB(p.B.82)},86:l(){h 23=f.2C;D(h i=0;i<23.u;i++){c(23[i]===v){1J}h 2x=23[i],4V=2x.H+2x.u;D(h j=i+1;j<23.u&&23[i]!==v;j++){h 1S=23[j];c(1S===v){1J}F{c(1S.H>4V){2h}F{c(1S.H==2x.H&&1S.u>2x.u){f.2C[i]=v}F{c(1S.H>=2x.H&&1S.H<4V){f.2C[j]=v}}}}}}},8t:l(2H){h 3r=2H.1P(/\\n/g),3n=85(f.V("84-2y")),2v=f.V("83-2y-7W"),7N=f.V("1I",[]),7U=f.V("3g");2H="";c(2v==I){2v=(3n+3r.u-1).2u().u}F{c(40(2v)==I){2v=0}}D(h i=0;i<3r.u;i++){h 1x=3r[i],60=/^(&2B;|\\s)+/.T(1x),52="aN"+(i%2==0?1:2),7F=p.B.7V(3n+i,2v),7P=p.B.Y(7N,(3n+i).2u())!=-1,2S=v;c(60!=v){2S=60[0].2u();1x=1x.29(2S.u)}1x=p.B.2G(1x);c(1x.u==0){1x="&2B;"}c(7P){52+=" aQ"}2H+=""+"<7L>"+"<7T>"+(7U?"<3F 1s=\\"aS\\">"+7F+"":"")+"<3F 1s=\\"63\\">"+(2S!=v?""+2S.E(" ","&2B;")+"":"")+1x+""+""+""+""}q 2H},8y:l(5X,5T){h 18=0,3c="",3a=p.B.7K,5S=f.V("2O-R","");l 5W(5Z){h 5R=5Z?(5Z.5Y||5S):5S;q 5R?5R+" ":""};D(h i=0;i<5T.u;i++){h 1y=5T[i],3G;c(1y===v||1y.u===0){1J}3G=5W(1y);3c+=3a(5X.29(18,1y.H-18),3G+"7O")+3a(1y.24,3G+1y.1a);18=1y.H+1y.u}3c+=3a(5X.29(18),5W()+"7O");q 3c},1I:l(C,7E){h cb=p.M,1r=p.1r,A,ci,3Z,ch="cn";f.1E={};f.A=v;f.1p=v;f.C=v;f.1i=v;f.6g={};f.1k=p.B.6d("cl");1r.6f[f.1k]=f;c(C===v){C=""}f.1E=p.B.6c(p.6b,7E||{});c(f.V("88")==I){f.1E.1w=f.1E.3g=N}f.A=A=f.1c("3Y");f.1p=f.1c("3Y");f.1p.L="1p";L="6e";A.1k=f.1k;c(f.V("66")){L+=" 5O"}c(f.V("3g")==N){L+=" bB"}c(f.V("5h-1p")==N){f.1p.L+=" bO-5h"}L+=" "+f.V("1s-R");L+=" "+f.V("2O-R");A.L=L;f.5g=C;f.C=p.B.8C(C).E(/\\r/g," ");3Z=f.V("1H-2Q");f.C=f.V("8d-89")==I?p.B.8a(f.C,3Z):p.B.8b(f.C,3Z);f.C=p.B.2T(f.C);c(f.V("1w")){f.1i=f.1c("3Y");f.1i.L="1i";f.1i.2p(p.1w.1c(f));A.2p(f.1i);h 1i=f.1i;l 58(){1i.L=1i.L.E("53","")};A.c0=l(){58();1i.L+=" 53"};A.bX=l(){58()}}A.2p(f.1p);f.2C=f.8i(f.59,f.C);f.86();C=f.8y(f.C,f.2C);C=f.8t(p.B.2G(C));c(f.V("8k-8l")){C=p.B.8m(C)}f.1p.1Q=C},9f:l(z){z=z.E(/^\\s+|\\s+$/g,"").E(/\\s+/g,"|");q"\\\\b(?:"+z+")\\\\b"},9i:l(2J){f.3I={G:{3K:2J.G,1a:"1l"},1d:{3K:2J.1d,1a:"1l"},C:W U("(?"+2J.G.1g+")"+"(?.*?)"+"(?<1d>"+2J.1d.1g+")","96")}}};q p}()}c(!1q.U){(l(){h 2w={T:10.14.T,87:5I.14.87,E:5I.14.E,1P:5I.14.1P},1F={13:/(?:[^\\\\([#\\s.]+|\\\\(?!k<[\\w$]+>|[7z]{[^}]+})[\\S\\s]?|\\((?=\\?(?!#|<[\\w$]+>)))+|(\\()(?:\\?(?:(#)[^)]*\\)|<([$\\w]+)>))?|\\\\(?:k<([\\w$]+)>|[7z]{([^}]+)})|(\\[\\^?)|([\\S\\s])/g,99:/(?:[^$]+|\\$(?![1-9$&`\']|{[$\\w]+}))+|\\$(?:([1-9]\\d*|[$&`\'])|{([$\\w]+)})/g,37:/^(?:\\s+|#.*)+/,5B:/^(?:[?*+]|{\\d+(?:,\\d*)?})/,7Q:/&&\\[\\^?/g,7S:/]/g},7o=l(5C,5v,5u){D(h i=5u||0;i<5C.u;i++){c(5C[i]===5v){q i}}q-1},8G=/()??/.T("")[1]!==3j,3q={};U=l(1e,1O){c(1e 68 10){c(1O!==3j){3H 7r("4y\'t 4C 9a 8z 95 7u 10 5u 94")}q 1e.3E()}h 1O=1O||"",7R=1O.Y("s")>-1,7M=1O.Y("x")>-1,5z=N,3v=[],1b=[],13=1F.13,J,cc,38,3M,3p;13.O=0;2j(J=2w.T.2n(13,1e)){c(J[2]){c(!1F.5B.1R(1e.17(13.O))){1b.K("(?:)")}}F{c(J[1]){3v.K(J[3]||v);c(J[3]){5z=I}1b.K("(")}F{c(J[4]){3M=7o(3v,J[4]);1b.K(3M>-1?"\\\\"+(3M+1)+(40(1e.5w(13.O))?"":"(?:)"):J[0])}F{c(J[5]){1b.K(3q.7m?3q.7m.7q(J[5],J[0].5w(1)==="P"):J[0])}F{c(J[6]){c(1e.5w(13.O)==="]"){1b.K(J[6]==="["?"(?!)":"[\\\\S\\\\s]");13.O++}F{cc=U.8g("&&"+1e.17(J.H),1F.7Q,1F.7S,"",{7D:"\\\\"})[0];1b.K(J[6]+cc+"]");13.O+=cc.u+1}}F{c(J[7]){c(7R&&J[7]==="."){1b.K("[\\\\S\\\\s]")}F{c(7M&&1F.37.1R(J[7])){38=2w.T.2n(1F.37,1e.17(13.O-1))[0].u;c(!1F.5B.1R(1e.17(13.O-1+38))){1b.K("(?:)")}13.O+=38-1}F{1b.K(J[7])}}}F{1b.K(J[0])}}}}}}}3p=10(1b.5A(""),2w.E.2n(1O,/[9B]+/g,""));3p.1C={1g:1e,2m:5z?3v:v};q 3p};U.9q=l(R,o){3q[R]=o};10.14.T=l(z){h 1h=2w.T.2n(f,z),R,i,5y;c(1h){c(8G&&1h.u>1){5y=W 10("^"+f.1g+"$(?!\\\\s)",f.5E());2w.E.2n(1h[0],5y,l(){D(i=1;i<8j.u-2;i++){c(8j[i]===3j){1h[i]=3j}}})}c(f.1C&&f.1C.2m){D(i=1;i<1h.u;i++){R=f.1C.2m[i-1];c(R){1h[R]=1h[i]}}}c(f.3l&&f.O>(1h.H+1h[0].u)){f.O--}}q 1h}})()}10.14.5E=l(){q(f.3l?"g":"")+(f.av?"i":"")+(f.8F?"m":"")+(f.37?"x":"")+(f.a4?"y":"")};10.14.3E=l(7A){h 5F=W U(f.1g,(7A||"")+f.5E());c(f.1C){5F.1C={1g:f.1C.1g,2m:f.1C.2m?f.1C.2m.17(0):v}}q 5F};10.14.2n=l(90,z){q f.T(z)};10.14.9b=l(9h,8c){q f.T(8c[0])};U.5P=l(57,5e){h 55="/"+57+"/"+(5e||"");q U.5P[55]||(U.5P[55]=W U(57,5e))};U.41=l(z){q z.E(/[-[\\]{}()*+?.\\\\^$|,#\\s]/g,"\\\\$&")};U.8g=l(z,G,11,1j,2R){h 2R=2R||{},2P=2R.7D,12=2R.c5,1j=1j||"",5r=1j.Y("g")>-1,70=1j.Y("i")>-1,7v=1j.Y("m")>-1,5a=1j.Y("y")>-1,1j=1j.E(/y/g,""),G=G 68 10?(G.3l?G:G.3E("g")):W U(G,"g"+1j),11=11 68 10?(11.3l?11:11.3E("g")):W U(11,"g"+1j),1M=[],2o=0,1u=0,1t=0,1z=0,2b,2c,1B,1K,3Q,48;c(2P){c(2P.u>1){3H aC("4y\'t 4C aL aJ 7u 41 7B")}c(7v){3H 7r("4y\'t 4C 41 7B 8z bi b8 8F b7")}3Q=U.41(2P);48=W 10("^(?:"+3Q+"[\\\\S\\\\s]|(?:(?!"+G.1g+"|"+11.1g+")[^"+3Q+"])+)+",70?"i":"")}2j(I){G.O=11.O=1t+(2P?(48.T(z.17(1t))||[""])[0].u:0);1B=G.T(z);1K=11.T(z);c(1B&&1K){c(1B.H<=1K.H){1K=v}F{1B=v}}c(1B||1K){1u=(1B||1K).H;1t=(1B?G:11).O}F{c(!2o){2h}}c(5a&&!2o&&1u>1z){2h}c(1B){c(!2o++){2b=1u;2c=1t}}F{c(1K&&2o){c(!--2o){c(12){c(12[0]&&2b>1z){1M.K([12[0],z.17(1z,2b),1z,2b])}c(12[1]){1M.K([12[1],z.17(2b,2c),2b,2c])}c(12[2]){1M.K([12[2],z.17(2c,1u),2c,1u])}c(12[3]){1M.K([12[3],z.17(1u,1t),1u,1t])}}F{1M.K(z.17(2c,1u))}1z=1t;c(!5r){2h}}}F{G.O=11.O=0;3H bP("8L aq 9r ar 8Z")}}c(1u===1t){1t++}}c(5r&&!5a&&12&&12[0]&&z.u>1z){1M.K([12[0],z.17(1z),1z,z.u])}G.O=11.O=0;q 1M};',62,768,'||||||||||||if|||this||var||||function||||sh|return||||length|null||||str|div|utils|code|for|replace|else|left|index|true|_121|push|className|config|false|lastIndex||document|name||exec|XRegExp|getParam|new|lt|indexOf|gt|RegExp|_139|vN|part|prototype|||slice|pos|_d3|css|_11f|create|right|_119|strings|source|_129|bar|_13a|id|script|style|_da|_d6|lines|window|vars|class|_145|_144|_b5|toolbar|_f4|_103|_146|alert|_149|_x|_c3|params|lib|obj|tab|highlight|continue|_14a|html|_142|doc|_11a|split|innerHTML|test|_ec|_5a|_5b|in|_4f|text|_8|_3c|_91|_98|createElement|_e7|value|_c5|width|href|_c2|substr|min|_147|_148|brushes|height|_6e|_cd|break|attributes|while|_be|_75|captureNames|call|_143|appendChild|_bc|_5f|http|concat|toString|_f0|real|_e9|line|execute|wnd|nbsp|matches|getMatches|_66|_e3|trim|_ed|_40|_10f|case|_61|_c1|_55|brush|_13c|size|_13b|_f9|unindent|_d9|_28|_c4|SyntaxHighlighter|_81|_88|_5|m2|_7a|body|_a2|m1|_80|extended|len|font|_fe|gm|_fd|fixInputString|Math|color|gutter|_4e|title|undefined|com|global|printFrame|_ef|_7d|_125|_118|_ee|_8e|print|_e5|_11e|_7b|_32|_49|_cc|offsetMatches|_7c|_25|write|addFlags|td|_104|throw|htmlScript|_22|regex|_a7|_124|_af|_2|_c6|_14b|_b6|_b4|_3|substring|_60|_76|_6a|DIV|_10b|isNaN|escape|_62|url|_7e|_6b|eachLine|_ae|esc|_47|HtmlScript|_b2|values|_8c|gi|_89|_b9|object|_b0|_ad|_blank|_e1|xmlBrush|link|close|removeChild|_b3|type|_a6|_73|findBrush|Match|top|_9d|can|popup|_c8|_53|supply|_a3|win|focus|span|_54|_9e|_50|_cb|_4d|_d7|_5d|getElementsByTagName|_6c|_ba|_b8|_bf|useScriptTags|_82|_ea|_ce|func|_d0|discoveredBrushes||_4c|_f6|show|pre|key|_29|_133|hide|regexList|_141|_19|_1a|viewSource|_134|_2b|originalCode|wrap|copyToClipboard|highlighterId|toolbarItemHeight|toolbarItemWidth|_2a|_2c|_2e|_2d|expandSource|_13e|_4|_7|from|item|charAt|www|r2|_11d|join|quantifier|_113|_e|getNativeFlags|_12e|_17|_18|String|_10|_b|_9|_f|_d|collapsed|cache|contentWindow|_101|_ff|_fb|swf|_30|getBrushNameCss|_fa|brushName|_100|_f5|_37|_35|content|_24|_38|collapse|_2f|instanceof|clipboardSwf|_27|defaults|merge|guid|syntaxhighlighter|highlighters|toolbarCommands|2009|_6|500px|measureSpace|_78|createButton|message|_79|clipboard|to|0px|_85|decoration|center|_83|margin|w3|rel|head|stylesheet|org|help|xhtml1|_3f|0099FF|align|DTD|alexgorbatchev|copyStyles|navigator|none|executeCommand|_3e|version|toLowerCase|_5e|_1e|_65|noBrush|switch|flash|_52|screen|event|attachEvent|_13f|shockwave|_4b|_48|clipboardData|px|commandName|aboutDialog|copyToClipboardConfirmation|_84|scrollbars|_14|_36|items|_6d|_16|_13|_15|_12|_a|userAgent|_d8|unicode|_d5|_112|process|get|TypeError|_de|_dd|one|_140|_d1|brushNotHtmlScript|parentNode|pP|_12d|character|addEvent|escapeChar|_106|_f7|_c9|_c7|Highlighter|_df|decorate|table|_11c|_f1|plain|_f8|classLeft|_11b|classRight|tr|_f2|padNumber|numbers|typeof|_e2|_e0|toBoolean|_e4|matchesSortCallback|pad|first|parseInt|removeNestedMatches|match|light|tabs|processSmartTabs|processTabs|args|smart|toArray|stripBrs|matchRecursive|regexLib|findMatches|arguments|auto|links|processUrls|defaultAdd|_a9|_a8|_a1|_a4|tagName|createDisplayLines|debug|getSyntaxHighlighterScriptTags|_93|insertSpaces|processMatches|when|_90|bloggerMode|trimFirstAndLastLines|_9a|_b7|multiline|_117|parseParams|stripCData|_bd|Copyright|subject|Alex|2004|development|_1c|keep|donate|Gorbatchev|_1b|syntax|JavaScript|active|highlighter|multiLineSingleQuotedString|delimiters|_12f|string|scriptScriptTags|aspScriptTags|another|constructing|sgi|try|catch|replaceVar|flags|apply|phpScriptTags|singleLineCComments|singleLinePerlComments|getKeywords|multiLineCComments|_131|forHtmlScript|doubleQuotedString|xmlComments|onclick|multiLineDoubleQuotedString|singleQuotedString|spaceWidth|bottom|addPlugin|contains|1999|xmlns|dtd|TR|transitional|xhtml|meta|utf|About|sx|charset|Type|equiv|Content|EN|Transitional|your|now|Can|is|The|view|copy|find|Brush|PUBLIC|W3C|XHTML|DOCTYPE|option|wasn|configured|family|Geneva|you|like|please|If|sticky|October|target|https|paypal|_s|xclick|hosted_button_id|cmd|webscr|cgi|bin|364|4em|background|fff|000|serif|sans|Arial|Helvetica|1em|data|unbalanced|75em|large|xx|ignoreCase|3em|2930402|always|about|_42|sort|SyntaxError|printing|shCore|_43|_44|max|round|than|250|more|500|alt|absolute|error|highlighted|ok|number|amp|setData|printSource|_39|cssText|position|IFRAME|_3b|_1f|random|1000000|_a5|block|CDATA|flag|the|htmlscript|1000|getElementById|getPropertyValue|offsetWidth|getComputedStyle|_99|opera|Array|using|textarea|open|load|Xml|_cf|lastIndexOf|_d4|all||replaceChild|70em|aliases|addEventListener|on|30em|spaces|_3a|flashVars|nogutter|transparent|wmode|allowScriptAccess|_8a|msie|classid|96b8|444553540000|11cf|ae6d|clsid|d27cdb6e|no|Error|location|resizable|400|750|_20|_21|menubar|onmouseout|_clipboard|application|onmouseover|param|_26|codebase|menu|valueNames|movie|cab|swflash|cabs|embed|conf||command|_34|_33|src|_10c|_10a|macromedia|download|highlighter_|pub|important'.split('|'),0,{})) diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shLegacy.js b/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shLegacy.js deleted file mode 100644 index 126b9ee1..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/scripts/shLegacy.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1 y={d:{}};y.d={F:6(S,l,q,k,m,n){6 J(z,Y){1 V=16 15("^"+Y+"\\\\[(?\\\\w+)\\\\]$","14"),x=2;h(1 i=0;i. - */ -.syntaxhighlighter, -.syntaxhighlighter div, -.syntaxhighlighter code, -.syntaxhighlighter table, -.syntaxhighlighter table td, -.syntaxhighlighter table tr, -.syntaxhighlighter table tbody -{ - margin: 0 !important; - padding: 0 !important; - border: 0 !important; - outline: 0 !important; - background: none !important; - text-align: left !important; - float: none !important; - vertical-align: baseline !important; - position: static !important; - left: auto !important; - top: auto !important; - right: auto !important; - bottom: auto !important; - height: auto !important; - width: auto !important; - line-height: 1.1em !important; - font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; - font-weight: normal !important; - font-style: normal !important; - font-size: 1em !important; - /*min-height: inherit !important; *//* For IE8, FF & WebKit */ - /*min-height: auto !important;*/ /* For IE7 */ - direction: ltr !important; -} - -.syntaxhighlighter -{ - width: 99% !important; /* 99% fixes IE8 horizontal scrollbar */ - margin: 1em 0 1em 0 !important; - padding: 1px !important; /* adds a little border on top and bottom */ - position: relative !important; -} - -.syntaxhighlighter code -{ - display: inline !important; -} - -.syntaxhighlighter .bold -{ - font-weight: bold !important; -} - -.syntaxhighlighter .italic -{ - font-style: italic !important; -} - -.syntaxhighlighter .line -{ -} - -.syntaxhighlighter .no-wrap .line .content -{ - white-space: pre !important; -} - -.syntaxhighlighter .line table -{ - border-collapse: collapse !important; -} - -.syntaxhighlighter .line td -{ - vertical-align: top !important; -} - -.syntaxhighlighter .line .number -{ - width: 3em !important; -} - -.syntaxhighlighter .line .number code -{ - width: 2.7em !important; - padding-right: .3em !important; - text-align: right !important; - display: block !important; -} - -.syntaxhighlighter .line .content -{ - padding-left: .5em !important; -} - -.syntaxhighlighter .line .spaces -{ -} - -/* Disable border and margin on the lines when no gutter option is set */ -.syntaxhighlighter.nogutter .line .content -{ - border-left: none !important; -} - -.syntaxhighlighter .bar -{ - display: none !important; -} - -.syntaxhighlighter .bar.show -{ - display: block !important; -} - -.syntaxhighlighter.collapsed .bar -{ - display: block !important; -} - -/* Adjust some properties when collapsed */ - -.syntaxhighlighter.collapsed .lines -{ - display: none !important; -} - -.syntaxhighlighter .lines.no-wrap -{ - overflow: auto !important; - overflow-y: hidden !important; -} - -/* Styles for the toolbar */ - -.syntaxhighlighter .toolbar -{ - position: absolute !important; - right: 0px !important; - top: 0px !important; - font-size: 1px !important; - padding: 8px 8px 8px 0 !important; /* in px because images don't scale with ems */ -} - -.syntaxhighlighter.collapsed .toolbar -{ - font-size: 80% !important; - padding: .2em 0 .5em .5em !important; - position: static !important; -} - -.syntaxhighlighter .toolbar a.item, -.syntaxhighlighter .toolbar .item -{ - display: block !important; - float: left !important; - margin-left: 8px !important; - background-repeat: no-repeat !important; - overflow: hidden !important; - text-indent: -5000px !important; -} - -.syntaxhighlighter.collapsed .toolbar .item -{ - display: none !important; -} - -.syntaxhighlighter.collapsed .toolbar .item.expandSource -{ - background-image: url(magnifier.png) !important; - display: inline !important; - text-indent: 0 !important; - width: auto !important; - float: none !important; - height: 16px !important; - padding-left: 20px !important; -} - -.syntaxhighlighter .toolbar .item.viewSource -{ - background-image: url(page_white_code.png) !important; -} - -.syntaxhighlighter .toolbar .item.printSource -{ - background-image: url(printer.png) !important; -} - -.syntaxhighlighter .toolbar .item.copyToClipboard -{ - text-indent: 0 !important; - background: none !important; - overflow: visible !important; -} - -.syntaxhighlighter .toolbar .item.about -{ - background-image: url(help.png) !important; -} - -/** - * Print view. - * Colors are based on the default theme without background. - */ - -.syntaxhighlighter.printing, -.syntaxhighlighter.printing .line.alt1 .content, -.syntaxhighlighter.printing .line.alt2 .content, -.syntaxhighlighter.printing .line.highlighted .number, -.syntaxhighlighter.printing .line.highlighted.alt1 .content, -.syntaxhighlighter.printing .line.highlighted.alt2 .content, -{ - background: none !important; -} - -/* Gutter line numbers */ -.syntaxhighlighter.printing .line .number -{ - color: #bbb !important; -} - -/* Add border to the lines */ -.syntaxhighlighter.printing .line .content -{ - color: #000 !important; -} - -/* Toolbar when visible */ -.syntaxhighlighter.printing .toolbar -{ - display: none !important; -} - -.syntaxhighlighter.printing a -{ - text-decoration: none !important; -} - -.syntaxhighlighter.printing .plain, -.syntaxhighlighter.printing .plain a -{ - color: #000 !important; -} - -.syntaxhighlighter.printing .comments, -.syntaxhighlighter.printing .comments a -{ - color: #008200 !important; -} - -.syntaxhighlighter.printing .string, -.syntaxhighlighter.printing .string a -{ - color: blue !important; -} - -.syntaxhighlighter.printing .keyword -{ - color: #069 !important; - font-weight: bold !important; -} - -.syntaxhighlighter.printing .preprocessor -{ - color: gray !important; -} - -.syntaxhighlighter.printing .variable -{ - color: #a70 !important; -} - -.syntaxhighlighter.printing .value -{ - color: #090 !important; -} - -.syntaxhighlighter.printing .functions -{ - color: #ff1493 !important; -} - -.syntaxhighlighter.printing .constants -{ - color: #0066CC !important; -} - -.syntaxhighlighter.printing .script -{ - font-weight: bold !important; -} - -.syntaxhighlighter.printing .color1, -.syntaxhighlighter.printing .color1 a -{ - color: #808080 !important; -} - -.syntaxhighlighter.printing .color2, -.syntaxhighlighter.printing .color2 a -{ - color: #ff1493 !important; -} - -.syntaxhighlighter.printing .color3, -.syntaxhighlighter.printing .color3 a -{ - color: red !important; -} diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeDefault.css b/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeDefault.css deleted file mode 100644 index ba55efbd..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeDefault.css +++ /dev/null @@ -1,177 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -/************************************ - * Default Syntax Highlighter theme. - * - * Interface elements. - ************************************/ - -.syntaxhighlighter -{ - background-color: #fff !important; - border: 1px solid #E0E0E0 !important; - padding: 0 !important; -} - -/* Highlighed line number */ -.syntaxhighlighter .line.highlighted .number -{ - color: black !important; -} - -/* Highlighed line */ -.syntaxhighlighter .line.highlighted.alt1, -.syntaxhighlighter .line.highlighted.alt2 -{ - background-color: #e0e0e0 !important; -} - -/* Gutter line numbers */ -.syntaxhighlighter .line .number -{ - color: #afafaf !important; -} - -/* Add border to the lines */ -.syntaxhighlighter .line .content -{ - border-left: 3px solid #6CE26C !important; - color: #000 !important; -} - -.syntaxhighlighter.printing .line .content -{ - border: 0 !important; -} - -/* First line */ -.syntaxhighlighter .line.alt1 -{ - background-color: #fff !important; -} - -/* Second line */ -.syntaxhighlighter .line.alt2 -{ - background-color: #F8F8F8 !important; -} - -.syntaxhighlighter .toolbar -{ - background-color: #F8F8F8 !important; - border: #E7E5DC solid 1px !important; -} - -.syntaxhighlighter .toolbar a -{ - color: #a0a0a0 !important; -} - -.syntaxhighlighter .toolbar a:hover -{ - color: red !important; -} - -.nogutter { border: none !important; } - -/************************************ - * Actual syntax highlighter colors. - ************************************/ -.syntaxhighlighter .plain, -.syntaxhighlighter .plain a -{ - color: #000 !important; -} - -.syntaxhighlighter .comments, -.syntaxhighlighter .comments a -{ - color: #008200 !important; -} - -.syntaxhighlighter .string, -.syntaxhighlighter .string a -{ - color: blue !important; -} - -.syntaxhighlighter .keyword -{ - color: #069 !important; - font-weight: bold !important; -} - -.syntaxhighlighter .preprocessor -{ - color: gray !important; -} - -.syntaxhighlighter .variable -{ - color: #a70 !important; -} - -.syntaxhighlighter .value -{ - color: #090 !important; -} - -.syntaxhighlighter .functions -{ - color: #ff1493 !important; -} - -.syntaxhighlighter .constants -{ - color: #0066CC !important; -} - -.syntaxhighlighter .script -{ - background-color: yellow !important; -} - -.syntaxhighlighter .color1, -.syntaxhighlighter .color1 a -{ - color: #808080 !important; -} - -.syntaxhighlighter .color2, -.syntaxhighlighter .color2 a -{ - color: #ff1493 !important; -} - -.syntaxhighlighter .color3, -.syntaxhighlighter .color3 a -{ - color: red !important; -} diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeDjango.css b/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeDjango.css deleted file mode 100644 index 80a8b41b..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeDjango.css +++ /dev/null @@ -1,176 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -/** - * Django SyntaxHighlighter theme - */ - -/************************************ - * Interface elements. - ************************************/ - -.syntaxhighlighter -{ - background-color: #0B2F20 !important; -} - -/* Gutter line numbers */ -.syntaxhighlighter .line .number -{ - color: #497958 !important; -} - -/* Add border to the lines */ -.syntaxhighlighter .line .content -{ - border-left: 3px solid #41A83E !important; - color: #B9BDB6 !important; -} - -.syntaxhighlighter.printing .line .content -{ - border: 0 !important; -} - -/* First line */ -.syntaxhighlighter .line.alt1 -{ -} - -/* Second line */ -.syntaxhighlighter .line.alt2 -{ - background-color: #0a2b1d !important; -} - -/* Highlighed line number */ -.syntaxhighlighter .line.highlighted .number -{ - background-color: #336442 !important; - color: #fff !important; -} - -/* Highlighed line */ -.syntaxhighlighter .line.highlighted.alt1, -.syntaxhighlighter .line.highlighted.alt2 -{ - background-color: #336442 !important; -} - -.syntaxhighlighter .toolbar -{ - background-color: #245032 !important; - border: #0B2F20 solid 1px !important; -} - -.syntaxhighlighter .toolbar a -{ - color: #C4B14A !important; -} - -.syntaxhighlighter .toolbar a:hover -{ - color: #FFE862 !important; -} - -/************************************ - * Actual syntax highlighter colors. - ************************************/ -.syntaxhighlighter .plain, -.syntaxhighlighter .plain a -{ - color: #F8F8F8 !important; -} - -.syntaxhighlighter .comments, -.syntaxhighlighter .comments a -{ - color: #336442 !important; - font-style: italic !important; -} - -.syntaxhighlighter .string, -.syntaxhighlighter .string a -{ - color: #9DF39F !important; -} - -.syntaxhighlighter .keyword -{ - color: #96DD3B !important; - font-weight: bold !important; -} - -.syntaxhighlighter .preprocessor -{ - color: #91BB9E !important; -} - -.syntaxhighlighter .variable -{ - color: #FFAA3E !important; -} - -.syntaxhighlighter .value -{ - color: #F7E741 !important; -} - -.syntaxhighlighter .functions -{ - color: #FFAA3E !important; -} - -.syntaxhighlighter .constants -{ - color: #E0E8FF !important; -} - -.syntaxhighlighter .script -{ - background-color: #497958 !important; -} - -.syntaxhighlighter .color1, -.syntaxhighlighter .color1 a -{ - color: #EB939A !important; -} - -.syntaxhighlighter .color2, -.syntaxhighlighter .color2 a -{ - color: #91BB9E !important; -} - -.syntaxhighlighter .color3, -.syntaxhighlighter .color3 a -{ - color: #EDEF7D !important; -} diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeEclipse.css b/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeEclipse.css deleted file mode 100644 index b9cfba07..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeEclipse.css +++ /dev/null @@ -1,190 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -/** - * Eclipse IDE SyntaxHighlighter color theme - * (C) Code-House - * http://blog.code-house.org/2009/10/xml-i-adnotacje-kod-ogolnego-przeznaczenia-i-jpa/ - */ - -.syntaxhighlighter -{ - background-color: #fff !important; -} - -/* Highlighed line number */ -.syntaxhighlighter .line.highlighted .number -{ - background-color: #c3defe !important; -} - -/* Highlighed line */ -.syntaxhighlighter .line.highlighted.alt1, -.syntaxhighlighter .line.highlighted.alt2 -{ - background-color: #c3defe !important; -} - -/* Gutter line numbers */ -.syntaxhighlighter .line .number -{ - color: #787878 !important; - background-color: #fff !important; -} - -/* Add border to the lines */ -.syntaxhighlighter .line .content -{ - border-left: 1px solid #d4d0c8 !important; - color: #000 !important; -} - -.syntaxhighlighter.printing .line .content -{ - border: 0 !important; -} - -/* First line */ -.syntaxhighlighter .line.alt1 -{ - background-color: #fff !important; -} - -/* Second line */ -.syntaxhighlighter .line.alt2 -{ - background-color: #fff !important; -} - -.syntaxhighlighter .toolbar -{ - background-color: #F8F8F8 !important; - border: #E7E5DC solid 1px !important; -} - -.syntaxhighlighter .toolbar a -{ - color: #a0a0a0 !important; -} - -.syntaxhighlighter .toolbar a:hover -{ - color: red !important; -} - -/************************************ - * Actual syntax highlighter colors. - ************************************/ -.syntaxhighlighter .plain, -.syntaxhighlighter .plain a -{ - color: #000 !important; -} - -.syntaxhighlighter .comments, -.syntaxhighlighter .comments a -{ - color: #3f5fbf !important; -} - -.syntaxhighlighter .string, -.syntaxhighlighter .string a -{ - color: #2a00ff !important; -} - -.syntaxhighlighter .keyword -{ - color: #7f0055 !important; - font-weight: bold !important; -} - -.syntaxhighlighter .preprocessor -{ - color: #646464 !important; -} - -.syntaxhighlighter .variable -{ - color: #a70 !important; -} - -.syntaxhighlighter .value -{ - color: #090 !important; -} - -.syntaxhighlighter .functions -{ - color: #ff1493 !important; -} - -.syntaxhighlighter .constants -{ - color: #0066CC !important; -} - -.syntaxhighlighter .script -{ - background-color: yellow !important; -} - -.syntaxhighlighter .color1, -.syntaxhighlighter .color1 a -{ - color: #808080 !important; -} - -.syntaxhighlighter .color2, -.syntaxhighlighter .color2 a -{ - color: #ff1493 !important; -} - -.syntaxhighlighter .color3, -.syntaxhighlighter .color3 a -{ - color: red !important; -} - - -.xml .keyword { - color: #3f7f7f !important; - font-weight: normal !important; -} - -.xml .color1, -.xml .color1 a{ - color: #7f007f !important; -} - -.xml .string { - font-style: italic !important; - color: #2a00ff !important; -} \ No newline at end of file diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeEmacs.css b/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeEmacs.css deleted file mode 100644 index ee940c99..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeEmacs.css +++ /dev/null @@ -1,175 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -/** - * Emacs SyntaxHighlighter theme based on theme by Joshua Emmons - * http://www.skia.net/ - */ - -/************************************ - * Interface elements. - ************************************/ - -.syntaxhighlighter -{ - background-color: #000000 !important; -} - -/* Gutter line numbers */ -.syntaxhighlighter .line .number -{ - color: #D3D3D3 !important; -} - -/* Add border to the lines */ -.syntaxhighlighter .line .content -{ - border-left: 3px solid #990000 !important; - color: #B9BDB6 !important; -} - -.syntaxhighlighter.printing .line .content -{ - border: 0 !important; -} - -/* First line */ -.syntaxhighlighter .line.alt1 -{ -} - -/* Second line */ -.syntaxhighlighter .line.alt2 -{ - background-color: #0f0f0f !important; -} - -/* Highlighed line number */ -.syntaxhighlighter .line.highlighted .number -{ - background-color: #435A5F !important; - color: #fff !important; -} - -/* Highlighed line */ -.syntaxhighlighter .line.highlighted.alt1, -.syntaxhighlighter .line.highlighted.alt2 -{ - background-color: #435A5F !important; -} - -.syntaxhighlighter .toolbar -{ - background-color: #000000 !important; - border: #000000 solid 1px !important; -} - -.syntaxhighlighter .toolbar a -{ - color: #646763 !important; -} - -.syntaxhighlighter .toolbar a:hover -{ - color: #9CCFF4 !important; -} - -/************************************ - * Actual syntax highlighter colors. - ************************************/ -.syntaxhighlighter .plain, -.syntaxhighlighter .plain a -{ - color: #D3D3D3 !important; -} - -.syntaxhighlighter .comments, -.syntaxhighlighter .comments a -{ - color: #FF7D27 !important; -} - -.syntaxhighlighter .string, -.syntaxhighlighter .string a -{ - color: #FF9E7B !important; -} - -.syntaxhighlighter .keyword -{ - color: #00FFFF !important; -} - -.syntaxhighlighter .preprocessor -{ - color: #AEC4DE !important; -} - -.syntaxhighlighter .variable -{ - color: #FFAA3E !important; -} - -.syntaxhighlighter .value -{ - color: #090 !important; -} - -.syntaxhighlighter .functions -{ - color: #81CEF9 !important; -} - -.syntaxhighlighter .constants -{ - color: #FF9E7B !important; -} - -.syntaxhighlighter .script -{ - background-color: #990000 !important; -} - -.syntaxhighlighter .color1, -.syntaxhighlighter .color1 a -{ - color: #EBDB8D !important; -} - -.syntaxhighlighter .color2, -.syntaxhighlighter .color2 a -{ - color: #FF7D27 !important; -} - -.syntaxhighlighter .color3, -.syntaxhighlighter .color3 a -{ - color: #AEC4DE !important; -} diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeFadeToGrey.css b/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeFadeToGrey.css deleted file mode 100644 index 879b474c..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeFadeToGrey.css +++ /dev/null @@ -1,177 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -/** - * Fade to Grey SyntaxHighlighter theme based on theme by Brasten Sager - * http://www.ibrasten.com/ - */ - -/************************************ - * Interface elements. - ************************************/ - -.syntaxhighlighter -{ - background-color: #121212 !important; -} - -/* Gutter line numbers */ -.syntaxhighlighter .line .number -{ - color: #C3C3C3 !important; -} - -/* Add border to the lines */ -.syntaxhighlighter .line .content -{ - border-left: 3px solid #3185B9 !important; - color: #B9BDB6 !important; -} - -.syntaxhighlighter.printing .line .content -{ - border: 0 !important; -} - -/* First line */ -.syntaxhighlighter .line.alt1 -{ -} - -/* Second line */ -.syntaxhighlighter .line.alt2 -{ - background-color: #000000 !important; -} - -/* Highlighed line number */ -.syntaxhighlighter .line.highlighted .number -{ - background-color: #3A3A00 !important; - color: #fff !important; -} - -/* Highlighed line */ -.syntaxhighlighter .line.highlighted.alt1, -.syntaxhighlighter .line.highlighted.alt2 -{ - background-color: #3A3A00 !important; -} - -.syntaxhighlighter .toolbar -{ - background-color: #000000 !important; - border: #000000 solid 1px !important; -} - -.syntaxhighlighter .toolbar a -{ - color: #808080 !important; -} - -.syntaxhighlighter .toolbar a:hover -{ - color: #96DAFF !important; -} - -/************************************ - * Actual syntax highlighter colors. - ************************************/ -.syntaxhighlighter .plain, -.syntaxhighlighter .plain a -{ - color: #FFFFFF !important; -} - -.syntaxhighlighter .comments, -.syntaxhighlighter .comments a -{ - color: #696854 !important; -} - -.syntaxhighlighter .string, -.syntaxhighlighter .string a -{ - color: #E3E658 !important; -} - -.syntaxhighlighter .keyword -{ - color: #D01D33 !important; -} - -.syntaxhighlighter .preprocessor -{ - color: #435A5F !important; -} - -.syntaxhighlighter .variable -{ - color: #898989 !important; -} - -.syntaxhighlighter .value -{ - color: #090 !important; -} - -.syntaxhighlighter .functions -{ - color: #AAAAAA !important; - font-weight: bold !important; -} - -.syntaxhighlighter .constants -{ - color: #96DAFF !important; -} - -.syntaxhighlighter .script -{ - background-color: #C3C3C3 !important; - color: #000 !important; -} - -.syntaxhighlighter .color1, -.syntaxhighlighter .color1 a -{ - color: #FFC074 !important; -} - -.syntaxhighlighter .color2, -.syntaxhighlighter .color2 a -{ - color: #4A8CDB !important; -} - -.syntaxhighlighter .color3, -.syntaxhighlighter .color3 a -{ - color: #96DAFF !important; -} diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeMidnight.css b/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeMidnight.css deleted file mode 100644 index faf61854..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeMidnight.css +++ /dev/null @@ -1,175 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -/** - * Midnight SyntaxHighlighter theme based on theme by J.D. Myers - * http://webdesign.lsnjd.com/ - */ - -/************************************ - * Interface elements. - ************************************/ - -.syntaxhighlighter -{ - background-color: #0F192A !important; -} - -/* Gutter line numbers */ -.syntaxhighlighter .line .number -{ - color: #38566F !important; -} - -/* Add border to the lines */ -.syntaxhighlighter .line .content -{ - border-left: 3px solid #435A5F !important; - color: #B9BDB6 !important; -} - -.syntaxhighlighter.printing .line .content -{ - border: 0 !important; -} - -/* First line */ -.syntaxhighlighter .line.alt1 -{ - background-color: #0F192A !important; -} - -/* Second line */ -.syntaxhighlighter .line.alt2 -{ - background-color: #0F192A !important; -} - -/* Highlighed line number */ -.syntaxhighlighter .line.highlighted .number -{ - background-color: #253E5A !important; - color: #fff !important; -} - -/* Highlighed line */ -.syntaxhighlighter .line.highlighted.alt1, -.syntaxhighlighter .line.highlighted.alt2 -{ - background-color: #253E5A !important; -} - -.syntaxhighlighter .toolbar -{ - background-color: #0F192A !important; -} - -.syntaxhighlighter .toolbar a -{ - color: #38566F !important; -} - -.syntaxhighlighter .toolbar a:hover -{ - color: #8AA6C1 !important; -} - -/************************************ - * Actual syntax highlighter colors. - ************************************/ -.syntaxhighlighter .plain, -.syntaxhighlighter .plain a -{ - color: #D1EDFF !important; -} - -.syntaxhighlighter .comments, -.syntaxhighlighter .comments a -{ - color: #428BDD !important; -} - -.syntaxhighlighter .string, -.syntaxhighlighter .string a -{ - color: #1DC116 !important; -} - -.syntaxhighlighter .keyword -{ - color: #B43D3D !important; -} - -.syntaxhighlighter .preprocessor -{ - color: #8AA6C1 !important; -} - -.syntaxhighlighter .variable -{ - color: #FFAA3E !important; -} - -.syntaxhighlighter .value -{ - color: #F7E741 !important; -} - -.syntaxhighlighter .functions -{ - color: #FFAA3E !important; -} - -.syntaxhighlighter .constants -{ - color: #E0E8FF !important; -} - -.syntaxhighlighter .script -{ - background-color: #404040 !important; -} - -.syntaxhighlighter .color1, -.syntaxhighlighter .color1 a -{ - color: #F8BB00 !important; -} - -.syntaxhighlighter .color2, -.syntaxhighlighter .color2 a -{ - color: #FFFFFF !important; -} - -.syntaxhighlighter .color3, -.syntaxhighlighter .color3 a -{ - color: #FFAA3E !important; -} diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeRDark.css b/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeRDark.css deleted file mode 100644 index e87cdc1e..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeRDark.css +++ /dev/null @@ -1,175 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/ - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate - * - * @version - * 2.1.364 (October 15 2009) - * - * @copyright - * Copyright (C) 2004-2009 Alex Gorbatchev. - * - * @license - * This file is part of SyntaxHighlighter. - * - * SyntaxHighlighter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * SyntaxHighlighter is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with SyntaxHighlighter. If not, see . - */ -/** - * RDark SyntaxHighlighter theme based on theme by Radu Dineiu - * http://www.vim.org/scripts/script.php?script_id=1732 - */ - -/************************************ - * Interface elements. - ************************************/ - -.syntaxhighlighter -{ - background-color: #1B2426 !important; -} - -/* Gutter line numbers */ -.syntaxhighlighter .line .number -{ - color: #B9BDB6 !important; -} - -/* Add border to the lines */ -.syntaxhighlighter .line .content -{ - border-left: 3px solid #435A5F !important; - color: #B9BDB6 !important; -} - -.syntaxhighlighter.printing .line .content -{ - border: 0 !important; -} - -/* First line */ -.syntaxhighlighter .line.alt1 -{ - background-color: #1B2426 !important; -} - -/* Second line */ -.syntaxhighlighter .line.alt2 -{ - background-color: #1B2426 !important; -} - -/* Highlighed line number */ -.syntaxhighlighter .line.highlighted .number -{ - background-color: #435A5F !important; - color: #fff !important; -} - -/* Highlighed line */ -.syntaxhighlighter .line.highlighted.alt1, -.syntaxhighlighter .line.highlighted.alt2 -{ - background-color: #435A5F !important; -} - -.syntaxhighlighter .toolbar -{ - background-color: #1B2426 !important; -} - -.syntaxhighlighter .toolbar a -{ - color: #646763 !important; -} - -.syntaxhighlighter .toolbar a:hover -{ - color: #E0E8FF !important; -} - -/************************************ - * Actual syntax highlighter colors. - ************************************/ -.syntaxhighlighter .plain, -.syntaxhighlighter .plain a -{ - color: #B9BDB6 !important; -} - -.syntaxhighlighter .comments, -.syntaxhighlighter .comments a -{ - color: #878A85 !important; -} - -.syntaxhighlighter .string, -.syntaxhighlighter .string a -{ - color: #5CE638 !important; -} - -.syntaxhighlighter .keyword -{ - color: #5BA1CF !important; -} - -.syntaxhighlighter .preprocessor -{ - color: #435A5F !important; -} - -.syntaxhighlighter .variable -{ - color: #FFAA3E !important; -} - -.syntaxhighlighter .value -{ - color: #090 !important; -} - -.syntaxhighlighter .functions -{ - color: #FFAA3E !important; -} - -.syntaxhighlighter .constants -{ - color: #E0E8FF !important; -} - -.syntaxhighlighter .script -{ - background-color: #435A5F !important; -} - -.syntaxhighlighter .color1, -.syntaxhighlighter .color1 a -{ - color: #E0E8FF !important; -} - -.syntaxhighlighter .color2, -.syntaxhighlighter .color2 a -{ - color: #FFFFFF !important; -} - -.syntaxhighlighter .color3, -.syntaxhighlighter .color3 a -{ - color: #FFAA3E !important; -} diff --git a/plugins/syntaxhighlighter/syntaxhighlighter2/styles/wrapping.png b/plugins/syntaxhighlighter/syntaxhighlighter2/styles/wrapping.png deleted file mode 100644 index bc9924ac..00000000 Binary files a/plugins/syntaxhighlighter/syntaxhighlighter2/styles/wrapping.png and /dev/null differ diff --git a/plugins/syntaxhighlighter/syntaxhighlighter3/LGPL-LICENSE b/plugins/syntaxhighlighter/syntaxhighlighter3/LGPL-LICENSE deleted file mode 100644 index d74a4323..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter3/LGPL-LICENSE +++ /dev/null @@ -1,165 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - - This version of the GNU Lesser General Public License incorporates -the terms and conditions of version 3 of the GNU General Public -License, supplemented by the additional permissions listed below. - - 0. Additional Definitions. - - As used herein, "this License" refers to version 3 of the GNU Lesser -General Public License, and the "GNU GPL" refers to version 3 of the GNU -General Public License. - - "The Library" refers to a covered work governed by this License, -other than an Application or a Combined Work as defined below. - - An "Application" is any work that makes use of an interface provided -by the Library, but which is not otherwise based on the Library. -Defining a subclass of a class defined by the Library is deemed a mode -of using an interface provided by the Library. - - A "Combined Work" is a work produced by combining or linking an -Application with the Library. The particular version of the Library -with which the Combined Work was made is also called the "Linked -Version". - - The "Minimal Corresponding Source" for a Combined Work means the -Corresponding Source for the Combined Work, excluding any source code -for portions of the Combined Work that, considered in isolation, are -based on the Application, and not on the Linked Version. - - The "Corresponding Application Code" for a Combined Work means the -object code and/or source code for the Application, including any data -and utility programs needed for reproducing the Combined Work from the -Application, but excluding the System Libraries of the Combined Work. - - 1. Exception to Section 3 of the GNU GPL. - - You may convey a covered work under sections 3 and 4 of this License -without being bound by section 3 of the GNU GPL. - - 2. Conveying Modified Versions. - - If you modify a copy of the Library, and, in your modifications, a -facility refers to a function or data to be supplied by an Application -that uses the facility (other than as an argument passed when the -facility is invoked), then you may convey a copy of the modified -version: - - a) under this License, provided that you make a good faith effort to - ensure that, in the event an Application does not supply the - function or data, the facility still operates, and performs - whatever part of its purpose remains meaningful, or - - b) under the GNU GPL, with none of the additional permissions of - this License applicable to that copy. - - 3. Object Code Incorporating Material from Library Header Files. - - The object code form of an Application may incorporate material from -a header file that is part of the Library. You may convey such object -code under terms of your choice, provided that, if the incorporated -material is not limited to numerical parameters, data structure -layouts and accessors, or small macros, inline functions and templates -(ten or fewer lines in length), you do both of the following: - - a) Give prominent notice with each copy of the object code that the - Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the object code with a copy of the GNU GPL and this license - document. - - 4. Combined Works. - - You may convey a Combined Work under terms of your choice that, -taken together, effectively do not restrict modification of the -portions of the Library contained in the Combined Work and reverse -engineering for debugging such modifications, if you also do each of -the following: - - a) Give prominent notice with each copy of the Combined Work that - the Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the Combined Work with a copy of the GNU GPL and this license - document. - - c) For a Combined Work that displays copyright notices during - execution, include the copyright notice for the Library among - these notices, as well as a reference directing the user to the - copies of the GNU GPL and this license document. - - d) Do one of the following: - - 0) Convey the Minimal Corresponding Source under the terms of this - License, and the Corresponding Application Code in a form - suitable for, and under terms that permit, the user to - recombine or relink the Application with a modified version of - the Linked Version to produce a modified Combined Work, in the - manner specified by section 6 of the GNU GPL for conveying - Corresponding Source. - - 1) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (a) uses at run time - a copy of the Library already present on the user's computer - system, and (b) will operate properly with a modified version - of the Library that is interface-compatible with the Linked - Version. - - e) Provide Installation Information, but only if you would otherwise - be required to provide such information under section 6 of the - GNU GPL, and only to the extent that such information is - necessary to install and execute a modified version of the - Combined Work produced by recombining or relinking the - Application with a modified version of the Linked Version. (If - you use option 4d0, the Installation Information must accompany - the Minimal Corresponding Source and Corresponding Application - Code. If you use option 4d1, you must provide the Installation - Information in the manner specified by section 6 of the GNU GPL - for conveying Corresponding Source.) - - 5. Combined Libraries. - - You may place library facilities that are a work based on the -Library side by side in a single library together with other library -facilities that are not Applications and are not covered by this -License, and convey such a combined library under terms of your -choice, if you do both of the following: - - a) Accompany the combined library with a copy of the same work based - on the Library, uncombined with any other library facilities, - conveyed under the terms of this License. - - b) Give prominent notice with the combined library that part of it - is a work based on the Library, and explaining where to find the - accompanying uncombined form of the same work. - - 6. Revised Versions of the GNU Lesser General Public License. - - The Free Software Foundation may publish revised and/or new versions -of the GNU Lesser General Public License from time to time. Such new -versions will be similar in spirit to the present version, but may -differ in detail to address new problems or concerns. - - Each version is given a distinguishing version number. If the -Library as you received it specifies that a certain numbered version -of the GNU Lesser General Public License "or any later version" -applies to it, you have the option of following the terms and -conditions either of that published version or of any later version -published by the Free Software Foundation. If the Library as you -received it does not specify a version number of the GNU Lesser -General Public License, you may choose any version of the GNU Lesser -General Public License ever published by the Free Software Foundation. - - If the Library as you received it specifies that a proxy can decide -whether future versions of the GNU Lesser General Public License shall -apply, that proxy's public statement of acceptance of any version is -permanent authorization for you to choose that version for the -Library. \ No newline at end of file diff --git a/plugins/syntaxhighlighter/syntaxhighlighter3/MIT-LICENSE b/plugins/syntaxhighlighter/syntaxhighlighter3/MIT-LICENSE deleted file mode 100644 index e22afa43..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter3/MIT-LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2003, 2004 Jim Weirich - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shAutoloader.js b/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shAutoloader.js deleted file mode 100644 index 44ba19d0..00000000 --- a/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shAutoloader.js +++ /dev/null @@ -1,138 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT) - * - * @copyright - * Copyright (C) 2004-2013 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -(function() { - -var sh = SyntaxHighlighter; - -/** - * Provides functionality to dynamically load only the brushes that a needed to render the current page. - * - * There are two syntaxes that autoload understands. For example: - * - * SyntaxHighlighter.autoloader( - * [ 'applescript', 'Scripts/shBrushAppleScript.js' ], - * [ 'actionscript3', 'as3', 'Scripts/shBrushAS3.js' ] - * ); - * - * or a more easily comprehendable one: - * - * SyntaxHighlighter.autoloader( - * 'applescript Scripts/shBrushAppleScript.js', - * 'actionscript3 as3 Scripts/shBrushAS3.js' - * ); - */ -sh.autoloader = function() -{ - var list = arguments, - elements = sh.findElements(), - brushes = {}, - scripts = {}, - all = SyntaxHighlighter.all, - allCalled = false, - allParams = null, - i - ; - - SyntaxHighlighter.all = function(params) - { - allParams = params; - allCalled = true; - }; - - function addBrush(aliases, url) - { - for (var i = 0; i < aliases.length; i++) - brushes[aliases[i]] = url; - }; - - function getAliases(item) - { - return item.pop - ? item - : item.split(/\s+/) - ; - } - - // create table of aliases and script urls - for (i = 0; i < list.length; i++) - { - var aliases = getAliases(list[i]), - url = aliases.pop() - ; - - addBrush(aliases, url); - } - - // dynamically add