Changeset 2241596
- Timestamp:
- 02/10/2020 09:06:33 AM (6 years ago)
- Location:
- shiftcontroller/trunk
- Files:
-
- 1 added
- 21 edited
-
hc3/_wordpress/abstract/plugin.php (modified) (1 diff)
-
hc3/time.php (modified) (1 diff)
-
hc3/ui/filter/color.php (modified) (1 diff)
-
languages/shiftcontroller-nl_NL.po (modified) (65 diffs)
-
readme.txt (modified) (1 diff)
-
sh4/_wordpress/conf/html/admin/view/publish.html.php (modified) (1 diff)
-
sh4/app/html/view/admin.php (modified) (2 diffs)
-
sh4/employees/presenter.php (modified) (1 diff)
-
sh4/employees/query.php (modified) (1 diff)
-
sh4/schedule/html/view/common.php (modified) (4 diffs)
-
sh4/schedule/html/view/controldates.php (modified) (2 diffs)
-
sh4/schedule/html/view/controloptions.php (modified) (6 diffs)
-
sh4/schedule/html/view/day.php (modified) (5 diffs)
-
sh4/schedule/html/view/fourweeks.php (added)
-
sh4/schedule/html/view/index.php (modified) (5 diffs)
-
sh4/schedule/html/view/list.php (modified) (1 diff)
-
sh4/schedule/html/view/month.php (modified) (5 diffs)
-
sh4/schedule/html/view/week.php (modified) (5 diffs)
-
sh4/shifts/view/widget.php (modified) (4 diffs)
-
sh4/shifts/view/zoom.php (modified) (1 diff)
-
sh4/users/html/user/view/profile.php (modified) (2 diffs)
-
shiftcontroller4.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shiftcontroller/trunk/hc3/_wordpress/abstract/plugin.php
r2154014 r2241596 71 71 $lang = $settings->get('lang'); 72 72 73 if( function_exists('pll_current_language') ){ 74 $lang = pll_current_language( 'locale' ); 75 } 76 73 77 // $langDomain = $this->translate; 74 78 // $dir = dirname($this->file); 75 // $langDir = plugin_basename($dir) . '/languages'; 79 // $langDir = plugin_basename($dir) . '/languages'; 76 80 // $langFullDir = $dir . '/languages'; 77 81 // load_plugin_textdomain( $langDomain, '', $langDir ); -
shiftcontroller/trunk/hc3/time.php
r2221157 r2241596 576 576 } 577 577 578 public function getWeeksMatrix( $weeks = 4, $skipWeekdays = array() ) 579 { 580 $matrix = array(); 581 $currentMonthDay = 0; 582 583 $this->setStartWeek(); 584 $startDate = $this->formatDateDb(); 585 586 // echo "END DATE = $endDate<br>"; 587 $this->modify( '+' . $weeks . ' weeks' )->modify('-1 day'); 588 $endDate = $this->formatDateDb(); 589 // echo "START/END DATE = $startDate/$endDate<br>"; 590 591 $rexDate = $startDate; 592 593 // echo "START DATE = $startDate, END DATE = $endDate, REX DATE = $rexDate<br>"; 594 595 $this->setDateDb( $rexDate ); 596 while( $rexDate <= $endDate ){ 597 $week = array(); 598 $weekSet = FALSE; 599 for( $weekDay = 0; $weekDay <= 6; $weekDay++ ){ 600 $thisWeekday = $this->getWeekday(); 601 $setDate = $rexDate; 602 603 // $week[ $thisWeekday ] = $setDate; 604 605 if( (! $skipWeekdays) OR (! in_array($thisWeekday, $skipWeekdays)) ){ 606 $week[] = $setDate; 607 if( NULL !== $setDate ){ 608 $weekSet = TRUE; 609 } 610 } 611 612 $this->modify('+1 day'); 613 $rexDate = $this->formatDateDb(); 614 615 // if( $exact && ($rexDate >= $endDate) ){ 616 // break; 617 // } 618 } 619 620 if( $weekSet ) 621 $matrix[] = $week; 622 } 623 return $matrix; 624 } 625 578 626 public function getParts() 579 627 { -
shiftcontroller/trunk/hc3/ui/filter/color.php
r1851180 r2241596 27 27 if( $color != 'color' ){ 28 28 if( substr($color, 0, 1) == '#' ){ 29 $element->addAttr('style', 'color: ' . $color );29 $element->addAttr('style', 'color: ' . $color . ';'); 30 30 } 31 31 else { -
shiftcontroller/trunk/languages/shiftcontroller-nl_NL.po
r2196245 r2241596 8 8 "Content-Type: text/plain; charset=UTF-8\n" 9 9 "Content-Transfer-Encoding: 8bit\n" 10 "X-Generator: Poedit 1.8.8\n"10 "X-Generator: Poedit 2.2.4\n" 11 11 "Last-Translator: Sebastiaan Moltmaker (Failed@Design)\n" 12 12 "Plural-Forms: nplurals=2; plural=(n != 1);\n" … … 14 14 15 15 msgid "-Custom Time-" 16 msgstr " "16 msgstr "-Aangepaste tijd-" 17 17 18 18 msgid "About" … … 35 35 36 36 msgid "Add New User" 37 msgstr " "37 msgstr "Nieuwe gebruiker toevoegen" 38 38 39 39 msgid "Add To Managers" … … 77 77 78 78 msgid "Apr" 79 msgstr " "79 msgstr "apr" 80 80 81 81 msgid "Archive" … … 95 95 96 96 msgid "Aug" 97 msgstr " "97 msgstr "aug" 98 98 99 99 msgid "Automatically Create Pickup Request For Open Published Shift" 100 msgstr " "100 msgstr "Creëer automatisch een overnameverzoek voor een open gepubliceerde dienst" 101 101 102 102 msgid "Availability" … … 137 137 138 138 msgid "Calendar Updated" 139 msgstr "Agenda aangepast"139 msgstr "Agenda bijgewerkt" 140 140 141 141 msgid "Calendars" … … 146 146 147 147 msgid "Cancel Pickup Request" 148 msgstr "O ppakverzoek annuleren"148 msgstr "Overnameverzoek annuleren" 149 149 150 150 msgid "Cancel Pickup Request For Own Shifts" 151 msgstr "O ppakverzoek vaneigen dienst annuleren"151 msgstr "Overnameverzoek voor eigen dienst annuleren" 152 152 153 153 msgid "Change Employee" … … 155 155 156 156 msgid "Change Password" 157 msgstr " "157 msgstr "Wachtwoord veranderen" 158 158 159 159 msgid "Change Time" … … 179 179 180 180 msgid "Confirm Password" 181 msgstr " "181 msgstr "Wachtwoord bevestigen" 182 182 183 183 msgid "Conflicts" … … 188 188 189 189 msgid "Create Draft" 190 msgstr " Ontwerp maken"190 msgstr "Maak ontwerp" 191 191 192 192 msgid "Create Own Draft Shifts" 193 msgstr "Maak eigen dienst ontwerp"193 msgstr "Maak eigen dienstenontwerp" 194 194 195 195 msgid "Create Own Published Shifts" 196 msgstr " Ontwerp eigen gepubliceerde dienst"196 msgstr "Maak eigen gepubliceerde diensten" 197 197 198 198 msgid "Create Own Shifts With Conflicts" 199 msgstr " "199 msgstr "Maak eigen diensten met conflicten" 200 200 201 201 msgid "Create Pickup Request For Own Shifts" 202 msgstr "Maak een o ppakverzoek voor eigen dienst"202 msgstr "Maak een overnameverzoek voor eigen diensten" 203 203 204 204 msgid "Create Published" … … 212 212 213 213 msgid "Custom Field Updated" 214 msgstr "Aangepast veld geüpdated"214 msgstr "Aangepast veld bijgewerkt" 215 215 216 216 msgid "Custom Fields" … … 242 242 243 243 msgid "Days" 244 msgstr " Dagen"244 msgstr "dagen" 245 245 246 246 msgid "Days Of Week Disabled" … … 248 248 249 249 msgid "Dec" 250 msgstr " "250 msgstr "dec" 251 251 252 252 msgid "Default" 253 msgstr " "253 msgstr "Standaard" 254 254 255 255 msgid "Delete" … … 266 266 267 267 msgid "Display Name" 268 msgstr " "268 msgstr "Naam weergeven" 269 269 270 270 msgid "Download" … … 272 272 273 273 msgid "Draft" 274 msgstr " Concept"274 msgstr "Ontwerp" 275 275 276 276 msgid "Draft Shift Created" 277 msgstr " Concept dienstgecreëerd"277 msgstr "Dienstontwerp gecreëerd" 278 278 279 279 msgid "Drop Down" … … 293 293 294 294 msgid "Email Address" 295 msgstr " "295 msgstr "E-mailadres" 296 296 297 297 msgid "Email Format" … … 347 347 348 348 msgid "Enter a simple string of numbers separated by commas. Positive numbers denote work days, negative numbers denote off days." 349 msgstr " "349 msgstr "Voer een eenvoudige rij getallen in, gescheiden door komma's. Positieve getallen stellen werkdagen voor en negatieve getallen vrije dagen." 350 350 351 351 msgid "Error" 352 msgstr " "352 msgstr "Fout" 353 353 354 354 msgid "Every 2 Weeks" 355 msgstr " "355 msgstr "Iedere 2 weken" 356 356 357 357 msgid "Every 3 Weeks" 358 msgstr " "358 msgstr "Iedere 3 weken" 359 359 360 360 msgid "Every 4 Weeks" 361 msgstr " "361 msgstr "Iedere 4 weken" 362 362 363 363 msgid "Everyone Schedule" … … 365 365 366 366 msgid "Feb" 367 msgstr " "367 msgstr "feb" 368 368 369 369 msgid "Filter" … … 371 371 372 372 msgid "Fri" 373 msgstr " Vrij"373 msgstr "vr" 374 374 375 375 msgid "From Date" … … 377 377 378 378 msgid "Full Day Counts As" 379 msgstr "Volledige dag tel lenals"379 msgstr "Volledige dag telt als" 380 380 381 381 msgid "Get New Password" 382 msgstr " "382 msgstr "Vraag nieuw wachtwoord aan" 383 383 384 384 msgid "Group By" … … 386 386 387 387 msgid "Here is the automatic CSV feed of the shifts that can be used with other 3rd party applications." 388 msgstr " "388 msgstr "Hier zijn de automatische CSV-feeds van de diensten die kunnen worden gebruikt met applicaties van derden." 389 389 390 390 msgid "Hide Hours Reports In Schedule View" … … 395 395 396 396 msgid "Hours" 397 msgstr " Uren"397 msgstr "uren" 398 398 399 399 msgid "How Many" … … 416 416 417 417 msgid "Jan" 418 msgstr " "418 msgstr "jan" 419 419 420 420 msgid "Jul" 421 msgstr " "421 msgstr "jul" 422 422 423 423 msgid "Jun" 424 msgstr " "424 msgstr "jun" 425 425 426 426 msgid "Label" … … 428 428 429 429 msgid "Language" 430 msgstr " "430 msgstr "Taal" 431 431 432 432 msgid "Link Employee To User Account" … … 458 458 459 459 msgid "Logged In" 460 msgstr " "460 msgstr "Ingelogd" 461 461 462 462 msgid "Logged Out" 463 msgstr " "463 msgstr "Uitgelogd" 464 464 465 465 msgid "Login" 466 msgstr " "466 msgstr "Inloggen" 467 467 468 468 msgid "Logout" 469 msgstr " "469 msgstr "Uitloggen" 470 470 471 471 msgid "Lost Your Password?" 472 msgstr " "472 msgstr "Wachtwoord vergeten?" 473 473 474 474 msgid "Lunch Break" … … 476 476 477 477 msgid "Lunch break should be within shift hours." 478 msgstr "Middagpauze moet binnen de dienst vallen."478 msgstr "Middagpauze moet binnen de diensttijd vallen." 479 479 480 480 msgid "Make sure you change it after first login!" 481 msgstr " "481 msgstr "Let erop dat je het aanpast na de eerste keer inloggen!" 482 482 483 483 msgid "Managed Calendars" … … 485 485 486 486 msgid "Manager" 487 msgstr "Beheer "487 msgstr "Beheerder" 488 488 489 489 msgid "Manager Added To Calendar" … … 497 497 498 498 msgid "Mar" 499 msgstr " "499 msgstr "mrt" 500 500 501 501 msgid "Max" … … 508 508 msgstr "Max. waarde kan niet groter zijn dan min. waarde" 509 509 510 msgid "Time Increment" 511 msgstr "Tijdincrement" 512 513 msgid "Minutes" 514 msgstr "minuten" 515 516 msgid "Default Timezone" 517 msgstr "Standaard tijdzone" 518 519 msgid "Timezone" 520 msgstr "Tijdzone" 521 510 522 msgid "May" 511 msgstr " "523 msgstr "mei" 512 524 513 525 msgid "Menu" … … 515 527 516 528 msgid "Message" 517 msgstr " "529 msgstr "Bericht" 518 530 519 531 msgid "Message Sent" 520 msgstr " "532 msgstr "Bericht verzonden" 521 533 522 534 msgid "Min" 523 msgstr "Min "535 msgstr "Min." 524 536 525 537 msgid "Min Start Time" 526 msgstr "Min starttijd"538 msgstr "Min. starttijd" 527 539 528 540 msgid "Mon" 529 msgstr " Maa"541 msgstr "ma" 530 542 531 543 msgid "Month" … … 550 562 msgstr "N/B" 551 563 564 msgid "Edit WordPress User" 565 msgstr "Bewerk Wordpress-gebruiker" 566 552 567 msgid "Name" 553 568 msgstr "Naam" … … 566 581 567 582 msgid "New Password" 568 msgstr " "583 msgstr "Nieuw wachtwoord" 569 584 570 585 msgid "New Shift Type Added" 571 msgstr "Nieuw ediensttype toegevoegd"586 msgstr "Nieuw diensttype toegevoegd" 572 587 573 588 msgid "New User Added" 574 msgstr " "589 msgstr "Nieuwe gebruiker toegevoegd" 575 590 576 591 msgid "No" … … 602 617 603 618 msgid "Notification Updated" 604 msgstr "Berichtgeving aangepast"619 msgstr "Berichtgeving bijgewerkt" 605 620 606 621 msgid "Notifications" … … 614 629 615 630 msgid "Nov" 616 msgstr " "631 msgstr "nov" 617 632 618 633 msgid "Number Of Shifts" … … 620 635 621 636 msgid "Oct" 622 msgstr " "637 msgstr "okt" 623 638 624 639 msgid "One option per line." … … 640 655 msgstr "Andere medewerkers" 641 656 657 msgid "Calendar Employees" 658 msgstr "Medewerkers agenda" 659 642 660 msgid "Overlap" 643 661 msgstr "Overlapping" 644 662 645 663 msgid "Password" 646 msgstr " "664 msgstr "Wachtwoord" 647 665 648 666 msgid "Password Reset Information Sent To Your Email" 649 msgstr " "667 msgstr "Informatie over het aanpassen van het wachtwoord is verzonden naar je e-mailadres" 650 668 651 669 msgid "Password Reset Link" 652 msgstr " "670 msgstr "Link om wachtwoord aan te passen" 653 671 654 672 msgid "Password Updated" 655 msgstr " "673 msgstr "Wachtwoord bijgewerkt" 656 674 657 675 msgid "Passwords Differ" 658 msgstr " "676 msgstr "Wachtwoorden verschillen" 659 677 660 678 msgid "Permissions" … … 662 680 663 681 msgid "Pick Dates By Hand" 664 msgstr " "682 msgstr "Data handmatig overnemen" 665 683 666 684 msgid "Pick Up Others Shifts" 667 msgstr "Andermans diensten o ppakken"685 msgstr "Andermans diensten overnemen" 668 686 669 687 msgid "Pickup" 670 msgstr "O ppakken"688 msgstr "Overnemen" 671 689 672 690 msgid "Pickup Request" 673 msgstr "O ppakverzoek"691 msgstr "Overnameverzoek" 674 692 675 693 msgid "Pickup Request Cancelled" 676 msgstr "O ppakverzoek geannuleerd"694 msgstr "Overnameverzoek geannuleerd" 677 695 678 696 msgid "Pickup Request Created" 679 msgstr "O ppakverzoek aangemaakt"697 msgstr "Overnameverzoek aangemaakt" 680 698 681 699 msgid "Plain Text" … … 692 710 693 711 msgid "Proceed To Upgrade" 694 msgstr "Doorgaan met upgraden"712 msgstr "Doorgaan met bijwerken" 695 713 696 714 msgid "Profile" … … 698 716 699 717 msgid "Profile Updated" 700 msgstr " "718 msgstr "Profiel bijgewerkt" 701 719 702 720 msgid "Publish" … … 713 731 714 732 msgid "Remove From Managers" 715 msgstr "Van managers verwijder d"733 msgstr "Van managers verwijderen" 716 734 717 735 msgid "Remove From Viewers" … … 728 746 729 747 msgid "Request Pickup" 730 msgstr "Verzoek om dienst op te pakken"748 msgstr "Verzoek om dienstovername" 731 749 732 750 msgid "Required Field" 733 msgstr "Verplicht e velden"751 msgstr "Verplicht veld" 734 752 735 753 msgid "Reset Password" 736 msgstr " "754 msgstr "Wachtwoord herstellen" 737 755 738 756 msgid "Reset To Defaults" 739 msgstr " Resetnaar standaardwaarden"757 msgstr "Herstel naar standaardwaarden" 740 758 741 759 msgid "Restore" … … 746 764 747 765 msgid "Sat" 748 msgstr " Zat"766 msgstr "za" 749 767 750 768 msgid "Save" … … 752 770 753 771 msgid "Schedule" 754 msgstr " Planning"772 msgstr "Rooster" 755 773 756 774 msgid "Select" … … 758 776 759 777 msgid "Select All" 760 msgstr " Alles selecteren"778 msgstr "Selecteer alles" 761 779 762 780 msgid "Select Date" … … 764 782 765 783 msgid "Select Dates" 766 msgstr "Selecteer dat ums"784 msgstr "Selecteer data" 767 785 768 786 msgid "Select End Date" … … 779 797 780 798 msgid "Send" 781 msgstr " "799 msgstr "Versturen" 782 800 783 801 msgid "Send Email From Address" … … 788 806 789 807 msgid "Send Test Email" 790 msgstr " "808 msgstr "Testmail versturen" 791 809 792 810 msgid "Sep" 793 msgstr " "811 msgstr "sep" 794 812 795 813 msgid "Settings" 796 814 msgstr "Instellingen" 797 815 816 msgid "No Lunch Break" 817 msgstr "Geen lunchpauze" 818 798 819 msgid "Settings Updated" 799 msgstr "Instellingen aangepast"820 msgstr "Instellingen bijgewerkt" 800 821 801 822 msgid "Shift" … … 806 827 807 828 msgid "Shift Picked Up" 808 msgstr "Dienst o pgepakt"829 msgstr "Dienst overgenomen" 809 830 810 831 msgid "Shift Pickup Request" 811 msgstr "Diensto ppakverzoek"832 msgstr "Dienstovernameverzoek" 812 833 813 834 msgid "Shift Pickup Request Cancelled" 814 msgstr "Diensto ppakverzoek geannuleerd"835 msgstr "Dienstovernameverzoek geannuleerd" 815 836 816 837 msgid "Shift Pickup Request Recorded" 817 msgstr "Diensto ppakverzoek genoteerd"838 msgstr "Dienstovernameverzoek genoteerd" 818 839 819 840 msgid "Shift Published" … … 821 842 822 843 msgid "Shift Rescheduled" 823 msgstr "Dienst hergeschikt"844 msgstr "Dienst verschoven" 824 845 825 846 msgid "Shift Type Deleted" … … 827 848 828 849 msgid "Shift Type Updated" 829 msgstr "Diensttype aangepast"850 msgstr "Diensttype bijgewerkt" 830 851 831 852 msgid "Shift Types" 832 msgstr "Diensttype" 853 msgstr "Diensttypen" 854 855 msgid "Shift Hours" 856 msgstr "Diensturen" 833 857 834 858 msgid "Shift Unpublished" … … 836 860 837 861 msgid "Shift Updated" 838 msgstr "Dienst aangepast"862 msgstr "Dienst bijgewerkt" 839 863 840 864 msgid "Shifts" 841 msgstr " Diensten"865 msgstr "diensten" 842 866 843 867 msgid "Shifts Feed" … … 848 872 849 873 msgid "Show Shift Type Title In Calendar" 850 msgstr "Toon titel van type dienstin agenda"874 msgstr "Toon diensttype in agenda" 851 875 852 876 msgid "Skip Notifications" … … 863 887 864 888 msgid "Sun" 865 msgstr " Zon"889 msgstr "zo" 866 890 867 891 msgid "Template Tags" … … 884 908 885 909 msgid "Thu" 886 msgstr " Don"910 msgstr "do" 887 911 888 912 msgid "Time" … … 890 914 891 915 msgid "Time Format" 892 msgstr "Tijd snotatie"916 msgstr "Tijdnotatie" 893 917 894 918 msgid "Time Off" … … 898 922 msgstr "Vrij" 899 923 900 msgid "Timezone"901 msgstr "Tijdzone"902 903 924 msgid "Title" 904 msgstr " Titel"925 msgstr "Kop" 905 926 906 927 msgid "To Date" 907 msgstr "Tot datum"928 msgstr "Tot-datum" 908 929 909 930 msgid "Toggle All" 910 msgstr " "931 msgstr "Wissel alle" 911 932 912 933 msgid "Toggle Selected" 913 msgstr " Schakel geselecteerd"934 msgstr "Wissel geselecteerde" 914 935 915 936 msgid "Total" … … 917 938 918 939 msgid "Tue" 919 msgstr " Din"940 msgstr "di" 920 941 921 942 msgid "Turn Off Notifications" … … 929 950 930 951 msgid "Unassign" 931 msgstr "Toewijzing ongedaan maken"952 msgstr "Toewijzing herroepen" 932 953 933 954 msgid "Unlink" 934 msgstr "Ontkoppel "955 msgstr "Ontkoppelen" 935 956 936 957 msgid "Unpublish" 937 msgstr " Niet gepubliceerd"958 msgstr "Publicatie herroepen" 938 959 939 960 msgid "Until" … … 941 962 942 963 msgid "Upgrade From 3.x" 943 msgstr " Updaten van 3.x"964 msgstr "Bijwerken van 3.x" 944 965 945 966 msgid "Upgraded" 946 msgstr " Updaten"967 msgstr "Bijgewerkt" 947 968 948 969 msgid "User" … … 950 971 951 972 msgid "User Deleted" 952 msgstr " "973 msgstr "Gebruiker verwijderd" 953 974 954 975 msgid "User Updated" 955 msgstr " "976 msgstr "Gebruiker bijgewerk" 956 977 957 978 msgid "Username" 958 msgstr " "979 msgstr "Gebruikersnaam" 959 980 960 981 msgid "Users" … … 965 986 966 987 msgid "View" 967 msgstr " Beeld"988 msgstr "Toon" 968 989 969 990 msgid "View Conflicts" 970 msgstr " Conflicten laten zien"991 msgstr "Toon conflicten" 971 992 972 993 msgid "View Open Draft Shifts" 973 msgstr " Bekijk open werkverschuivingen"994 msgstr "Toon open dienstenontwerp" 974 995 975 996 msgid "View Open Published Shifts" 976 msgstr " Laat open gepubliceerde diensten zien"997 msgstr "Toon open gepubliceerde diensten" 977 998 978 999 msgid "View Others Draft Shifts" 979 msgstr " Anderen hun open werkverschuiving laten zien"1000 msgstr "Toon dienstenontwerp van anderen" 980 1001 981 1002 msgid "View Others Published Shifts" 982 msgstr " Anderen hun gepubliceerde diensten laten zien"1003 msgstr "Toon gepubliceerde diensten van anderen" 983 1004 984 1005 msgid "View Own Draft Shifts" 985 msgstr " Eigen dienstverschuiving laten zien"1006 msgstr "Toon eigen dienstenontwerp" 986 1007 987 1008 msgid "View Own Published Shifts" 988 msgstr " Eigen gepubliceerde diensten laten zien"1009 msgstr "Toon eigen gepubliceerde diensten" 989 1010 990 1011 msgid "Viewer Added To Calendar" … … 1004 1025 1005 1026 msgid "Wed" 1006 msgstr " Woe"1027 msgstr "wo" 1007 1028 1008 1029 msgid "Week" … … 1016 1037 1017 1038 msgid "When a calendar is deleted, all its data and information is permanently removed." 1018 msgstr " "1039 msgstr "Als een agenda wordt gewist, worden alle bijbehorende data en informatie verwijderd." 1019 1040 1020 1041 msgid "When an employee is deleted, all their data and information is permanently removed." 1021 msgstr " "1042 msgstr "Als een werknemer wordt gewist, worden alle bijbehorende data en informatie verwijderd." 1022 1043 1023 1044 msgid "WordPress User Role" … … 1025 1046 1026 1047 msgid "Work 1 day, off 3 days" 1027 msgstr " "1048 msgstr "1 dag werken, 3 dagen vrij" 1028 1049 1029 1050 msgid "Work 3 days, off 2 days, work 4 days, off 1 day" 1030 msgstr " "1051 msgstr "3 dagen werken, 2 dagen vrij, 4 dagen werken, 1 dag vrij" 1031 1052 1032 1053 msgid "Wrong Email" 1033 msgstr " "1054 msgstr "Verkeerd e-mailadres" 1034 1055 1035 1056 msgid "Wrong Link" 1036 msgstr " "1057 msgstr "Verkeerde linbk" 1037 1058 1038 1059 msgid "Wrong Username Or Password" 1039 msgstr " "1060 msgstr "Verdeerde gebruikersnaam of wachtwoord" 1040 1061 1041 1062 msgid "X Days On / Y Days Off" 1042 msgstr " "1063 msgstr "X dagen op / Y dagen af" 1043 1064 1044 1065 msgid "Yes" … … 1051 1072 msgstr "" 1052 1073 1074 msgid "not allowed" 1075 msgstr "Geen rooster beschikbaar" 1076 1053 1077 msgid "iCal Sync" 1054 1078 msgstr "iCal synchronisatie" 1055 -
shiftcontroller/trunk/readme.txt
r2221157 r2241596 60 60 61 61 == Changelog == 62 63 = 4.5.8 = 64 * Added an option to filter our open shifts from a display, i.e. see assigned shifts only. 65 * Added a new 4 weeks schedule view. 66 * Added employee description to the shift details view. 67 * Added My Profile link to the schedule view on a shortcode front end page. 68 * Make it compatible with Polylang multi language plugin - if a front end page is set to a language, then we switch to that language. 62 69 63 70 = 4.5.7 = -
shiftcontroller/trunk/sh4/_wordpress/conf/html/admin/view/publish.html.php
r1909721 r2241596 114 114 115 115 <div class="hc-ml3"> 116 Calendar id, for example <em class="hc-italic">123</em>. You can find out the id of a location in <em class="hc-italic">Administration > Locations</em>. If not supplied, it will display shifts of all locations.116 Calendar id, for example <em class="hc-italic">123</em>. You can find out the id of a calendar in <em class="hc-italic">Administration > Calendars</em>. If not supplied, it will display shifts of all calendars. 117 117 You can also supply several ids separated by comma. 118 118 </div> -
shiftcontroller/trunk/sh4/app/html/view/admin.php
r1869916 r2241596 31 31 $this->layout 32 32 ->setContent( $out ) 33 // ->setBreadcrumb( $breadcrumb)33 ->setBreadcrumb( $this->self->breadcrumb() ) 34 34 ->setHeader( $this->self->header() ) 35 35 // ->setMenu( $this->self->menu() ) … … 51 51 return $out; 52 52 } 53 54 public function breadcrumb() 55 { 56 $return = array(); 57 if( defined('WPINC') && (! is_admin()) ){ 58 $return['schedule'] = array( '', '← ' . '__Schedule__' ); 59 } 60 61 return $return; 62 } 53 63 } -
shiftcontroller/trunk/sh4/employees/presenter.php
r1851180 r2241596 12 12 } 13 13 14 public function presentDescription( SH4_Employees_Model $employee ) 15 { 16 $return = $employee->getDescription(); 17 18 // if( defined('WPINC') ){ 19 // $return = do_shortcode( $return ); 20 // } 21 22 return $return; 23 } 24 14 25 public function presentTitle( SH4_Employees_Model $employee ) 15 26 { -
shiftcontroller/trunk/sh4/employees/query.php
r1954223 r2241596 42 42 $array['id'] = 0; 43 43 $array['title'] = '-' . '__Open Shift__' . '-'; 44 45 $return = $this->_arrayToModel( $array ); 46 return $return; 47 } 48 49 if( $id == -1 ){ 50 $array = array(); 51 $array['id'] = -1; 52 $array['title'] = '-' . '__Assigned Shift__' . '-'; 44 53 45 54 $return = $this->_arrayToModel( $array ); -
shiftcontroller/trunk/sh4/schedule/html/view/common.php
r2221157 r2241596 438 438 break; 439 439 440 case '4weeks': 441 $this->t->setDateDb($startDate)->setStartWeek(); 442 $startDate = $this->t->formatDateDb(); 443 $this->request->setParam('start', $startDate); 444 445 $start = $this->t->formatDateTimeDb(); 446 $this->t->modify('+4 weeks') 447 // ->modify('-1 day') 448 ; 449 $endDate = $this->t->formatDateDb(); 450 $this->request->setParam('end', $endDate); 451 452 $end = $this->t->formatDateTimeDb(); 453 break; 454 440 455 case 'month': 441 456 $this->t->setDateDb($startDate)->setStartMonth(); … … 532 547 $employees = $this->self->findAllEmployees(); 533 548 549 $filterEmployeeIds = $params['employee']; 534 550 $filter = array(); 535 551 foreach( $employees as $employee ){ 536 if( ! in_array($employee->getId(), $params['employee']) ){ 537 continue; 552 $employeeId = $employee->getId(); 553 if( ! (in_array(-1, $filterEmployeeIds) && ($employeeId > 0)) ){ 554 if( ! in_array($employeeId, $filterEmployeeIds) ){ 555 continue; 556 } 538 557 } 539 558 $filter = $filter + $this->appQuery->findCalendarsForEmployee( $employee ); … … 559 578 if( $params['employee'] ){ 560 579 $filterIds = $params['employee']; 580 581 $ids = array_keys($return); 582 foreach( $ids as $id ){ 583 if( in_array(-1, $filterIds) && ($id > 0) ){ 584 continue; 585 } 586 587 if( ! in_array($id, $filterIds) ){ 588 unset( $return[$id] ); 589 } 590 } 591 } 592 593 if( $params['calendar'] ){ 594 $calendars = $this->self->findAllCalendars(); 595 596 $filter = array(); 597 foreach( $calendars as $calendar ){ 598 if( ! in_array($calendar->getId(), $params['calendar']) ){ 599 continue; 600 } 601 $filter = $filter + $this->appQuery->findEmployeesForCalendar( $calendar ); 602 } 603 $filterIds = array_keys( $filter ); 604 561 605 $ids = array_keys($return); 562 606 foreach( $ids as $id ){ … … 567 611 } 568 612 569 if( $params['calendar'] ){570 $calendars = $this->self->findAllCalendars();571 572 $filter = array();573 foreach( $calendars as $calendar ){574 if( ! in_array($calendar->getId(), $params['calendar']) ){575 continue;576 }577 $filter = $filter + $this->appQuery->findEmployeesForCalendar( $calendar );578 }579 $filterIds = array_keys( $filter );580 581 $ids = array_keys($return);582 foreach( $ids as $id ){583 if( ! in_array($id, $filterIds) ){584 unset( $return[$id] );585 }586 }587 }588 589 613 return $return; 590 614 } -
shiftcontroller/trunk/sh4/schedule/html/view/controldates.php
r2164188 r2241596 36 36 $out = $this->self->renderMonth(); 37 37 break; 38 case '4weeks': 39 $out = $this->self->renderFourWeeks(); 40 break; 38 41 case 'week': 39 42 $out = $this->self->renderWeek(); … … 295 298 return $out; 296 299 } 300 301 public function renderFourWeeks() 302 { 303 $slug = $this->request->getSlug(); 304 $params = $this->request->getParams('withoutDefault'); 305 306 $params['end'] = NULL; 307 308 $startDate = $params['start']; 309 $endDate = $this->t->setDateDb($startDate)->setStartWeek()->modify('+4 weeks')->modify('-1 day')->formatDateDb(); 310 311 $this->t->setDateDb($startDate)->setStartWeek(); 312 $next = $this->t->modify('+4 weeks')->formatDateDb(); 313 $prev = $this->t->modify('-8 weeks')->formatDateDb(); 314 315 $this_params = $params; 316 $this_params['start'] = $next; 317 $nextLink = $this->ui->makeAhref( array($slug, $this_params), '»' ) 318 ->tag('secondary') 319 ->tag('block') 320 ->tag('align', 'center') 321 ; 322 323 $this_params = $params; 324 $this_params['start'] = $prev; 325 326 $prevLink = $this->ui->makeAhref( array($slug, $this_params), '«' ) 327 ->tag('secondary') 328 ->tag('block') 329 ->tag('align', 'center') 330 ; 331 332 // label 333 $this->t->setDateDb( $startDate ); 334 $label = $this->t->formatDateRange( $startDate, $endDate ); 335 336 $quickJumpForm = $this->ui->makeForm( 337 'schedule/dates', 338 $this->ui->makeListInline() 339 ->add( $this->ui->makeInputDatepicker( 'start', NULL, $startDate ) ) 340 ->add( 341 $this->ui->makeInputSubmit( '→' ) 342 ->tag('primary') 343 ->tag('block') 344 ) 345 ->gutter(1) 346 ); 347 348 $label = $this->ui->makeBlock( $label ) 349 ->tag('font-size', 5) 350 ; 351 352 $quickJumpForm = $this->ui->makeCollapse( $label, $quickJumpForm ); 353 354 $controls = $this->ui->makeGrid( array($prevLink, $nextLink) ); 355 356 $out = $this->ui->makeGrid() 357 ->add( $quickJumpForm, 8, 12 ) 358 ->add( $controls, 4, 12 ) 359 ; 360 361 return $out; 362 } 363 297 364 } -
shiftcontroller/trunk/sh4/schedule/html/view/controloptions.php
r2118158 r2241596 21 21 HC3_Time $t, 22 22 23 SH4_Employees_Query $employeesQuery, 23 24 SH4_Schedule_Html_View_Common $viewCommon 24 25 ) … … 31 32 32 33 $this->viewCommon = $hooks->wrap( $viewCommon ); 34 $this->employeesQuery = $hooks->wrap( $employeesQuery ); 33 35 } 34 36 … … 143 145 $all = $this->viewCommon->findAllEmployees(); 144 146 147 $assignedShiftEmployee = $this->employeesQuery->findById( -1 ); 148 if( isset($all[0]) ){ 149 $openShiftEmployee = $all[0]; 150 $all[ $assignedShiftEmployee->getId() ] = $assignedShiftEmployee; 151 unset( $all[0] ); 152 $all = array( 153 $openShiftEmployee->getId() => $openShiftEmployee, 154 $assignedShiftEmployee->getId() => $assignedShiftEmployee 155 ) + $all; 156 } 157 145 158 if( count($all) < 2 && (! $toParams['employee']) ){ 146 159 return $return; 147 160 } 148 161 149 $all _ids = array_keys($all);162 $allIds = array_keys($all); 150 163 $selectedEmployees = array(); 151 foreach( $all _ids as $id ){164 foreach( $allIds as $id ){ 152 165 if( in_array($id, $toParams['employee']) ){ 153 166 $selectedEmployees[$id] = $all[$id]; … … 185 198 186 199 $thisParams['employee'][] = $e->getId(); 187 188 200 $label = $e->getTitle(); 189 201 $eView = $this->ui->makeAhref( array($slug, $thisParams), $label ) 190 202 ->tag('tab-link') 191 203 ; 192 193 204 $toSelectView[] = $eView; 205 206 // if( 0 == $e->getId() ){ 207 // $thisParams = $toParams; 208 // $thisParams['employee'][] = $assignedShiftEmployee->getId(); 209 210 // $label = $assignedShiftEmployee->getTitle(); 211 // $eView = $this->ui->makeAhref( array($slug, $thisParams), $label ) 212 // ->tag('tab-link') 213 // ; 214 // $toSelectView[] = $eView; 215 // } 194 216 } 195 217 … … 252 274 } 253 275 254 $all _ids = array_keys($all);276 $allIds = array_keys($all); 255 277 $selectedCalendars = array(); 256 278 257 foreach( $all _ids as $id ){279 foreach( $allIds as $id ){ 258 280 if( in_array($id, $toParams['calendar']) ){ 259 281 $selectedCalendars[$id] = $all[$id]; … … 487 509 'week' => '__Week__', 488 510 'month' => '__Month__', 511 '4weeks' => '__4 Weeks__', 489 512 'list' => '__List__', 490 513 'report' => '__Report__' -
shiftcontroller/trunk/sh4/schedule/html/view/day.php
r2182610 r2241596 152 152 ); 153 153 if( array_key_exists('employee', $params) && (count($params['employee']) == 1) ){ 154 $toParams['employee'] = $params['employee'][0]; 154 if( ! in_array(-1, $params['employee']) ){ 155 $toParams['employee'] = $params['employee'][0]; 156 } 155 157 } 156 158 $to = array( $to, $toParams ); … … 216 218 $calendarId = $calendar->getId(); 217 219 // $calendarView = $this->calendarsPresenter->presentTitle( $calendar ); 218 $calendarView = $calendar->getTitle(); 219 220 221 $label = $calendar->getTitle(); 222 223 $title = htmlspecialchars( $label ); 220 224 $description = $calendar->getDescription(); 221 $description = htmlspecialchars( $description ); 222 223 $calendarView = $this->ui->makeSpan( $calendarView ) 224 // ->tag('font-size', 4) 225 ->addAttr( 'title', $description ) 226 ; 227 228 $viewCalendars[ $calendarId ] = $calendarView; 225 if( strlen($description) ){ 226 $description = htmlspecialchars( $description ); 227 $title .= "\n" . $description; 228 } 229 230 $label = $this->ui->makeSpan( $label ) 231 ->addAttr( 'title', $title ) 232 ; 233 234 $viewCalendars[ $calendarId ] = $label; 229 235 } 230 236 … … 327 333 ); 328 334 if( array_key_exists('employee', $params) && (count($params['employee']) == 1) ){ 329 $toParams['employee'] = $params['employee'][0]; 335 if( ! in_array(-1, $params['employee']) ){ 336 $toParams['employee'] = $params['employee'][0]; 337 } 330 338 } 331 339 $to = array( $to, $toParams ); … … 400 408 $label = $employee->getTitle(); 401 409 410 $title = htmlspecialchars( $label ); 402 411 $description = $employee->getDescription(); 403 $description = htmlspecialchars( $description ); 412 if( strlen($description) ){ 413 $description = htmlspecialchars( $description ); 414 $title .= "\n" . $description; 415 } 404 416 405 417 $label = $this->ui->makeSpan( $label ) 406 ->tag('font-size', 4) 407 ->addAttr( 'title', $description ) 408 ; 418 ->tag( 'font-size', 4 ) 419 ->addAttr( 'title', $title ) 420 ; 421 409 422 $viewEmployees[ $employee->getId() ] = $label; 410 423 } … … 538 551 539 552 if( array_key_exists('employee', $params) && (count($params['employee']) == 1) ){ 540 $iknow[] = 'employee'; 553 if( ! in_array(-1, $params['employee']) ){ 554 $iknow[] = 'employee'; 555 } 541 556 } 542 557 if( array_key_exists('calendar', $params) && (count($params['calendar']) == 1) ){ -
shiftcontroller/trunk/sh4/schedule/html/view/index.php
r2221157 r2241596 26 26 SH4_Schedule_Html_View_Day $viewDay, 27 27 SH4_Schedule_Html_View_Week $viewWeek, 28 SH4_Schedule_Html_View_FourWeeks $viewFourWeeks, 28 29 SH4_Schedule_Html_View_Month $viewMonth, 29 30 SH4_Schedule_Html_View_Report $viewReport, … … 56 57 $this->viewWeek = $viewWeek; 57 58 $this->viewMonth = $viewMonth; 59 $this->viewFourWeeks = $viewFourWeeks; 58 60 $this->viewReport = $viewReport; 59 61 $this->viewDownload = $viewDownload; … … 178 180 else { 179 181 switch( $type ){ 182 case '4weeks': 183 $view = $this->viewFourWeeks; 184 break; 180 185 case 'month': 181 186 $view = $this->viewMonth; … … 477 482 else { 478 483 switch( $type ){ 484 case '4weeks': 485 $view = $this->viewFourWeeks; 486 break; 479 487 case 'month': 480 488 $view = $this->viewMonth; … … 570 578 // is wp? 571 579 if( defined('WPINC') && (! is_admin()) ){ 572 $toCheck = 'admin'; 573 if( $this->acl->check('get:' . $toCheck) ){ 574 $label = '__Administration__'; 575 $headerLink = $this->ui->makeAhref( $toCheck, $label ) 580 $tos = array( 581 array( 'admin', '__Administration__' ), 582 array( 'user/profile', '__Profile__' ), 583 ); 584 585 $headerLinks = array(); 586 foreach( $tos as $to ){ 587 if( ! $this->acl->check('get:' . $to[0]) ){ 588 continue; 589 } 590 591 $headerLinks[] = $this->ui->makeAhref( $to[0], $to[1] ) 576 592 ->tag('secondary') 577 593 ; 578 579 $out = $this->ui->makeList( array($headerLink, $out) ) 594 } 595 596 if( $headerLinks ){ 597 $headerLinks = $this->ui->makeListInline( $headerLinks ) 598 ->gutter(2) 599 ; 600 $out = $this->ui->makeList( array($headerLinks, $out) ) 580 601 ->gutter(3) 581 602 ; -
shiftcontroller/trunk/sh4/schedule/html/view/list.php
r2134277 r2241596 391 391 392 392 if( array_key_exists('employee', $params) && (count($params['employee']) == 1) ){ 393 $iknow[] = 'employee'; 393 if( ! in_array(-1, $params['employee']) ){ 394 $iknow[] = 'employee'; 395 } 394 396 } 395 397 if( array_key_exists('calendar', $params) && (count($params['calendar']) == 1) ){ -
shiftcontroller/trunk/sh4/schedule/html/view/month.php
r2182610 r2241596 170 170 ); 171 171 if( array_key_exists('employee', $params) && (count($params['employee']) == 1) ){ 172 $toParams['employee'] = $params['employee'][0]; 172 if( ! in_array(-1, $params['employee']) ){ 173 $toParams['employee'] = $params['employee'][0]; 174 } 173 175 } 174 176 $to = array( $to, $toParams ); … … 235 237 $viewCalendars = array(); 236 238 foreach( $calendars as $calendar ){ 237 // $label = $this->calendarsPresenter->presentTitle( $calendar );238 239 $label = $calendar->getTitle(); 239 240 241 $title = htmlspecialchars( $label ); 240 242 $description = $calendar->getDescription(); 241 $description = htmlspecialchars( $description ); 243 if( strlen($description) ){ 244 $description = htmlspecialchars( $description ); 245 $title .= "\n" . $description; 246 } 242 247 243 248 $label = $this->ui->makeSpan( $label ) 244 // ->tag('font-size', 4) 245 ->addAttr( 'title', $description ) 249 ->addAttr( 'title', $title ) 246 250 ; 247 251 … … 404 408 ); 405 409 if( array_key_exists('employee', $params) && (count($params['employee']) == 1) ){ 406 $toParams['employee'] = $params['employee'][0]; 410 if( ! in_array(-1, $params['employee']) ){ 411 $toParams['employee'] = $params['employee'][0]; 412 } 407 413 } 408 414 $to = array( $to, $toParams ); … … 475 481 $label = $employee->getTitle(); 476 482 483 $title = htmlspecialchars( $label ); 477 484 $description = $employee->getDescription(); 478 $description = htmlspecialchars( $description ); 485 if( strlen($description) ){ 486 $description = htmlspecialchars( $description ); 487 $title .= "\n" . $description; 488 } 479 489 480 490 $label = $this->ui->makeSpan( $label ) 481 ->tag( 'font-size', 4)482 ->addAttr( 'title', $ description)491 ->tag( 'font-size', 4 ) 492 ->addAttr( 'title', $title ) 483 493 ; 494 484 495 $viewEmployees[ $employee->getId() ] = $label; 485 496 } … … 692 703 693 704 if( array_key_exists('employee', $params) && (count($params['employee']) == 1) ){ 694 $iknow[] = 'employee'; 705 if( ! in_array(-1, $params['employee']) ){ 706 $iknow[] = 'employee'; 707 } 695 708 } 696 709 if( array_key_exists('calendar', $params) && (count($params['calendar']) == 1) ){ -
shiftcontroller/trunk/sh4/schedule/html/view/week.php
r2182610 r2241596 203 203 ); 204 204 if( array_key_exists('employee', $params) && (count($params['employee']) == 1) ){ 205 $toParams['employee'] = $params['employee'][0]; 205 if( ! in_array(-1, $params['employee']) ){ 206 $toParams['employee'] = $params['employee'][0]; 207 } 206 208 } 207 209 … … 265 267 foreach( $calendars as $calendar ){ 266 268 $calendarId = $calendar->getId(); 267 // $calendarView = $this->calendarsPresenter->presentTitle( $calendar ); 268 $calendarView = $calendar->getTitle(); 269 269 270 $label = $calendar->getTitle(); 271 272 $title = htmlspecialchars( $label ); 270 273 $description = $calendar->getDescription(); 271 $description = htmlspecialchars( $description ); 272 273 $calendarView = $this->ui->makeSpan( $calendarView ) 274 // ->tag('font-size', 4) 275 ->addAttr( 'title', $description ) 276 ; 277 278 $view_calendars[ $calendarId ] = $calendarView; 274 if( strlen($description) ){ 275 $description = htmlspecialchars( $description ); 276 $title .= "\n" . $description; 277 } 278 279 $label = $this->ui->makeSpan( $label ) 280 ->addAttr( 'title', $title ) 281 ; 282 283 $view_calendars[ $calendarId ] = $label; 279 284 } 280 285 … … 449 454 ); 450 455 if( array_key_exists('employee', $params) && (count($params['employee']) == 1) ){ 451 $toParams['employee'] = $params['employee'][0]; 456 if( ! in_array(-1, $params['employee']) ){ 457 $toParams['employee'] = $params['employee'][0]; 458 } 452 459 } 453 460 $to = array( $to, $toParams ); … … 512 519 $view_employees = array(); 513 520 foreach( $employees as $employee ){ 521 $label = $employee->getTitle(); 522 523 $title = htmlspecialchars( $label ); 514 524 $description = $employee->getDescription(); 515 $description = htmlspecialchars( $description ); 516 517 $label = $employee->getTitle(); 525 if( strlen($description) ){ 526 $description = htmlspecialchars( $description ); 527 $title .= "\n" . $description; 528 } 529 518 530 $label = $this->ui->makeSpan( $label ) 519 ->tag( 'font-size', 4)520 ->addAttr( 'title', $ description)531 ->tag( 'font-size', 4 ) 532 ->addAttr( 'title', $title ) 521 533 ; 522 534 … … 740 752 741 753 if( array_key_exists('employee', $params) && (count($params['employee']) == 1) ){ 742 $iknow[] = 'employee'; 754 if( ! in_array(-1, $params['employee']) ){ 755 $iknow[] = 'employee'; 756 } 743 757 } 744 758 if( array_key_exists('calendar', $params) && (count($params['calendar']) == 1) ){ -
shiftcontroller/trunk/sh4/shifts/view/widget.php
r2178321 r2241596 286 286 public function renderPrepared( SH4_Shifts_Model $model, $out, $iknow = array(), $hori = FALSE, $noLink = FALSE, $groupedQty = NULL ) 287 287 { 288 $colorFont = TRUE; 289 $colorFont = FALSE; 290 288 291 $id = $model->getId(); 289 292 $calendar = $model->getCalendar(); … … 348 351 ->addAttr('class', 'sh4-widget-loader') 349 352 ; 353 354 if( $colorFont ){ 355 if( ! $calendar->isAvailability() ){ 356 $out[$firstKey] 357 ->tag('color', $color) 358 ->addAttr( 'class', 'hc-underline' ); 359 ; 360 } 361 } 350 362 } 351 363 … … 424 436 ->tag('bgcolor', $color) 425 437 ; 438 439 if( $colorFont ){ 440 $out 441 ->tag('color', $color) 442 ; 443 } 426 444 } 427 445 … … 437 455 } 438 456 457 458 $title = $this->self->renderTitle( $model ); 459 $out 460 ->addAttr('title', $title) 461 ; 462 439 463 return $out; 440 464 } -
shiftcontroller/trunk/sh4/shifts/view/zoom.php
r2149207 r2241596 217 217 ; 218 218 219 $employeeDescription = $this->employeesPresenter->presentDescription( $employee ); 220 if( strlen($employeeDescription) ){ 221 $thisView = $this->ui->makeList( array($thisView, $employeeDescription) ) 222 ->gutter(0) 223 ; 224 } 225 219 226 if( isset($menu['employee']) ){ 220 227 $thisMenu = $this->ui->helperActionsFromArray( $menu['employee'] ); -
shiftcontroller/trunk/sh4/users/html/user/view/profile.php
r1851180 r2241596 43 43 $return = array(); 44 44 $return['roles'] = array( 'user/profile/roles', '__My Roles__' ); 45 if( ! defined('WPINC') ){ 46 $return['profile'] = array( 'user/profile/edit', '__Edit My Details__' ); 47 } 45 48 return $return; 46 49 } … … 56 59 $return = array(); 57 60 // $return['admin'] = array( 'admin', '__Administration__' ); 61 if( defined('WPINC') && (! is_admin()) ){ 62 $return['schedule'] = array( '', '← ' . '__Schedule__' ); 63 } 64 58 65 return $return; 59 66 } -
shiftcontroller/trunk/shiftcontroller4.php
r2221157 r2241596 4 4 * Plugin URI: http://www.shiftcontroller.com/ 5 5 * Description: Staff scheduling plugin 6 * Version: 4.5. 76 * Version: 4.5.8 7 7 * Author: hitcode.com 8 8 * Author URI: http://www.shiftcontroller.com/ … … 11 11 */ 12 12 13 define( 'SH4_VERSION', 45 7);13 define( 'SH4_VERSION', 458 ); 14 14 15 15 if (! defined('ABSPATH')) exit; // Exit if accessed directly
Note: See TracChangeset
for help on using the changeset viewer.