|
@@ -684,37 +684,37 @@ function Credits($in_admin = false)
|
|
|
),
|
|
|
),
|
|
|
);
|
|
|
-
|
|
|
- $context['copyrights'] = array(
|
|
|
- 'smf' => sprintf($forum_copyright, $forum_version),
|
|
|
- 'other' => array(
|
|
|
+
|
|
|
+ // Give credit to any graphic library's, software library's, plugins etc
|
|
|
+ $context['credits_software_graphics'] = array(
|
|
|
+ 'graphics' => array(
|
|
|
'<a href="http://p.yusukekamiyamane.com/">Fugue Icons</a> | © 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 © 2010',
|
|
|
- $txt['some_mod_copyright'],
|
|
|
- */
|
|
|
- 'mods' => array(
|
|
|
+ 'software' => array(
|
|
|
+ '<a href="http://jquery.org/">JQuery</a> | © John Resig | Licensed under <a href="http://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt">The MIT License (MIT)</a>',
|
|
|
+ '<a href="http://cherne.net/brian/resources/jquery.hoverIntent.html">hoverIntent</a> | © Brian Cherne | Licensed under <a href="http://en.wikipedia.org/wiki/MIT_License">The MIT License (MIT)</a>',
|
|
|
+ '<a href="http://users.tpg.com.au/j_birch/plugins/superfish/">Superfish</a> | © Joel Birch | Licensed under <a href="http://en.wikipedia.org/wiki/MIT_License">The MIT License (MIT)</a>',
|
|
|
),
|
|
|
);
|
|
|
-
|
|
|
+
|
|
|
// support for mods that use the <credits> tag via the package manager
|
|
|
+ $context['credits_modifications'] = array();
|
|
|
if (($mods = cache_get_data('mods_credits', 86400)) === null)
|
|
|
{
|
|
|
$mods = array();
|
|
|
- $request = $smcFunc['db_query']('', '
|
|
|
+ $request = $smcFunc['db_query']('substring', '
|
|
|
SELECT version, name, credits
|
|
|
FROM {db_prefix}log_packages
|
|
|
WHERE install_state = {int:installed_mods}
|
|
|
AND credits != {string:empty}
|
|
|
- AND SUBSTRING(filename FROM 1 FOR 9) != {string:patch_name}',
|
|
|
+ AND SUBSTRING(filename, 1, 9) != {string:patch_name}',
|
|
|
array(
|
|
|
'installed_mods' => 1,
|
|
|
'patch_name' => 'smf_patch',
|
|
|
'empty' => '',
|
|
|
)
|
|
|
);
|
|
|
+
|
|
|
while ($row = $smcFunc['db_fetch_assoc']($request))
|
|
|
{
|
|
|
$credit_info = unserialize($row['credits']);
|
|
@@ -726,13 +726,26 @@ function Credits($in_admin = false)
|
|
|
|
|
|
// build this one out and stash it away
|
|
|
$mod_name = empty($credit_info['url']) ? $title : '<a href="' . $credit_info['url'] . '">' . $title . '</a>';
|
|
|
- $mods[] = $mod_name . (!empty($license) ? ' | ' . $license : '') . (!empty($copyright) ? ' | ' . $copyright : '');
|
|
|
+ $mods[] = $mod_name . (!empty($license) ? ' | ' . $license : '') . (!empty($copyright) ? ' | ' . $copyright : '');
|
|
|
}
|
|
|
cache_put_data('mods_credits', $mods, 86400);
|
|
|
}
|
|
|
-
|
|
|
- $context['copyrights']['mods'] += $mods;
|
|
|
-
|
|
|
+ $context['credits_modifications'] = $mods;
|
|
|
+
|
|
|
+ $context['copyrights'] = array(
|
|
|
+ 'smf' => sprintf($forum_copyright, $forum_version),
|
|
|
+ /* 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 © 2010',
|
|
|
+ $txt['some_mod_copyright'],
|
|
|
+ */
|
|
|
+ 'mods' => array(
|
|
|
+ ),
|
|
|
+ );
|
|
|
+
|
|
|
+ // Support for those that want to use a hook as well
|
|
|
+ call_integration_hook('integrate_credits');
|
|
|
+
|
|
|
if (!$in_admin)
|
|
|
{
|
|
|
loadTemplate('Who');
|
|
@@ -740,9 +753,6 @@ function Credits($in_admin = false)
|
|
|
$context['robot_no_index'] = true;
|
|
|
$context['page_title'] = $txt['credits'];
|
|
|
}
|
|
|
-
|
|
|
- // Support for those that want to use a hook as well
|
|
|
- call_integration_hook('integrate_credits');
|
|
|
}
|
|
|
|
|
|
?>
|