Exemplo n.º 1
0
    function form($instance)
    {
        $defaults = array('title' => '', 'shortcode' => '');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Title (optional)
				<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
			</label>
		</div>
		
		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('shortcode');
        ?>
">
				Shortcode
				<?php 
        echo aq_field_textarea('shortcode', $block_id, $shortcode, $size = 'full');
        ?>
			</label>
		</div>
		
		<?php 
    }
Exemplo n.º 2
0
    function form($instance)
    {
        $defaults = array('text' => '');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Title (optional)
				<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
			</label>
		</p>

		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('text');
        ?>
">
				Content
				<?php 
        echo aq_field_textarea('text', $block_id, $text, $size = 'full');
        ?>
			</label>
		</p>

		<?php 
    }
Exemplo n.º 3
0
    function form($instance)
    {
        $defaults = array('content' => '', 'type' => '', 'format' => 'dismiss');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        $type_options = array('alert-warning' => 'Standard', 'alert-danger' => 'Error', 'alert-success' => 'Success', 'alert-info' => 'Info');
        $format_options = array('standard' => 'Standard Alert', 'dismiss' => 'Alert with Dismiss');
        ?>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Title (optional)<br/>
				<?php 
        echo aq_field_input('title', $block_id, $title);
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('content');
        ?>
">
				Alert Text (required)<br/>
				<?php 
        echo aq_field_textarea('content', $block_id, $content);
        ?>
			</label>
		</p>
		
		<p class="description half">
			<label for="<?php 
        echo $this->get_field_id('type');
        ?>
">
				Alert Type<br/>
				<?php 
        echo aq_field_select('type', $block_id, $type_options, $type);
        ?>
			</label>
		</p>
		
		<p class="description half">
			<label for="<?php 
        echo $this->get_field_id('format');
        ?>
">
				Alert Format<br/>
				<?php 
        echo aq_field_select('format', $block_id, $format_options, $format);
        ?>
			</label>
		</p>

	<?php 
    }
Exemplo n.º 4
0
    function form($instance)
    {
        $defaults = array('text' => '', 'wpautop' => 0, 'code_display' => 0);
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Title (optional)
				<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('text');
        ?>
">
				Content
				<?php 
        echo aq_field_textarea('text', $block_id, $text, $size = 'full', true);
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('wpautop');
        ?>
">
				Disable Auto Paragraphs? <code>wpautop</code><br/>
				<?php 
        echo aq_field_checkbox('wpautop', $block_id, $wpautop);
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('code_display');
        ?>
">
				Display as preformatted code?<br/>
				<?php 
        echo aq_field_checkbox('code_display', $block_id, $code_display);
        ?>
			</label>
		</p>
		
	<?php 
    }
Exemplo n.º 5
0
    function form($instance)
    {
        $defaults = array('tabs' => array(1 => array('title' => 'Skill Bar', 'content' => '90%')), 'text' => '');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Block Title (optional)
				<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('text');
        ?>
">
				Content Above Tabs (optional)
				<?php 
        echo aq_field_textarea('text', $block_id, $text, $size = 'full', true);
        ?>
			</label>
		</p>
		
		<div class="description cf">
			<ul id="aq-sortable-list-<?php 
        echo $block_id;
        ?>
" class="aq-sortable-list" rel="<?php 
        echo $block_id;
        ?>
">
				<?php 
        $tabs = is_array($tabs) ? $tabs : $defaults['tabs'];
        $count = 1;
        foreach ($tabs as $tab) {
            $this->tab($tab, $count);
            $count++;
        }
        ?>
			</ul>
			<p></p>
			<a href="#" rel="skill" class="aq-sortable-add-new button">Add New</a>
			<p></p>
		</div>
		
	<?php 
    }
Exemplo n.º 6
0
        function form($instance)
        {
            $defaults = array('content' => '', 'type' => 'note', 'style' => '');
            $instance = wp_parse_args($instance, $defaults);
            extract($instance);
            $type_options = array('default' => 'Standard', 'info' => 'Info', 'note' => 'Notification', 'warn' => 'Warning', 'tips' => 'Tips');
            ?>
			
			<p class="description">
				<label for="<?php 
            echo $this->get_field_id('title');
            ?>
">
					Title (optional)<br/>
					<?php 
            echo aq_field_input('title', $block_id, $title);
            ?>
				</label>
			</p>
			<p class="description">
				<label for="<?php 
            echo $this->get_field_id('content');
            ?>
">
					Alert Text (required)<br/>
					<?php 
            echo aq_field_textarea('content', $block_id, $content);
            ?>
				</label>
			</p>
			<p class="description half">
				<label for="<?php 
            echo $this->get_field_id('type');
            ?>
">
					Alert Type<br/>
					<?php 
            echo aq_field_select('type', $block_id, $type_options, $type);
            ?>
				</label>
			</p>
			<p class="description half last">
				<label for="<?php 
            echo $this->get_field_id('style');
            ?>
">
					Additional inline css styling (optional)<br/>
					<?php 
            echo aq_field_input('style', $block_id, $style);
            ?>
				</label>
			</p>
			<?php 
        }
Exemplo n.º 7
0
        function form($instance)
        {
            $defaults = array('content' => '', 'type' => 'note', 'style' => '', 'wp_autop' => 1);
            $instance = wp_parse_args($instance, $defaults);
            extract($instance);
            $type_options = array('notice' => 'Notice', 'error' => 'Error', 'warning' => 'Warning', 'success' => 'Success');
            ?>

				<p class="description">
					<label for="<?php 
            echo $this->get_field_id('content');
            ?>
">
						Alert Text (required)<br/>
						<?php 
            echo aq_field_textarea('content', $block_id, $content);
            ?>
					</label>
					<label for="<?php 
            echo $this->get_field_id('wp_autop');
            ?>
">
						<?php 
            echo aq_field_checkbox('wp_autop', $block_id, $wp_autop);
            ?>
						Do not create the paragraphs automatically. <code>"wpautop"</code> disable.
					</label>
				</p>
				<p class="description half">
					<label for="<?php 
            echo $this->get_field_id('type');
            ?>
">
						Alert Type<br/>
						<?php 
            echo aq_field_select('type', $block_id, $type_options, $type);
            ?>
					</label>
				</p>
				<p class="description half last">
					<label for="<?php 
            echo $this->get_field_id('style');
            ?>
">
						Additional inline css styling (optional)<br/>
						<?php 
            echo aq_field_input('style', $block_id, $style);
            ?>
					</label>
				</p>
				<?php 
        }
        function form($instance)
        {
            $defaults = array('title' => 'New Skills', 'des' => '', 'items' => array(1 => array('title' => 'New Skill')));
            $instance = wp_parse_args($instance, $defaults);
            extract($instance);
            ?>
    <div class="description">
        <label for="<?php 
            echo $this->get_field_id('title');
            ?>
">
        Title (Option) <em style="font-size: 0.8em;">(Please enter title)</em><br/>
        <?php 
            echo aq_field_input('title', $block_id, $title, $size = 'full');
            ?>
        </label>
    </div>
	<div class="description">
        <label for="<?php 
            echo $this->get_field_id('des');
            ?>
">
        Description (Option) <br />
        <?php 
            echo aq_field_textarea('des', $block_id, $des, $size = 'full');
            ?>
		
        </label>
    </div>
    <div class="description cf">
	    <ul id="aq-sortable-list-<?php 
            echo $block_id;
            ?>
" class="aq-sortable-list" rel="<?php 
            echo $block_id;
            ?>
">
		    <?php 
            $items = is_array($items) ? $items : $defaults['items'];
            $count = 1;
            foreach ($items as $item) {
                $this->item($item, $count);
                $count++;
            }
            ?>
	    </ul>
	    <p></p>
	    	<a href="#" rel="personal" class="aq-sortable-add-new button">Add New</a>
	    <p></p>
    </div>
<?php 
        }
Exemplo n.º 9
0
    function form($instance)
    {
        $defaults = array('text' => '', 'line' => 1);
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Title
				<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('text');
        ?>
">
				Content
				<?php 
        echo aq_field_textarea('text', $block_id, $text, $size = 'full', true);
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('line');
        ?>
">
				Use "thin" content width?<br/>
				<?php 
        echo aq_field_checkbox('line', $block_id, $line);
        ?>
			</label>
		</p>
		
	<?php 
    }
Exemplo n.º 10
0
    function form($instance)
    {
        $defaults = array('text' => '', 'filter' => 0);
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Title (optional)
				<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('text');
        ?>
">
				Content
				<?php 
        echo aq_field_textarea('text', $block_id, $text, $size = 'full');
        ?>
			</label>
			<label for="<?php 
        echo $this->get_field_id('filter');
        ?>
">
				<?php 
        echo aq_field_checkbox('filter', $block_id, $filter);
        ?>
				<?php 
        _e('Automatically add paragraphs', 'aqpb-l10n');
        ?>
			</label>
		</p>
		
		<?php 
    }
Exemplo n.º 11
0
    function form($instance)
    {
        $defaults = array('text' => '', 'wp_autop' => 0);
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Title (optional)
				<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('text');
        ?>
">
				Content
				<?php 
        echo aq_field_textarea('text', $block_id, $text, $size = 'full');
        ?>
			</label>
			<label for="<?php 
        echo $this->get_field_id('wp_autop');
        ?>
">
				<?php 
        echo aq_field_checkbox('wp_autop', $block_id, $wp_autop);
        ?>
				Do not create the paragraphs automatically. <code>"wpautop"</code> disable.
			</label>
	</p>
		
		<?php 
    }
Exemplo n.º 12
0
    function form($instance)
    {
        $defaults = array('title' => '', 'heading' => 'h3', 'text' => '', 'align' => 'center', 'bgcolor' => '#fff', 'textcolor' => '#676767', 'media' => '', 'imagesize' => 'full', 'imagetype' => 'none', 'enablebtn' => '1', 'btntext' => 'Learn More', 'btnlink' => '', 'btncolor' => 'black', 'btnsize' => 'default', 'btnlinkopen' => 'same', 'id' => '', 'class' => '', 'style' => '');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        $heading_style = array('h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5', 'h6' => 'H6');
        $align_options = array('left' => 'Left', 'center' => 'Center', 'right' => 'Right');
        $imagetype_options = array('none' => 'None', 'rounded' => 'Rounded', 'circle' => 'Circle', 'polaroid' => 'Polaroid');
        $imagesize_options = array('thumbnail' => 'Thumbnail', 'medium' => 'Medium', 'large' => 'Large', 'full' => 'Full');
        $btncolor_options = array('grey' => 'Grey', 'blue' => 'Blue', 'lightblue' => 'Light Blue', 'green' => 'Green', 'red' => 'Red', 'yellow' => 'Yellow', 'black' => 'Black');
        $btnsize_options = array('default' => 'Default', 'mini' => 'Mini', 'small' => 'Small', 'large' => 'Large', 'block' => 'Block');
        $btnlinkopen_options = array('same' => 'Same Window', 'new' => 'New Window');
        ?>
		<div class="description two-third">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Title
				<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
			</label>
		</div>

		<div class="description third last">
			<label for="<?php 
        echo $this->get_field_id('heading');
        ?>
">
				Heading Style<br/>
				<?php 
        echo aq_field_select('heading', $block_id, $heading_style, $heading);
        ?>
			</label>
		</div>

		<div class="cf" style="height: 20px"></div>
		
		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('media');
        ?>
">
				Upload an Image
				<?php 
        echo aq_field_upload('media', $block_id, $media, 'image');
        ?>
			</label>
		</div>

		<div class="description half">
			<label for="<?php 
        echo $this->get_field_id('imagesize');
        ?>
">
				Image Size<br/>
				<?php 
        echo aq_field_select('imagesize', $block_id, $imagesize_options, $imagesize);
        ?>
			</label>
		</div>

		<div class="description half last">
			<label for="<?php 
        echo $this->get_field_id('imagetype');
        ?>
">
				Image Type<br/>
				<?php 
        echo aq_field_select('imagetype', $block_id, $imagetype_options, $imagetype);
        ?>
			</label>
		</div>

		<div class="cf" style="height: 20px"></div>

		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('text');
        ?>
">
				Content
				<?php 
        echo aq_field_textarea('text', $block_id, $text, $size = 'full');
        ?>
			</label>
		</div>

		<div class="cf" style="height: 20px"></div>

		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('enablebtn');
        ?>
">
				Enable Button <?php 
        echo aq_field_checkbox('enablebtn', $block_id, $enablebtn);
        ?>
			</label>
		</div>

		<div class="description half">
			<label for="<?php 
        echo $this->get_field_id('btntext');
        ?>
">
				Button Text
				<?php 
        echo aq_field_input('btntext', $block_id, $btntext, $size = 'full');
        ?>
			</label>
		</div>

		<div class="description fourth">
			<label for="<?php 
        echo $this->get_field_id('btncolor');
        ?>
">
				Button Color<br/>
				<?php 
        echo aq_field_select('btncolor', $block_id, $btncolor_options, $btncolor);
        ?>
			</label>
		</div>

		<div class="description fourth last">
			<label for="<?php 
        echo $this->get_field_id('btnsize');
        ?>
">
				Button Size<br/>
				<?php 
        echo aq_field_select('btnsize', $block_id, $btnsize_options, $btnsize);
        ?>
			</label>
		</div>

		<div class="description two-third">
			<label for="<?php 
        echo $this->get_field_id('btnlink');
        ?>
">
				Button Link
				<?php 
        echo aq_field_input('btnlink', $block_id, $btnlink, $size = 'full');
        ?>
			</label>	
		</div>

		<div class="description third last">
			<label for="<?php 
        echo $this->get_field_id('btnlinkopen');
        ?>
">
				Link Open In<br/>
				<?php 
        echo aq_field_select('btnlinkopen', $block_id, $btnlinkopen_options, $btnlinkopen);
        ?>
			</label>	
		</div>

		<div class="cf" style="height: 20px"></div>

		<div class="description third">
			<label for="<?php 
        echo $this->get_field_id('align');
        ?>
">
				Align<br/>
				<?php 
        echo aq_field_select('align', $block_id, $align_options, $align);
        ?>
			</label>
		</div>

		<div class="description third">
			<label for="<?php 
        echo $this->get_field_id('bgcolor');
        ?>
">
				Pick a background color<br/>
				<?php 
        echo aq_field_color_picker('bgcolor', $block_id, $bgcolor);
        ?>
			</label>
		</div>

		<div class="description third last">
			<label for="<?php 
        echo $this->get_field_id('textcolor');
        ?>
">
				Pick a text color<br/>
				<?php 
        echo aq_field_color_picker('textcolor', $block_id, $textcolor);
        ?>
			</label>
		</div>

		<div class="cf" style="height: 20px"></div>

		<div class="description half">
			<label for="<?php 
        echo $this->get_field_id('id');
        ?>
">
				id (optional)<br/>
				<?php 
        echo aq_field_input('id', $block_id, $id, $size = 'full');
        ?>
			</label>
		</div>

		<div class="description half last">
			<label for="<?php 
        echo $this->get_field_id('class');
        ?>
">
				class (optional)<br/>
				<?php 
        echo aq_field_input('class', $block_id, $class, $size = 'full');
        ?>
			</label>
		</div>

		<div class="cf"></div>

		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('style');
        ?>
">
				Additional inline css styling (optional)<br/>
				<?php 
        echo aq_field_input('style', $block_id, $style);
        ?>
			</label>
		</div>
		
		<?php 
    }
Exemplo n.º 13
0
        function form($instance)
        {
            $defaults = array('title' => '', 'job' => '', 'image' => '', 'id' => 'about', 'items' => array(1 => array('title' => 'New Title', 'icon' => 'icon-twitter', 'link' => '')), 'subtitle' => '', 'content' => '', 'infomation' => '', 'shortbtns' => array(1 => array('title' => 'New Title', 'icon' => 'icon-print-1', 'linkitem' => '', 'color' => '#03CC85')));
            $instance = wp_parse_args($instance, $defaults);
            extract($instance);
            ?>
	
	<h3 style="text-align: center;">Content Box Left</h3>
    <br />
	
    <div class="description">
        <label for="<?php 
            echo $this->get_field_id('title');
            ?>
">
        Title <br />
        <?php 
            echo aq_field_input('title', $block_id, $title, $size = 'full');
            ?>
        </label>
    </div>
    
    <div class="description half">
        <label for="<?php 
            echo $this->get_field_id('id');
            ?>
">
        Id Section do you want <code>Ex: about</code> <br />
        <?php 
            echo aq_field_input('id', $block_id, $id, $size = 'full');
            ?>
        </label>
    </div>    
    
    <div class="description half last">
		<label for="<?php 
            echo $this->get_field_id('image');
            ?>
">
			Pick a your image<br/>
			<?php 
            echo aq_field_upload('image', $block_id, $image, $media_type = 'image');
            ?>
		</label>
	</div>
	<div class="description half">
        <label for="<?php 
            echo $this->get_field_id('job');
            ?>
">
        Your Job <br />
        <?php 
            echo aq_field_textarea('job', $block_id, $job, $size = 'full');
            ?>
		
        </label>
    </div>
    	
	<div class="description half last">
        <label for="<?php 
            echo $this->get_field_id('subtitle');
            ?>
">
        Subtile <br />
        <?php 
            echo aq_field_textarea('subtitle', $block_id, $subtitle, $size = 'full');
            ?>
		
        </label>
    </div>        
        
	<div class="description">
        <label for="<?php 
            echo $this->get_field_id('content');
            ?>
">
        Content <br />
        <?php 
            echo aq_field_textarea('content', $block_id, $content, $size = 'full');
            ?>
		
        </label>
    </div>

	<div class="description">
        <label for="<?php 
            echo $this->get_field_id('infomation');
            ?>
">
        Infomation <br />
        <?php 
            echo aq_field_textarea('infomation', $block_id, $infomation, $size = 'full');
            ?>
		
        </label>
    </div> 
	
	<div class="cf"></div>
	<h3 style="text-align: center;">Button Box Left</h3>
	<div class="description cf">
	    <ul id="aq-sortable-list-<?php 
            echo $block_id;
            ?>
" class="aq-sortable-list" rel="<?php 
            echo $block_id;
            ?>
">
		    <?php 
            $shortbtns = is_array($shortbtns) ? $shortbtns : $defaults['shortbtns'];
            $count = 1;
            foreach ($shortbtns as $shortbtn) {
                $this->shortbtn($shortbtn, $count);
                $count++;
            }
            ?>
	    </ul>
	    <p></p>
	    	<a href="#" rel="checkbtn" class="aq-sortable-add-new button">Add New Btn</a>
	    <p></p>
    </div>
    <div class="cf"></div>
	<br />
	<hr />
	<h3 style="text-align: center;">Social</h3>
    <br />
	
    <div class="description cf">
	    <ul id="aq-sortable-list-<?php 
            echo $block_id;
            ?>
" class="aq-sortable-list" rel="<?php 
            echo $block_id;
            ?>
">
		    <?php 
            $items = is_array($items) ? $items : $defaults['items'];
            $count = 1;
            foreach ($items as $item) {
                $this->item($item, $count);
                $count++;
            }
            ?>
	    </ul>
	    <p></p>
	    	<a href="#" rel="check" class="aq-sortable-add-new button">Add New</a>
	    <p></p>
    </div>
    <div class="cf"></div>
<?php 
        }
Exemplo n.º 14
0
    function form($instance)
    {
        $defaults = array("title" => '', "type" => '', "currency" => '$', "price" => '', "per" => '', "buttonstyle" => '', "buttonlink" => '', "buttontext" => 'Sign Up', "text" => '', 'wp_autop' => 0);
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
        <p class="description half">
            <label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
                Title
                <?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
            </label>
        </p>
        <p class="description half last">
            <label for="<?php 
        echo $this->get_field_id('boxes');
        ?>
-type">
                Type <br/>
                <?php 
        $type_options = array('featured' => 'Featured', 'premium' => 'Premium', 'standard' => 'Standard');
        echo aq_field_select('type', $block_id, $type_options, $type);
        ?>
            </label>
        </p>
        <p class="description half">
            <label for="<?php 
        echo $this->get_field_id('currency');
        ?>
">
                Currency
                <?php 
        echo aq_field_input('currency', $block_id, $currency, $size = 'full');
        ?>
            </label>
        </p>
        <p class="description half last">
            <label for="<?php 
        echo $this->get_field_id('price');
        ?>
">
                Price
                <?php 
        echo aq_field_input('price', $block_id, $price, $size = 'full');
        ?>
            </label>
        </p>
        <p class="description half">
            <label for="<?php 
        echo $this->get_field_id('per');
        ?>
">
                "Per"
                <?php 
        echo aq_field_input('per', $block_id, $per, $size = 'full');
        ?>
            </label>
        </p>

        <p class="description half last ">
            <label for="<?php 
        echo $this->get_field_id('buttonstyle');
        ?>
">
                "Sing up" style
               <?php 
        $style_options = array('light' => 'Light', 'color' => 'Color');
        echo aq_field_select('buttonstyle', $block_id, $style_options, $buttonstyle);
        ?>
            </label>
        </p>
        <p class="description half ">
            <label for="<?php 
        echo $this->get_field_id('buttonlink');
        ?>
">
                "Sing up" button URL
                <?php 
        echo aq_field_input('buttonlink', $block_id, $buttonlink, $size = 'full');
        ?>
            </label>
        </p>
        <p class="description half last">
            <label for="<?php 
        echo $this->get_field_id('buttontext');
        ?>
">
                "Sing up" text
                <?php 
        echo aq_field_input('buttontext', $block_id, $buttontext, $size = 'full');
        ?>
            </label>
        </p>


            <p class="description">
                <label for="<?php 
        echo $this->get_field_id('text');
        ?>
">
                    Content
                    <?php 
        echo aq_field_textarea('text', $block_id, $text, $size = 'full');
        ?>
                </label>
                <label for="<?php 
        echo $this->get_field_id('wp_autop');
        ?>
">
                    <?php 
        echo aq_field_checkbox('wp_autop', $block_id, $wp_autop);
        ?>
                    Do not create the paragraphs automatically. <code>"wpautop"</code> disable.
                </label>
            </p>

            <?php 
    }
Exemplo n.º 15
0
 function form($instance)
 {
     $defaults = array('content' => '');
     $instance = wp_parse_args($instance, $defaults);
     extract($instance);
     echo cb_field($this->get_field_id('content'), aq_field_textarea('content', $block_id, $content), 'Content');
 }
Exemplo n.º 16
0
    function form($instance)
    {
        $defaults = array('title' => '', 'slogan' => '', 'heading' => 'h1', 'align' => 'center', 'bgcolor' => '#f1f1f1', 'textcolor' => '#676767', 'id' => '', 'class' => '', 'style' => '');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        $heading_style = array('h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5', 'h6' => 'H6');
        $align_options = array('left' => 'Left', 'center' => 'Center', 'right' => 'Right');
        ?>
		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Title (optional)
				<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
			</label>
		</div>
		
		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('slogan');
        ?>
">
				Slogan
				<?php 
        echo aq_field_textarea('slogan', $block_id, $slogan, $size = 'full');
        ?>
			</label>
		</div>

		<div class="description fourth">
			<label for="<?php 
        echo $this->get_field_id('heading');
        ?>
">
				Heading Type<br/>
				<?php 
        echo aq_field_select('heading', $block_id, $heading_style, $heading);
        ?>
			</label>
		</div>

		<div class="description fourth">
			<label for="<?php 
        echo $this->get_field_id('align');
        ?>
">
				Align<br/>
				<?php 
        echo aq_field_select('align', $block_id, $align_options, $align);
        ?>
			</label>
		</div>

		<div class="description fourth">
			<label for="<?php 
        echo $this->get_field_id('bgcolor');
        ?>
">
				Pick a background color<br/>
				<?php 
        echo aq_field_color_picker('bgcolor', $block_id, $bgcolor);
        ?>
			</label>
		</div>

		<div class="description fourth last">
			<label for="<?php 
        echo $this->get_field_id('textcolor');
        ?>
">
				Pick a text color<br/>
				<?php 
        echo aq_field_color_picker('textcolor', $block_id, $textcolor);
        ?>
			</label>
		</div>

		<div class="description half">
			<label for="<?php 
        echo $this->get_field_id('id');
        ?>
">
				id (optional)<br/>
				<?php 
        echo aq_field_input('id', $block_id, $id, $size = 'full');
        ?>
			</label>
		</div>

		<div class="description half last">
			<label for="<?php 
        echo $this->get_field_id('class');
        ?>
">
				class (optional)<br/>
				<?php 
        echo aq_field_input('class', $block_id, $class, $size = 'full');
        ?>
			</label>
		</div>

		<div class="cf"></div>

		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('style');
        ?>
">
				Additional inline css styling (optional)<br/>
				<?php 
        echo aq_field_input('style', $block_id, $style);
        ?>
			</label>
		</div>
		
		<?php 
    }
Exemplo n.º 17
0
    function form($instance)
    {
        $defaults = array('content' => '', 'type' => '', 'format' => 'dismiss', 'responsive_first' => 0);
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        $type_options = array('' => 'Standard', 'alert-error' => 'Error', 'alert-success' => 'Success', 'alert-info' => 'Info');
        $format_options = array('standard' => 'Standard Alert', 'dismiss' => 'Alert with Dismiss');
        ?>
		
		<p class="description note">
			<?php 
        _e('Use this to add a fixed, or dismissable alert to your page.', 'marble');
        ?>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Title (optional)<br/>
				<?php 
        echo aq_field_input('title', $block_id, $title);
        ?>
			</label>
		</p>
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('content');
        ?>
">
				Alert Text (required)<br/>
				<?php 
        echo aq_field_textarea('content', $block_id, $content);
        ?>
			</label>
		</p>
		<p class="description half">
			<label for="<?php 
        echo $this->get_field_id('type');
        ?>
">
				Alert Type<br/>
				<?php 
        echo aq_field_select('type', $block_id, $type_options, $type);
        ?>
			</label>
		</p>
		<p class="description half">
			<label for="<?php 
        echo $this->get_field_id('format');
        ?>
">
				Alert Format<br/>
				<?php 
        echo aq_field_select('format', $block_id, $format_options, $format);
        ?>
			</label>
		</p>

		<?php 
    }
Exemplo n.º 18
0
        function form($instance)
        {
            $defaults = $this->defaults;
            global $lsvr_inview_animations;
            $inview_anim_arr = $lsvr_inview_animations;
            $instance = wp_parse_args($instance, $defaults);
            extract($instance);
            ?>
        <div class="lsvr-form-container">

            <div class="lsvr-form-row">
                <label for="<?php 
            echo $this->get_field_id('embed_code');
            ?>
"><?php 
            _e('Embed Code', 'lsvr-toolkit');
            ?>
</label>
                <div class="lsvr-form-field">
                    <?php 
            echo aq_field_textarea('embed_code', $block_id, $embed_code);
            ?>
                </div>
            </div>

            <div class="lsvr-form-row">
                <label for="<?php 
            echo $this->get_field_id('block_offset');
            ?>
"><?php 
            _e('Block Offset', 'lsvr-toolkit');
            ?>
</label>
                <p class="lsvr-form-description">
                    <?php 
            _e('Left offset of this block.', 'lsvr-toolkit');
            ?>
<br>
                </p>
                <div class="lsvr-form-field">
                    <?php 
            echo aq_field_select('block_offset', $block_id, array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11), $block_offset);
            ?>
                </div>
            </div>

            <div class="lsvr-form-row">
                <label for="<?php 
            echo $this->get_field_id('inview_anim');
            ?>
"><?php 
            _e('InView Animation', 'lsvr-toolkit');
            ?>
</label>
                <p class="lsvr-form-description">
                    <?php 
            _e('Animation fired when element appears in the user\'s viewport.', 'lsvr-toolkit');
            ?>
<br>
                </p>
                <div class="lsvr-form-field">
                    <?php 
            echo aq_field_select('inview_anim', $block_id, $inview_anim_arr, $inview_anim);
            ?>
                </div>
            </div>

            <div class="lsvr-form-row">
                <label for="<?php 
            echo $this->get_field_id('custom_class');
            ?>
"><?php 
            _e('Custom Class', 'lsvr-toolkit');
            ?>
</label>
                <p class="lsvr-form-description">
                    <?php 
            _e('It can be used for applying custom CSS.', 'lsvr-toolkit');
            ?>
<br>
                </p>
                <div class="lsvr-form-field">
                    <?php 
            echo aq_field_input('custom_class', $block_id, $custom_class);
            ?>
                </div>
            </div>

        </div>

        <?php 
        }
Exemplo n.º 19
0
    function form($instance)
    {
        $defaults = array('text' => '', 'currency' => '$', 'amount' => '3', 'button_text' => 'Select Plan', 'button_url' => '');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Title (optional)
				<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('currency');
        ?>
">
				Currency
				<?php 
        echo aq_field_input('currency', $block_id, $currency, $size = 'full');
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('amount');
        ?>
">
				Amount
				<?php 
        echo aq_field_input('amount', $block_id, $amount, $size = 'full', $type = 'number');
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('button_text');
        ?>
">
				Button Text
				<?php 
        echo aq_field_input('button_text', $block_id, $button_text, $size = 'full');
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('button_url');
        ?>
">
				Button URL
				<?php 
        echo aq_field_input('button_url', $block_id, $button_url, $size = 'full');
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('text');
        ?>
">
				Details, new line (return) for each detail.
				<?php 
        echo aq_field_textarea('text', $block_id, $text, $size = 'full');
        ?>
			</label>
		</p>
		
	<?php 
    }
Exemplo n.º 20
0
        function form($instance)
        {
            $defaults = array('text' => '', 'font_size' => '18', 'margin_top' => '10', 'margin_bottom' => '10', 'duration' => '900', 'delay' => '0', 'animation' => '', 'align' => '');
            $instance = wp_parse_args($instance, $defaults);
            extract($instance);
            global $include_animation;
            $text_align = array('center' => 'Center', 'left' => 'Left', 'right' => 'Right');
            ?>
        <p class="description">
            <label for="<?php 
            echo $this->get_field_id('margin_top');
            ?>
">
                <?php 
            _e('Margin top', 'oneengine');
            ?>
                <?php 
            echo aq_field_input('margin_top', $block_id, $margin_top, 'min', 'number');
            ?>
 px
            </label>&nbsp;-&nbsp;
            <label for="<?php 
            echo $this->get_field_id('margin_bottom');
            ?>
">
                <?php 
            _e('Margin bottom', 'oneengine');
            ?>
                <?php 
            echo aq_field_input('margin_bottom', $block_id, $margin_bottom, 'min', 'number');
            ?>
 px
            </label>&nbsp;-&nbsp;
            <label for="<?php 
            echo $this->get_field_id('font_size');
            ?>
">
                <?php 
            _e('Font-size (Ex : 18px)', 'oneengine');
            ?>
                <?php 
            echo aq_field_input('font_size', $block_id, $font_size, 'min', 'number');
            ?>
 px
            </label>&nbsp;&nbsp; - &nbsp;
        </p>
        <p class="description">
            <label for="<?php 
            echo $this->get_field_id('align');
            ?>
">
                <?php 
            _e('Text align', 'oneengine');
            ?>
<br/>
                <?php 
            echo aq_field_select('align', $block_id, $text_align, $align);
            ?>
            </label>
        </p>
        <div class="sortable-body">
            <p class="description">
                <label for="<?php 
            echo $this->get_field_id('animation');
            ?>
">
                    <?php 
            _e('Animation style', 'oneengine');
            ?>
<br/>
                    <?php 
            echo aq_field_select('animation', $block_id, $include_animation, $animation);
            ?>
                </label>
            </p>
            <p class="description">
                <label for="<?php 
            echo $this->get_field_id('duration');
            ?>
">
                    <?php 
            _e('Duration for Animation (Ex : 900ms)', 'oneengine');
            ?>
                    <?php 
            echo aq_field_input('duration', $block_id, $duration, 'min', 'number');
            ?>
 ms
                </label>&nbsp;&nbsp; - &nbsp;
                <label for="<?php 
            echo $this->get_field_id('delay');
            ?>
">
                    <?php 
            _e('Time Delay (Ex : 900ms)', 'oneengine');
            ?>
                    <?php 
            echo aq_field_input('delay', $block_id, $delay, 'min', 'number');
            ?>
 ms
                </label>
            </p>
        </div>
        <p class="description">
			<label for="<?php 
            echo $this->get_field_id('text');
            ?>
">
				<?php 
            _e('Content', 'oneengine');
            ?>
				<?php 
            echo aq_field_textarea('text', $block_id, $text, $size = 'full');
            ?>
			</label>
		</p>			
		<?php 
        }
Exemplo n.º 21
0
    function form($instance)
    {
        $defaults = array('title' => '', 'icon' => '', 'content' => '', 'link' => '', 'wp_autop' => 1);
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
        <p class="description">
            <label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
                Headline
                <?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
            </label>
        </p>
        <p class="tab-desc description">
            <label for="<?php 
        echo $this->get_field_id('boxes');
        ?>
-icon">
                Box Icon <br/>
                <?php 
        global $fontawesome;
        ?>
                <?php 
        echo aq_field_select('icon', $block_id, $fontawesome, $icon);
        ?>

            </label>
        </p>
        <p class="description">
            <label for="<?php 
        echo $this->get_field_id('text');
        ?>
">
                Content
                <?php 
        echo aq_field_textarea('text', $block_id, $text, $size = 'full');
        ?>
            </label>
            <label for="<?php 
        echo $this->get_field_id('wp_autop');
        ?>
">
                <?php 
        echo aq_field_checkbox('wp_autop', $block_id, $wp_autop);
        ?>
                Do not create the paragraphs automatically. <code>"wpautop"</code> disable.
            </label>
        </p>
        <p class="description">
            <label for="<?php 
        echo $this->get_field_id('link');
        ?>
">
                URL
                <?php 
        echo aq_field_input('link', $block_id, $link, $size = 'full');
        ?>
            </label>
        </p>
        <?php 
    }
Exemplo n.º 22
0
    function form($instance)
    {
        $defaults = array('title' => '', 'headline' => '', 'subheadline' => '', 'heading' => 'h2', 'align' => 'left', 'bgcolor' => '#F2EFEF', 'textcolor' => '#676767', 'bordercolor' => '#00a5f7', 'btntext' => 'Learn More', 'btncolor' => 'grey', 'btnsize' => 'large', 'btnlink' => '', 'btnicon' => 'none', 'btnlinkopen' => 'same', 'id' => '', 'class' => '', 'style' => '');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        $heading_style = array('h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5', 'h6' => 'H6');
        $align_options = array('left' => 'Left', 'center' => 'Center', 'right' => 'Right');
        $btncolor_options = array('grey' => 'Grey', 'blue' => 'Blue', 'lightblue' => 'Light Blue', 'green' => 'Green', 'red' => 'Red', 'yellow' => 'Yellow', 'black' => 'Black');
        $btnsize_options = array('default' => 'Default', 'mini' => 'Mini', 'small' => 'Small', 'large' => 'Large');
        $btnlinkopen_options = array('same' => 'Same Window', 'new' => 'New Window');
        $btnicontype_options = array('none' => 'none', 'icon-adjust' => 'icon-adjust', 'icon-align-center' => 'icon-align-center', 'icon-align-justify' => 'icon-align-justify', 'icon-align-left' => 'icon-align-left', 'icon-align-right' => 'icon-align-right', 'icon-arrow-down' => 'icon-arrow-down', 'icon-arrow-left' => 'icon-arrow-left', 'icon-arrow-right' => 'icon-arrow-right', 'icon-arrow-up' => 'icon-arrow-up', 'icon-asterisk' => 'icon-asterisk', 'icon-backward' => 'icon-backward', 'icon-ban-circle' => 'icon-ban-circle', 'icon-barcode' => 'icon-barcode', 'icon-bell' => 'icon-bell', 'icon-bold' => 'icon-bold', 'icon-book' => 'icon-book', 'icon-bookmark' => 'icon-bookmark', 'icon-briefcase' => 'icon-briefcase', 'icon-bullhorn' => 'icon-bullhorn', 'icon-calendar' => 'icon-calendar', 'icon-camera' => 'icon-camera', 'icon-certificate' => 'icon-certificate', 'icon-check' => 'icon-check', 'icon-chevron-down' => 'icon-chevron-down', 'icon-chevron-left' => 'icon-chevron-left', 'icon-chevron-right' => 'icon-chevron-right', 'icon-chevron-up' => 'icon-chevron-up', 'icon-circle-arrow-down' => 'icon-circle-arrow-down', 'icon-circle-arrow-left' => 'icon-circle-arrow-left', 'icon-circle-arrow-right' => 'icon-circle-arrow-right', 'icon-circle-arrow-up' => 'icon-circle-arrow-up', 'icon-cog' => 'icon-cog', 'icon-comment' => 'icon-comment', 'icon-download' => 'icon-download', 'icon-download-alt' => 'icon-download-alt', 'icon-edit' => 'icon-edit', 'icon-eject' => 'icon-eject', 'icon-envelope' => 'icon-envelope', 'icon-exclamation-sign' => 'icon-exclamation-sign', 'icon-eye-close' => 'icon-eye-close', 'icon-eye-open' => 'icon-eye-open', 'icon-facetime-video' => 'icon-facetime-video', 'icon-fast-backward' => 'icon-fast-backward', 'icon-fast-forward' => 'icon-fast-forward', 'icon-file' => 'icon-file', 'icon-film' => 'icon-film', 'icon-filter' => 'icon-filter', 'icon-fire' => 'icon-fire', 'icon-flag' => 'icon-flag', 'icon-folder-close' => 'icon-folder-close', 'icon-folder-open' => 'icon-folder-open', 'icon-font' => 'icon-font', 'icon-forward' => 'icon-forward', 'icon-fullscreen' => 'icon-fullscreen', 'icon-gift' => 'icon-gift', 'icon-globe' => 'icon-globe', 'icon-hand-down' => 'icon-hand-down', 'icon-hand-left' => 'icon-hand-left', 'icon-hand-right' => 'icon-hand-right', 'icon-hand-up' => 'icon-hand-up', 'icon-hdd' => 'icon-hdd', 'icon-headphones' => 'icon-headphones', 'icon-heart' => 'icon-heart', 'icon-home' => 'icon-home', 'icon-inbox' => 'icon-inbox', 'icon-indent-left' => 'icon-indent-left', 'icon-indent-right' => 'icon-indent-right', 'icon-info-sign' => 'icon-info-sign', 'icon-italic' => 'icon-italic', 'icon-leaf' => 'icon-leaf', 'icon-list' => 'icon-list', 'icon-list-alt' => 'icon-list-alt', 'icon-lock' => 'icon-lock', 'icon-magnet' => 'icon-magnet', 'icon-map-marker' => 'icon-map-marker', 'icon-minus' => 'icon-minus', 'icon-minus-sign' => 'icon-minus-sign', 'icon-move' => 'icon-move', 'icon-music' => 'icon-music', 'icon-off' => 'icon-off', 'icon-ok' => 'icon-ok', 'icon-ok-circle' => 'icon-ok-circle', 'icon-ok-sign' => 'icon-ok-sign', 'icon-pause' => 'icon-pause', 'icon-pencil' => 'icon-pencil', 'icon-picture' => 'icon-picture', 'icon-plane' => 'icon-plane', 'icon-play' => 'icon-play', 'icon-play-circle' => 'icon-play-circle', 'icon-plus' => 'icon-plus', 'icon-plus-sign' => 'icon-plus-sign', 'icon-print' => 'icon-print', 'icon-qrcode' => 'icon-qrcode', 'icon-question-sign' => 'icon-question-sign', 'icon-random' => 'icon-random', 'icon-refresh' => 'icon-refresh', 'icon-remove' => 'icon-remove', 'icon-remove-circle' => 'icon-remove-circle', 'icon-remove-sign' => 'icon-remove-sign', 'icon-repeat' => 'icon-repeat', 'icon-resize-full' => 'icon-resize-full', 'icon-resize-horizontal' => 'icon-resize-horizontal', 'icon-resize-small' => 'icon-resize-small', 'icon-resize-vertical' => 'icon-resize-vertical', 'icon-retweet' => 'icon-retweet', 'icon-road' => 'icon-road', 'icon-screenshot' => 'icon-screenshot', 'icon-search' => 'icon-search', 'icon-share' => 'icon-share', 'icon-share-alt' => 'icon-share-alt', 'icon-shopping-cart' => 'icon-shopping-cart', 'icon-signal' => 'icon-signal', 'icon-star' => 'icon-star', 'icon-star-empty' => 'icon-star-empty', 'icon-step-backward' => 'icon-step-backward', 'icon-step-forward' => 'icon-step-forward', 'icon-stop' => 'icon-stop', 'icon-tag' => 'icon-tag', 'icon-tags' => 'icon-tags', 'icon-tasks' => 'icon-tasks', 'icon-text-height' => 'icon-text-height', 'icon-text-width' => 'icon-text-width', 'icon-th' => 'icon-th', 'icon-th-large' => 'icon-th-large', 'icon-th-list' => 'icon-th-list', 'icon-thumbs-down' => 'icon-thumbs-down', 'icon-thumbs-up' => 'icon-thumbs-up', 'icon-time' => 'icon-time', 'icon-tint' => 'icon-tint', 'icon-trash' => 'icon-trash', 'icon-upload' => 'icon-upload', 'icon-user' => 'icon-user', 'icon-volume-down' => 'icon-volume-down', 'icon-volume-off' => 'icon-volume-off', 'icon-volume-up' => 'icon-volume-up', 'icon-warning-sign' => 'icon-warning-sign', 'icon-wrench' => 'icon-wrench', 'icon-zoom-in' => 'icon-zoom-in', 'icon-zoom-out' => 'icon-zoom-out');
        ?>
		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Title (optional)
				<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
			</label>
		</div>
		
		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('headline');
        ?>
">
				Headline
				<?php 
        echo aq_field_textarea('headline', $block_id, $headline, $size = 'full');
        ?>
			</label>
		</div>

		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('subheadline');
        ?>
">
				Subheadline
				<?php 
        echo aq_field_textarea('subheadline', $block_id, $subheadline, $size = 'full');
        ?>
			</label>
		</div>

		<div class="description half">
			<label for="<?php 
        echo $this->get_field_id('heading');
        ?>
">
				Heading Type<br/>
				<?php 
        echo aq_field_select('heading', $block_id, $heading_style, $heading);
        ?>
			</label>
		</div>

		<div class="description half last">
			<label for="<?php 
        echo $this->get_field_id('align');
        ?>
">
				Text Align<br/>
				<?php 
        echo aq_field_select('align', $block_id, $align_options, $align);
        ?>
			</label>
		</div>

		<div class="description third">
			<label for="<?php 
        echo $this->get_field_id('bgcolor');
        ?>
">
				Pick a background color<br/>
				<?php 
        echo aq_field_color_picker('bgcolor', $block_id, $bgcolor);
        ?>
			</label>
		</div>

		<div class="description third">
			<label for="<?php 
        echo $this->get_field_id('textcolor');
        ?>
">
				Pick a text color<br/>
				<?php 
        echo aq_field_color_picker('textcolor', $block_id, $textcolor);
        ?>
			</label>
		</div>

		<div class="description third last">
			<label for="<?php 
        echo $this->get_field_id('bordercolor');
        ?>
">
				Pick a border color<br/>
				<?php 
        echo aq_field_color_picker('bordercolor', $block_id, $bordercolor);
        ?>
			</label>
		</div>

		<div class="description half">
			<label for="<?php 
        echo $this->get_field_id('btntext');
        ?>
">
				Button Text
				<?php 
        echo aq_field_input('btntext', $block_id, $btntext, $size = 'full');
        ?>
			</label>
		</div>
		
		<div class="description half last">
			<label for="<?php 
        echo $this->get_field_id('btnlink');
        ?>
">
				Button Link
				<?php 
        echo aq_field_input('btnlink', $block_id, $btnlink, $size = 'full');
        ?>
			</label>	
		</div>

		<div class="description fourth">
			<label for="<?php 
        echo $this->get_field_id('btnlinkopen');
        ?>
">
				Link Open In<br/>
				<?php 
        echo aq_field_select('btnlinkopen', $block_id, $btnlinkopen_options, $btnlinkopen);
        ?>
			</label>
		</div>

		<div class="description fourth">
			<label for="<?php 
        echo $this->get_field_id('btncolor');
        ?>
">
				Button Color<br/>
				<?php 
        echo aq_field_select('btncolor', $block_id, $btncolor_options, $btncolor);
        ?>
			</label>
		</div>

		<div class="description fourth">
			<label for="<?php 
        echo $this->get_field_id('btnsize');
        ?>
">
				Button Size<br/>
				<?php 
        echo aq_field_select('btnsize', $block_id, $btnsize_options, $btnsize);
        ?>
			</label>
		</div>

		<div class="description fourth last">
			<label for="<?php 
        echo $this->get_field_id('btnicon');
        ?>
">
				Button Icon<br/>
				<?php 
        echo aq_field_select('btnicon', $block_id, $btnicontype_options, $btnicon);
        ?>
			</label>
		</div>

		<div class="description half">
			<label for="<?php 
        echo $this->get_field_id('id');
        ?>
">
				id (optional)<br/>
				<?php 
        echo aq_field_input('id', $block_id, $id, $size = 'full');
        ?>
			</label>
		</div>

		<div class="description half last">
			<label for="<?php 
        echo $this->get_field_id('class');
        ?>
">
				class (optional)<br/>
				<?php 
        echo aq_field_input('class', $block_id, $class, $size = 'full');
        ?>
			</label>
		</div>

		<div class="cf"></div>

		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('style');
        ?>
">
				Additional inline css styling (optional)<br/>
				<?php 
        echo aq_field_input('style', $block_id, $style);
        ?>
			</label>
		</div>
		
		<?php 
    }
Exemplo n.º 23
0
    function form($instance)
    {
        $args = array('nopaging' => true, 'post_type' => 'wpcf7_contact_form', 'status' => 'publish');
        $contacts = get_posts($args);
        $contact_options = array();
        $default_contact = '';
        foreach ($contacts as $contact) {
            $default_contact = empty($default_contact) ? $contact->ID : $default_contact;
            $contact_options[$contact->ID] = htmlspecialchars($contact->post_title);
        }
        $defaults = array('contact' => $default_contact, 'title' => '', 'subtitle' => '', 'id' => 'contact');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
         <h3 style="text-align: center;">Contact</h3>
		<div class="description half">
			<label for="<?php 
        echo $block_id;
        ?>
_title">
				Title (optional)<br/><em style="font-size: 0.8em;">Please enter title contact</em><br/>
				<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
			</label>
		</div>
		<div class="description half last">
	        <label for="<?php 
        echo $this->get_field_id('id');
        ?>
">
		        ID section do you want<br/><em style="font-size: 0.8em;">Ex: blog</em><br/>
		        <?php 
        echo aq_field_input('id', $block_id, $id, $size = 'full');
        ?>
	        </label>
	    </div>
        <div class="cf"></div>
		<div class="description">
			<label for="<?php 
        echo $block_id;
        ?>
_subtitle">
				Subtitle (optional)<br/>
				<?php 
        echo aq_field_textarea('subtitle', $block_id, $subtitle, $size = 'full');
        ?>
			</label>
		</div>
		<div class="description">
			<label for="">
				Choose contact form<br/>
				<?php 
        echo aq_field_select('contact', $block_id, $contact_options, $contact);
        ?>
			</label>
		</div>
		<div class="cf"></div>
		
	<?php 
    }
Exemplo n.º 24
0
    function form($instance)
    {
        $defaults = array('title' => '', 'position' => '', 'media' => '', 'text' => '', 'fb' => '', 'twitter' => '', 'email' => '', 'bgcolor' => '#F8F8F8', 'textcolor' => '#676767', 'id' => '', 'class' => '', 'style' => '');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
		<div class="description half">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Name
				<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
			</label>
		</div>

		<div class="description half last">
			<label for="<?php 
        echo $this->get_field_id('position');
        ?>
">
				Title
				<?php 
        echo aq_field_input('position', $block_id, $position, $size = 'full');
        ?>
			</label>
		</div>

		<div class="cf" style="height: 10px"></div>
		
		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('media');
        ?>
">
				Upload Photo
				<?php 
        echo aq_field_upload('media', $block_id, $media, 'image');
        ?>
				<em style="font-size: 0.8em; padding-left: 5px;">Recommended size: 360 x 270 pixel</em>
			</label>
		</div>

		<div class="cf" style="height: 10px"></div>

		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('text');
        ?>
">
				Description
				<?php 
        echo aq_field_textarea('text', $block_id, $text, $size = 'full');
        ?>
			</label>
		</div>

		<div class="cf" style="height: 10px"></div>

		<div class="description third">
			<label for="<?php 
        echo $this->get_field_id('fb');
        ?>
">
				Facebook Profile
				<?php 
        echo aq_field_input('fb', $block_id, $fb, $size = 'full');
        ?>
			</label>
		</div>

		<div class="description third">
			<label for="<?php 
        echo $this->get_field_id('twitter');
        ?>
">
				Twitter Profile
				<?php 
        echo aq_field_input('twitter', $block_id, $twitter, $size = 'full');
        ?>
			</label>
		</div>

		<div class="description third last">
			<label for="<?php 
        echo $this->get_field_id('email');
        ?>
">
				Email
				<?php 
        echo aq_field_input('email', $block_id, $email, $size = 'full');
        ?>
			</label>
		</div>

		<div class="cf" style="height: 10px"></div>

		<div class="description half">
			<label for="<?php 
        echo $this->get_field_id('bgcolor');
        ?>
">
				Pick a background color<br/>
				<?php 
        echo aq_field_color_picker('bgcolor', $block_id, $bgcolor);
        ?>
			</label>
		</div>

		<div class="description half last">
			<label for="<?php 
        echo $this->get_field_id('textcolor');
        ?>
">
				Pick a text color<br/>
				<?php 
        echo aq_field_color_picker('textcolor', $block_id, $textcolor);
        ?>
			</label>
		</div>

		<div class="cf" style="height: 10px"></div>

		<div class="description half">
			<label for="<?php 
        echo $this->get_field_id('id');
        ?>
">
				id (optional)<br/>
				<?php 
        echo aq_field_input('id', $block_id, $id, $size = 'full');
        ?>
			</label>
		</div>

		<div class="description half last">
			<label for="<?php 
        echo $this->get_field_id('class');
        ?>
">
				class (optional)<br/>
				<?php 
        echo aq_field_input('class', $block_id, $class, $size = 'full');
        ?>
			</label>
		</div>

		<div class="cf"></div>

		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('style');
        ?>
">
				Additional inline css styling (optional)<br/>
				<?php 
        echo aq_field_input('style', $block_id, $style);
        ?>
			</label>
		</div>
		
		<?php 
    }
Exemplo n.º 25
0
    function form($instance)
    {
        $defaults = array('text' => '', 'icon' => 'none', 'link' => '');
        $icon_options = ebor_picons();
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        $selected = $icon;
        ?>
		
		<p class="tab-desc description">
			<label for="<?php 
        echo 'aq_blocks[' . $block_id . '][icon]';
        ?>
">
				Icon (Required)
				<div class="cf">
					<div class="icon-selector-render"></div>
					<select class="icon-selector" id="<?php 
        echo $block_id . '_icon';
        ?>
" name="<?php 
        echo 'aq_blocks[' . $block_id . '][icon]';
        ?>
">
						<?php 
        foreach ($icon_options as $key => $value) {
            echo '<option value="' . $key . '" ' . selected($selected, $key, false) . ' data-icon="' . $key . '">' . htmlspecialchars($value) . '</option>';
        }
        ?>
					</select>
				</div>
			</label>
		<p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Title (optional)
				<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('text');
        ?>
">
				Content
				<?php 
        echo aq_field_textarea('text', $block_id, $text, $size = 'full', true);
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('link');
        ?>
">
				Link entire Block? Enter URL here. <code>optional</code>
				<?php 
        echo aq_field_input('link', $block_id, $link, $size = 'full');
        ?>
			</label>
		</p>

	<?php 
    }
Exemplo n.º 26
0
    function form($instance)
    {
        $defaults = array('title' => 'Advertisement', 'image' => '', 'adcode' => '', 'targeturl' => '', 'post_type' => 'all');
        $instance = wp_parse_args((array) $instance, $defaults);
        extract($instance);
        ?>
		
                
                
        
        <p class="description">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Title (optional)
				<input id="<?php 
        echo $this->get_field_id('title');
        ?>
" class="input-full" type="text" value="<?php 
        echo esc_attr($title);
        ?>
" name="<?php 
        echo $this->get_field_name('title');
        ?>
">
			</label>
		</p>
        
        <p class="description">
			<label for="<?php 
        echo $this->get_field_id('adcode');
        ?>
">
				Content
				<?php 
        echo aq_field_textarea('adcode', $block_id, $adcode, $size = 'full');
        ?>
			</label>
		</p>
        
        <p class="description">
			<label for="<?php 
        echo $this->get_field_id('image');
        ?>
">
				Image URL
				<input id="<?php 
        echo $this->get_field_id('image');
        ?>
" class="input-full" type="text" value="<?php 
        echo esc_url($image);
        ?>
" name="<?php 
        echo $this->get_field_name('image');
        ?>
">
			</label>
		</p>
        
        <p class="description">
			<label for="<?php 
        echo $this->get_field_id('targeturl');
        ?>
">
				Link URL
				<input id="<?php 
        echo $this->get_field_id('targeturl');
        ?>
" class="input-full" type="text" value="<?php 
        echo esc_url($targeturl);
        ?>
" name="<?php 
        echo $this->get_field_name('targeturl');
        ?>
">
			</label>
		</p>
        
		<?php 
    }
Exemplo n.º 27
0
        function form($instance)
        {
            $defaults = array('title' => '', 'heading' => 'h3', 'address' => '', 'width' => '560', 'height' => '280', 'id' => '', 'class' => '', 'style' => '');
            $instance = wp_parse_args($instance, $defaults);
            extract($instance);
            $heading_style = array('h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5', 'h6' => 'H6');
            ?>
			
			<div class="description two-third">
				<label for="<?php 
            echo $this->get_field_id('title');
            ?>
">
					Title (optional)<br/>
					<?php 
            echo aq_field_input('title', $block_id, $title);
            ?>
				</label>
			</div>

			<div class="description third last">
				<label for="<?php 
            echo $this->get_field_id('heading');
            ?>
">
					Heading Type<br/>
					<?php 
            echo aq_field_select('heading', $block_id, $heading_style, $heading);
            ?>
				</label>
			</div>

			<div class="description">
				<label for="<?php 
            echo $this->get_field_id('address');
            ?>
">
					Address<br/>
					<?php 
            echo aq_field_textarea('address', $block_id, $address, $size = 'full');
            ?>
				</label>
			</div>

			<div class="description half">
				<label for="<?php 
            echo $this->get_field_id('width');
            ?>
">
					Map Width<br/>
					<?php 
            echo aq_field_input('width', $block_id, $width);
            ?>
				</label>
			</div>

			<div class="description half last">
				<label for="<?php 
            echo $this->get_field_id('height');
            ?>
">
					Map Height<br/>
					<?php 
            echo aq_field_input('height', $block_id, $height);
            ?>
				</label>
			</div>

			<div class="description half">
				<label for="<?php 
            echo $this->get_field_id('id');
            ?>
">
					id (optional)<br/>
					<?php 
            echo aq_field_input('id', $block_id, $id, $size = 'full');
            ?>
				</label>
			</div>

			<div class="description half last">
				<label for="<?php 
            echo $this->get_field_id('class');
            ?>
">
					class (optional)<br/>
					<?php 
            echo aq_field_input('class', $block_id, $class, $size = 'full');
            ?>
				</label>
			</div>

			<div class="cf"></div>

			<div class="description">
				<label for="<?php 
            echo $this->get_field_id('style');
            ?>
">
					Additional inline css styling (optional)<br/>
					<?php 
            echo aq_field_input('style', $block_id, $style);
            ?>
				</label>
			</div>

			<?php 
        }
Exemplo n.º 28
0
    function form($instance)
    {
        $defaults = array('tabs' => array(1 => array('title' => 'Skill Bar', 'content' => '90%')), 'responsive_first' => 0, 'text' => '', 'alignment' => 'left');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        $tab_types = array('tab' => 'Tabs', 'side-tab' => 'Side Tabs', 'toggle' => 'Toggles');
        $align_types = array('left' => 'Left', 'centered' => 'Centered');
        ?>
			<p class="description note">
				<?php 
        _e('Use this block to add skill bars to the page.', 'marble');
        ?>
			</p>
			
			<p class="description">
				<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
					Block Title (optional)
					<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
				</label>
			</p>
			
			<p class="description">
				<label for="<?php 
        echo $this->get_field_id('text');
        ?>
">
					Content Above Tabs (optional)
					<?php 
        echo aq_field_textarea('text', $block_id, $text, $size = 'full');
        ?>
				</label>
			</p>
			
			<p class="description">
				<label for="<?php 
        echo $this->get_field_id('alignment');
        ?>
">
					Block Title & Content Above Tabs Alignment<br/>
					<?php 
        echo aq_field_select('alignment', $block_id, $align_types, $alignment);
        ?>
				</label>
			</p>
			
			<div class="description cf">
				<ul id="aq-sortable-list-<?php 
        echo $block_id;
        ?>
" class="aq-sortable-list" rel="<?php 
        echo $block_id;
        ?>
">
					<?php 
        $tabs = is_array($tabs) ? $tabs : $defaults['tabs'];
        $count = 1;
        foreach ($tabs as $tab) {
            $this->tab($tab, $count);
            $count++;
        }
        ?>
				</ul>
				<p></p>
				<a href="#" rel="skill" class="aq-sortable-add-new button">Add New</a>
				<p></p>
			</div>
			
			<?php 
    }
Exemplo n.º 29
0
        function form($instance)
        {
            $defaults = array('title' => '', 'sub_title' => '', 'duration' => '900', 'delay' => '0', 'animation' => '', 'margin_top' => '10', 'margin_bottom' => '10', 'bg_color' => '#fafafa');
            $instance = wp_parse_args($instance, $defaults);
            extract($instance);
            global $include_animation;
            ?>
        <div class="sortable-body">
        	<p class="description">
                <label for="<?php 
            echo $this->get_field_id('margin_top');
            ?>
">
                    <?php 
            _e('Margin top', 'oneengine');
            ?>
 
                    <?php 
            echo aq_field_input('margin_top', $block_id, $margin_top, 'min', 'number');
            ?>
 px
                </label>&nbsp;-&nbsp;
                <label for="<?php 
            echo $this->get_field_id('margin_bottom');
            ?>
">
                    <?php 
            _e('Margin bottom', 'oneengine');
            ?>
                    <?php 
            echo aq_field_input('margin_bottom', $block_id, $margin_bottom, 'min', 'number');
            ?>
 px
                </label>
            </p>
            <p class="description">
                <label for="<?php 
            echo $this->get_field_id('title');
            ?>
">
                    <?php 
            _e('Title', 'oneengine');
            ?>
                    <?php 
            echo aq_field_input('title', $block_id, $title, $size = 'full');
            ?>
                </label>
            </p>
            <p class="description">
                <label for="<?php 
            echo $this->get_field_id('sub_title');
            ?>
">
                    <?php 
            _e('SubTitle', 'oneengine');
            ?>
                    <?php 
            echo aq_field_textarea('sub_title', $block_id, $sub_title, $size = 'full');
            ?>
            	</label>
            </p>  
            <p class="description">
                <label for="<?php 
            echo $this->get_field_id('bg_color');
            ?>
">
                    <?php 
            _e('Color of line(Ex : #fafafa;)', 'oneengine');
            ?>
                    <?php 
            echo aq_field_color_picker('bg_color', $block_id, $bg_color);
            ?>
                </label>
            </p>
            <p class="description">
                <label for="<?php 
            echo $this->get_field_id('animation');
            ?>
">
                    <?php 
            _e('Animation style', 'oneengine');
            ?>
<br/>
                    <?php 
            echo aq_field_select('animation', $block_id, $include_animation, $animation);
            ?>
                </label>
           	</p>
            <p class="description">
                <label for="<?php 
            echo $this->get_field_id('duration');
            ?>
">
                    <?php 
            _e('Animation Duration(Ex : 900ms)', 'oneengine');
            ?>
                    <?php 
            echo aq_field_input('duration', $block_id, $duration, 'min', 'number');
            ?>
 ms
                </label>&nbsp;&nbsp; - &nbsp;
				<label for="<?php 
            echo $this->get_field_id('delay');
            ?>
">
                    <?php 
            _e('Time Delay (Ex : 900ms)', 'oneengine');
            ?>
                    <?php 
            echo aq_field_input('delay', $block_id, $delay, 'min', 'number');
            ?>
 ms
                </label>
            </p>
        </div>
		<?php 
        }
Exemplo n.º 30
0
    function form($instance)
    {
        $defaults = array('text' => '', 'color' => '#9D9ABF', 'image' => '');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
		
		<p class="description note">
			<?php 
        _e('Use this block to add columns of text with an icon above.', 'marble');
        ?>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
				Title (optional)
				<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('text');
        ?>
">
				Content
				<?php 
        echo aq_field_textarea('text', $block_id, $text, $size = 'full');
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('image');
        ?>
">
				<?php 
        _e('Upload an Icon', 'marble');
        ?>
				<?php 
        echo aq_field_upload('image', $block_id, $image, $media_type = 'image');
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('color');
        ?>
">
				Icon Background Colour
				<?php 
        echo aq_field_color_picker('color', $block_id, $color, $default = '#9D9ABF');
        ?>
			</label>
		</p>

		<?php 
    }