public function init() { $data = $this->getData(); $theme = isset($data['options']) ? $data['options']['socialTheme'] : SGMB_DEFAULT_THEME; SgmbAddNewSection::renderScripts($theme); $this->render(); }
public function createButtons() { require_once SGMB_CLASSES . 'pages/SgmbAddNewSection.php'; $sgmb = new SgmbAddNewSection(); $sgmb->init(); }
foreach ($SGMB_SOCIAL_BUTTONS as $value) { ?> <h3 class="<?php echo esc_attr($value); ?> "><?php echo @$SGMB_ADVANCED_NAME_SOCIAL_BUTTONS[$value]; ?> </h3> <div class="<?php echo esc_attr($value); ?> "> <p> <?php $sgmbAddNewSection = new SgmbAddNewSection(); $sgmbAddNewSection->renderOptions($value); ?> </p> </div> <?php } ?> </div> </div> <div id="tabs-2"> <div> <?php $fieldName = "sgmbSocialButtonSize"; ?> <span class="sgmb-label-checkbox">Font size:</span>