'dark', 'album_thumb_size' => 250, 'index_photo_deriv'=>'2small', 'index_photo_deriv_hdpi'=>'xsmall', 'display_page_banner' => false, ); } function modus_smarty_prefilter($source) { global $lang, $conf; $source = str_replace('
', '
', $source ); $source = str_replace('
', '
', $source ); if (!isset($lang['modus_theme'])) load_language('theme.lang', dirname(__FILE__).'/'); // picture page actionButtons wrap for mobile if (strpos($source, '
')!==false || strpos($source, '
')!==false){ if ( !($pos=strpos($source,'
') ) ) $pos = strpos($source,'
'); if ($pos !== false) { $source = substr_replace($source, '
{combine_script version=1 id=\'modus.async\' path="themes/`$themeconf.id`/js/modus.async.js" load=\'async\'}', $pos, 0); $pos = strpos($source,'caddie', $pos+1); $pos = strpos($source,'
', $pos+1); $source = substr_replace($source, '
', $pos, 0); } } /* move imageNumber from imageToolBar to imageHeaderBar*/ if (preg_match('##', $source, $matches, PREG_OFFSET_CAPTURE) && preg_match('#
{\\$PHOTO}
#', $source, $matches2, PREG_OFFSET_CAPTURE, $matches[0][1]+20)) { $source = substr_replace($source, '', $matches2[0][1], strlen($matches2[0][0])); $source = substr_replace($source, $matches2[0][0], $matches[0][1]+strlen($matches[0][0]),0); } if ( ($pos=strpos($source, '
    '))!==false || ($pos=strpos($source, '
      '))!==false){ if ( ($pos2=strpos($source, '
    ', $pos))!==false && (substr_count($source, '
  • ', $pos, $pos2-$pos) > 2) ) $source = substr_replace($source, '{combine_script version=1 id=\'modus.async\' path="themes/`$themeconf.id`/js/modus.async.js" load=\'async\'}', $pos, 0); } $re = preg_quote(']+' .preg_quote('alt="(!)">', '/'); $source = preg_replace('/'.$re.'/', '{if $cat.icon_ts.IS_CHILD_DATE}'.MODUS_STR_RECENT_CHILD.'{else}'.MODUS_STR_RECENT.'{/if}', $source); $re = preg_quote('(!)', '/'); $source = preg_replace('/'.$re.'/', ''.MODUS_STR_RECENT.'', $source); return $source; } ?>