Get Css Files

@param  $controller_id
@param  $template_id
@return array
352929
public function getCssFiles($controller_id, $template_id)
    {
        $css_files = [];
        $asset_config = $this->getConfigByName('assets');
        if (isset($asset_config[$controller_id][$template_id]['css'])) {
            $css_files = $asset_config[$controller_id][$template_id]['css'];
        }
        return $css_files;
    }
837506
public function getStylesheet($target, $themeId){
        $theme = $this->getTheme($target, $themeId);
        if(isset($theme['path'])){
            return $this->resolveStylesheetUrl($theme['path']);
        }
        return null;//not found
    }
247982
public function getDeliverTemplate($templateId)
    {
        $result = $this->httpRaw(self::WECHAT_SHOP_DELIVERY_TEMPLATE_ID_GET_URL .
            'access_token=' . $this->getAccessToken(), [
                'template_id' => $templateId
            ]);
        return isset($result['errmsg']) && $result['errmsg'] == 'success' ? $result['template_info'] : false;
    }
332364
public function createTemplateAsync($template_document, $template_name)
    {
        return $this->createTemplateAsyncWithHttpInfo($template_document, $template_name)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
836102
function fetch($template_file) {
        $template = $this->twig->load($template_file);
        return $template->render($this->twig_vars);
    }
1080587
public static function template_has_related_data($templateid) {
        $params = self::validate_parameters(self::template_has_related_data_parameters(), array(
            'id' => $templateid,
        ));

        $template = api::read_template($params['id']);
        self::validate_context($template->get_context());

        return api::template_has_related_data($params['id']);
    }
528832
public function getTemplateList()
    {
        $templates = [];
        foreach ($this->storage->findTemplates() as $site) {
            $templates[$site->id] = $site->title;
        }

        return $templates;
    }
747924
public function previewTemplate(Template $template, $template_type)
		{
			$form_data = array(
				'template_name' => $template->getName(),
				'template_type' => $template_type
			);
			$data = $this->call('templatepreview', $form_data);

			return $data;
		}
1017586
public static function loadThemeTemplates($post_templates, $object = null, $post = null, $post_type = null)
    {
        $blades = self::getAllBlades();
        foreach ($blades as $blade) {
            if (preg_match('/{{--\s*Template Name:(.*)--}}/mi', file_get_contents($blade), $header)) {

                $post_templates[basename($blade, ".blade.php")] = $header[1];
            }
        }
        return $post_templates;
    }
332911
public function getStylesheets()
    {
        $parse_stylesheets = function ($params, $stylesheets) {
            foreach ($params as $css) {
                if (is_string($css)) {
                    $css = array(
                        'path' => $css,
                        'media' => 'all',
                    );
                }

                $stylesheets[] = $css;
            }

            return $stylesheets;
        };

        // From config.yml
        $stylesheets = $parse_stylesheets(
            $this->getGenerator()->getFromBundleConfig('stylesheets', array()), array()
        );

        // From generator.yml
        $stylesheets = $parse_stylesheets(
            $this->getVariable('stylesheets', array()), $stylesheets
        );

        return $stylesheets;
    }
571570
public function onGetTemplateList()
    {
        $this->validateRequestTheme();

        $page = Page::inTheme($this->theme);
        return [
            'layouts' => $page->getLayoutOptions()
        ];
    }
1097198
public function renderCSS(ViewableData $object, $template, $css = [])
    {
        if (SSViewer::hasTemplate($template)) {
            
            return array_merge(
                $css,
                preg_split('/\r\n|\n|\r/', (string) $object->renderWith($template))
            );
            
        }
        
        return $css;
    }
1132030
def get_template(template_id, opts = {})
      data, _status_code, _headers = get_template_with_http_info(template_id, opts)
      data
    end
927999
public function formatTemplateFiles() : array
    {
        list(, $presenter) = \Nette\Application\Helpers::splitName($this->getName());
        $dir = dirname($this->getReflection()->getFileName());
        $dir = is_dir("{$dir}/templates") ? $dir : dirname($dir);
        return [
            "{$dir}/template/page/view/{$this->view}",
            "{$dir}/template/page/view/{$presenter}{$this->view}",
        ];
    }
850442
public function get($tableId, $templateId, $optParams = array()) {
      $params = array('tableId' => $tableId, 'templateId' => $templateId);
      $params = array_merge($params, $optParams);
      $data = $this->__call('get', array($params));
      if ($this->useObjects()) {
        return new Template($data);
      } else {
        return $data;
      }
    }
618667
public function getModuleCssJsSrc($theme_id){
		if(!strlen($theme_id)){
			$theme_id = '';
		}
		$rtn = array(
			'css' => '',
			'js' => ''
		);
		$data = $this->px2query(
			'/?PX=px2dthelper.document_modules.build_css&theme_id='.urlencode($theme_id)
		);

		// var_dump($data);
		$rtn['css'] .= $data;

		$data = $this->px2query(
			'/?PX=px2dthelper.document_modules.build_js&theme_id='.urlencode($theme_id)
		);

		// var_dump($data);
		$rtn['js'] .= $data;

		return $rtn;
	}
528743
public function getUrlTemplateByController($controller)
    {
        $result = $this->findUriTemplatesByController($controller);

        // Now check the results of search
        if (isset($result[0])) {
            return $result[0];
        } else {
            return false;
        }
    }