Code Monkey home page Code Monkey logo

0edfbb996b6fd248dfdc653fdbae890a0a440bd1d1e2c5fbffb0f16cb54dc705's Introduction

Mozilla Latest Version

Mozilla Latest Version WordPress plugin automatically checks the Mozilla application JSONs so you can always have the latest download link and version number on your website.

Settings

The plugin settings you can find in WordPress Admin -> Options -> MOZLV Settings.

  • Cache type: You can choose from two options. WordPress Transients API cache uses database to store the informations about the application version, or Files.
  • Cache expiration: This option sets the cache expiration in seconds (default 3600 = 1 hour).
  • Link language code: Here you can specify the language code for your download and other links. More information about the codes you can find in this Mozilla Wiki page.

How to use it?

There are currently four shortcodes added by this plugin. And three more additional for easier migration from the Mozilla.sk CMS Plugin without need of any content change. Here are explained all of them with their attributes.

Shortcodes

  • [mozilla-latest-version product=product] - the latest version number of the specified product These URL shortcodes below work also as enclosing. Using [shortcode]...[/shortcode] will produce HTML link <a href="URL">...</a> instead of an URL string.
  • [mozilla-latest-download-url product=product platform=platform] - download URL of the latest version of the specified product for platform
  • [mozilla-latest-langpack-url product=product platform=platform] - download URL of the latest langpack (.xpi) for the specified product and platform (not available for fennec)
  • [mozilla-latest-changelog-url product=product] - changelog page URL for the latest version of the specified product
  • [mozilla-latest-requirements-url product=product] - requirements page URL for the latest version of the specified product

Shortcodes for easier migration from the Mozilla.sk CMS Plugin.

The Mozilla.sk CMS plugin shortcodes work as self-closing only.

  • [moz-download-version app=product] = [mozilla-latest-version product=product]
  • [moz-download-url app=product platform=platform] = [mozilla-latest-download-url product=product platform=platform]
  • [moz-download-rn app=product] = [mozilla-latest-changelog-url product=product]

Including directly into the WordPress template

Simply use do_shortcode() function.

Attributes

  • product possible values are firefox for desktop, fennec or mobile for Android, ios for iOS, thunderbird and seamonkey
  • platform specifies the platform for download links. Possible values are win, win64, linux, lin, linux64, lin64, osx and mac
  • channel specifies the channel of product are is product dependent (if no specified, release will be used)

Channel

  • Firefox: release, beta, devedition, nightly, esr
  • Mobile: release, beta, nightly
  • iOS: release, beta
  • Thundebird: release, beta
  • SeaMonkey: release, beta

0edfbb996b6fd248dfdc653fdbae890a0a440bd1d1e2c5fbffb0f16cb54dc705's People

Contributors

mikkcz avatar mozilla-github-standards avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.