Vergleich admin/inc/functions_themes.php - 1.4.2 - 1.4.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 810Zeile 810
	// Do we have any children themes that need updating too?
if(count($child_list) > 0)
{

	// Do we have any children themes that need updating too?
if(count($child_list) > 0)
{

		update_theme_stylesheet_list($child_list[0]);




		foreach($child_list as $id)
{
update_theme_stylesheet_list($id);
}

	}

	}

	

	

	return true;
}


	return true;
}


Zeile 822Zeile 825
	
$themes = array();
if(!is_array($themes_by_parent))

	
$themes = array();
if(!is_array($themes_by_parent))

	{
$theme_cache = cache_themes();
foreach($theme_cache as $key => $theme)
{
if($key == "default")
{
continue;

	{
$theme_cache = cache_themes();
foreach($theme_cache as $key => $theme)
{
if($key == "default")
{
continue;

			}

$themes_by_parent[$theme['tid']][$theme['pid']] = $theme;
}

			}

$themes_by_parent[$theme['tid']][$theme['pid']] = $theme;
}

	}

	}

	
if(!is_array($themes_by_parent[$tid]))
{

	
if(!is_array($themes_by_parent[$tid]))
{

Zeile 841Zeile 844
	}

reset($themes_by_parent);

	}

reset($themes_by_parent);

	reset($themes_by_parent[$tid]);

$themes = array();

foreach($themes_by_parent[$tid] as $key => $theme)

	reset($themes_by_parent[$tid]);

$themes = array();

foreach($themes_by_parent[$tid] as $key => $theme)

	{
$themes[] = $theme['tid'];
$parents = make_parent_theme_list($theme['pid']);

	{
$themes[] = $theme['tid'];
$parents = make_parent_theme_list($theme['pid']);

Zeile 860Zeile 863
}

function make_child_theme_list($tid)

}

function make_child_theme_list($tid)

{
static $themes_by_child;


{
static $themes_by_child;


	$themes = array();
if(!is_array($themes_by_child))
{

	$themes = array();
if(!is_array($themes_by_child))
{

Zeile 879Zeile 882
	}

if(!is_array($themes_by_child[$tid]))

	}

if(!is_array($themes_by_child[$tid]))

	{

	{

		return;
}


		return;
}


Zeile 913Zeile 916
			$theme_cache[$theme['tid']] = $theme;

if($theme['def'] == 1)

			$theme_cache[$theme['tid']] = $theme;

if($theme['def'] == 1)

			{

			{

				$theme_cache['default'] = $theme['tid'];
}
}

				$theme_cache['default'] = $theme['tid'];
}
}

Zeile 949Zeile 952
			{
$user_themes['style'] = $themes['default'];
}

			{
$user_themes['style'] = $themes['default'];
}

			$themes[$user_themes['style']]['users'] = intval($user_themes['users']);









			
if($themes[$user_themes['style']]['users'] > 0)
{
$themes[$user_themes['style']]['users'] += intval($user_themes['users']);
}
else
{
$themes[$user_themes['style']]['users'] = intval($user_themes['users']);
}

		}

// Restrucure the theme array to something we can "loop-de-loop" with

		}

// Restrucure the theme array to something we can "loop-de-loop" with

Zeile 987Zeile 998
			
if($theme['def'] != 1)
{

			
if($theme['def'] != 1)
{

				$popup->add_item($lang->set_as_default, "index.php?module=style/themes&action=set_default&tid={$theme['tid']}");
$set_default = "<a href=\"index.php?module=style/themes&amp;action=set_default&amp;tid={$theme['tid']}\"><img src=\"styles/{$page->style}/images/icons/make_default.gif\" alt=\"{$lang->set_as_default}\" style=\"vertical-align: middle;\" title=\"{$lang->set_as_default}\" /></a>";

				$popup->add_item($lang->set_as_default, "index.php?module=style/themes&amp;action=set_default&amp;tid={$theme['tid']}&amp;my_post_key={$mybb->post_code}");
$set_default = "<a href=\"index.php?module=style/themes&amp;action=set_default&amp;tid={$theme['tid']}&amp;my_post_key={$mybb->post_code}\"><img src=\"styles/{$page->style}/images/icons/make_default.gif\" alt=\"{$lang->set_as_default}\" style=\"vertical-align: middle;\" title=\"{$lang->set_as_default}\" /></a>";

			}
else
{

			}
else
{