function etendard_video_callback($post) { $form = new Cocorico(ETENDARD_COCORICO_PREFIX, false); $form->startForm(); $form->setting(array('type' => 'url', 'name' => '_video_meta', 'label' => __('Video to feature', 'etendard'), 'description' => __('Add a video link from Youtube, Dailymotion or Vimeo.', 'etendard'))); $form->endForm(); $form->render(); }
<?php etendard_meta_migration('_etendard_home_cta_url', 'etendard_home_cta_url'); etendard_meta_migration('_etendard_home_cta_text', 'etendard_home_cta_text'); etendard_meta_migration('_etendard_home_cta_bouton', 'etendard_home_cta_bouton'); $form = new Cocorico(ETENDARD_COCORICO_PREFIX, false); $form->startForm(); $form->setting(array('type' => 'text', 'name' => '_home_cta_url', 'label' => __('Call to action destination (url)', 'etendard'))); $form->setting(array('type' => 'textarea', 'name' => '_home_cta_text', 'label' => __("Call to action incentive", 'etendard'))); $form->setting(array('type' => 'text', 'name' => '_home_cta_bouton', 'label' => __('Button\'s label', 'etendard'))); $form->endForm(); $form->render();
<?php $cocorico = new Cocorico(ETENDARD_COCORICO_PREFIX, false); $cocorico->diaporama('portfolio_diaporama'); $cocorico->render();