25-10-301. Determining compensation of attorneys. The measure and mode of compensation of attorneys and counselors at law is left to agreement, express or implied, of the parties, except that in probate proceedings the court may fix and allow the compensation of attorneys representing administrators, executors, guardians, trustees, and agents appointed by the court. But parties to actions or proceedings are entitled to costs and disbursements as provided by law.