Esempio n. 1
0
 /**
  * Function that outputs html for side area icon opener.
  * Uses $qodeIconCollections global variable
  * @return string generated html
  */
 function qode_get_mobile_menu_icon_html()
 {
     global $qodeIconCollections, $qode_options_proya;
     $icon_html = '';
     $icon_pack = qodef_option_get_value('mobile_menu_button_icon_pack');
     if (isset($icon_pack) && $icon_pack !== '') {
         $icon_collection_obj = $qodeIconCollections->getIconCollection($icon_pack);
         $icon_field_name = 'mobile_menu_icon_' . $icon_collection_obj->param;
         $mobile_menu_icon = qodef_option_get_value($icon_field_name);
         if (isset($mobile_menu_icon) && $mobile_menu_icon !== '') {
             if (method_exists($icon_collection_obj, 'render')) {
                 $icon_html = $icon_collection_obj->render($mobile_menu_icon);
             }
         }
     }
     return $icon_html;
 }
Esempio n. 2
0
						<form role="search" action="<?php 
    echo esc_url(home_url('/'));
    ?>
" class="fullscreen_search_form" method="get">
							<div class="form_holder">
								<span class="search_label"><?php 
    _e('Search:', 'qode');
    ?>
</span>
								<div class="field_holder">
									<input type="text"  name="s" class="search_field" autocomplete="off" />
									<div class="line"></div>
								</div>
                                <a class="qode_search_submit search_submit" href="javascript:void(0)">
                                    <?php 
    $qodeIconCollections->getSearchIcon(qodef_option_get_value('search_icon_pack'));
    ?>
                                </a>
							</div>	
						</form>
					</div>
				</div>
			</div>
		</div>
	<?php 
}
?>

    <?php 
$content_class = "";
if (get_post_meta($id, "qode_revolution-slider", true) == "" && qode_is_title_hidden() && !is_category() && !is_tag() && !is_author() && (isset($qode_options_proya['enable_google_map']) && ($header_transparency === '' || $header_transparency == 1)) || qode_is_content_below_header()) {
    public function render($name, $label = "", $description = "", $options = array(), $args = array(), $hidden = false)
    {
        $col_width = 2;
        if (isset($args["col_width"])) {
            $col_width = $args["col_width"];
        }
        ?>

		<div class="qodef-page-form-section" id="qodef_<?php 
        echo $name;
        ?>
"<?php 
        if ($hidden) {
            ?>
 style="display: none"<?php 
        }
        ?>
>


			<div class="qodef-field-desc">
				<h4><?php 
        echo $label;
        ?>
</h4>

				<p><?php 
        echo $description;
        ?>
</p>
			</div>
			<!-- close div.qodef-field-desc -->

			<div class="qodef-section-content">
				<div class="container-fluid">
					<div class="row">
						<div class="col-lg-<?php 
        echo $col_width;
        ?>
">
							<input type="text"
								   id = "portfolio_date"
								   class="datepicker form-control qodef-input qodef-form-element"
								   name="<?php 
        echo $name;
        ?>
" value="<?php 
        echo qodef_option_get_value($name);
        ?>
"
								/></div>
					</div>
				</div>
			</div>
			<!-- close div.qodef-section-content -->

		</div>
	<?php 
    }
function qode_meta_box_add()
{
    global $qodeFramework;
    foreach ($qodeFramework->qodeMetaBoxes->metaBoxes as $key => $box) {
        $hidden = false;
        if (!empty($box->hidden_property)) {
            foreach ($box->hidden_values as $value) {
                if (qodef_option_get_value($box->hidden_property) == $value) {
                    $hidden = true;
                }
            }
        }
        add_meta_box('qodef-meta-box-' . $key, $box->title, 'qodef_render_meta_box', $box->scope, 'advanced', 'high', array('box' => $box));
        if ($hidden) {
            add_filter('postbox_classes_' . $box->scope . '_qodef-meta-box-' . $key, 'qode_meta_box_add_hidden_class');
        }
    }
    add_action('admin_enqueue_scripts', 'enqueue_meta_box_styles');
    add_action('admin_enqueue_scripts', 'enqueue_meta_box_scripts');
}
Esempio n. 5
0
    public function render($name, $label = "", $description = "", $options = array(), $args = array(), $hidden = false)
    {
        global $qodeIconCollections;
        $dependence = isset($args["dependence"]) ? true : false;
        $show = isset($args["show"]) ? $args["show"] : array();
        $hide = isset($args["hide"]) ? $args["hide"] : array();
        $icon_collections = $qodeIconCollections->getIconCollections();
        ?>

        <div class="qodef-page-form-section"<?php 
        if ($hidden) {
            ?>
 style="display: none"<?php 
        }
        ?>
>

            <div class="qodef-field-desc">
                <h4><?php 
        echo esc_html($label);
        ?>
</h4>

                <p><?php 
        echo esc_html($description);
        ?>
</p>
            </div>
            <!-- close div.qodef-field-desc -->
            <div class="qodef-section-content">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-lg-3">
                            <select class="form-control qodef-form-element<?php 
        if ($dependence) {
            echo " dependence";
        }
        ?>
"
                                <?php 
        foreach ($show as $key => $value) {
            ?>
                                    data-show-<?php 
            echo str_replace(' ', '', $key);
            ?>
="<?php 
            echo $value;
            ?>
"
                                <?php 
        }
        ?>
                                <?php 
        foreach ($hide as $key => $value) {
            ?>
                                    data-hide-<?php 
            echo str_replace(' ', '', $key);
            ?>
="<?php 
            echo $value;
            ?>
"
                                <?php 
        }
        ?>
                                    name="<?php 
        echo $name;
        ?>
">
                                <?php 
        if (is_array($icon_collections) && count($icon_collections)) {
            foreach ($icon_collections as $collection_key => $collection_title) {
                ?>
                                        <option <?php 
                if (qodef_option_get_value($name) == $collection_key) {
                    echo "selected='selected'";
                }
                ?>
 value="<?php 
                echo esc_attr($collection_key);
                ?>
"><?php 
                echo esc_html($collection_title);
                ?>
</option>
                                    <?php 
            }
        }
        ?>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <!-- close div.qodef-section-content -->

        </div>
    <?php 
    }