/** * Form * * @ Updated 1.2.7 */ function form($options) { $bot = new PhotoTileForInstagramAdmin(); $widget_container = $this->get_field_id('AlpinePhotoTiles-container'); ?> <div id="<?php echo $widget_container; ?> " class="AlpinePhotoTiles-container <?php echo $bot->get_private('domain'); ?> "> <?php $defaults = $bot->option_defaults(); $positions = $bot->admin_get_widget_options_by_position(); if (count($positions)) { foreach ($positions as $position => $positionsinfo) { ?> <div class="<?php echo $position; ?> "> <?php if (!empty($positionsinfo['title'])) { ?> <h4><?php echo $positionsinfo['title']; ?> </h4><?php } ?> <table class="form-table"> <tbody> <?php if (count($positionsinfo['options'])) { foreach ($positionsinfo['options'] as $optionname) { $option = $defaults[$optionname]; $fieldname = $this->get_field_name($option['name']); $fieldid = $this->get_field_id($option['name']); if (!empty($option['hidden-option']) && !empty($option['check'])) { $show = $bot->get_option($option['check']); if (empty($show)) { continue; } } if (!empty($option['parent'])) { $class = $option['parent']; } elseif (!empty($option['child'])) { $class = $this->get_field_id($option['child']); } else { $class = $this->get_field_id('unlinked'); } $trigger = !empty($option['trigger']) ? 'data-trigger="' . $this->get_field_id($option['trigger']) . '"' : ''; $hidden = !empty($option['hidden']) ? ' ' . $option['hidden'] : ''; ?> <tr valign="top"> <td class="<?php echo $class; echo $hidden; ?> " <?php echo $trigger; ?> ><?php $bot->MenuDisplayCallback($options, $option, $fieldname, $fieldid); ?> </td></tr> <?php } } ?> </tbody> </table> </div> <?php } } ?> <div class="bottom"> <div><?php //$bot->admin_donate_button(); ?> </div> <div><?php _e('Add the plugin to a page or post using the '); ?> <a href="<?php echo 'options-general.php?page=' . $bot->get_private('settings') . '&tab=generator'; ?> " target="_blank">Shortcode Generator</a>.</div> <div><?php _e('Check the '); ?> <a href="<?php echo 'options-general.php?page=' . $bot->get_private('settings') . '&tab=plugin-settings'; ?> " target="_blank">Plugin Settings</a> <?php _e('page for additional options.'); ?> </div> <div><?php _e('Visit the '); ?> <a href="<?php echo 'options-general.php?page=' . $bot->get_private('settings') . '&tab=plugin-tools'; ?> " target="_blank">Plugin Tools</a> <?php _e('page to check the plugin\'s loading time on your server.'); ?> </div> <div><?php _e('Need Help? Visit '); ?> <a href="<?php echo $bot->get_private('info'); ?> " target="_blank">the Alpine Press</a> <?php _e('for more about this plugin.'); ?> </div> <div><b>**Please Note: This plugin is no longer being developed or maintained. If you are a WordPress developer, I encourage you to take this plugin and make it your own.**</b></div> </div> </div><?php // Close container }