?> "/> <link rel="stylesheet" href="<?php echo cwp::locate_in_library('base-style.css'); ?> " /> <link rel="stylesheet" href="<?php echo cwp::locate_in_library('stylesheet.css', 'fonts/socialicons'); ?> "/> <link rel="stylesheet" href="<?php echo cwp::locate_in_library('stylesheet.css', 'fonts/novecento'); ?> "/> <link rel="stylesheet" href="<?php echo cwp::locate_in_library('font-awesome.css', 'bootstrap/css'); ?> "/> <!--[if lt IE 9]> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?> /foundation/stylesheets/ie.css"> <![endif]--> <!-- IE Fix for HTML5 Tags --> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- <script src="<?php
?> "/> <link rel="stylesheet" href="<?php echo cwp::locate_in_library('stylesheet.css', 'fonts/Droid-Sans'); ?> "/> <link rel="stylesheet" href="<?php echo cwp::locate_in_library('stylesheet.css', 'fonts/Droid-Serif'); ?> "/> <link rel="stylesheet" href="<?php echo cwp::locate_in_library('stylesheet.css', 'fonts/web-symbols'); ?> "/> <link rel="stylesheet" href="<?php echo cwp::locate_in_library('stylesheet.css', 'fonts/Entypo'); ?> "/> <!-- IE Fix for HTML5 Tags --> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- <script src="<?php echo get_template_directory_uri(); ?> /foundation/javascripts/jquery-1.5.1.min.js"></script>--> <!-- theme stylesheet last - cascading elements -->
public function scripts() { //wp_register_script('nivo-slider',get_template_directory_uri().'/library/nivo-slider/jquery.nivo.slider.pack.js',array('jquery')); wp_register_script('nivo-slider', cwp::locate_in_library('jquery.nivo.slider.pack.js', 'nivo'), array('jquery')); //wp_register_style('nivo-style', get_template_directory_uri().'/library/nivo-slider/'); wp_register_style('nivo-style', cwp::locate_in_library('nivo-slider.css', 'nivo')); //wp_register_style('nivo-default', get_template_directory_uri()."/library/nivo-slider/themes/default/default.css",array('nivo-style')); wp_register_style('nivo-default', cwp::locate_in_library('default.css', 'nivo/themes/default')); //wp_register_style('nivo-pascal', get_template_directory_uri()."/library/nivo-slider/themes/pascal/pascal.css",array('nivo-style')); //wp_register_style('nivo-orman', get_template_directory_uri()."/library/nivo-slider/themes/orman/orman.css",array('nivo-style')); wp_enqueue_script('nivo-slider'); wp_enqueue_style('nivo-style'); }
?> "> <link rel="stylesheet" href="<?php echo cwp::locate_in_library('ui-stylesheet.css'); ?> "> <link rel="stylesheet" href="<?php echo cwp::locate_in_library('base-style.css'); ?> "> <link rel="stylesheet" href="<?php echo cwp::locate_in_library('stylesheet.css', 'fonts/pictograms'); ?> "> <link rel="stylesheet" href="<?php echo cwp::locate_in_library('stylesheet.css', 'fonts/socialico-web'); ?> "> <!--[if lt IE 9]> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?> /foundation/stylesheets/ie.css"> <![endif]--> <!-- IE Fix for HTML5 Tags --> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->
function jump_scripts() { /** * setup some script variables */ $css_path = get_template_directory_uri() . '/library/css'; /** * bootstrap scripts */ wp_register_script('bootstrap-alert', cwp::locate_in_library('bootstrap-alert.js', 'bootstrap/js'), array('jquery'), '', true); wp_register_script('bootstrap-buttons', cwp::locate_in_library('bootstrap-button.js', 'bootstrap/js'), array('jquery'), '', true); wp_register_script('bootstrap-dropdown', cwp::locate_in_library('bootstrap-dropdown.js', 'bootstrap/js'), array('jquery'), '', true); wp_register_script('bootstrap-modal', cwp::locate_in_library('bootstrap-modal.js', 'bootstrap/js'), array('jquery'), '', true); wp_register_script('bootstrap-popover', cwp::locate_in_library('bootstrap-popover.js', 'bootstrap/js'), array('jquery'), '', true); wp_register_script('bootstrap-scrollspy', cwp::locate_in_library('bootstrap-scrollspy.js', 'bootstrap/js'), array('jquery'), '', true); wp_register_script('bootstrap-tabs', cwp::locate_in_library('bootstrap-tab.js', 'bootstrap/js'), array('jquery'), '', true); wp_register_script('bootstrap-twipsy', cwp::locate_in_library('bootstrap-twispy.js', 'bootstrap/js'), array('jquery'), '', true); wp_register_script('bootstrap-transition', cwp::locate_in_library('bootstrap-transition.js', 'bootstrap/js'), array('jquery'), '', true); wp_register_script('bootstrap-collapse', cwp::locate_in_library('bootstrap-collapse.js', 'bootstrap/js'), array('jquery'), '', true); wp_register_script('bootstrap-typeahead', cwp::locate_in_library('bootstrap-typeahead.js', 'bootstrap/js'), array('jquery'), '', true); wp_register_script('bootstrap-tooltip', cwp::locate_in_library('bootstrap-tooltip.js', 'bootstrap/js'), array('jquery'), '', true); wp_register_script('modernizer', cwp::locate_in_library('modernizr.custom.62477.js', 'js'), null, '2.6.1', true); wp_register_script('placeholder', cwp::locate_in_library('jquery.placeholder.min.js', 'js'), null, '2.0.7 ', true); wp_register_script('fixie', cwp::locate_in_library('fixie_min.js', 'fixie'), null, '', true); wp_register_script('holder-js', cwp::locate_in_library('holder.js', 'js'), null, '', true); /** * Main theme js scripts */ if (!is_admin()) { //cwp::jquery(); //wp_enqueue_script('jquery'); wp_enqueue_script('modernizer'); wp_enqueue_script('placeholder'); wp_enqueue_script('theme-scripts', get_template_directory_uri() . '/library/js/scripts.js', array(), false, true); } }
<?php /** * @package WordPress * @subpackage Core-SF */ ?> <!--foundation sctipts--> <?php wp_footer(); ?> <script type='text/javascript' src="<?php echo cwp::locate_in_library('foundation.js', 'foundation/javascripts'); ?> "></script> <script type='text/javascript' src="<?php echo cwp::locate_in_library('app.js', 'foundation/javascripts'); ?> "></script> </body> </html>