Example #1
0
                                    jQuery(document).ready(function($) {
                                        $(".<?php 
        echo $mb->get_the_single_name();
        ?>
").on ('click', function() {
                                            $("input[name='<?php 
        echo $mb->get_the_name();
        ?>
']:checked").removeAttr("checked");
                                            $(this).next().attr("checked" , "checked");
                                        }); 
                                    });
                                </script> 
                                
                                <?php 
        foreach (recognized_fontello_icons() as $key => $icon) {
            $activestate = $mb->get_the_value() == $icon ? 'active' : '';
            $icondisplay = $icon == 'icon-noicon' ? 'no icon' : '<i class="' . $icon . '"></i>';
            echo '<button style="width:30px;" type="button" class="btn ' . $activestate . ' ' . $mb->get_the_single_name() . '">' . $icondisplay . '</button>';
            echo '<input type="radio" name="' . $mb->get_the_name() . '" value="' . $icon . '" ' . $mb->get_the_radio_state($icon) . ' style="display:none;"  />';
        }
        ?>
                            
                            </div>
                                
                            </div><!-- end #servicecolumnicon-4 -->
                            
                        </div> 
                        
                        </div>
                       
Example #2
0
function shortcode_list_icon($content = null)
{
    $output = '';
    $counter = 1;
    foreach (recognized_fontello_icons() as $icon) {
        if ($counter == 1) {
            $output .= '<div class="row-fluid">';
        }
        $output .= '<div class="span4">
                        <p style="text-align:center;">
                            <i class="' . $icon . ' icon-3x icon-list-item"></i><br />
                            <pre style="font-size: 11px; text-align:center;">[lambda_icon icon="' . $icon . '"]</pre>
                        </p>
                    </div>';
        if ($counter == 3) {
            $output .= '</div><!-- end row -->';
            $counter = 1;
        } else {
            $counter++;
        }
    }
    return $output;
}