/** * Meta Box: Style Settings */ public function call_box_style_settings() { echo $this->form->set_current_option( 'style' )->open_form(); ?> <fieldset class="options"> <table class="form-table"> <tr> <th style="width:250px;"><?php $this->_e( 'Set icon for external link' ) ?> <?php echo $this->tooltip_help( 'Set an icon that wll be shown for external links. See example on the right side.' ) ?></th> <td> <div> <div style="width:15%;float:left"> <label><?php echo $this->form->radio( 'icon', 0 ); ?> <span><?php $this->_e( 'No icon' ) ?></span></label> <?php for ( $x = 1; $x <= 20; $x++ ): ?> <br/> <label title="<?php echo sprintf( $this->__( 'Icon %1$s: choose this icon to show for all external links or add the class \'ext-icon-%1$s\' to a specific link.' ), $x ) ?>"> <?php echo $this->form->radio( 'icon', $x ); ?> <img src="<?php echo plugins_url( 'images/external-'. $x .'.png', WP_EXTERNAL_LINKS_FILE ) ?>" /></label> <?php if ( $x % 5 == 0 ): ?> </div> <div style="width:15%;float:left"> <?php endif; ?> <?php endfor; ?> </div> <div style="width:29%;float:left;"><span class="description"><?php $this->_e( 'Example:' ) ?></span> <br/><img src="<?php echo plugins_url( 'images/link-icon-example.png', WP_EXTERNAL_LINKS_FILE ) ?>" /> </div> <br style="clear:both" /> </div> </td> </tr> <tr> <th><?php $this->_e( 'Skip images' ) ?> <?php echo $this->tooltip_help( 'Don\'t show icon for external links containing images.' ) ?></th> <td><label><?php echo $this->form->checkbox( 'image_no_icon', 1 ); ?> <span><?php $this->_e( 'No icon for extenal links with images' ) ?></span></label> </td> </tr> <tr> <th style="width:250px;"><?php $this->_e( 'Set no-icon class' ) ?> <?php echo $this->tooltip_help( 'Set this class for links, that should not have the external link icon.' ) ?></th> <td><label><?php echo $this->form->text( 'no_icon_class', array( 'class' => '' ) ); ?></label> <br/><label><?php echo $this->form->checkbox( 'no_icon_same_window', 1 ); ?> <span><?php $this->_e( 'Always open links with no-icon class in same window or tab' ) ?></span></label> <?php echo $this->tooltip_help( 'When enabled external links containing the no-icon class will always be opened in the current window or tab. No matter which target is set.' ) ?> </td> </tr> <tr> <th><?php $this->_e( 'Add to <code>class</code>-attribute' ) ?> <?php echo $this->tooltip_help( 'Add one or more extra classes to the external links, seperated by a space. It is optional, else just leave field blank.' ) ?></th> <td><label><?php echo $this->form->text( 'class_name' ); ?></label></td> </tr> </table> </fieldset> <?php echo $this->form->submit(); echo $this->form->close_form(); }