Pressbooks\CustomCss::isRomanized PHP Метод

isRomanized() статический публичный Метод

Is the romanize parts option true?
static public isRomanized ( ) : boolean
Результат boolean
    static function isRomanized()
    {
        $options = get_option('pressbooks_theme_options_pdf');
        return (bool) @$options['pdf_romanize_parts'];
    }

Usage Example

Пример #1
0
 /**
  * Return the fullpath to an export module's Javascript file.
  *
  * @param string $type
  *
  * @return string
  */
 function getExportScriptPath($type)
 {
     $fullpath = false;
     if (CustomCss::isCustomCss()) {
         $fullpath = CustomCss::getCustomCssFolder() . "/{$type}.js";
         if (!is_file($fullpath)) {
             $fullpath = false;
         }
     }
     if (!$fullpath) {
         $fullpath = realpath(get_stylesheet_directory() . "/export/{$type}/script.js");
         if (CustomCss::isCustomCss() && CustomCss::isRomanized() && $type == 'prince') {
             $fullpath = realpath(get_stylesheet_directory() . "/export/{$type}/script-romanize.js");
         }
     }
     return $fullpath;
 }
All Usage Examples Of Pressbooks\CustomCss::isRomanized