<commit_before><?php
/* $Id $
 * 
 * return the attributes for a standard tiki page body tag
 * jonnyb refactoring for tiki5
 * 
 */

function smarty_function_html_body_attributes($params, &$smarty) {
	global $section, $prefs, $cookietab, $page, $smarty, $tiki_p_edit, $section_class;
	
	$back = '';
	$onload = '';
	$class = '';
	
	$dblclickedit = $smarty->get_template_vars('dblclickedit');
	
	if (isset($section) && $section == 'wiki page' && $prefs['user_dbl'] == 'y' and $dblclickedit == 'y' and $tiki_p_edit == 'y') {
		$back .= ' ondblclick="location.href=\'tiki-editpage.php?page='.rawurlencode($page).'\';"';
	}
	
	if ($prefs['feature_tabs'] == 'y') {
		$onload .= 'tikitabs('.$cookietab.',50);';
	}
	
	// this appears to be unused - smarty var $msgError is never assigned 
	// {if $msgError} javascript:location.hash='msgError'{/if}"
	
	if (isset($section_class)) {
		$class .= 'tiki '.$section_class;
	}
	
	if ($_SESSION['fullscreen'] == 'y') {
		$class .= empty($class) ? ' ' : '';
		$class .= 'fullscreen';
	}
	
	if (!empty($onload)) {
		$back .= ' onload="'.$onload.'"';
	}
	
	if (!empty($class)) {<commit_msg>[FIX] Move tikitabs onload JS to doc.onready (code in lib/setup/cookies.php committed accidentally in r25157)<commit_after><?php
/* $Id$
 * 
 * return the attributes for a standard tiki page body tag
 * jonnyb refactoring for tiki5
 * 
 */

function smarty_function_html_body_attributes($params, &$smarty) {
	global $section, $prefs, $cookietab, $page, $smarty, $tiki_p_edit, $section_class;
	
	$back = '';
	$onload = '';
	$class = '';
	
	$dblclickedit = $smarty->get_template_vars('dblclickedit');
	
	if (isset($section) && $section == 'wiki page' && $prefs['user_dbl'] == 'y' and $dblclickedit == 'y' and $tiki_p_edit == 'y') {
		$back .= ' ondblclick="location.href=\'tiki-editpage.php?page='.rawurlencode($page).'\';"';
	}
	
	// this appears to be unused - smarty var $msgError is never assigned 
	// {if $msgError} javascript:location.hash='msgError'{/if}"
	
	if (isset($section_class)) {
		$class .= 'tiki '.$section_class;
	}
	
	if ($_SESSION['fullscreen'] == 'y') {
		$class .= empty($class) ? ' ' : '';
		$class .= 'fullscreen';
	}
	
	if (!empty($onload)) {
		$back .= ' onload="'.$onload.'"';
	}
	
	if (!empty($class)) {
{'fraction_non_alphanumeric': 0.20861074123391035, 'fraction_numerical': 0.0039946737683089215, 'mean_word_length': 4.181609195402299, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5622100', 'n_tokens_mistral': 897, 'n_tokens_neox': 837, 'n_words': 176}