Code Changes

In /user/public_html/lib/tpl/mikio/scc.php following lines are added. (Added line is commented with ANC to make mikio respond to template styling based on animal.)

  // Load style.ini replacements from trusted locations
  $rawVars = [];
  $iniCandidates = [
      $themeRoot . '/style.ini',
      // ADD THIS LINE BELOW:
      dirname($themeRoot, 4) . '/animals/nathshaktipeeth.org/conf/tpl/mikio/style.ini', //line added by anc to make styling animal aware
      dirname($themeRoot, 3) . '/conf/tpl/mikio/style.ini' ?: null,
      (isset($_SERVER['DOCUMENT_ROOT']) ? ($_SERVER['DOCUMENT_ROOT'] . '/conf/tpl/mikio/style.ini') : null),
  ];
  foreach ($iniCandidates as $ini) {
      if ($ini && is_file($ini)) {
          $parsed = @parse_ini_file($ini, true);
          if (is_array($parsed)) {
              $rawVars = arrayDeepMerge($rawVars, $parsed);
          }
      }
  }

In /home/tetzkpsn/public_html/inc/parser/xhtml.php changed lazy to eager (see the last line of code) to make images load immediately

          if (!$render) {
              // if the picture is not supposed to be rendered
              // return the title of the picture
              if ($title === null || $title === "") {
                  // just show the sourcename
                  $title = $this->_xmlEntities(PhpString::basename(noNS($src)));
              }
              return $title;
          }
          //add image tag
          $ret .= '<img src="' . ml(
              $src,
              [
                      'w' => $width,
                      'h' => $height,
                      'cache' => $cache,
                      'rev' => $this->_getLastMediaRevisionAt($src)
                  ]
          ) . '"';
          $ret .= ' class="media' . $align . '"';
          $ret .= ' loading="eager"';

In /home/tetzkpsn/public_html/lib/tpl/mikio/mikio.php changed <h1> tag for site Title as site title & page title both were using <h1> which is wrong for seo.

          // Brand title
          if ($this->getConf('navbarUseTitleText') === true) {
              $html .= '<div class="mikio-navbar-brand-title">';
              $html .= '<div class="mikio-navbar-brand-title-text">' . $conf['title'] . '</div>'; // replaced below line with this code by ANC
              //  $html .= '<h1 class="mikio-navbar-brand-title-text">' . $conf['title'] . '</h1>';
              if ($this->getConf('navbarUseTaglineText') === true) {
                  $html .= '<p class="claim mikio-navbar-brand-title-tagline">' . $conf['tagline'] . '</p>';
              }
              $html .= '</div>';
          }

In /home/tetzkpsn/public_html/lib/plugins/statistics/Query.php made following changes to make it work with sqlite3 in staid of sqlite3.38 & above

      // average time spent on the site
    //  $sql = "SELECT AVG((unixepoch(end) - unixepoch(dt)) / 60) as time
                FROM sessions as S
               WHERE S.dt != S.end
                 AND DATETIME(S.dt, ?) >= ? AND DATETIME(S.dt, ?) <= ?
                 AND S.ua_type = 'browser'";
    //  $sql = "SELECT AVG((strftime(end) - strftime(dt)) / 60) as time
                FROM sessions as S
               WHERE S.dt != S.end
                 AND DATETIME(S.dt, ?) >= ? AND DATETIME(S.dt, ?) <= ?
                 AND S.ua_type = 'browser'";                   
      $data['timespent'] = $this->db->queryValue($sql, [$this->tz, $this->from, $this->tz, $this->to]);

In /home/tetzkpsn/public_html/inc/parser/metadata.php following changes are made to remove error in Gallery plugins rendering with Caption & title

  /**
   * Render an internal media file
   *
   * @param string $src media ID
   * @param string $title descriptive text
   * @param string $align left|center|right
   * @param int $width width of media in pixel
   * @param int $height height of media in pixel
   * @param string $cache cache|recache|nocache
   * @param string $linking linkonly|detail|nolink
   */
  public function internalmedia(
      $src,
      $title = null,
      $align = null,
      $width = null,
      $height = null,
      $cache = null,
      $linking = null
  ) {
      if ($this->capture && $title) {
         // $this->doc .= '[' . $title . ']'; //this line is replaced with following if condition 
         if (is_array($title)) {
  $title = implode(', ', $title); // जर ॲरे असेल तर त्याचे स्ट्रिंगमध्ये रूपांतर करा

} $this→doc .= '[' . (string)$title . ']';

      }
      $this->_firstimage($src);
      $this->_recordMediaUsage($src);
  }
  /**
   * Render an external media file
   *
   * @param string $src full media URL
   * @param string $title descriptive text
   * @param string $align left|center|right
   * @param int $width width of media in pixel
   * @param int $height height of media in pixel
   * @param string $cache cache|recache|nocache
   * @param string $linking linkonly|detail|nolink
   */
  public function externalmedia(
      $src,
      $title = null,
      $align = null,
      $width = null,
      $height = null,
      $cache = null,
      $linking = null
  ) {
      if ($this->capture && $title) {
          //$this->doc .= '[' . $title . ']'; //this line is replaced with following if condition 
          if (is_array($title)) {
  $title = implode(', ', $title); // जर ॲरे असेल तर त्याचे स्ट्रिंगमध्ये रूपांतर करा

} $this→doc .= '[' . (string)$title . ']';

      }
      $this->_firstimage($src);
  }