if ($app->input->getCmd('option') == 'com_content' && $app->input->getCmd('view') == 'article') { return; } } else { if ($type == 'easyblog' && $params->get('hide_module', 1)) { if ($app->input->getCmd('option') == 'com_easyblog' && $app->input->getCmd('view') == 'entry') { return; } } } } // Helper file require_once 'modules/mod_giantcontent/assets/libraries/helpers/' . $type . '.php'; // Less compiler require_once 'modules/mod_giantcontent/assets/libraries/includes/lessc.php'; $less = new GiantContentCompiler(); // Get layout name $layout = $params->get('layout', 'blog'); $layout_name = explode(':', $layout); $layout_name = $layout_name[1]; // Get current template $template = 'templates/' . $app->getTemplate(); // Module js and css path $js_path = 'modules/mod_giantcontent/assets/js'; $css_path = 'modules/mod_giantcontent/assets/css'; $less_path = 'modules/mod_giantcontent/assets/less'; // Template js and css path $js_tmpl = $template . '/html/mod_giantcontent/js'; $css_tmpl = $template . '/html/mod_giantcontent/css'; $less_tmpl = $template . '/html/mod_giantcontent/less'; // General module parameters
protected function to($what, &$out, $until = false, $allowNewline = false) { if (is_string($allowNewline)) { $validChars = $allowNewline; } else { $validChars = $allowNewline ? "." : "[^\n]"; } if (!$this->match('(' . $validChars . '*?)' . GiantContentCompiler::preg_quote($what), $m, !$until)) { return false; } if ($until) { $this->count -= strlen($what); } // give back $what $out = $m[1]; return true; }