コード例 #1
0
  <div class="item">
  <p class='infoMsg'>If you need debugging with the javascript code, you can turn this off.</p>
  <?php 
$o = new wpdreamsYesNo("asp_jsminified", "Load minified javascript?", postval_or_getoption('asp_jsminified'));
?>
  </div>
  <div class="item">
  <p class='infoMsg'>Set to yes if you are experiencing issues with the <b>search styling</b>, or if the styles are <b>not saving</b>!</p>
  <?php 
$o = new wpdreamsYesNo("asp_forceinlinestyles", "Force inline styles?", postval_or_getoption('asp_forceinlinestyles'));
?>
  </div>
  <div class="item">
  <p class='infoMsg'>You can turn this off, if you are not using the polaroid-styled result list.</p>
  <?php 
$o = new wpdreamsYesNo("asp_loadpolaroidjs", "Load the polaroid gallery js?", postval_or_getoption('asp_loadpolaroidjs'));
?>
  </div>
  <div class="item">
    <input type='submit' class='submit' value='Save options'/>
  </div>
  <?php 
$_r = ob_get_clean();
?>
  
  
  <?php 
$updated = false;
if (isset($_POST) && isset($_POST['compatibility']) && wpdreamsType::getErrorNum() == 0) {
    foreach ($_POST as $key => $value) {
        if (is_string($key) && strpos('asp_', $key) == 0) {
コード例 #2
0
ファイル: fulltext.php プロジェクト: crazyyy/octagram
<div id="wpdreams" class='wpdreams wrap'> 
<div class="wpdreams-box">
  <?php 
ob_start();
?>
  <div class="item">
  <p class='infoMsg'>Highly recommended, mainly for big databases.</p>
  <?php 
$o = new wpdreamsYesNo("asp_dbusefulltext", "Use fulltext search when possible", postval_or_getoption('asp_dbusefulltext'));
?>
  </div>
  <div class="item">
  <p class='infoMsg'>Only set to YES if you have performance issues!</p>
  <?php 
$o = new wpdreamsYesNo("asp_dbuseregularwhenshort", "Use regular search if the phrase is lower then the min. char count, instead of Boolean mode ", postval_or_getoption('asp_dbuseregularwhenshort'));
?>
  </div>
  <div class="item">
    <input type='submit' class='submit' value='Save options'/>
  </div>
  <?php 
$_r = ob_get_clean();
?>
  
  
  <?php 
$fulltext = wpdreams_fulltext::getInstance();
$fulltext_enabled = $fulltext->check(array('posts'));
$fulltext_indexed = $fulltext->indexExists('posts', 'asp_title');
$updated = false;
if (isset($_POST) && isset($_POST['fulltext']) && wpdreamsType::getErrorNum() == 0) {
コード例 #3
0
ファイル: cache_settings.php プロジェクト: crazyyy/octagram
?>
  <div class="item">
  <p class='infoMsg'>Not recommended, unless you have many search queries per minute.</p>
  <?php 
$o = new wpdreamsYesNo("asp_caching", "Caching activated", postval_or_getoption('asp_caching'));
?>
  </div>
  <div class="item">
  <p class='infoMsg'>Set <b>TimThumb</b> to no if you are experiencing issues with the <b>images</b>, or if the images are <b>not loading</b>!</p>
  <?php 
$o = new wpdreamsYesNo("asp_usetimbthumb", "Use the TimThumb library for image caching?", postval_or_getoption('asp_usetimbthumb'));
?>
  </div>
  <div class="item">
  <?php 
$o = new wpdreamsText("asp_cachinginterval", "Caching interval (in minutes, default 1440, aka. 1 day)", postval_or_getoption('asp_cachinginterval'), array(array("func" => "ctype_digit", "op" => "eq", "val" => true)));
?>
  </div>
  <div class="item">
    <input type='submit' class='submit' value='Save options'/>
  </div>
  <?php 
$_r = ob_get_clean();
?>
  
  
  <?php 
$updated = false;
if (isset($_POST) && isset($_POST['caching']) && wpdreamsType::getErrorNum() == 0) {
    foreach ($_POST as $key => $value) {
        if (is_string($key) && strpos('asp_', $key) == 0) {