aFontAwesome = $aFontAwesome; $this->oIconManager = $oIconManager; $this->loadData(); $this->loadButtons(); } private function loadData() { $this->aSavedData = (array) get_option( 'buttonizer_buttons' ); $this->aPageCategories = (array) get_option( 'buttonizer_page_categories' ); $this->aSystemSettings = (array) get_option( 'buttonizer_general_settings' ); } private function loadButtons() { // Get buttons $aButtons = ( isset( $this->aSavedData['buttonorder'] ) && is_array( $this->aSavedData['buttonorder'] ) ? $this->aSavedData['buttonorder'] : [ 0 => -1, ] ); if ( $aButtons[0] != '-1' ) { $aButtons[-1] = '-1'; } echo '
' ; echo '' ; } private function loadIndividialButtonRow( $sButtonKey, $iButtonId, $bDisabled ) { $sButtonTitle = ( isset( $this->aSavedData['button_' . $iButtonId . '_title'] ) ? $this->aSavedData['button_' . $iButtonId . '_title'] : 'Button ' . ($iButtonId + 1) ); $onMobile = ( isset( $this->aSavedData['button_' . $iButtonId . '_show_on_phone'] ) ? $this->aSavedData['button_' . $iButtonId . '_show_on_phone'] : '' ); $onDesktop = ( isset( $this->aSavedData['button_' . $iButtonId . '_show_on_desktop'] ) ? $this->aSavedData['button_' . $iButtonId . '_show_on_desktop'] : '' ); ?>