Browse Source

! Add another area in credits for other packages (like icons) that we use

Spuds 12 years ago
parent
commit
0ceedbcb42
3 changed files with 14 additions and 2 deletions
  1. 4 2
      Sources/Who.php
  2. 9 0
      Themes/default/Who.template.php
  3. 1 0
      Themes/default/languages/Who.english.php

+ 4 - 2
Sources/Who.php

@@ -685,7 +685,9 @@ function Credits($in_admin = false)
 
 	$context['copyrights'] = array(
 		'smf' => sprintf($forum_copyright, $forum_version),
-
+		'other' => array(
+			'<a href="http://p.yusukekamiyamane.com/">Fugue Icons</a> | &copy; 2012 Yusuke Kamiyamane | These icons are licensed under a Creative Commons Attribution 3.0 License',
+		),
 		/* Modification Authors:  You may add a copyright statement to this array for your mods.
 			Copyright statements should be in the form of a value only without a array key.  I.E.:
 				'Some Mod by Thantos &copy; 2010',
@@ -721,7 +723,7 @@ function Credits($in_admin = false)
 			$title = (empty($credit_info['title']) ? $row['name'] : $smcFunc['htmlspecialchars']($credit_info['title'])) . ' : ' . $version;
 
 			// build this one out and stash it away
-			$mod_name = empty($credit_info['url']) ? '<strong>' . $title . '</strong>' : '<a href="' . $credit_info['url'] . '">' . '<strong>' . $title . '</strong>' . '</a>';
+			$mod_name = empty($credit_info['url']) ? $title : '<a href="' . $credit_info['url'] . '">' . $title . '</a>';
 			$mods[] =  $mod_name . (!empty($license) ? ' | ' . $license  : '') . (!empty($copyright) ? ' | ' . $copyright  : '');
 		}
 		cache_put_data('mods_credits', $mods, 86400);

+ 9 - 0
Themes/default/Who.template.php

@@ -208,6 +208,15 @@ function template_credits()
 	echo '
 					</dd>
 				</dl>';
+				
+	if (!empty($context['copyrights']['other']))
+	{
+		echo '
+				<dl>
+					<dt><strong>', $txt['credits_other'], '</strong></dt>
+					<dd>', implode('</dd><dd>', $context['copyrights']['other']), '</dd>
+				</dl>';
+	}
 
 	if (!empty($context['copyrights']['mods']))
 	{

+ 1 - 0
Themes/default/languages/Who.english.php

@@ -132,6 +132,7 @@ $txt['credits_anyone'] = 'And for anyone we may have missed, thank you!';
 $txt['credits_copyright'] = 'Copyrights';
 $txt['credits_forum'] = 'Forum';
 $txt['credits_modifications'] = 'Modifications';
+$txt['credits_other'] = 'Software/Graphics';
 $txt['credits_groups_ps'] = 'Project Support';
 $txt['credits_groups_dev'] = 'Developers';
 $txt['credits_groups_support'] = 'Support Specialists';