Compare commits

...

1 Commits
v1.4.3 ... main

Author SHA1 Message Date
Tilman Kranz
fb5d9a8f52 tab vs space cleanup 2022-08-28 13:02:39 +02:00

View File

@ -10,18 +10,18 @@ Author URI: https://tk-sls.de
*/ */
class LinuxfooGitlab { class LinuxfooGitlab {
public function __construct() { public function __construct() {
} }
static function load_textdomain() { static function load_textdomain() {
load_plugin_textdomain('linuxfoo-gitlab', false, dirname(plugin_basename(__FILE__)).'/lang'); load_plugin_textdomain('linuxfoo-gitlab', false, dirname(plugin_basename(__FILE__)).'/lang');
} }
static function css() { static function css() {
wp_enqueue_style('linuxfoo_gitlab_css', plugins_url('styles.css', __FILE__ ), '', '1.4' ); wp_enqueue_style('linuxfoo_gitlab_css', plugins_url('styles.css', __FILE__ ), '', '1.4' );
} }
static function error ( $msg ) { static function error ( $msg ) {
return return
'<span class="error">'. '<span class="error">'.
$msg. $msg.
@ -84,7 +84,7 @@ class LinuxfooGitlab {
(is_null($atts['since']) ? '' : ' '.self::format_since($atts['since'])).':'; (is_null($atts['since']) ? '' : ' '.self::format_since($atts['since'])).':';
} }
static function commits_list($atts, $project_url) { static function commits_list($atts, $project_url) {
$since = null; $since = null;
if($atts['commits']=='none') { if($atts['commits']=='none') {
@ -158,7 +158,7 @@ class LinuxfooGitlab {
return $out; return $out;
} }
static function releases_list($atts, $project_url) { static function releases_list($atts, $project_url) {
$out = ''; $out = '';
if(is_null($atts['releases']) || $atts['releases']=='none') { if(is_null($atts['releases']) || $atts['releases']=='none') {
@ -217,12 +217,12 @@ class LinuxfooGitlab {
return $out; return $out;
} }
static function list_commits($atts, $content, $tag) { static function list_commits($atts, $content, $tag) {
return self::show_project($atts, $content, $tag); return self::show_project($atts, $content, $tag);
} }
static function show_project($atts, $content, $tag) { static function show_project($atts, $content, $tag) {
global $post; global $post;
$out = '<span class="linuxfoo_gitlab">'; $out = '<span class="linuxfoo_gitlab">';