</td>
								<td>
									<div class="pb-clear-fix">
										<input type="text" name="<?php 
        PBHelper::getFormName('team_social_url[]');
        ?>
" value="<?php 
        echo esc_attr($value['team_social_url']);
        ?>
"/>
									</div>
								</td>
								<td>
									<div class="pb-clear-fix">
										<input type="text" name="<?php 
        PBHelper::getFormName('team_social_order[]');
        ?>
" value="<?php 
        echo esc_attr($value['team_social_order']);
        ?>
"/>
									</div>
								</td>
								<td>
									<div class="pb-clear-fix">
										<a href="#" class="pb-table-button-remove"><?php 
        esc_attr_e('Remove', PLUGIN_PAGE_BUILDER_DOMAIN);
        ?>
</a>
									</div>
								</td>
 function adminPluginOptionSave()
 {
     $response = array('global' => array('error' => 1));
     $option = PBHelper::getPostOption();
     $Notice = new PBNotice();
     $Validation = new PBValidation($Notice);
     $invalidValue = __('Invalid value', PLUGIN_PAGE_BUILDER_DOMAIN);
     if ($this->isVisualModeEnable()) {
         $Validation->notice('isNumber', array($option['enable_page'], 0, 1), array(PBHelper::getFormName('enable_page', false), $invalidValue));
         $Validation->notice('isNumber', array($option['enable_post'], 0, 1), array(PBHelper::getFormName('enable_post', false), $invalidValue));
     }
     if ($Notice->isError()) {
         $response['local'] = $Notice->getError();
     } else {
         PBOption::updateOption($option);
         $this->createCSSFile();
         $response['global']['error'] = 0;
     }
     $response['global']['notice'] = $Notice->createHTML(PLUGIN_PAGE_BUILDER_TEMPLATE_PATH . 'notice.php');
     echo json_encode($response);
     exit;
 }
" id="<?php 
PBHelper::getFormName('option_save');
?>
" class="pb-plugin-option-button"/>
						</div>			

					</div>

					<input type="hidden" name="action" id="action" value="page_builder_option_save" />

					<script type="text/javascript">

						jQuery(document).ready(function($)
						{
							$('#<?php 
PBHelper::getFormName('option_cache_clear');
?>
').bind('click',function() 
							{
								$('#action').val('page_builder_option_cache_clear');
								$('#pb_plugin_option_form').submit();
								$('#action').val('page_builder_option_save');
							});
							
							$('.pb-plugin-option').pluginOption();
						
							$('.pb-plugin-option').pluginOptionElement({init:true});
						});

					</script>
echo PBHelper::returnIf($this->data['option']['enable_post'], 1);
?>
/>
						<label for="<?php 
PBHelper::getFormName('enable_post_1');
?>
"><?php 
esc_html_e('Enable', PLUGIN_PAGE_BUILDER_DOMAIN);
?>
</label>
						<input type="radio" name="<?php 
PBHelper::getFormName('enable_post');
?>
" id="<?php 
PBHelper::getFormName('enable_post_2');
?>
" value="0" <?php 
echo PBHelper::returnIf($this->data['option']['enable_post'], 0);
?>
/>
						<label for="<?php 
PBHelper::getFormName('enable_post_2');
?>
"><?php 
esc_html_e('Disable', PLUGIN_PAGE_BUILDER_DOMAIN);
?>
</label>
					</div>	
				</div>
			</li>
		</ul>
Beispiel #5
0
								</td>
								<td>
									<div class="pb-clear-fix">
										<input type="text" name="<?php 
        PBHelper::getFormName('team_skill_level[]');
        ?>
" value="<?php 
        echo esc_attr($value['team_skill_level']);
        ?>
"/>
									</div>
								</td>
								<td>
									<div class="pb-clear-fix">
										<input type="text" name="<?php 
        PBHelper::getFormName('team_skill_order[]');
        ?>
" value="<?php 
        echo esc_attr($value['team_skill_order']);
        ?>
"/>
									</div>
								</td>
								<td>
									<div class="pb-clear-fix">
										<a href="#" class="pb-table-button-remove"><?php 
        esc_html_e('Remove', PLUGIN_PAGE_BUILDER_DOMAIN);
        ?>
</a>
									</div>
								</td>
</h5>
					<span class="pb-group-subheader">
						<?php 
esc_html_e('URL of page, which has to be open after clicking on team member image/name.', PLUGIN_PAGE_BUILDER_DOMAIN);
?>
<br/>
						<?php 
esc_html_e('An image is opening by default (when URL isn\'t specified).', PLUGIN_PAGE_BUILDER_DOMAIN);
?>
					</span>
					<div>
						<input type="text" name="<?php 
PBHelper::getFormName('team_url');
?>
" id="<?php 
PBHelper::getFormName('team_url');
?>
" value="<?php 
echo esc_attr($this->data['option']['team_url']);
?>
"/>
					</div>
				</li>

			</ul>
			
		</div>

		<script type="text/javascript">

			jQuery(document).ready(function($) 
Beispiel #7
0
				
				<li>
					<h5 class="pb-group-header"><?php 
esc_html_e('Position', PLUGIN_PAGE_BUILDER_DOMAIN);
?>
</h5>
					<span  class="pb-group-subheader"><?php 
esc_html_e('Enter company position of team member.', PLUGIN_PAGE_BUILDER_DOMAIN);
?>
</span>
					<div>
						<input type="text" name="<?php 
PBHelper::getFormName('team_position');
?>
" id="<?php 
PBHelper::getFormName('team_position');
?>
" value="<?php 
echo esc_attr($this->data['option']['team_position']);
?>
" maxlength="255" />
					</div>
				</li>

			</ul>
			
		</div>

		<script type="text/javascript">

			jQuery(document).ready(function($)