function printFeatureSummaryBlock($fOn, $sName, $sSettingsHref = '', $sInnerSpanSize = 4) { $sFeatureSummaryBlockNameTemplates = '%s : <span class="feature-enabled-text">%s</span>'; $sOn = _wptb__('On'); $sOff = _wptb__('Off'); ?> <div class="span<?php echo $sInnerSpanSize; ?> feature-summary-block state-<?php echo strtolower($fOn ? $sOn : $sOff); ?> " id="feature-<?php echo str_replace(' ', '', strtolower($sName)); ?> " > <div class="row-fluid"> <div class="feature-icon span3"> </div> <div class="span8 offset1"> <a class="btn btn-<?php echo $fOn ? 'success' : 'warning'; ?> " <?php echo empty($sSettingsHref) ? 'disabled="disabled"' : sprintf('href="%s"', $sSettingsHref); ?> > <?php echo empty($sSettingsHref) ? _wptb_e('See Below') : _wptb_e('Go To Settings'); ?> </a> </div> </div> <div class="feature-name"> <?php echo sprintf($sFeatureSummaryBlockNameTemplates, $sName, $fOn ? 'ON' : 'OFF'); ?> </div> </div> <?php }
printAllPluginOptionsForm($icwp_aAllOptions, $icwp_var_prefix, $icwp_nOptionsPerRow); ?> <div class="form-actions"> <input type="hidden" name="<?php echo $icwp_var_prefix; ?> all_options_input" value="<?php echo $icwp_all_options_input; ?> " /> <input type="hidden" name="<?php echo $icwp_var_prefix; ?> plugin_form_submit" value="Y" /> <button type="submit" class="btn btn-primary btn-large" name="submit"><?php _wptb_e('Save All Settings'); ?> </button> </div> </form> </div><!-- / span9 --> <?php if ($icwp_fShowAds) { ?> <div class="span3" id="side_widgets"> <?php echo getWidgetIframeHtml('side-widgets-wtb'); ?> </div>