Ejemplo n.º 1
0
function enqueue_stylesheets()
{
    wp_register_style("screen", stylesheet_url("screen"), false, false);
    wp_enqueue_style("screen");
    wp_register_style("colorbox", stylesheet_url("colorbox"), false, false);
    wp_enqueue_style("colorbox");
}
Ejemplo n.º 2
0
function enqueue_stylesheets()
{
    wp_register_style("screen", stylesheet_url("screen"), false, false);
    wp_enqueue_style("screen");
    wp_register_style("owl.carousel", stylesheet_url("owl.carousel"), false, false);
    wp_enqueue_style("owl.carousel");
    wp_register_style("owl.theme", stylesheet_url("owl.theme"), false, false);
    wp_enqueue_style("owl.theme");
    wp_register_style("owl.transitions", stylesheet_url("owl.transitions"), false, false);
    wp_enqueue_style("owl.transitions");
}
Ejemplo n.º 3
0
 /**
  * Returns a stylesheet link tag for the sources specified as arguments. If
  * you don’t specify an extension, ".css" will be appended automatically.
  * Relative paths are assumed to be relative to assets/javascripts.
  * If the last argument is an array, it will be used as tag attributes.
  *
  * @return @e string
  *   A valid \<link /\> HTML tag.
  *
  * @ingroup helperfunc
  *
  * @see TagHelper::content_tag()
  *
  */
 function stylesheet_link_tag()
 {
     $sources = func_get_args();
     $tags = array();
     $attributes = NULL;
     if (is_array($sources[count($sources) - 1])) {
         $attributes = array_pop($sources);
     }
     foreach ($sources as $source) {
         if (!is_absolute_url($source)) {
             $source = stylesheet_url($source);
             if (!preg_match("/\\.css\$/", $source)) {
                 $source .= ".css";
             }
             $source = $this->asset_version($source);
         }
         $options = array("href" => $source, "media" => "all", "rel" => "stylesheet", "type" => "text/css");
         if (is_array($attributes)) {
             $options = array_merge($options, $attributes);
         }
         $tags[] = content_tag("link", NULL, $options);
     }
     return join("\n", $tags);
 }
Ejemplo n.º 4
0
 function test_stylesheet_url()
 {
     $this->assertEqual('mocked_stylesheet_directory/assets/stylesheets/screen.css', stylesheet_url("screen.css"));
 }
Ejemplo n.º 5
0
">
            </div>
        </div>


        <?php 
    }
    ?>

    </li>


    <?php 
}
?>
<foot>
    <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
    <script src="<?php 
stylesheet_url();
?>
/components/acf-map/acf-map-script.js"></script>

</foot>
</body>




</html>