2017 © Pedro Peláez
 

library privacy-policy

Quick, drop-in privacy policy

image

rtmatt/privacy-policy

Quick, drop-in privacy policy

  • Tuesday, June 14, 2016
  • by RTMatt
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Dependencies

  • jQuery(loaded before any calls to components)
  • Bootstrap Modal CSS (see below)

Installation

via composer:, (*1)

``` bash composer require rtmatt/privacy-policy, (*2)


Add to configuration file (above route service provider) ``` php RTMatt\PrivacyPolicy\Providers\PrivacyPolicyServiceProvider::class

Publish Config

``` bash php artisan vendor:publish --provider="RTMatt\PrivacyPolicy\Providers\PrivacyPolicyServiceProvider" --tag="config", (*3)


## Modal Usage Include the modal and the link in the appropriate layout file (jQuery required, bootstrap will be included if it's not already) ``` blade //Put this wherever it should show in the layout @include('rtprivacypolicy::link') //... //Include this near the closing body tag @include('rtprivacypolicy::modal')

If you want the modal to not look like a pile of shit (read:work stylisitically) you will need to include bootstraps modal css somewhere and somehow., (*4)

OVERRIDE VIEW

Make a file in, (*5)

/resources/views/vendor/rtprivacypolicy/privacy-policy.blade.php

Configuration

php 'business_name' => '[ENTER BUSINESS NAME HERE]', //business name for display in PP 'contact_email' => '[ENTER CONTACT EMAIL ADDRESS HERE]', //contact email for display in PP 'contact_phone' => '[ENTER PHONE NUMBER HERE]', // contact phone for display in PP 'site_url' => url('/'), //site url for display in PP 'master_layout' => 'rtprivacypolicy::blank', //Layout for the PP content to extend (when register route active) 'section_name' => 'content', // section name within master page for PP content 'register_route' => false, //resister route for PP to display on own page 'link_text' => 'Terms & Privacy' // the text to display in the modal link when included as a modal, (*6)

The Versions

14/06 2016

dev-master

9999999-dev

Quick, drop-in privacy policy

  Sources   Download

by Matt Emrick

14/06 2016

0.0.2

0.0.2.0

Quick, drop-in privacy policy

  Sources   Download

by Matt Emrick

14/06 2016

0.0.1

0.0.1.0

Quick, drop-in privacy policy

  Sources   Download

by Matt Emrick

14/06 2016

0.0.0

0.0.0.0

Quick, drop-in privacy policy

  Sources   Download

by Matt Emrick