We propose the principal scheme of all-optical adder based on the dependence of electromagnetic spectra in photonic bandgap materials containing optically nonlinear layers on the light signal intensity. The system consisting of periodical layered structure covered by optically nonlinear material is investigated and photonic structure behavior with changing intensity is calculated. Theoretical estimations of adder parameters are made for different nonlinear materials and frequencies of laser source.