A. No judgment of disposition shall remain in force for a period exceeding the maximum term of imprisonment for the offense which forms the basis for the adjudication, except that if the child is placed on probation, the term of probation may extend for a maximum of one year, or for such longer period of time as the child is a full-time participant in a juvenile drug court program operated by a court of this state, if such participation has been ordered by the court as a condition of the child’s probation. The court shall give a child credit for time spent in secure detention prior to the imposition of disposition. B. If an order of commitment to the custody of the Department of Public Safety and Corrections is subsequently modified and the child is placed on parole, the maximum term of parole shall be the remainder of the sentence originally imposed.C. These maximums do not apply if:
(1) A portion of an order of commitment was suspended, in which case the term of parole shall end when the time period so suspended has elapsed.(2) The child commits a felony after having been committed to the custody of the Department of Public Safety and Corrections or while on probation and is tried as an adult and convicted or pleads guilty, in which case the judgment of disposition in the juvenile court shall terminate as of the date of conviction. The child shall earn no diminution of his felony sentence based upon time served under the order of disposition.(3) The judgment expires by its own terms, is modified, or is vacated.(4) The child reaches age twenty-one.