9 Revize f2c6fa8682 ... 74a13f09e3

Autor SHA1 Zpráva Datum
  Paul 74a13f09e3 Fixed #2 před 9 roky
  Paul dc0f7ce901 css improvements před 9 roky
  Paul efeb2793a3 gift.png -> assets/ před 9 roky
  Paul f808f3bc77 category.php: use product image před 9 roky
  Paul 291bf0e9c0 style.css: show menubar on product pages před 9 roky
  Paul ba2b2cc1bd No breadcrumbs on product pages před 9 roky
  Paul 0a642806dc Bezig met #10 před 9 roky
  Paul 957756124f error-dumper: Handle exceptions only před 9 roky
  Paul 7218af489d error-dumper: updated, added license file před 9 roky

gift.png → assets/gift.png


+ 5 - 0
functions.php

@@ -118,6 +118,11 @@ namespace ITSociaal\Themes\Houtgrutter
 		wp_enqueue_script("avia-default", "$base_uri/assets/avia.js", ["jquery"], 3, false);
 		wp_enqueue_script("avia-shortcodes", "$base_uri/assets/shortcodes.js", ["jquery"], 3, false);
 	}, 1024);
+
+	\add_action("ava_after_main_title", function() {
+		if (is_shopp_catalog_frontpage ())
+			TemplateController::main("laura/advertentie");
+	}, 1024);
 }
 
 /* vi:set ts=4 sw=4 noet: */

+ 0 - 2
lib/error-dumper/.gitignore

@@ -1,2 +0,0 @@
-.idea
-.DS_Store

+ 19 - 0
lib/error-dumper/COPYING

@@ -0,0 +1,19 @@
+Copyright (c) 2016 Bartłomiej Krukowski <bartlomiej@krukowski.me>
+
+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.

+ 0 - 26
lib/error-dumper/composer.json

@@ -1,26 +0,0 @@
-{
-  "name": "bkrukowski/error-dumper",
-  "description": "Pretty errors and exceptions in PHP.",
-  "license": "MIT",
-  "authors": [
-    {
-      "name": "Bartłomiej Krukowski",
-      "email": "bartlomiej@krukowski.me"
-    }
-  ],
-  "require": {
-    "php": ">=5.3"
-  },
-  "suggest": {
-    "symfony/var-dumper": "Pretty var_dump without xdebug."
-  },
-  "require-dev": {
-    "phpunit/phpunit": "4.*"
-  },
-  "autoload": {
-    "psr-4": {
-      "ErrorDumper\\": "src/",
-      "ErrorDumper\\Tests\\": "tests/"
-    }
-  }
-}

+ 0 - 83
lib/error-dumper/readme.md

@@ -1,83 +0,0 @@
-# Pretty error dumper for PHP
-
-## Requirements
-
-* PHP >= 5.3 (also 7.0 is supported)
-* no dependencies
-* for nicer dump of variables you can add **symfony/var-dumper** to project
-
-## Tests
-
-100% code coverage with PHPUnit.
-
-## Installation
-
-### If you use composer
-
-Add **bkrukowski/error-dumper** to dependencies.
-
-### In other cases
-
-Add below code to project:
-
-```php
-$pathToLib = 'here put path to error-dumper library';
-include $pathToLib . 'src' . DIRECTORY_SEPARATOR . 'autoload.inc.php';
-```
-
-## Usage
-
-**[Unsafe]** Below code is enough:
-
-```php
-\ErrorDumper\Magic::registerErrorDumper();
-```
-
-**[Safe]** But you should write something like this (because **all variables like credentials are visible**, when exception or error occur)
-
-```php
-if ($isInTestEnvironment)
-{
-    \ErrorDumper\Magic::registerErrorDumper();
-}
-else
-{
-    \ErrorDumper\Magic::registerErrorCallback(function ($e) {
-        /** @var \Exception|\Throwable $e */
-        // save error somewhere
-        exit(1);
-    });
-}
-```
-
-## Editors
-
-Numbers of lines and names of files are clickable, but you have to set proper editor. Default editor is PhpStorm. If you use something else, put edtor object as argument in `registerErrorDumper` method.
-
-```php
-\ErrorDumper\Magic::registerErrorDumper(new \ErrorDumper\Editors\MacVim());
-```
-
-### Supported editors
-
-* MacVim
-* PhpStorm
-* TextMate
-
-## Snapshots
-
-Using below code, you can save exception somewhere and display it later:
-
-```php
-$output = \ErrorDumper\Magic::exportExceptionToLightHtml($exception);
-```
-
-## Preview
-
-### Error
-
-![Preview exception](resources/img/preview-exception.png)
-
-### Arguments
-
-![Preview arguments](resources/img/preview-arguments.png)

+ 1 - 1
lib/error-dumper/src/Console/Printer.php

@@ -94,4 +94,4 @@ class Printer implements PrinterInterface
     {
         fputs($this->stream, $text);
     }
-}
+}

+ 1 - 1
lib/error-dumper/src/Console/PrinterInterface.php

@@ -33,4 +33,4 @@ interface PrinterInterface
      * @return PrinterInterface
      */
     public function warningBox($text);
-}
+}

+ 1 - 1
lib/error-dumper/src/DumpFunctions/Detector.php

@@ -19,4 +19,4 @@ class Detector
 
         return new InternalVarDumper();
     }
-}
+}

+ 0 - 0
lib/error-dumper/src/DumpFunctions/DumpFunctionInterface.php


Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů