%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pn/wp-content/plugins/ajax-search-pro/backend/tabs/instance/layout/
Upload File :
Create Path :
Current File : //var/www/pn/wp-content/plugins/ajax-search-pro/backend/tabs/instance/layout/results_layout.php

<fieldset>
    <legend><?php echo __('Results layout', 'ajax-search-pro'); ?></legend>
    <div class="item">
        <?php
        $o = new wpdreamsCustomSelect("resultstype", __('Results layout type', 'ajax-search-pro'), array(
            'selects'=>array(
                array('option' => __('Vertical Results', 'ajax-search-pro'), 'value' => 'vertical'),
                array('option' => __('Horizontal Results', 'ajax-search-pro'), 'value' => 'horizontal'),
                array('option' => __('Isotopic Results', 'ajax-search-pro'), 'value' => 'isotopic'),
                array('option' => __('Polaroid style Results', 'ajax-search-pro'), 'value' => 'polaroid')
            ),
            'value'=>$sd['resultstype']
        ));
        $params[$o->getName()] = $o->getData();
        ?>
    </div>
    <p class='infoMsg'>
        <?php echo __('If you are using <b>Polaroid</b> layout type, then <b>block</b> position is highly recommended!', 'ajax-search-pro'); ?>
    </p>
    <div class="item item-flex-nogrow item-conditional" style="flex-wrap: wrap;">
        <?php
        $o = new wpdreamsCustomSelect("resultsposition", __('Results layout position', 'ajax-search-pro'), array(
            'selects'=>array(
                array('option' => 'Hover - over content', 'value' => 'hover'),
                array('option' => 'Block - pushes content', 'value' => 'block')
            ),
            'value'=>$sd['resultsposition']
        ));
        $params[$o->getName()] = $o->getData();
        $o = new wpdreamsCustomSelect("results_snap_to", __(' and snap the results to the ', 'ajax-search-pro'), array(
            'selects'=>array(
                array('option' => 'left side of the search', 'value' => 'left'),
                array('option' => 'right side of the search', 'value' => 'right'),
                array('option' => 'the center', 'value' => 'center')
            ),
            'value'=>$sd['results_snap_to']
        ));
        $params[$o->getName()] = $o->getData();
        ?>
    </div>
    <div class="item item-flex-nogrow wpd-isotopic-width" style="flex-wrap: wrap;">
        <?php
        $o = new wpdreamsTextSmall("results_width", __('Results box width', 'ajax-search-pro'), array(
            'icon' => 'desktop',
            'value' => $sd['results_width']
        ));
        $params[$o->getName()] = $o->getData();
        $o = new wpdreamsTextSmall("results_width_tablet", '', array(
            'icon' => 'tablet',
            'value' => $sd['results_width_tablet']
        ));
        $params[$o->getName()] = $o->getData();
        $o = new wpdreamsTextSmall("results_width_phone", '', array(
            'icon' => 'phone',
            'value' => $sd['results_width_phone']
        ));
        $params[$o->getName()] = $o->getData();
        ?>
        <div class="descMsg" style="min-width: 100%;flex-wrap: wrap;flex-basis: auto;flex-grow: 1;box-sizing: border-box;">
            <?php echo __('Use with units (10px or 50% or auto). Default: <strong>auto</strong>', 'ajax-search-pro'); ?>
        </div>
    </div>
    <div class="item">
        <?php
        $o = new wd_ANInputs("results_margin", __('Results container margin', 'ajax-search-pro'),
            array(
                'args' => array(
                    'inputs' => array(
                        array( __('Top', 'ajax-search-pro'), '0px'),
                        array( __('Right', 'ajax-search-pro'), '0px'),
                        array( __('Bottom', 'ajax-search-pro'), '0px'),
                        array( __('Left', 'ajax-search-pro'), '0px')
                    )
                ),
                'value' => $sd['results_margin']
            ));
        ?>
        <div class="descMsg">
            <?php echo __('Use with units (10px or 50% or auto). Default: <strong>auto</strong>', 'ajax-search-pro'); ?>
        </div>
    </div>
</fieldset>
<fieldset>
    <legend><?php echo __('Result container header', 'ajax-search-pro'); ?></legend>
    <div class="item">
        <?php
        $o = new wpdreamsYesNo("results_top_box", __('Display the results information box?', 'ajax-search-pro'), $sd['results_top_box']);
        $params[$o->getName()] = $o->getData();
        ?>
        <p class="descMsg">
            <?php echo __('Additional information on top of the results list, like the phrase and the results count. Only displays when there are results.', 'ajax-search-pro'); ?>
        </p>
    </div>
    <div class="item">
        <?php
        $o = new wd_TextareaExpandable("results_top_box_text", __('Information box text, when a search phrase is present', 'ajax-search-pro'), $sd['results_top_box_text']);
        $params[$o->getName()] = $o->getData();
        ?>
        <p class="descMsg">
            <?php echo __('Supports HTML and variables {phrase}, {results_count} and {results_count_total}', 'ajax-search-pro'); ?>
        </p>
        <?php
        $o = new wd_TextareaExpandable("results_top_box_text_nophrase", __('Information box text, when the search phrase is empty', 'ajax-search-pro'), $sd['results_top_box_text_nophrase']);
        $params[$o->getName()] = $o->getData();
        ?>
        <p class="descMsg">
            <?php echo __('Supports HTML and variables {results_count} and {results_count_total}', 'ajax-search-pro'); ?>
        </p>
    </div>
</fieldset>
<fieldset>
    <legend><?php echo __('Results fields', 'ajax-search-pro'); ?></legend>
    <div class="item item-flex-nogrow item-conditional" style="flex-wrap: wrap;">
        <?php
        $o = new wpdreamsYesNo("showauthor", __('Show author in results?', 'ajax-search-pro'), $sd['showauthor']);
        $params[$o->getName()] = $o->getData();
        $o = new wpdreamsCustomSelect("author_field", __('Author field', 'ajax-search-pro'),
            array(
                'selects' => array(
                    array('option' => 'Display name', 'value' => 'display_name'),
                    array('option' => 'Login name', 'value' => 'user_login')
                ),
                'value' => $sd['author_field']
            ));
        $params[$o->getName()] = $o->getData();
        ?>
    </div>
    <div class="item item-flex-nogrow item-conditional" style="flex-wrap: wrap;">
        <?php
            $o = new wpdreamsYesNo("showdate", __('Show date in results?', 'ajax-search-pro'), $sd['showdate']);
            $params[$o->getName()] = $o->getData();
            $o = new wpdreamsYesNo("custom_date", __('Use custom date format?', 'ajax-search-pro'),
                $sd['custom_date']);
            $params[$o->getName()] = $o->getData();
            $o = new wpdreamsText("custom_date_format", __(' format', 'ajax-search-pro'),
                $sd['custom_date_format']);
            $params[$o->getName()] = $o->getData();
        ?>
        <div class='descMsg' style="min-width: 100%;
        flex-wrap: wrap;
        flex-basis: auto;
        flex-grow: 1;
        box-sizing: border-box;">
            <?php echo __('If turned OFF, it will use WordPress defaults. Default custom value: <b>Y-m-d H:i:s</b>', 'ajax-search-pro'); ?>
        </div>
    </div>
    <div class="item item-flex-nogrow item-conditional" style="flex-wrap: wrap;">
        <?php
        $o = new wpdreamsYesNo("showdescription", __('Show description (content) in results?', 'ajax-search-pro'), $sd['showdescription']);
        $params[$o->getName()] = $o->getData();
        $o = new wpdreamsTextSmall("descriptionlength", __('Description (content) length', 'ajax-search-pro'), $sd['descriptionlength']);
        $params[$o->getName()] = $o->getData();
        ?>
        <div class='descMsg' style="min-width: 100%;flex-wrap: wrap;flex-basis: auto;flex-grow: 1;box-sizing: border-box;">
            <?php echo __('Content length in characters.', 'ajax-search-pro'); ?>
        </div>
    </div>
    <div class="item item item-flex-nogrow item-conditional" style="flex-wrap: wrap;">
        <?php
        $o = new wpdreamsYesNo("description_context", __('Display the description context?', 'ajax-search-pro'), $sd['description_context']);
        $params[$o->getName()] = $o->getData();

        $o = new wpdreamsTextSmall("description_context_depth", __(' ..depth', 'ajax-search-pro'), $sd['description_context_depth']);
        $params[$o->getName()] = $o->getData();
        ?><div>characters.</div>
        <div class='descMsg' style="min-width: 100%;
        flex-wrap: wrap;
        flex-basis: auto;
        flex-grow: 1;
        box-sizing: border-box;">
            <?php echo __('Will display the description from around the search phrase, not from the beginning.', 'ajax-search-pro'); ?>
        </div>
    </div>
</fieldset>

Zerion Mini Shell 1.0