Example #1
0
	Botania License
</div>

<?php 
$mod_name = 'Botania';
$mod_creator = 'Vazkii';
$clauses = '';
// Clauses
$clause_personal_permission = build_clause('Personal Permission', 'thumbs-down', 'I will not give personal permission unless I know the person asking or there\'s a really good reason for it, as giving personal permission implies endorsement. Asking for personal permission will likely just end up having you ignored or redirected back to this page.');
$clause_waive = build_clause('Waive', 'thumbs-up', 'All restrictive clauses in this license can be ignored with personal permission. Read the above clause.');
$clause_extensive = build_clause('Extensive', 'th-large', "This license applies to {$mod_name}, the {$mod_name} website, the legacy {$mod_name} website and all other code or binaries found on this website or the github repository unless otherwise indicated.");
$clause_non_court = build_clause('Informal', 'file', 'This license will not hold up in court. I have no intention of suing anyone for breaking it, the worst that can happen to you if you do is that I\'ll get annoyed and ask you to rectify your mistake. If you use a public distribution platform (such as CurseForge) it\'s also possible your project will get taken down. Breaking the license also makes you a jerk, and you don\'t want to be a jerk, do you?');
$clause_attribution = build_clause('Attribution', 'user', "You must give appropriate credit to {$mod_creator} as the creator of {$mod_name} or the parts of it you're using. If you do any alterations the fact that you do so should also be indicated. A link back is optional but it would be cool if you would do so.");
$clause_non_monetary = build_clause('Non-Monetary', 'usd', 'You may not charge for access to the distribution itself or gain money through it, this includes any type of inline advertisement, such as url shorteners (adf.ly or otherwise) or ads in your service slowing the download down. This includes restricting any amount of access behind a paywall. Charging for ingame goods such as mod items or cosmetic features on a server does not count as distribution and falls purely under the Mojang Terms of Service.');
$clause_thief = build_clause('Thief', 'lock', "You must not claim that you made {$mod_name}. Giving appropriate credit to {$mod_creator} as the creator of {$mod_name} makes you cooler, but you don't have to do it if you don't want to.");
$clause_open_source = build_clause('Copyleft', 'random', 'Your project must be open source (have its source visible and allow for redistribution and modification) and include a clause similar to this one in its license.');
function add_clause($clause)
{
    global $clauses;
    $clauses .= $clause;
}
function build_clause($name, $glyphicon, $desc)
{
    return "\n\t\t<div class='license-clause'>\n\t\t\t<div class='license-clause-icon'>\n\t\t\t\t\t<span class='glyphicon glyphicon-{$glyphicon}'></span>\n\t\t\t</div>\n\t\t\t<div class='license-clause-info'>\n\t\t\t\t<div class='license-clause-name'>\n\t\t\t\t\t<span class='text-muted'><b>{$name}</b> Clause</span>\n\t\t\t\t</div>\n\t\t\t\t<div class='license-clause-desc'>\n\t\t\t\t\t{$desc}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>";
}
function print_license_point($header, $info)
{
    global $clauses;
    echo "<hr>\n\t\t\t<div class='license-point'>\n\t\t\t\t<div class='license-point-header'>\n\t\t\t\t\t<span class='text-muted'>{$header}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class='license-point-info'>\n\t\t\t\t\t{$info}\n\t\t\t\t</div>\n\n\t\t\t\t<div class='license-clauses'>\n\t\t\t\t\t{$clauses}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t";
    $clauses = '';
}
Example #2
0
</div>

<?php 
$mod_name = 'Botania';
$mod_creator = 'Vazkii';
$clauses = '';
// Clauses
$clause_personal_permission = build_clause('Personal Permission', 'thumbs-down', 'I will not give personal permission unless I know the person asking or there\'s a really good reason for it, as giving personal permission implies endorsement. Asking for personal permission will likely just end up having you ignored or redirected back to this page.');
$clause_waive = build_clause('Waive', 'thumbs-up', 'All restrictive clauses in this license can be ignored with personal permission. Read the above clause.');
$clause_extensive = build_clause('Extensive', 'th-large', "This license applies to {$mod_name}, the {$mod_name} website, the legacy {$mod_name} website and all other code, assets or binaries found on this website or the github repository unless otherwise indicated.");
$clause_non_court = build_clause('Informal', 'file', 'This license will not hold up in court. I have no intention of suing anyone for breaking it, the worst that can happen to you if you do is that I\'ll get annoyed and ask you to rectify your mistake. If you use a public distribution platform (such as CurseForge) it\'s also possible your project will get taken down. Breaking the license also makes you a jerk, and you don\'t want to be a jerk, do you?');
$clause_attribution = build_clause('Attribution', 'user', "You must give appropriate credit to {$mod_creator} as the creator of {$mod_name} or the parts of it you're using. If you do any alterations the fact that you do so should also be indicated. A link back is optional but it would be cool if you would do so.");
$clause_non_monetary = build_clause('Non-Monetary', 'usd', 'You may not charge for access to the distribution itself or gain money through it, this includes any type of inline advertisement, such as url shorteners (adf.ly or otherwise) or ads in your service slowing the download down. This includes restricting any amount of access behind a paywall. Charging for ingame goods such as mod items or cosmetic features on a server does not count as distribution and falls purely under the Mojang Terms of Service.');
$clause_thief = build_clause('Thief', 'lock', "You must not claim that you made {$mod_name}. Giving appropriate credit to {$mod_creator} as the creator of {$mod_name} makes you cooler, but you don't have to do it if you don't want to.");
$clause_open_source = build_clause('Copyleft', 'random', 'Your project must be open source (have its source visible and allow for redistribution and modification) and include a clause similar to this one in its license.');
$clause_api = build_clause('API', 'asterisk', 'Any of the other clauses under this section do not apply to any Botania API code. However, if Botania API code is used, it must be included verbatim as it was obtained. Furthermore, the package-info.java file included with the API must be present, and in the right spot, for any mods that package any compiled API classes within to prevent conflicts.<br><i>Learn more about the API annotation <a href="https://github.com/Minalien/BlogArchive/blob/master/ForgeTutorials/Spotlight__API_Annotation.md">here</a>.');
function add_clause($clause)
{
    global $clauses;
    $clauses .= $clause;
}
function build_clause($name, $glyphicon, $desc)
{
    return "\n\t\t<div class='license-clause'>\n\t\t\t<div class='license-clause-icon'>\n\t\t\t\t\t<span class='glyphicon glyphicon-{$glyphicon}'></span>\n\t\t\t</div>\n\t\t\t<div class='license-clause-info'>\n\t\t\t\t<div class='license-clause-name'>\n\t\t\t\t\t<span class='text-muted'><b>{$name}</b> Clause</span>\n\t\t\t\t</div>\n\t\t\t\t<div class='license-clause-desc'>\n\t\t\t\t\t{$desc}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>";
}
function print_license_point($header, $info)
{
    global $clauses;
    echo "<hr>\n\t\t\t<div class='license-point'>\n\t\t\t\t<div class='license-point-header'>\n\t\t\t\t\t<span class='text-muted'>{$header}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class='license-point-info'>\n\t\t\t\t\t{$info}\n\t\t\t\t</div>\n\n\t\t\t\t<div class='license-clauses'>\n\t\t\t\t\t{$clauses}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t";
    $clauses = '';
}