Changeset 1605209
- Timestamp:
- 02/28/2017 12:34:18 PM (9 years ago)
- Location:
- piwik-pro-tag-manager-integration
- Files:
-
- 73 added
- 5 deleted
- 10 edited
-
tags/2.0.0 (added)
-
tags/2.0.0/.htaccess (added)
-
tags/2.0.0/AUTHORS.txt (added)
-
tags/2.0.0/LICENSE.txt (added)
-
tags/2.0.0/README.txt (added)
-
tags/2.0.0/assets (added)
-
tags/2.0.0/assets/css (added)
-
tags/2.0.0/assets/css/index.html (added)
-
tags/2.0.0/assets/css/style.css (added)
-
tags/2.0.0/assets/index.html (added)
-
tags/2.0.0/assets/js (added)
-
tags/2.0.0/assets/js/index.html (added)
-
tags/2.0.0/assets/js/script.js (added)
-
tags/2.0.0/framework (added)
-
tags/2.0.0/framework/filterer.php (added)
-
tags/2.0.0/framework/index.html (added)
-
tags/2.0.0/framework/plugin.php (added)
-
tags/2.0.0/framework/singleton.php (added)
-
tags/2.0.0/includes (added)
-
tags/2.0.0/includes/body.php (added)
-
tags/2.0.0/includes/cron.php (added)
-
tags/2.0.0/includes/files.php (added)
-
tags/2.0.0/includes/functions.php (added)
-
tags/2.0.0/includes/head.php (added)
-
tags/2.0.0/includes/http.php (added)
-
tags/2.0.0/includes/index.html (added)
-
tags/2.0.0/includes/section.php (added)
-
tags/2.0.0/includes/settings.php (added)
-
tags/2.0.0/includes/tag-manager.php (added)
-
tags/2.0.0/index.html (added)
-
tags/2.0.0/languages (added)
-
tags/2.0.0/languages/index.html (added)
-
tags/2.0.0/languages/piwik-pro-tag-manager-integration-pl_PL.mo (added)
-
tags/2.0.0/languages/piwik-pro-tag-manager-integration-pl_PL.po (added)
-
tags/2.0.0/plugin.php (added)
-
tags/2.0.0/screenshot-1.png (added)
-
tags/2.0.0/screenshot-2.png (added)
-
tags/2.0.0/templates (added)
-
tags/2.0.0/templates/body.php (added)
-
tags/2.0.0/templates/code.php (added)
-
tags/2.0.0/templates/config.php (added)
-
tags/2.0.0/templates/cron.php (added)
-
tags/2.0.0/templates/head.php (added)
-
tags/2.0.0/templates/htaccess.php (added)
-
tags/2.0.0/templates/index.html (added)
-
tags/2.0.0/templates/input.php (added)
-
tags/2.0.0/templates/link.php (added)
-
tags/2.0.0/templates/menu.php (added)
-
tags/2.0.0/templates/notice.php (added)
-
tags/2.0.0/templates/page.php (added)
-
tags/2.0.0/templates/rules.php (added)
-
tags/2.0.0/templates/section.php (added)
-
trunk/README.txt (modified) (5 diffs)
-
trunk/framework (added)
-
trunk/framework/filterer.php (added)
-
trunk/framework/index.html (added)
-
trunk/framework/plugin.php (added)
-
trunk/framework/singleton.php (added)
-
trunk/includes/body.php (added)
-
trunk/includes/class-plugin.php (deleted)
-
trunk/includes/class-singleton.php (deleted)
-
trunk/includes/class-tag-manager.php (deleted)
-
trunk/includes/cron.php (added)
-
trunk/includes/files.php (added)
-
trunk/includes/functions.php (modified) (1 diff)
-
trunk/includes/head.php (added)
-
trunk/includes/http.php (added)
-
trunk/includes/section.php (added)
-
trunk/includes/settings.php (added)
-
trunk/includes/tag-manager.php (added)
-
trunk/languages/piwik-pro-tag-manager-integration-pl_PL.mo (modified) (previous)
-
trunk/languages/piwik-pro-tag-manager-integration-pl_PL.po (modified) (4 diffs)
-
trunk/plugin.php (modified) (3 diffs)
-
trunk/screenshot-1.png (modified) (previous)
-
trunk/templates/asynchronous.php (deleted)
-
trunk/templates/body.php (added)
-
trunk/templates/code.php (added)
-
trunk/templates/config.php (added)
-
trunk/templates/cron.php (added)
-
trunk/templates/head.php (added)
-
trunk/templates/htaccess.php (added)
-
trunk/templates/input.php (modified) (1 diff)
-
trunk/templates/menu.php (modified) (1 diff)
-
trunk/templates/notice.php (added)
-
trunk/templates/page.php (modified) (1 diff)
-
trunk/templates/rules.php (added)
-
trunk/templates/section.php (modified) (1 diff)
-
trunk/templates/synchronous.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
piwik-pro-tag-manager-integration/trunk/README.txt
r1571169 r1605209 3 3 Tags: Piwik PRO, Piwik, tag manager, Piwik Tag Manager, Piwik PRO Tag Manager, analytics 4 4 Requires at least: 4.7 5 Tested up to: 4.7 5 Tested up to: 4.7.2 6 6 Stable tag: trunk 7 7 License: GPLv3 … … 14 14 The WordPress Piwik PRO Tag Manager integration plugin allows you to include both the synchronous and asynchronous tags. When triggering the tags in a synchronous way, it adds the snippets of Piwik PRO Tag Manager’s code to the HTML head section. If you trigger them asynchronously, it places them directly after the opening body HTML tag. 15 15 16 All you have to do is provide your Piwik PRO Tag Manager server’s URL and the ID of the container.16 All you have to do is provide your Piwik PRO Tag Manager server’s URL and the UUID of the container. 17 17 18 18 _To learn more about which type of tags you should use (e.g. asynchronous or synchronous tags), read the [Tags](https://piwik.pro/docs/tag-manager-guides/tags/ "Piwik PRO Tag Manager - Tags Documentation") section in the Piwik PRO Tag Manager's documentation._ 19 19 20 The plugin gives you also the possibility to configure the order in which the snippets will be included. To do so, you only need to insert `wp_enqueue_script` handles as a dependencies via plugin’s settings page. However, this will work only with `wp_head` and/or `wp_body _open` method.20 The plugin gives you also the possibility to configure the order in which the snippets will be included. To do so, you only need to insert `wp_enqueue_script` handles as a dependencies via plugin’s settings page. However, this will work only with `wp_head` and/or `wp_body` method. 21 21 22 A useful addition is output buffering. Owing to this function, you can use the plugin with any WordPress theme. Use it if you are not sure whether the preferred methods `wp_head` and/or `wp_body_open` function has been added to your theme. 22 A useful addition is output buffering. Owing to this function, you can use the plugin with any WordPress theme. Use it if you are not sure whether the preferred methods `wp_head` and/or `wp_body` function has been added to your theme. 23 24 You can enable the Piwik PRO Tag Manager scripts caching and control the cache refresh interval - useful when applying the Cache-Busting strategy. 25 26 You can also enable or disable the version parameter in the query string for the scripts' URLs. 23 27 24 28 = What Makes Piwik PRO Tag Manager Stand Out = … … 61 65 = Once Activated = 62 66 63 Visit 'Settings > Piwik PRO Tag Manager Integration', add your server's URL in the 'Server URL' field, fill in the 'Container ID' field, and then decide where you would like to place the Piwik PRO Tag Manager snippet.67 Visit 'Settings > Piwik PRO Tag Manager Integration', add your server's URL in the 'Server URL' field, fill in the 'Container UUID' field, and then decide where you would like to place the Piwik PRO Tag Manager snippet. 64 68 65 69 **Please note** 66 70 67 71 * `wp_head` is the preferred location for firing synchronous tags (e.g. for A/B testing). 68 * `wp_body _open` is the preferred location for firing asynchronous tags.72 * `wp_body` is the preferred location for firing asynchronous tags. 69 73 70 74 To learn more about which type of tags you should use (e.g. asynchronous or synchronous tags), read the [Tags](https://piwik.pro/docs/tag-manager-guides/tags/ "Piwik PRO Tag Manager - Tags Documentation") section in the Piwik PRO Tag Manager's documentation. … … 79 83 == Frequently Asked Questions == 80 84 81 = How do I use the wp_body _openfunction? =85 = How do I use the wp_body function? = 82 86 83 87 Paste the following code directly after the opening `<body>` tag in your theme: 84 `<?php if ( function_exists( 'wp_body_open' ) ) : wp_body_open(); ?>`88 `<?php wp_body(); ?>` 85 89 86 = What's the difference between placing the Piwik PRO Tag Manager snippet in the wp_head or the wp_body _openlocations? =90 = What's the difference between placing the Piwik PRO Tag Manager snippet in the wp_head or the wp_body locations? = 87 91 88 92 * `wp_head` is the preferred location for firing synchronous tags (e.g. for A/B testing). 89 * `wp_body _open` is the preferred location for firing asynchronous tags.93 * `wp_body` is the preferred location for firing asynchronous tags. 90 94 91 95 _To learn more about which type of tags you should use (e.g. asynchronous or synchronous tags), read the [Tags](https://piwik.pro/docs/tag-manager-guides/tags/ "Piwik PRO Tag Manager - Tags Documentation") section in the Piwik PRO Tag Manager's documentation._ … … 93 97 = What are minimum requirements for the plugin? = 94 98 95 PHP interpreter version >= 5.3 99 * PHP interpreter version >= 5.3 100 * PHP Curl extension (for cache feature). 101 * Cron scheduler (for cache feature). 102 * Apache Server (for cache and rewrite feature). 103 * Apache mod_rewrite module (for cache and rewrite feature). 96 104 97 105 == Screenshots == 98 106 99 1. **WordPress General Settings** - Visit 'Settings > Piwik PRO Tag Manager integration', add your server's URL in the 'Server URL' field, fill in the 'Container ID' field, and then decide where you would like to place the Piwik PRO Tag Manager snippet (`wp_head` is the preferred location for firing synchronous tags – e.g. for A/B testing and `wp_head_open` is the preferred location for firing asynchronous tags).100 2. **Piwik PRO Tag Manager Containers Settings** - Visit 'Piwik PRO Tag Manager > Containers' and take note of the Container ID you want to implement into your site. Then, write that container ID in the 'ContainerID' field in your WordPress Dashboard.107 1. **WordPress General Settings** - Visit 'Settings > Piwik PRO Tag Manager integration', add your server's URL in the 'Server URL' field, fill in the 'Container UUID' field, and then decide where you would like to place the Piwik PRO Tag Manager snippet (`wp_head` is the preferred location for firing synchronous tags – e.g. for A/B testing and `wp_head_open` is the preferred location for firing asynchronous tags). 108 2. **Piwik PRO Tag Manager Containers Settings** - Visit 'Piwik PRO Tag Manager > Containers' and take note of the Container UUID you want to implement into your site. Then, write that container UUID in the 'Container UUID' field in your WordPress Dashboard. 101 109 102 110 == Changelog == 111 112 = 2.0.0 = 113 *Release date: 28.02.2017* 114 115 * Changed Container ID to UUID. 116 * Renamed the function `wp_body_open` to `wp_body`. 117 * Updated snippets templates. 118 * Added the cache feature. 119 * Added cache refreshing with wp_cron after the time interval selected. 120 * Added rewrite script's url feature. 121 * Added ver parameter to script's url query string with timestamp feature. 103 122 104 123 = 1.0.0 = -
piwik-pro-tag-manager-integration/trunk/includes/functions.php
r1571169 r1605209 27 27 28 28 if ( ! function_exists( 'wp_body_open' ) ) { 29 /* 30 * Deprecated function & action 31 */ 32 function wp_body_open() { 33 _deprecated_function( 'wp_body_open', '2.0.0', 'wp_body' ); 34 do_action_deprecated( 'wp_body_open', array(), '2.0.0', 'wp_body' ); 35 do_action( 'wp_body' ); 36 } 37 } 38 39 if ( ! function_exists( 'wp_body' ) ) { 29 40 /** 30 * Execute functions hooked on a specific custom action hook - 'wp_body _open'.41 * Execute functions hooked on a specific custom action hook - 'wp_body'. 31 42 * According to: https://core.trac.wordpress.org/ticket/12563 32 43 * Add the following code directly after the <body> tag in your theme: 33 * <?php if ( function_exists( 'wp_body_open' ) ) : wp_body_open(); ?>34 44 */ 35 function wp_body _open() {36 do_action( 'wp_body _open' );45 function wp_body() { 46 do_action( 'wp_body' ); 37 47 } 38 48 } -
piwik-pro-tag-manager-integration/trunk/languages/piwik-pro-tag-manager-integration-pl_PL.po
r1571169 r1605209 2 2 msgstr "" 3 3 "Project-Id-Version: Piwik PRO Tag Manager Integration\n" 4 "POT-Creation-Date: 201 6-12-27 14:18+0100\n"5 "PO-Revision-Date: 201 6-12-27 14:32+0100\n"4 "POT-Creation-Date: 2017-02-27 17:17+0100\n" 5 "PO-Revision-Date: 2017-02-27 17:17+0100\n" 6 6 "Last-Translator: Piotr Niewiadomski <[email protected]>\n" 7 7 "Language-Team: Piwik PRO | Piotr Niewiadomski <[email protected]>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "X-Generator: Poedit 1.8.1 1\n"12 "X-Generator: Poedit 1.8.12\n" 13 13 "X-Poedit-Basepath: ..\n" 14 14 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " … … 18 18 "X-Poedit-SearchPath-0: .\n" 19 19 20 #: includes/class-tag-manager.php:74 includes/class-tag-manager.php:349 21 msgid "Settings" 22 msgstr "Ustawienia" 23 24 #: includes/class-tag-manager.php:93 20 #: framework/plugin.php:135 25 21 msgid "Author" 26 22 msgstr "Autor" 27 23 28 #: includes/class-tag-manager.php:112 includes/class-tag-manager.php:116 29 #: includes/class-tag-manager.php:139 30 msgid "Piwik PRO Tag Manager integration" 31 msgstr "Integracja Piwik PRO Tag Manager" 32 33 #: includes/class-tag-manager.php:141 24 #: framework/plugin.php:150 25 msgid "Error" 26 msgstr "Błąd" 27 28 #: framework/plugin.php:151 29 msgid "Class" 30 msgstr "Klasa" 31 32 #: framework/plugin.php:152 33 msgid "Function" 34 msgstr "Funckja" 35 36 #: framework/singleton.php:30 framework/singleton.php:33 37 #: framework/singleton.php:37 38 msgid "Cheatin’ uh?" 39 msgstr "Oszukujemy, co?" 40 41 #: includes/cron.php:67 42 msgid "interval" 43 msgstr "interwał" 44 45 #: includes/files.php:92 46 msgid "Wrong response code" 47 msgstr "Błędny kod odpowiedzi" 48 49 #: includes/section.php:107 50 #, php-format 51 msgid "Dir: %s does not exists!" 52 msgstr "Folder: %s nie istnieje!" 53 54 #: includes/section.php:108 55 #, php-format 56 msgid "Dir: %s is not writable!" 57 msgstr "Folder: %s nie ma uprawnień do zapisu!" 58 59 #: includes/section.php:109 60 #, php-format 61 msgid "Dir: %s is not readable!" 62 msgstr "Folder: %s nie ma uprawnień do odczytu!" 63 64 #: includes/section.php:111 65 msgid "Server not supports URL rewriting." 66 msgstr "Serwer nie obsługuje przepisywania adresów." 67 68 #: includes/section.php:122 34 69 msgid "Server URL" 35 70 msgstr "URL Serwera" 36 71 37 #: includes/ class-tag-manager.php:155 includes/class-tag-manager.php:17572 #: includes/section.php:133 includes/section.php:150 38 73 #, php-format 39 74 msgid "Learn more about %s on the Piwik PRO Tag Manager documentation page." 40 75 msgstr "Dowiedz się więcej o %s na stronie dokumentacji Piwik PRO Tag Manager." 41 76 42 #: includes/ class-tag-manager.php:15677 #: includes/section.php:134 43 78 msgid "Getting started" 44 79 msgstr "Jak zacząć" 45 80 46 #: includes/ class-tag-manager.php:16147 msgid "Container ID"48 msgstr " ID Kontenera"49 50 #: includes/ class-tag-manager.php:17681 #: includes/section.php:139 82 msgid "Container UUID" 83 msgstr "UUID Kontenera" 84 85 #: includes/section.php:151 51 86 msgid "Containers" 52 87 msgstr "Kontenerach" 53 88 54 #: includes/class-tag-manager.php:181 55 msgid "Include tags synchronous" 56 msgstr "Umieść tagi synchronicznie" 57 58 #: includes/class-tag-manager.php:194 59 msgid "Preferred method" 60 msgstr "Preferowana metoda" 61 62 #: includes/class-tag-manager.php:209 includes/class-tag-manager.php:274 63 msgid "Dependencies" 64 msgstr "Zależności" 65 66 #: includes/class-tag-manager.php:212 includes/class-tag-manager.php:277 67 #, php-format 68 msgid "Comma separated %s handles. Works only with %s method." 69 msgstr "" 70 "Rozdzielone przecinkami identyfikatory funkcji %s. Działa jedynie z metodą " 71 "%s." 72 73 #: includes/class-tag-manager.php:233 89 #: includes/section.php:156 90 msgid "Method" 91 msgstr "Metoda" 92 93 #: includes/section.php:168 94 #, php-format 95 msgid "Paste the following code after %s tag in your theme: %s." 96 msgstr "Wklej następujący kod po znaczniku %s Twojego motywu: %s." 97 98 #: includes/section.php:169 99 msgid "Preferred method." 100 msgstr "Preferowana metoda." 101 102 #: includes/section.php:188 74 103 #, php-format 75 104 msgid "" … … 80 109 "motywie." 81 110 82 #: includes/class-tag-manager.php:234 111 #: includes/section.php:189 112 #, php-format 113 msgid "It will add snippet in %s section using %s." 114 msgstr "Skrypt zostanie dodany w sekcji %s przy użyciu %s." 115 116 #: includes/section.php:197 117 msgid "Dependencies" 118 msgstr "Zależności" 119 120 #: includes/section.php:208 121 #, php-format 122 msgid "Comma separated %s handles. Works only with %s method." 123 msgstr "" 124 "Rozdzielone przecinkami identyfikatory funkcji %s. Działa jedynie z metodą " 125 "%s." 126 127 #: includes/section.php:215 128 msgid "Cache" 129 msgstr "Pamięć podręczna" 130 131 #: includes/section.php:225 includes/section.php:337 132 msgid "enable/disable" 133 msgstr "włącz/wyłącz" 134 135 #: includes/section.php:227 136 msgid "Use this option if you want to serve the script from a cached file" 137 msgstr "Użyj tej opcji jeśli chcesz serwować skrypt z pamięci podręcznej." 138 139 #: includes/section.php:241 140 #, php-format 141 msgid "Preferred method is to disable %s and add a task to cron on the server." 142 msgstr "" 143 "Preferowaną metodą jest wyłączenie harmonogramu %s i dodanie zadania do " 144 "harmonogramu cron na serwerze." 145 146 #: includes/section.php:246 147 msgid "Add the following constant to" 148 msgstr "Dodaj następującą stałą do" 149 150 #: includes/section.php:251 151 msgid "Add the following task to your cron jobs" 152 msgstr "Dodaj następujące zadanie do harmonogramu cron" 153 154 #: includes/section.php:265 155 msgid "minutes" 156 msgstr "minut" 157 158 #: includes/section.php:267 159 msgid "Set refresh the cache interval." 160 msgstr "Ustaw interwał czasowy odświeżania pamięci podręcznej." 161 162 #: includes/section.php:285 163 msgid "Add the following rules at the beginning of this file" 164 msgstr "Dodaj następujące reguły na początku pliku" 165 166 #: includes/section.php:301 167 msgid "rewrite" 168 msgstr "przepisz" 169 170 #: includes/section.php:303 171 msgid "Use this option if you want to rewrite the script's url to" 172 msgstr "Użyj tej opcji jeśli chcesz przepisać adres skryptu na" 173 174 #: includes/section.php:319 175 msgid "clear" 176 msgstr "wyczyść" 177 178 #: includes/section.php:321 179 msgid "Delete all the cached files and directories from" 180 msgstr "Usuń wszystkie pliki i foldery z pamięci podręcznej" 181 182 #: includes/section.php:327 183 msgid "Version" 184 msgstr "Wersia" 185 186 #: includes/section.php:339 83 187 #, php-format 84 188 msgid "" 85 "It will add the Piwik PRO Tag Manager snippet directly before the %s tag " 86 "using %s." 87 msgstr "" 88 "Spowoduje to dodanie skryptu Piwik PRO Tag Manager bezpośrednio przed " 89 "znacznikiem %s za pomocą %s." 90 91 #: includes/class-tag-manager.php:242 92 msgid "Include tags asynchronous" 93 msgstr "Umieść tagi asynchronicznie" 94 95 #: includes/class-tag-manager.php:256 96 #, php-format 97 msgid "" 98 "Add the following code directly after the %s tag in your theme (preferred " 99 "method)" 100 msgstr "" 101 "Dodaj poniższy kod bezpośrednio po znaczniku %s w swoim motywie (preferowana " 102 "metoda)" 103 104 #: includes/class-tag-manager.php:298 105 #, php-format 106 msgid "Use this option if you cannot add the %s function to your theme." 107 msgstr "Użyj tej opcji jeśli nie możesz dodać funkcji %s do swojego motywu." 108 109 #: includes/class-tag-manager.php:299 110 #, php-format 111 msgid "" 112 "It will add the Piwik PRO Tag Manager snippet directly after the %s tag " 113 "using %s." 114 msgstr "" 115 "Spowoduje to dodanie skryptu Piwik PRO Tag Manager bezpośrednio po znaczniku " 116 "%s za pomocą %s." 189 "Add the %s parameter in the query string for the scripts' url with the " 190 "timestamp." 191 msgstr "Dodaj parametr %s ze znacznikiem czasu do adresu url skryptu." 192 193 #: includes/section.php:349 includes/settings.php:64 194 #, php-format 195 msgid "Include tags in %s section" 196 msgstr "Dodaj tagi do sekcji %s" 197 198 #: includes/settings.php:48 includes/settings.php:51 199 msgid "Piwik PRO Tag Manager integration" 200 msgstr "Integracja Piwik PRO Tag Manager" 201 202 #: includes/settings.php:69 includes/tag-manager.php:85 203 msgid "Settings" 204 msgstr "Ustawienia" 205 206 #~ msgid "Container ID" 207 #~ msgstr "ID Kontenera" 208 209 #~ msgid "Include tags synchronous" 210 #~ msgstr "Umieść tagi synchronicznie" 211 212 #~ msgid "Preferred method" 213 #~ msgstr "Preferowana metoda" 214 215 #~ msgid "" 216 #~ "It will add the Piwik PRO Tag Manager snippet directly before the %s tag " 217 #~ "using %s." 218 #~ msgstr "" 219 #~ "Spowoduje to dodanie skryptu Piwik PRO Tag Manager bezpośrednio przed " 220 #~ "znacznikiem %s za pomocą %s." 221 222 #~ msgid "Include tags asynchronous" 223 #~ msgstr "Umieść tagi asynchronicznie" 224 225 #~ msgid "" 226 #~ "Add the following code directly after the %s tag in your theme (preferred " 227 #~ "method)" 228 #~ msgstr "" 229 #~ "Dodaj poniższy kod bezpośrednio po znaczniku %s w swoim motywie " 230 #~ "(preferowana metoda)" 231 232 #~ msgid "Use this option if you cannot add the %s function to your theme." 233 #~ msgstr "Użyj tej opcji jeśli nie możesz dodać funkcji %s do swojego motywu." 234 235 #~ msgid "" 236 #~ "It will add the Piwik PRO Tag Manager snippet directly after the %s tag " 237 #~ "using %s." 238 #~ msgstr "" 239 #~ "Spowoduje to dodanie skryptu Piwik PRO Tag Manager bezpośrednio po " 240 #~ "znaczniku %s za pomocą %s." 117 241 118 242 #~ msgid "7tag Settings" -
piwik-pro-tag-manager-integration/trunk/plugin.php
r1571169 r1605209 5 5 Plugin URI: https://wordpress.org/plugins/piwik-pro-tag-manager-integration 6 6 Description: The plugin integrates WordPress site with Piwik PRO Tag Manager, allowing to add/modify website’s tags without the need to involve IT department. 7 Version: 1.0.07 Version: 2.0.0 8 8 Author: piwikpro 9 9 Author URI: https://piwik.pro … … 36 36 37 37 use PiwikPRO\Tag_Manager; 38 use Exception; 38 39 39 40 if ( ! defined( 'ABSPATH' ) ) { … … 45 46 } 46 47 47 foreach ( array( ' class-singleton.php', 'class-plugin.php', 'class-tag-manager.php', 'functions.php' ) as $file ) {48 require_once( plugin_dir_path( __FILE__ ) . 'includes/' . $file);48 foreach ( array( 'singleton', 'filterer', 'plugin' ) as $file ) { 49 require_once( __DIR__ . "/framework/$file.php" ); 49 50 } 50 51 51 if ( ! has_action( Tag_Manager::get( 'slug' ) )) {52 do_action( Tag_Manager::get( 'slug' ), Tag_Manager::instance());52 foreach ( array( 'tag-manager', 'functions' ) as $file ) { 53 require_once( __DIR__ . "/includes/$file.php" ); 53 54 } 55 56 try { 57 spl_autoload_register( __NAMESPACE__ . '::autoload' ); 58 59 if ( ! has_action( __NAMESPACE__ ) ) { 60 do_action( __NAMESPACE__, Tag_Manager::instance( __FILE__ ) ); 61 } 62 } catch ( Exception $exception ) { 63 if ( WP_DEBUG && WP_DEBUG_DISPLAY ) { 64 echo $exception->getMessage(); 65 } 66 } -
piwik-pro-tag-manager-integration/trunk/templates/input.php
r1571169 r1605209 2 2 <label> 3 3 <?php if ( ! empty( $before ) ) : ?><?= $before; ?><?php endif; ?> 4 <input <?php if ( ! empty( $att rs ) ) : ?><?= $attrs; ?><?php endif; ?><?php if ( ! empty( $checked ) ) : ?> <?= $checked; ?><?php endif; ?>/>4 <input <?php if ( ! empty( $atts ) ) : ?><?= $atts; ?><?php endif; ?><?php if ( ! empty( $checked ) ) : ?> <?= $checked; ?><?php endif; ?>/> 5 5 <?php if ( ! empty( $after ) ) : ?><?= $after; ?><?php endif; ?> 6 6 </label> -
piwik-pro-tag-manager-integration/trunk/templates/menu.php
r1571169 r1605209 1 1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?> 2 <div id="<?= $id; ?>"class="<?= $class; ?>"> <?= $content; ?></div>2 <div class="<?= $class; ?>"> <?= $content; ?></div> -
piwik-pro-tag-manager-integration/trunk/templates/page.php
r1571169 r1605209 1 1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?> 2 2 <div class="wrap"> 3 <h1><?= $title; ?></h1> 4 <p><?= $content; ?></p> 5 <h2 class="nav-tab-wrapper"> 6 <?php foreach( $sections as $tab => $label ) : ?> 7 <a href="<?= $url; ?>&tab=<?= $tab; ?>" class="nav-tab<?= $tab === $section ? ' nav-tab-active' : ''; ?>"><?= $label; ?></a> 8 <?php endforeach; ?> 9 </h2> 3 10 <form method="post" action="options.php"> 4 11 <?php 5 settings_fields( $ fields);6 do_settings_sections( $section s);12 settings_fields( $section ); 13 do_settings_sections( $section ); 7 14 submit_button(); 8 15 ?> -
piwik-pro-tag-manager-integration/trunk/templates/section.php
r1571169 r1605209 1 1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?> 2 <?php if ( ! empty( $content ) ) : ?> 3 <p> 4 <?= $content; ?> 5 </p> 6 <?php endif; ?> 2 <?php if ( ! empty( $content ) ) : ?><p><?= $content; ?></p><?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.