<?php /** * @version $Id$ * @license http://www.gnu.org/licenses/gpl-3.0.txt * @copyright Center for History and New Media, 2013 * @package Contribution */ queue_css_file('contribution-browse'); queue_js_file('contribution-contributed-item'); queue_js_file('contribution-browse'); contribution_admin_header(array(__('Contributed Items (%d)', $total_results))); // To avoid to determine rights for each record. $allowToManage = is_allowed('Items', 'edit') || is_allowed('Items', 'update') || is_allowed('Items', 'delete'); echo $this->partial('contribution-navigation.php'); ?> <div id="primary"> <?php echo flash(); if (!Omeka_Captcha::isConfigured()) { ?> <p class="alert"><?php echo __("You have not entered your %s API keys under %s. We recommend adding these keys, or the contribution form will be vulnerable to spam.", '<a href="http://recaptcha.net/">reCAPTCHA</a>', "<a href='" . url('settings/edit-security#fieldset-captcha') . "'>" . __('security settings') . "</a>"); ?> </p> <?php } if ($total_results) { ?>
<?php /** * @version $Id$ * @license http://www.gnu.org/licenses/gpl-3.0.txt * @copyright Center for History and New Media, 2010 * @package Contribution */ contribution_admin_header(array(__('Contributors'))); ?> <?php echo $this->partial('contribution-navigation.php'); ?> <div id="primary"> <?php echo flash(); if (!has_loop_records('contribution_contributors')) { echo '<p>No one has contributed to the site yet.</p>'; } else { ?> <div class="pagination"><?php echo pagination_links(); ?> </div> <table> <thead id="types-table-head"> <tr> <th><?php
<?php /** * @version $Id$ * @license http://www.gnu.org/licenses/gpl-3.0.txt * @copyright Center for History and New Media, 2010 * @package Contribution */ queue_css_file('contribution-type-form'); contribution_admin_header(array(__('Types'))); ?> <a id="add-type" class="small green button" href="<?php echo url(array('action' => 'add')); ?> "><?php echo __('Add a Type'); ?> </a> <?php echo $this->partial('contribution-navigation.php'); ?> <div id="primary"> <?php echo flash(); ?> <table> <thead id="types-table-head">
* @version $Id$ * @license http://www.gnu.org/licenses/gpl-3.0.txt * @copyright Center for History and New Media, 2010 * @package Contribution */ $contributionTypeElements = $contribution_type->ContributionTypeElements; $typeName = html_escape($contribution_type->display_name); queue_css_file('contribution-type-form'); $addNewRequestUrl = admin_url('contribution/types/add-new-element'); $addExistingRequestUrl = admin_url('contribution/types/add-existing-element'); $changeExistingElementUrl = admin_url('contribution/types/change-existing-element'); queue_js_file('contribution-types'); $js = "\n jQuery(document).ready(function () {\n var addNewRequestUrl = '" . admin_url('contribution/types/add-new-element') . "'\n var addExistingRequestUrl = '" . admin_url('contribution/types/add-existing-element') . "'\n var changeExistingElementUrl = '" . admin_url('contribution/types/change-existing-element') . "'\n Omeka.ContributionTypes.manageContributionTypes(addNewRequestUrl, addExistingRequestUrl, changeExistingElementUrl);\n Omeka.ContributionTypes.enableSorting();\n }); \n "; queue_js_string($js); queue_css_file('contribution-type-form'); contribution_admin_header(array(__('Types'), __("Edit") . " “{$typeName}”")); ?> <?php echo $this->partial('contribution-navigation.php'); ?> <div id="primary"> <?php echo flash(); ?> <?php include 'form.php'; ?> </div>
$contributionType = $contribution_type; $contributionTypeElements = $contribution_type->ContributionTypeElements; $itemType = $contribution_type->ItemType; if ($itemType) { $elements = $itemType->Elements; } else { $elements = array(); } $addNewRequestUrl = admin_url('contribution/types/add-existing-element'); $addExistingRequestUrl = admin_url('contribution/types/add-existing-element'); $changeExistingElementUrl = admin_url('contribution/types/change-existing-element'); queue_js_file('contribution-types'); $js = "\r\njQuery(document).ready(function () {\r\nvar addNewRequestUrl = '" . admin_url('contribution/types/add-existing-element') . "'\r\nvar addExistingRequestUrl = '" . admin_url('contribution/types/add-existing-element') . "'\r\nvar changeExistingElementUrl = '" . admin_url('contribution/types/change-existing-element') . "'\r\nOmeka.ContributionTypes.manageContributionTypes(addNewRequestUrl, addExistingRequestUrl, changeExistingElementUrl);\r\nOmeka.ContributionTypes.enableSorting();\r\n});\r\n"; queue_js_string($js); queue_css_file('contribution-type-form'); contribution_admin_header(array(__('Types'), __('Add a new type'))); ?> <?php echo $this->partial('contribution-navigation.php'); ?> <div id="primary"> <?php echo flash(); ?> <?php include 'form.php'; ?> </div> <?php
<?php /** * @version $Id$ * @license http://www.gnu.org/licenses/gpl-3.0.txt * @copyright Center for History and New Media, 2010 * @package Contribution */ queue_js_file('contribution'); queue_js_file('tiny_mce', 'javascripts/vendor/tiny_mce'); queue_js_string('setUpSettingsWysiwyg();'); contribution_admin_header(array(__('Submission Settings'))); ?> <?php echo $this->partial('contribution-navigation.php'); ?> <div id="primary"> <?php echo flash(); ?> <?php echo $form; ?> </div> <?php echo foot();
<?php /** * @version $Id$ * @license http://www.gnu.org/licenses/gpl-3.0.txt * @copyright Center for History and New Media, 2010 * @package Contribution */ contribution_admin_header(array(__('Getting Started'))); ?> <?php echo $this->partial('contribution-navigation.php'); ?> <div id="primary"> <?php echo flash(); ?> <div id="getting-started"> <h2><?php echo __("Getting Started"); ?> </h2> <p><?php echo __("A basic contribution form is installed and ready to ask users to submit a Story or Image type, and to include their name and email address. If you want to modify the form, follow the steps below."); ?> </p> <p><?php echo __("While an account exists for all contributors, they can make any contribution anonymously. Only the admin and super roles can see the full information."); ?>
<?php /** * @version $Id$ * @license http://www.gnu.org/licenses/gpl-3.0.txt * @copyright Center for History and New Media, 2010 * @package Contribution */ $name = html_escape($contributor->name); queue_css_file('contributors'); contribution_admin_header(array(__('Contributors'), "{$name}")); ?> <?php echo $this->partial('contribution-navigation.php'); ?> <div id="primary"> <?php echo flash(); ?> <h2><?php echo $contributor->name; echo __("'s contributions"); ?> </h2> <?php if (plugin_is_active('UserProfiles')) { ?>