function service($service = array(), $count = 0)
        {
            global $include_animation;
            ?>
		<li id="<?php 
            echo $this->get_field_id('services');
            ?>
-sortable-item-<?php 
            echo $count;
            ?>
" class="sortable-item" rel="<?php 
            echo $count;
            ?>
">
			
			<div class="sortable-head cf">
				<div class="sortable-title">
					<strong><?php 
            echo $service['title'];
            ?>
</strong>
				</div>
				<div class="sortable-handle">
					<a href="#"><?php 
            _e('Open / Close', 'oneengine');
            ?>
</a>
				</div>
			</div>
			
			<div class="sortable-body">
				<p class="service-desc description">
					<label for="<?php 
            echo $this->get_field_id('services');
            ?>
-<?php 
            echo $count;
            ?>
-title">
						<?php 
            _e('Title', 'oneengine');
            ?>
<br/>
						<input type="text" id="<?php 
            echo $this->get_field_id('services');
            ?>
-<?php 
            echo $count;
            ?>
-title" class="input-full" name="<?php 
            echo $this->get_field_name('services');
            ?>
[<?php 
            echo $count;
            ?>
][title]" value="<?php 
            echo $service['title'];
            ?>
" />
					</label>
				</p>
				<p class="service-desc description">
					<label for="<?php 
            echo $this->get_field_id('icon_font');
            ?>
-<?php 
            echo $count;
            ?>
-icon_font">
						<?php 
            _e('Choose icon font', 'oneengine');
            ?>
 <br/>
						<input type="text" id="<?php 
            echo $this->get_field_id('services');
            ?>
-<?php 
            echo $count;
            ?>
-icon_font" class="input-full show-icon" name="<?php 
            echo $this->get_field_name('services');
            ?>
[<?php 
            echo $count;
            ?>
][icon_font]" value="<?php 
            echo $service['icon_font'];
            ?>
" />
					</label>
				</p>
                <p class="service-desc description">
                      <label for="<?php 
            echo $this->get_field_id('services');
            ?>
-<?php 
            echo $count;
            ?>
-animation">
                          <?php 
            _e('Animation style', 'oneengine');
            ?>
                          <?php 
            echo aq_field_select_in($this->get_field_id('services') . '-' . $count . '-animation', $this->get_field_name('services') . '[' . $count . '][animation]', $include_animation, $service['animation']);
            ?>
                      </label>
                </p>
                <p class="service-desc description">
                      <label for="<?php 
            echo $this->get_field_id('services');
            ?>
-<?php 
            echo $count;
            ?>
-duration">
                          <?php 
            _e('Duration for animation', 'oneengine');
            ?>
                          <input type="number" id="<?php 
            echo $this->get_field_id('services');
            ?>
-<?php 
            echo $count;
            ?>
-duration" class="input-min" name="<?php 
            echo $this->get_field_name('services');
            ?>
[<?php 
            echo $count;
            ?>
][duration]" value="<?php 
            echo $service['duration'];
            ?>
" />
                      </label>ms(Millisecond)&nbsp;-&nbsp;   
                      <label for="<?php 
            echo $this->get_field_id('services');
            ?>
-<?php 
            echo $count;
            ?>
-delay">
                          <?php 
            _e('Time Delay', 'oneengine');
            ?>
                          <input type="number" id="<?php 
            echo $this->get_field_id('services');
            ?>
-<?php 
            echo $count;
            ?>
-delay" class="input-min" name="<?php 
            echo $this->get_field_name('services');
            ?>
[<?php 
            echo $count;
            ?>
][delay]" value="<?php 
            echo $service['delay'];
            ?>
" />
                      </label>ms(Millisecond)
                </p>
                <p class="testimonial-desc description">
                    <label for="<?php 
            echo $this->get_field_id('services');
            ?>
-<?php 
            echo $count;
            ?>
-content">
                        <?php 
            _e('Content', 'oneengine');
            ?>
<br/>
                        <textarea id="<?php 
            echo $this->get_field_id('services');
            ?>
-<?php 
            echo $count;
            ?>
-content" class="textarea-full" name="<?php 
            echo $this->get_field_name('services');
            ?>
[<?php 
            echo $count;
            ?>
][content]" rows="5"><?php 
            echo $service['content'];
            ?>
</textarea>
                    </label>
                </p>
				
				<p class="service-desc description"><a href="#" class="sortable-delete"><?php 
            _e('Delete', 'oneengine');
            ?>
</a></p>
			</div>
			
		</li>
		<?php 
        }
Example #2
0
        function pricing($pricing = array(), $count = 0)
        {
            global $include_animation;
            $pricing_main = array('' => 'None', 'main' => 'Main Pricing');
            ?>
		<li id="<?php 
            echo $this->get_field_id('pricings');
            ?>
-sortable-item-<?php 
            echo $count;
            ?>
" class="sortable-item" rel="<?php 
            echo $count;
            ?>
">
			
			<div class="sortable-head cf">
				<div class="sortable-title">
					<strong><?php 
            echo $pricing['title'];
            ?>
</strong>
				</div>
				<div class="sortable-handle">
					<a href="#"><?php 
            _e('Open / Close', 'oneengine');
            ?>
</a>
				</div>
			</div>
			
			<div class="sortable-body">
            	<p class="pricing-desc description">
                    <label for="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-left">
						<?php 
            _e('Margin Left (default: 0 px)', 'oneengine');
            ?>
                        <input type="number" id="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-left" class="input-min" name="<?php 
            echo $this->get_field_name('pricings');
            ?>
[<?php 
            echo $count;
            ?>
][left]" value="<?php 
            echo $pricing['left'];
            ?>
" />
                    </label>px
					<label for="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-right">
						<?php 
            _e('Margin Right (default: 0 px)', 'oneengine');
            ?>
                        <input type="number" id="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-right" class="input-min" name="<?php 
            echo $this->get_field_name('pricings');
            ?>
[<?php 
            echo $count;
            ?>
][right]" value="<?php 
            echo $pricing['right'];
            ?>
" />
                    </label>px
				</p>
            	<p class="pricing-desc description">
                      <label for="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-type_pricing">
                          <?php 
            _e('Type pricing style ?', 'oneengine');
            ?>
                          <?php 
            echo aq_field_select_in($this->get_field_id('pricings') . '-' . $count . '-type_pricing', $this->get_field_name('pricings') . '[' . $count . '][type_pricing]', $pricing_main, $pricing['type_pricing']);
            ?>
                      </label>
                </p>
				<p class="pricing-desc description">
					<label for="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-title">
						<?php 
            _e('Title', 'oneengine');
            ?>
<br/>
						<input type="text" id="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-title" class="input-full" name="<?php 
            echo $this->get_field_name('pricings');
            ?>
[<?php 
            echo $count;
            ?>
][title]" value="<?php 
            echo $pricing['title'];
            ?>
" />
					</label>
				</p>
				<p class="pricing-desc description">
					<label for="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-option_1">
						<?php 
            _e('Option 1', 'oneengine');
            ?>
<br/>
						<input type="text" id="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-option_1" class="input-full" name="<?php 
            echo $this->get_field_name('pricings');
            ?>
[<?php 
            echo $count;
            ?>
][option_1]" value="<?php 
            echo $pricing['option_1'];
            ?>
" />
					</label>
				</p>
                <p class="pricing-desc description">
					<label for="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-option_2">
						<?php 
            _e('Option 2', 'oneengine');
            ?>
<br/>
						<input type="text" id="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-option_2" class="input-full" name="<?php 
            echo $this->get_field_name('pricings');
            ?>
[<?php 
            echo $count;
            ?>
][option_2]" value="<?php 
            echo $pricing['option_2'];
            ?>
" />
					</label>
				</p>
                <p class="pricing-desc description">
					<label for="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-option_3">
						<?php 
            _e('Option 3', 'oneengine');
            ?>
<br/>
						<input type="text" id="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-option_3" class="input-full" name="<?php 
            echo $this->get_field_name('pricings');
            ?>
[<?php 
            echo $count;
            ?>
][option_3]" value="<?php 
            echo $pricing['option_3'];
            ?>
" />
					</label>
				</p>
                <p class="pricing-desc description">
					<label for="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-option_4">
						<?php 
            _e('Option 4', 'oneengine');
            ?>
<br/>
						<input type="text" id="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-option_4" class="input-full" name="<?php 
            echo $this->get_field_name('pricings');
            ?>
[<?php 
            echo $count;
            ?>
][option_4]" value="<?php 
            echo $pricing['option_4'];
            ?>
" />
					</label>
				</p>
                <p class="pricing-desc description">
                    <label for="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-content_link">
                        <?php 
            _e('Text button (ex: "sign up")', 'oneengine');
            ?>
<br/>
                        <input type="text" id="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-content_link" class="input-full" name="<?php 
            echo $this->get_field_name('pricings');
            ?>
[<?php 
            echo $count;
            ?>
][content_link]" value="<?php 
            echo $pricing['content_link'];
            ?>
" />
                    </label>
                </p>
                <p class="pricing-desc description">
                      <label for="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-animation">
                          <?php 
            _e('Animation style', 'oneengine');
            ?>
                          <?php 
            echo aq_field_select_in($this->get_field_id('pricings') . '-' . $count . '-animation', $this->get_field_name('pricings') . '[' . $count . '][animation]', $include_animation, $pricing['animation']);
            ?>
                      </label>
                </p>
                <p class="pricing-desc description">
                      <label for="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-duration">
                          <?php 
            _e('Duration for animation', 'oneengine');
            ?>
                          <input type="number" id="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-duration" class="input-min" name="<?php 
            echo $this->get_field_name('pricings');
            ?>
[<?php 
            echo $count;
            ?>
][duration]" value="<?php 
            echo $pricing['duration'];
            ?>
" />
                      </label>ms(Millisecond)&nbsp;-&nbsp;   
                      <label for="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-delay">
                          <?php 
            _e('Time Delay', 'oneengine');
            ?>
                          <input type="number" id="<?php 
            echo $this->get_field_id('pricings');
            ?>
-<?php 
            echo $count;
            ?>
-delay" class="input-min" name="<?php 
            echo $this->get_field_name('pricings');
            ?>
[<?php 
            echo $count;
            ?>
][delay]" value="<?php 
            echo $pricing['delay'];
            ?>
" />
                      </label>ms(Millisecond)
                </p>
                
				<p class="pricing-desc description"><a href="#" class="sortable-delete"><?php 
            _e('Delete', 'oneengine');
            ?>
</a></p>
			</div>
			
		</li>
		<?php 
        }
Example #3
0
        function timeline($timeline = array(), $count = 0)
        {
            global $include_animation;
            ?>
		<li id="<?php 
            echo $this->get_field_id('timelines');
            ?>
-sortable-item-<?php 
            echo $count;
            ?>
" class="sortable-item" rel="<?php 
            echo $count;
            ?>
">
			
			<div class="sortable-head cf">
				<div class="sortable-title">
					<strong><?php 
            echo $timeline['title'];
            ?>
</strong>
				</div>
				<div class="sortable-handle">
					<a href="#">Open / Close</a>
				</div>
			</div>
			
			<div class="sortable-body">
				<p class="timeline-desc description">
					<label for="<?php 
            echo $this->get_field_id('timelines');
            ?>
-<?php 
            echo $count;
            ?>
-year">
						Year
						<input type="number" id="<?php 
            echo $this->get_field_id('timelines');
            ?>
-<?php 
            echo $count;
            ?>
-year" class="input-min" name="<?php 
            echo $this->get_field_name('timelines');
            ?>
[<?php 
            echo $count;
            ?>
][year]" value="<?php 
            echo $timeline['year'];
            ?>
" />
					</label>
				</p>
                <p class="timeline-desc description">
					<label for="<?php 
            echo $this->get_field_id('timelines');
            ?>
-<?php 
            echo $count;
            ?>
-src_img">
						Images
                        <input type="text" id="<?php 
            echo $this->get_field_id('timelines');
            ?>
-<?php 
            echo $count;
            ?>
-src_img" class="input-full input-upload" value="<?php 
            echo $timeline['src_img'];
            ?>
" name="<?php 
            echo $this->get_field_name('timelines');
            ?>
[<?php 
            echo $count;
            ?>
][src_img]">
						<a href="#" class="aq_upload_button button" rel="image">Upload</a><p></p>
					</label>
				</p>
				<p class="timeline-desc description">
					<label for="<?php 
            echo $this->get_field_id('timelines');
            ?>
-<?php 
            echo $count;
            ?>
-title">
						Title<br/>
						<input type="text" id="<?php 
            echo $this->get_field_id('timelines');
            ?>
-<?php 
            echo $count;
            ?>
-title" class="input-full" name="<?php 
            echo $this->get_field_name('timelines');
            ?>
[<?php 
            echo $count;
            ?>
][title]" value="<?php 
            echo $timeline['title'];
            ?>
" />
					</label>
				</p>
				<p class="timeline-desc description">
					<label for="<?php 
            echo $this->get_field_id('timelines');
            ?>
-<?php 
            echo $count;
            ?>
-content">
						Content<br/>
						<textarea id="<?php 
            echo $this->get_field_id('timelines');
            ?>
-<?php 
            echo $count;
            ?>
-content" class="textarea-full" name="<?php 
            echo $this->get_field_name('timelines');
            ?>
[<?php 
            echo $count;
            ?>
][content]" rows="5"><?php 
            echo $timeline['content'];
            ?>
</textarea>
					</label>
				</p>
				<p class="timeline-desc description">
                      <label for="<?php 
            echo $this->get_field_id('timelines');
            ?>
-<?php 
            echo $count;
            ?>
-animation">
                          Animation style
                          <?php 
            echo aq_field_select_in($this->get_field_id('timelines') . '-' . $count . '-animation', $this->get_field_name('timelines') . '[' . $count . '][animation]', $include_animation, $timeline['animation']);
            ?>
                      </label>
                </p>
                <p class="timeline-desc description">
                      <label for="<?php 
            echo $this->get_field_id('timelines');
            ?>
-<?php 
            echo $count;
            ?>
-duration">
                          Duration for animation
                          <input type="number" id="<?php 
            echo $this->get_field_id('timelines');
            ?>
-<?php 
            echo $count;
            ?>
-duration" class="input-min" name="<?php 
            echo $this->get_field_name('timelines');
            ?>
[<?php 
            echo $count;
            ?>
][duration]" value="<?php 
            echo $timeline['duration'];
            ?>
" />
                      </label>ms(Millisecond)&nbsp;-&nbsp;   
                      <label for="<?php 
            echo $this->get_field_id('timelines');
            ?>
-<?php 
            echo $count;
            ?>
-delay">
                          Time Delay
                          <input type="number" id="<?php 
            echo $this->get_field_id('timelines');
            ?>
-<?php 
            echo $count;
            ?>
-delay" class="input-min" name="<?php 
            echo $this->get_field_name('timelines');
            ?>
[<?php 
            echo $count;
            ?>
][delay]" value="<?php 
            echo $timeline['delay'];
            ?>
" />
                      </label>ms(Millisecond)
                </p>
				<p class="timeline-desc description"><a href="#" class="sortable-delete">Delete</a></p>
			</div>
			
		</li>
		<?php 
        }
        function piechart($piechart = array(), $count = 0)
        {
            global $include_easing;
            $pie_type = array('square' => 'Square', 'butt' => 'Butt', 'round' => 'Round');
            ?>
		<li id="<?php 
            echo $this->get_field_id('piecharts');
            ?>
-sortable-item-<?php 
            echo $count;
            ?>
" class="sortable-item" rel="<?php 
            echo $count;
            ?>
">
			
			<div class="sortable-head cf">
				<div class="sortable-title">
					<strong><?php 
            echo $piechart['title'];
            ?>
</strong>
				</div>
				<div class="sortable-handle">
					<a href="#"><?php 
            _e('Open / Close', 'oneengine');
            ?>
 </a>
				</div>
			</div>
			
			<div class="sortable-body">
				<p class="piecharts-desc description">
					<label for="<?php 
            echo $this->get_field_id('piecharts');
            ?>
-<?php 
            echo $count;
            ?>
-animate">
						<?php 
            _e('Duration', 'oneengine');
            ?>
 
						<input type="number" id="<?php 
            echo $this->get_field_id('piecharts');
            ?>
-<?php 
            echo $count;
            ?>
-animate" class="input-min" name="<?php 
            echo $this->get_field_name('piecharts');
            ?>
[<?php 
            echo $count;
            ?>
][animate]" value="<?php 
            echo $piechart['animate'];
            ?>
" />
					</label>ms(Millisecond)&nbsp;-&nbsp;   
					<label for="<?php 
            echo $this->get_field_id('piecharts');
            ?>
-<?php 
            echo $count;
            ?>
-percent">
						<?php 
            _e('Percent (maximum is 100%)', 'oneengine');
            ?>
 
						<input type="number" id="<?php 
            echo $this->get_field_id('piecharts');
            ?>
-<?php 
            echo $count;
            ?>
-percent" class="input-min" name="<?php 
            echo $this->get_field_name('piecharts');
            ?>
[<?php 
            echo $count;
            ?>
][percent]" value="<?php 
            echo $piechart['percent'];
            ?>
" />
					</label>(%)
				</p>
				<p class="piecharts-desc description">
					<label for="<?php 
            echo $this->get_field_id('piecharts');
            ?>
-<?php 
            echo $count;
            ?>
-width">
						<?php 
            _e('Line Width', 'oneengine');
            ?>
 
						<input type="number" id="<?php 
            echo $this->get_field_id('piecharts');
            ?>
-<?php 
            echo $count;
            ?>
-width" class="input-min" name="<?php 
            echo $this->get_field_name('piecharts');
            ?>
[<?php 
            echo $count;
            ?>
][width]" value="<?php 
            echo $piechart['width'];
            ?>
" />
					</label>px(pixel)&nbsp;-&nbsp;   
				</p>
				<p class="piecharts-desc description">
					<label for="<?php 
            echo $this->get_field_id('piecharts');
            ?>
-<?php 
            echo $count;
            ?>
-cap">
						<?php 
            _e('Type chart', 'oneengine');
            ?>
 
						<?php 
            echo aq_field_select_in($this->get_field_id('piecharts') . '-' . $count . '-cap', $this->get_field_name('piecharts') . '[' . $count . '][cap]', $pie_type, $piechart['cap']);
            ?>
					</label>
				</p>
				<p class="piecharts-desc description">
					<label for="<?php 
            echo $this->get_field_id('piecharts');
            ?>
-<?php 
            echo $count;
            ?>
-easing">
						<?php 
            _e('Animation style', 'oneengine');
            ?>
 
						<?php 
            echo aq_field_select_in($this->get_field_id('piecharts') . '-' . $count . '-easing', $this->get_field_name('piecharts') . '[' . $count . '][easing]', $include_easing, $piechart['easing']);
            ?>
					</label>
				</p>
				<p class="piecharts-desc description">
					<label for="<?php 
            echo $this->get_field_id('piecharts');
            ?>
-<?php 
            echo $count;
            ?>
-bar">
						<?php 
            _e('Bar color', 'oneengine');
            ?>
 
						<div class="aqpb-color-picker">
							<input type="text" id="<?php 
            echo $this->get_field_id('piecharts');
            ?>
-<?php 
            echo $count;
            ?>
-bar" class="input-color-picker" value="<?php 
            echo $piechart['bar'];
            ?>
" name="<?php 
            echo $this->get_field_name('piecharts');
            ?>
[<?php 
            echo $count;
            ?>
][bar]" data-default-color="<?php 
            echo $piechart['bar'];
            ?>
"/>
						</div>
					</label>
				</p>
				<p class="piecharts-desc description">
					<label for="<?php 
            echo $this->get_field_id('piecharts');
            ?>
-<?php 
            echo $count;
            ?>
-track">
						<?php 
            _e('Track color', 'oneengine');
            ?>
 
						<div class="aqpb-color-picker">
							<input type="text" id="<?php 
            echo $this->get_field_id('piecharts');
            ?>
-<?php 
            echo $count;
            ?>
-track" class="input-color-picker" value="<?php 
            echo $piechart['track'];
            ?>
" name="<?php 
            echo $this->get_field_name('piecharts');
            ?>
[<?php 
            echo $count;
            ?>
][track]" data-default-color="<?php 
            echo $piechart['track'];
            ?>
"/>
						</div>
					</label>
				</p>
				<p class="piechart-desc description">
					<label for="<?php 
            echo $this->get_field_id('piecharts');
            ?>
-<?php 
            echo $count;
            ?>
-title">
						<?php 
            _e('Title', 'oneengine');
            ?>
 <br/>
						<input type="text" id="<?php 
            echo $this->get_field_id('piecharts');
            ?>
-<?php 
            echo $count;
            ?>
-title" class="input-full" name="<?php 
            echo $this->get_field_name('piecharts');
            ?>
[<?php 
            echo $count;
            ?>
][title]" value="<?php 
            echo $piechart['title'];
            ?>
" />
					</label>
				</p>
				
				<p class="piechart-desc description"><a href="#" class="sortable-delete"><?php 
            _e('Delete', 'oneengine');
            ?>
</a></p>
			</div>
			
		</li>
		<?php 
        }