| 519 |
function epublish_block($op = 'list', $delta = 0) { |
function epublish_block($op = 'list', $delta = 0) { |
| 520 |
if ($op == 'list') { |
if ($op == 'list') { |
| 521 |
$blocks = array(); |
$blocks = array(); |
| 522 |
$blocks[0]['info'] = t('E-Publish'); |
$blocks[0]['info'] = t('E-Publish List of Publications'); |
| 523 |
foreach (epublish_sections() as $sid => $title) { |
foreach (epublish_sections() as $sid => $title) { |
| 524 |
$blocks[$sid]['info'] = t('E-publish section: ') . t($title); |
$blocks[$sid]['info'] = t('E-publish section: ') . t($title); |
| 525 |
} |
} |
| 785 |
*/ |
*/ |
| 786 |
function epublish_pub_page() { |
function epublish_pub_page() { |
| 787 |
$pub = arg(1); |
$pub = arg(1); |
| 788 |
$ed = arg(2); //) ? arg(2) : 'current'; |
$ed = arg(2) ? arg(2) : 'current'; |
| 789 |
if (is_numeric($pub)) { |
if (is_numeric($pub)) { |
| 790 |
$publication = epublish_get_pub($pub); |
$publication = epublish_get_pub($pub); |
| 791 |
} |
} |
| 2220 |
$edit->month = substr($edit->pubdate, 4, 2); |
$edit->month = substr($edit->pubdate, 4, 2); |
| 2221 |
$edit->day = substr($edit->pubdate, 6, 2); |
$edit->day = substr($edit->pubdate, 6, 2); |
| 2222 |
} |
} |
| 2223 |
$years = drupal_map_assoc(range(date("Y", time())-15, date("Y", time())+1)); |
$years = drupal_map_assoc(range(date("Y", time())-40, date("Y", time())+1)); |
| 2224 |
$months = array('01' => t("January"), '02' => t("February"), '03' => t("March"), '04' => t("April"), '05' => t("May"), '06' => t("June"), '07' => t("July"), '08' => t("August"), '09' => t("September"), '10' => t("October"), '11' => t("November"), '12' => t("December")); |
$months = array('01' => t("January"), '02' => t("February"), '03' => t("March"), '04' => t("April"), '05' => t("May"), '06' => t("June"), '07' => t("July"), '08' => t("August"), '09' => t("September"), '10' => t("October"), '11' => t("November"), '12' => t("December")); |
| 2225 |
$days = array('01' => '1', '02' => '2', '03' => '3', '04' => '4', '05' => '5', '06' => '6', '07' => '7', '08' => '8', '09' => '9', '10' => '10', |
$days = array('01' => '1', '02' => '2', '03' => '3', '04' => '4', '05' => '5', '06' => '6', '07' => '7', '08' => '8', '09' => '9', '10' => '10', |
| 2226 |
'11' => '11', '12' => '12', '13' => '13', '14' => '14', '15' => '15', '16' => '16', '17' => '17', '18' => '18', '19' => '19', '20' => '20', |
'11' => '11', '12' => '12', '13' => '13', '14' => '14', '15' => '15', '16' => '16', '17' => '17', '18' => '18', '19' => '19', '20' => '20', |