Exemplo n.º 1
0
										</tr>
										
										<tr class="item">
											<td colspan="2">
												<div>
													<p class="label"><b>Feedback block 3</b></p>
												</div>
												
												<div>
													<div class="label"><span>Img URL:</span>
														<a href="#" class="info"><img src="<?php 
    echo THEME_IMAGE_URL;
    ?>
control-panel-images/ico-info-1.png" alt="" width="10" height="11" /></a>
														<?php 
    echo orange_themes_info_message("Suggested image size is 470x144px");
    ?>
													</div>
													<div class="setting">
														<input class="upload input-text-2" type="text" name="feedback_3_image" id="feedback_3_image" value="<?php 
    echo $feedback_3_image;
    ?>
" />
														<div id="feedback_3_image_button" class="upload-button upload-logo" style="padding: 10px 0 0 15px;"><a><img src="<?php 
    echo THEME_IMAGE_CPANEL_URL;
    ?>
browse-1.png"/></a></div>
														<script type="text/javascript">
															jQuery(document).ready(function($){ bordeaux.loadUploader(jQuery("div#feedback_3_image_button"), "<?php 
    echo THEME_FUNCTIONS_URL;
    ?>
Exemplo n.º 2
0
    /**
     *	Prints a textarea.
     *
     *	EXAMPLE:
     *	-----------------------------------------------------------------
     *	array(
     *		"type" => "textarea",
     *		"title" => "Homepage text block",
     *		"sub_title" => "Text:",
     *		"id" => $orange_themes_managment->themeslug."_homepage_text_bock_txt",
     *		//if needed you can set a protection
     *		"protected" => array(
     *			array("id" => $orange_themes_managment->themeslug."_homepage_text_blocks_enabled", "value" => "on")
     *		)
     *	),
     */
    function print_textarea($value)
    {
        if (isset($value['std'])) {
            $default = $value['std'];
        } else {
            $default = false;
        }
        if (isset($value['protected'][0]["id"])) {
            $protectedValue = $value['protected'][0]["id"];
        } else {
            $protectedValue = false;
        }
        $protected_value = $this->get_field_value($protectedValue, $default);
        if (isset($value['protected'][0]["id"]) && $value['protected'][0]["id"] != "" && $protected_value == $value['protected'][0]["value"] || !isset($value['protected'][0]["id"])) {
            $input_value = $this->get_field_value($value['id'], $default);
            ?>
		<?php 
            if (isset($value['home']) && $value['home'] == "yes") {
                ?>
<div class="input-item-full-width-inside clearfix"><?php 
            } else {
                ?>
			<div class="input-item-full-width clearfix">
		<?php 
            }
            ?>
				<label><?php 
            echo $value['title'];
            ?>
</label>
				<?php 
            if (isset($value['info'])) {
                echo orange_themes_info_message($value['info']);
            }
            ?>
				<span class="textarea"><textarea name="<?php 
            echo $value['id'];
            ?>
"  id="<?php 
            echo $value['id'];
            ?>
" class="ot-textarea"><?php 
            echo $input_value;
            ?>
</textarea></span>
				<?php 
            if (isset($value['sample'])) {
                ?>
					<label style="font-size:10px; margin-top: 30px; left: 0px; position: absolute;"><strong>Sample:</strong> <?php 
                echo remove_html_slashes($value['sample']);
                ?>
</label>
				<?php 
            }
            ?>
			</div>
		<?php 
        }
    }
Exemplo n.º 3
0
												</div>
												
											</td>
										</tr>
										
										<tr class="item">
											<td colspan="2">
												<div>
													<div class="label">
														<span>Google maps</span>
														<a href="#" class="info"><img src="<?php 
echo THEME_IMAGE_URL;
?>
control-panel-images/ico-info-1.png" alt="" width="10" height="11" /></a>
														<?php 
echo orange_themes_info_message("More information You can find in the docomentation");
?>
													</div>
												</div>
												<?php 
global $wpdb;
$google_loc = $wpdb->get_var($wpdb->prepare("SELECT post_content FROM {$wpdb->posts} WHERE post_type = 'boderaux_google_loc' ORDER BY ID DESC"));
?>
												<div>
													<p class="label"><span>Your location:</span></p>
													<div class="setting">
														<textarea name="google_loc" class="text-area-1"><?php 
echo filter_var(stripslashes($google_loc), FILTER_SANITIZE_SPECIAL_CHARS);
?>
</textarea>
													</div>
Exemplo n.º 4
0
Arquivo: page.php Projeto: bangjojo/wp
}
?>
												</div>
	
											</td>
										</tr>
										
										<tr class="item">
											<td class="label">
												<span>Add logo image</span>
												<a href="#" class="info"><img src="<?php 
echo THEME_IMAGE_URL;
?>
control-panel-images/ico-info-1.png" alt="" width="10" height="11" /></a>
													<?php 
echo orange_themes_info_message("Suggested image size is 333x103px");
?>

											</td>
											<td class="setting">
												<?php 
$theme_logo = get_option("bordeaux_logo");
?>
												<input class="upload input-text-2" type="text" name="logo_upload" id="logo_upload" value="<?php 
echo $theme_logo;
?>
" />
												<div id="logo_upload_button" class="upload-button upload-logo" style="padding: 10px 0 0 15px;"><a><img src="<?php 
echo THEME_IMAGE_CPANEL_URL;
?>
browse-1.png"/></a></div>