<commit_before><?php
// (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

function wikiplugin_center_info()
{
	return array(
		'name' => tra('Center'),
		'documentation' => 'PluginCenter',
		'description' => tra('Center text'),
		'prefs' => array('wikiplugin_center'),
		'body' => tra('text'),
		'icon' => 'img/icons/text_align_center.png',
		'filter' => 'wikicontent',
		'tags' => array( 'basic' ),		
		'params' => array(
		),
	);
}

function wikiplugin_center($data, $params)
{
	global $tikilib;

	extract($params, EXTR_SKIP);
	$data = '<div align="center">' . trim($data). '</div>';
	return $data;
}<commit_msg> [FIX] use iconsets; add missing introduced setting; use CSS styling instead of deprecated align attribute<commit_after><?php
// (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

function wikiplugin_center_info()
{
	return array(
		'name' => tra('Center'),
		'documentation' => 'PluginCenter',
		'description' => tra('Center text'),
		'prefs' => array('wikiplugin_center'),
		'body' => tra('text'),
		'iconname' => 'align-center',
		'filter' => 'wikicontent',
		'tags' => array( 'basic' ),
		'introduced' => 1,
		'params' => array(
		),
	);
}

function wikiplugin_center($data, $params)
{
	$data = '<div style="text-align:center">' . trim($data). '</div>';
	return $data;
}
{'fraction_non_alphanumeric': 0.17126099706744868, 'fraction_numerical': 0.00997067448680352, 'mean_word_length': 4.347962382445141, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2542054', 'n_tokens_mistral': 605, 'n_tokens_neox': 562, 'n_words': 167}