| 402 |
global $database, $mosConfig_absolute_path; |
global $database, $mosConfig_absolute_path; |
| 403 |
|
|
| 404 |
if (!is_array( $cid ) || count( $cid ) < 1) { |
if (!is_array( $cid ) || count( $cid ) < 1) { |
| 405 |
return 'Select an item to ' . ($publish ? 'publish' : 'unpublish'); |
$pub = $publish ? T_('publish') : T_('unpublish'); |
| 406 |
|
return sprintf(T_('Select an item to %s'), $pub); |
| 407 |
} |
} |
| 408 |
|
|
| 409 |
$menu = new mosMenu( $database ); |
$menu = new mosMenu( $database ); |
| 446 |
} |
} |
| 447 |
|
|
| 448 |
$total = count( $cid ); |
$total = count( $cid ); |
| 449 |
$msg = $total ." Item(s) sent to the Trash"; |
$msg = sprintf(Tn_("%d Item sent to the Trash", "%d Items sent to the Trash", $total), $total); |
| 450 |
return $msg; |
return $msg; |
| 451 |
} |
} |
| 452 |
|
|
| 611 |
$row->updateOrder( "menutype='". $row->menutype ."' AND parent='". $row->parent ."'" ); |
$row->updateOrder( "menutype='". $row->menutype ."' AND parent='". $row->parent ."'" ); |
| 612 |
} // if |
} // if |
| 613 |
|
|
| 614 |
$msg = count($cid) .' Menu Items moved to '. $menu; |
$msg = sprintf(Tn_('%d Menu Item moved to %s', '%d Menu Items moved to %s', count($cid)), count($cid), $menu); |
| 615 |
mosRedirect( 'index2.php?option='. $option .'&menutype='. $menutype .'&mosmsg='. $msg ); |
mosRedirect( 'index2.php?option='. $option .'&menutype='. $menutype .'&mosmsg='. $msg ); |
| 616 |
} // moveMenuSave |
} // moveMenuSave |
| 617 |
|
|
| 622 |
global $database; |
global $database; |
| 623 |
|
|
| 624 |
if (!is_array( $cid ) || count( $cid ) < 1) { |
if (!is_array( $cid ) || count( $cid ) < 1) { |
| 625 |
echo "<script> alert('Select an item to move'); window.history.go(-1);</script>\n"; |
echo "<script> alert('".T_('Select an item to move')."'); window.history.go(-1);</script>\n"; |
| 626 |
exit; |
exit; |
| 627 |
} |
} |
| 628 |
|
|
| 681 |
} |
} |
| 682 |
$curr->updateOrder( "menutype='". $curr->menutype ."' AND parent='". $curr->parent ."'" ); |
$curr->updateOrder( "menutype='". $curr->menutype ."' AND parent='". $curr->parent ."'" ); |
| 683 |
} // foreach |
} // foreach |
| 684 |
$msg = count( $cid ) .' Menu Items Copied to '. $menu; |
$msg = sprintf(Tn_('%d Menu Item Copied to %s', '%d Menu Items Copied to %s', count($cid)), count($cid), $menu); |
| 685 |
mosRedirect( 'index2.php?option='. $option .'&menutype='. $menutype .'&mosmsg='. $msg ); |
mosRedirect( 'index2.php?option='. $option .'&menutype='. $menutype .'&mosmsg='. $msg ); |
| 686 |
} |
} |
| 687 |
|
|
| 741 |
$row->updateOrder( $cond[1] ); |
$row->updateOrder( $cond[1] ); |
| 742 |
} // foreach |
} // foreach |
| 743 |
|
|
| 744 |
$msg = 'New ordering saved'; |
$msg = T_('New ordering saved'); |
| 745 |
mosRedirect( 'index2.php?option=com_menus&menutype='. $menutype, $msg ); |
mosRedirect( 'index2.php?option=com_menus&menutype='. $menutype, $msg ); |
| 746 |
} // saveOrder |
} // saveOrder |
| 747 |
|
|