updated plugin Connect Matomo version 1.1.5

This commit is contained in:
2026-06-03 21:28:54 +00:00
committed by Gitium
parent 6e8ffa6f66
commit 1f3438440f
78 changed files with 13800 additions and 5314 deletions

View File

@ -1,28 +1,34 @@
<?php
namespace WP_Piwik;
class Shortcode {
private $available = array(
'opt-out' => 'OptOut',
'post' => 'Post',
'overview' => 'Overview'
), $content;
public function __construct($attributes, $wpPiwik, $settings) {
$wpPiwik->log('Check requested shortcode widget '.$attributes['module']);
if (isset($attributes['module']) && isset($this->available[$attributes['module']])) {
$wpPiwik->log('Add shortcode widget '.$this->available[$attributes['module']]);
$class = '\\WP_Piwik\\Widget\\'.$this->available[$attributes['module']];
$widget = new $class($wpPiwik, $settings, null, null, null, $attributes, true);
$widget->show();
$this->content = $widget->get();
}
namespace WP_Piwik;
class Shortcode {
private $available = array(
'opt-out' => 'OptOut',
'post' => 'Post',
'overview' => 'Overview',
);
private $content;
/**
* @param array $attributes
* @param \WP_Piwik $wp_piwik
* @param Settings $settings
*/
public function __construct( $attributes, $wp_piwik, $settings ) {
$wp_piwik->log( 'Check requested shortcode widget ' . $attributes['module'] );
if ( isset( $attributes['module'] ) && isset( $this->available[ $attributes['module'] ] ) ) {
$wp_piwik->log( 'Add shortcode widget ' . $this->available[ $attributes['module'] ] );
$class = '\\WP_Piwik\\Widget\\' . $this->available[ $attributes['module'] ];
$widget = new $class( $wp_piwik, $settings, null, null, null, $attributes, true );
$widget->show();
$this->content = $widget->get();
}
public function get() {
return $this->content;
}
}
}
public function get() {
return $this->content;
}
}