WP Manifestindependent plugin directory
manifest / utilities / region-halland-mixed-functions

Region Halland Mixed Functions archived

Front-end-plugin med olika användbara funktioner

by Roland Hydén · github.com/regionhalland/region-halland-mixed-functions

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/regionhalland/region-halland-mixed-functions/archive/refs/heads/master.zip

Readme

Front-end-plugin med olika användbara funktioner

Hur man använder Region Hallands plugin "region-halland-mixed-functions"

Nedan följer instruktioner hur du kan använda pluginet "region-halland-mixed-functions".

Användningsområde

Denna plugin innehåller flera användbara funktioner som gör nytta i front-end

Licensmodell

Denna plugin använder licensmodell GPL-3.0. Du kan läsa mer om denna licensmodell via den medföljande filen:

LICENSE (https://github.com/RegionHalland/region-halland-mixed-functions/blob/master/LICENSE)

Installation och aktivering

A) Hämta pluginen via Git eller läs in det med Composer
B) Installera Region Hallands plugin i Wordpress plugin folder
C) Aktivera pluginet inifrån Wordpress admin

Hämta hem pluginet via Git

git clone https://github.com/RegionHalland/region-halland-mixed-functions.git

Läs in pluginen via composer

Dessa två delar behöver du lägga in i din composer-fil

Repositories = var pluginen är lagrad, i detta fall på github

"repositories": [
  {
    "type": "vcs",
    "url": "https://github.com/RegionHalland/region-halland-mixed-functions.git"
  },
],

Require = anger vilken version av pluginen du vill använda, i detta fall version 1.0.0

OBS! Justera så att du hämtar aktuell version.

"require": {
  "regionhalland/region-halland-mixed-functions": "1.0.0"
},

Använda funktionen "region_halland_remove_shortcode" på en sida via "Blade"

<p>
  {{ region_halland_remove_shortcode($page->post_content) }}
</p>

Använda funktionen "region_halland_switch_http_https" på en sida via "Blade"

  • Beroende av värde för env-variabeln env('WP_ENV')
  • Om denna är satt till 'production' ersätts alla http med https
  • Är värdet något annan ersätts alla https med http
<p>
  {{ region_halland_switch_http_https($page->url) }}
</p>

Versionhistorik

1.2.0

  • Lagt till information om licensmodell
  • Bifogat fil med licensmodell

1.1.0

  • Funktion för att ersätta http med https och tvärtom beroende på värde i env('WP_ENV')

1.0.0

  • Första version
  • Funktion för att ta bort shortcodes från en text

Read the full README on GitHub →

Releases

TagPublished
v1.2.0 Aug 6, 2019
v1.1.0 Apr 15, 2019
v1.0.0 Jan 31, 2019

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.