public function widget($args, $instance) { if (!array_key_exists('title', $instance)) { $instance['title'] = ''; } $title = apply_filters('widget_title', $instance['title']); // before and after widget arguments are defined by themes echo $args['before_widget']; if (!empty($title)) { echo $args['before_title'] . $title . $args['after_title']; } // This is where you run the code and display the output ?> <?php $social_icons = laboutique_social_icons(array('class' => 'social_icons')); ?> <?php if ($social_icons) { ?> <!-- Social icons --> <div class="social_icons"> <h6><?php echo theme_option('social_title'); ?> </h6> <?php echo $social_icons; ?> </div> <?php } ?> <?php echo $args['after_widget']; }
/** * Adds action calls * * @since PressWork 1.0 */ function actionCall($id) { if (theme_option('guides') == "on" && current_user_can('manage_options')) { echo '<div class="guides clear fl"><p class="guide-title">' . $id . '</p>'; } do_action($id); if (theme_option('guides') == "on" && current_user_can('manage_options')) { echo '</div>'; } }
function pw_footer_content() { ?> <ul id="footer" class="fl clear"> <?php $layout = theme_option('footer_option'); $layout = explode(",", $layout); foreach ($layout as $elem) { pw_get_element($elem); } ?> </ul> <!-- end #footer --> <?php }
/** * Adds the fullwidth class to the body tag * * @since PressWork 1.0 */ function pw_fullWidth($classes = '') { global $post; $added = ''; if (!empty($post)) { $full = get_post_meta($post->ID, 'pw_single_layout', true); if ($full == 2 && is_singular()) { $classes[] = 'fullwidth'; $added = true; } } if (theme_option('layout_option') == "maincontent" && empty($added)) { $classes[] = 'fullwidth'; } return $classes; }
<div class="span4"> <div class="row-fluid"> <div class="<?php if (theme_option('header_bar_search_publish')) { ?> span8 offset2<?php } else { ?> span10<?php } ?> "> <?php if (theme_option('header_bar_search_publish')) { ?> <!-- Search --> <div class="search"> <div class="qs_s"> <form method="get" action="<?php echo home_url(); ?> " role="search"> <input type="text" name="s" id="query" placeholder="<?php echo esc_attr(__('Search', DOMAIN)); ?> …" autocomplete="off" value=""> <input type="submit" value="<?php echo esc_attr(__('Search', DOMAIN));
echo ' '; the_author_posts_link(); } ?> </div> <div class="storycontent"> <?php if (function_exists('has_post_thumbnail') && has_post_thumbnail()) { echo '<a href="' . get_permalink() . '">'; the_post_thumbnail('thumbnail', array('class' => 'alignleft')); echo '</a>'; } else { echo resize(get_option('thumbnail_size_w'), get_option('thumbnail_size_h')); } if (theme_option('excerpt_content') == '2') { theme_content(__('Read more »', "magazine-basic")); } else { theme_excerpt(theme_option('excerpt_two')); } ?> </div> </div> <?php $x++; } } ?> </div>
function pw_header_css() { global $pw_content_width, $pw_first_sidebar, $pw_second_sidebar, $pw_body_margins, $pw_margins, $pw_site; $fullsite = $pw_site; $loc2 = strpos(theme_option('layout_option'), "secondsidebar"); $loc = strpos(theme_option('layout_option'), "firstsidebar"); $mainlineheight = round(theme_option('main_size') * 1.4); $right_col_padding = get_option('thumbnail_size_w') + 15; ?> <!-- PressWork Theme Option CSS --> <style type="text/css"<?php if (theme_option('toolbox') == "on" && current_user_can("manage_options")) { echo ' id="pw_style_preview"'; } ?> > body { font-family: <?php echo theme_option("body_font"); ?> ; font-size: <?php echo theme_option("body_font_size"); ?> px; } h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-family: <?php echo theme_option("headers_font"); ?> ; } #body-wrapper { color: <?php echo theme_option('main_text_color'); ?> ; width: <?php echo $pw_site; ?> px; padding: <?php echo $pw_body_margins; ?> px; background-color: <?php echo theme_option('page_background_color'); ?> ; } #main-wrapper > li { margin: 0 <?php echo $pw_margins / 2; ?> px; } #firstsidebar { width: <?php echo $pw_first_sidebar; ?> px; } #secondsidebar { width: <?php echo $pw_second_sidebar; ?> px; } #maincontent { width: <?php echo $pw_content_width; ?> px; } body.fullwidth #maincontent { width: <?php echo $fullsite; ?> px; margin: 0; } .siteheader a { color: <?php echo theme_option('siteheader_color'); ?> ; } .siteheader a:hover { color: <?php echo theme_option('siteheader_color_hover'); ?> ; } #description { color: <?php echo theme_option('description_color'); ?> ; } a { color: <?php echo theme_option('a_color'); ?> ; background: <?php echo theme_option('a_background_color'); ?> } a:hover { color: <?php echo theme_option('a_color_hover'); ?> ; background: <?php echo theme_option('a_background_color_hover'); ?> } #nav nav ul { background: <?php echo theme_option('nav_background_color'); ?> ; } #nav nav a { color: <?php echo theme_option('nav_color'); ?> } #nav nav a:hover, #nav .sub-menu li, #nav .sfHover { color: <?php echo theme_option('nav_color_hover'); ?> ; background: <?php echo theme_option('nav_background_color_hover'); ?> ; } #subnav nav ul { background: <?php echo theme_option('subnav_background_color'); ?> ; } #subnav nav a { color: <?php echo theme_option('subnav_color'); ?> } #subnav nav a:hover, #subnav .sub-menu li, #subnav .sfHover { color: <?php echo theme_option('subnav_color_hover'); ?> ; background: <?php echo theme_option('subnav_background_color_hover'); ?> ; } #footer nav ul { background: <?php echo theme_option('footernav_background_color'); ?> ; } #footer nav a { color: <?php echo theme_option('footernav_color'); ?> } #footer nav a:hover, #footer .sub-menu li, #footer .sfHover { color: <?php echo theme_option('footernav_color_hover'); ?> ; background: <?php echo theme_option('footernav_background_color_hover'); ?> ; } h1.catheader { color: <?php echo theme_option('category_header_color'); ?> ; } article .meta { color: <?php echo theme_option('post_meta_color'); ?> ; } article .posttitle, article .posttitle a { color: <?php echo theme_option('post_title_color'); ?> ; } article .posttitle a:hover { color: <?php echo theme_option('post_title_color_hover'); ?> ; } article .content-col { padding-left: <?php echo $right_col_padding; ?> px; } .authortext { width: <?php echo $pw_content_width - 100; ?> px; } </style> <!-- eof PressWork Theme Option CSS --> <?php }
<p><?php _e('Thank you. Your order has been received.', 'woocommerce'); ?> </p> <?php } ?> </div><!-- #content --> </div> </div> <?php if (!trim(theme_option('staticpages_sidebar'))) { ?> <div class="span3 hidden-desktop visible-phone visible-tablet"> <?php if (is_user_logged_in()) { ?> <?php laboutique_my_account_sidebar_nav(array('class' => 'nav nav-tabs nav-stacked')); ?> <?php } else { ?> <?php wp_nav_menu(array('theme_location' => 'pages_sidebar', 'menu_class' => 'nav nav-tabs nav-stacked', 'fallback_cb' => 'false')); ?> <?php
echo $product->get_title(); ?> </a></h6> <div class="price"> <?php if ($price = $product->get_price_html()) { echo '<div class="price">'; echo $price; $sale = get_post_meta($product->id, '_sale_price', true); if ($sale) { echo '<span class="label label-sale">' . __("Sale") . '</span>'; } echo '</div>'; } if (!theme_option('shop_disable_reviews')) { if ($product->get_average_rating()) { echo '<div class="rating rating-' . (int) $product->get_average_rating() . '">'; for ($i = 1; $i <= (int) $product->get_average_rating(); $i++) { echo '<i class="icon-heart"></i>' . "\n"; } echo '</div>'; } else { echo '<div class="rating rating-0"> <a href="' . esc_url(get_permalink()) . '#tab-reviews">' . __("No reviews — be the first?", DOMAIN) . '</a> </div>'; } } ?> </div> </div>
<?php woocommerce_get_template('loop/no-products-found.php'); ?> <?php } ?> </div><!-- #content --> </div><!-- #primary --> </div> <?php if (theme_option('shop_sidebar') == 'right') { ?> <div class="span3"> <!-- Sidebar --> <?php dynamic_sidebar('sidebar-3'); ?> <!-- End sidebar --> </div> <?php } ?>
<h2><?php _e('Tags', "feed-me-seymour"); ?> </h2> <ul> <li><?php wp_tag_cloud(); ?> </li> </ul> </div> <?php } ?> <?php if (theme_option('logo_location') == "aligncenter" && theme_option('rss_button') != 2) { ?> <div class="sidebox"> <a href="<?php bloginfo('rss2_url'); ?> "><img src="<?php echo THEME_URL; ?> /images/rss.png" alt="<?php _e('Subscribe to RSS', "feed-me-seymour"); ?> " /></a><p><a href="<?php bloginfo('rss2_url'); ?> "><?php
/** * Add pw_columns functionality * * Display posts in a grid layout according to the parameters set in the * argument array. * * @since PressWork 1.0 */ function pw_columns($args = '') { global $pw_content_width; $defaults = array('width' => 'full', 'columns' => 1, 'posts' => 1, 'text' => 'excerpt', 'readmore' => 1, 'category' => 'all', 'dates' => 1, 'authors' => 1, 'comments' => 1, 'images' => 1, 'img_w' => 100, 'img_h' => 100, 'margin-right' => '', 'offset' => '', 'title' => '', 'id' => '', 'padding' => 15, 'colmargin' => 30); $r = wp_parse_args($args, $defaults); extract($r, EXTR_SKIP); $featuredcat = theme_option('fp_featured'); $posts = array("posts_per_page" => $r['posts']); if ($r['category'] != "all") { $posts['cat'] = $r['category']; } if (isset($r['offset'])) { $posts['offset'] = $r['offset']; } $column = new WP_Query(); $column->query($posts); if ($r['width'] == "full") { $width = ' style="width:100%; margin-right:' . $r['margin-right'] . 'px;"'; if ($r['columns'] != 1) { $col_width = ($pw_content_width - $padding * 2 * $columns - $colmargin * ($columns - 1)) / $r['columns']; } else { $col_width = $pw_content_width - $padding * 2; } $col_width = ' style="width: ' . $col_width . 'px;'; } else { $width = ' style="width:' . $r['width'] . 'px; margin-right:' . $r['margin-right'] . 'px;"'; if ($r['columns'] != 1) { $col_width = ($r['width'] - $padding * 2 * $columns - $colmargin * ($columns - 1)) / $r['columns']; } else { $col_width = $r['width'] - $padding * 2; } $col_width = ' style="width: ' . $col_width . 'px;'; } $x = 1; if (!empty($r['id'])) { $id = ' id="' . $r['id'] . '"'; } else { $id = ""; } ?> <div class="columns"<?php echo $width; echo $id; ?> > <?php if (!empty($r['title'])) { echo '<div class="columns-title">' . $r['title'] . '</div>'; } ?> <?php while ($column->have_posts()) { $column->the_post(); ?> <?php if ($x == 1) { $clear = "clear"; } else { $clear = ""; } ?> <?php if ($x != 1 && $r['columns'] > 1) { $final_width = $col_width . ' margin-left: ' . $colmargin . 'px;"'; } else { $final_width = $col_width . '"'; } ?> <?php if ($x == $r['columns']) { $x = 0; } ?> <div id="post-<?php the_ID(); ?> " <?php post_class($clear); echo $final_width; ?> > <?php actionBlock('pw_columns', $r); ?> </div> <?php $x++; } ?> </div> <?php }
} ?> </div> <div class="storycontent"> <?php if (function_exists('has_post_thumbnail') && has_post_thumbnail()) { echo '<a href="' . get_permalink() . '">'; the_post_thumbnail('thumbnail', array('class' => 'alignleft')); echo '</a>'; } else { echo resize(get_option('thumbnail_size_w'), get_option('thumbnail_size_h')); } if (theme_option('excerpt_content') == '2') { theme_content(__('Read more »', "magazine-basic")); } else { theme_excerpt(theme_option('excerpt_three')); } ?> </div> </div> <?php $x++; } } if ($x > 4) { echo "</div>"; } ?> </div>
<?php get_header(); ?> <?php $layout = theme_option('layout_option'); $fullwidth = get_post_meta($post->ID, 'pw_single_layout', true); if ($fullwidth == 2) { $layout = "maincontent"; } $layout = explode(",", $layout); foreach ($layout as $elem) { pw_get_element($elem); } get_footer();
function metaDesc() { $content = strip_tags(get_the_content()); if ($content) { $content = preg_replace('/\\[.+\\]/', '', $content); $content = ereg_replace("[\n\r]", "\t", $content); $content = ereg_replace("\t\t+", " ", $content); $content = htmlentities($content); } else { $content = htmlentities(theme_option('site_description')); } if (strlen($content) < 155) { echo $content; } else { $desc = substr($content, 0, 155); echo $desc . "..."; } }
printf(__("Permanent Link to %s", "magazine-basic"), the_title_attribute('echo=0')); ?> "><?php the_title(); ?> </a></h2> <div class="meta"> <?php if (theme_option('dates_cats') == 'on') { echo '<div class="date">'; the_time(get_option('date_format')); echo '</div>'; } ?> <?php if (theme_option('authors_cats') == 'on') { _e("By", "magazine-basic"); echo ' '; the_author_posts_link(); } ?> </div> <div class="storycontent"> <?php if (function_exists('has_post_thumbnail') && has_post_thumbnail()) { echo '<a href="' . get_permalink() . '">'; the_post_thumbnail('thumbnail', array('class' => 'alignleft')); echo '</a>'; } else { echo resize(get_option('thumbnail_size_w'), get_option('thumbnail_size_h'));
/** * These are the jQuery scripts needed to run PressWork * so don't mess with this file * * @since PressWork 1.0 */ function footer_scripts() { ?> <script type="text/javascript" src="<?php echo admin_url("js/farbtastic.js"); ?> "></script> <script type="text/javascript"> /* <![CDATA[ */ jQuery.fn.blindToggle = function(speed, easing, callback) { return this.animate({left: parseInt(this.css('left')) <0 ? 0 : -700}, speed, easing, callback); }; (function($) { <?php global $pw_welcome; if ($_GET['action'] == "pw-activate" && empty($pw_welcome)) { ?> $("#close-welcome").click(function() { nonce = $("input#bavotasan_nonce").val(); var data = { nonce: nonce, action: 'remove_welcome_screen' }; $.post('<?php echo admin_url('admin-ajax.php'); ?> ', data, function(response){ $("#pw_welcome_screen, #pw_fadeback").fadeOut("slow", function() { window.location = "<?php echo home_url("/"); ?> "; }); }); }); $(document).ready(function() { var pos = $("#wp-admin-bar-presswork-options").position(); $(".adminbar-arrow").css({ left: pos.left-30 }).show(); }); <?php } ?> $("#savetheme").click(function() { $("#themeform").trigger("submit"); return false; }); $("#themeform").submit(function() { nonce = $("input#bavotasan_nonce").val(); var loader = $("#ajaxloader"); var message = $("#save_message"); message.hide(); loader.show(); var data = { action: 'save_theme_options', nonce: nonce, option: $(this).serialize(), }; $.post('<?php echo admin_url('admin-ajax.php'); ?> ', data, function(response){ loader.hide(); message.fadeIn(); setTimeout(function() { message.fadeOut(); }, 5000); }); return false; }); $("#colorselect").change(function() { colorselect(); }); $("#layoutselect").change(function() { layoutselect(); }); $(".fontselect").change(function() { $("#"+ name + "_preview").remove(); var font = $(this).val(); var el = $(this).attr("rel"); var name = $(this).attr("name"); var addplus = font.replace(" ", "+"); $("head").prepend("<link id='" + name + "_preview' href='http://fonts.googleapis.com/css?family=" + addplus + "' rel='stylesheet' type='text/css'>"); $(el).css({ fontFamily : font }); }); $(".logo-input input").change(function() { var thesrc = $(this).val(); $("#header_logo img").attr("src", thesrc); }); function colorselect() { var value = $("#colorselect").val(); $(".color-item").show().not("."+value+"-item").hide(); } colorselect(); function layoutselect() { var value = $("#layoutselect").val(); $(".addoption").show().not("."+value+"-item").hide(); if(value=="header") $(".logo-input").show(); else $(".logo-input").hide(); } layoutselect(); if($(".colorpicker").val()=="") $(".colorpicker").val("#") var f = $.farbtastic('#picker'); $('.colorpicker') .each(function() { f.linkTo(this); }) .focus(function() { f.linkTo(this); }) .change(function() { if($(this).val()=="") $(this).val("#"); }); $("#pw-preview").click(function() { $(".colorpicker:visible").each(function() { var col = $(this).val(); var style = $(this).attr("rel").split('|'); var addstyle = style[0] + " { " + style[1] + ": " + col + "; }\n"; $("#pw_style_preview").append(addstyle); }); }); $(".font-option").click(function() { $(".font-option").removeClass("active"); $("#new-font-style").remove(); $(this).addClass("active"); var theID = $(this).attr("id"); $("input#font_option").val(theID); $("head").append('<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?> /admin/css/' + theID + '.css" id="new-font-style" media="screen" />'); }); $(".colorwheel").click(function() { var el = $(this).attr("rel"); $(this).parent().find("input").focus(); $("#color").stop(true,true).animate({ width: 450 }, function() { $("#picker, #closepicker").fadeIn(); }); }); $("#closepicker").click(function() { $("#picker, #closepicker").fadeOut('fast', function() { $("#color").stop().animate({ width: 250 }); }); }); $("#body_font_size").change(function() { var size = $(this).val(); var addstyle = "body { font-size: " + size + "px; }"; $("#pw_style_preview").append(addstyle); }); $(".add-item").click(function(){ if($(this).hasClass("disabled")) { // nothing } else { nonce = $("input#bavotasan_nonce").val(); $(this).addClass("disabled"); var loader = $("#ajaxloader"); var wrap = $(this).attr("rel").split("|"); var main = $("#"+wrap[0]); var item = $(this).attr("key"); loader.show(); var data = { action: 'add_element', element: item, option: wrap[1], nonce: nonce, }; $.post('<?php echo admin_url('admin-ajax.php'); ?> ', data, function(response){ loader.hide(); if(response) { main.append(response); var last = main.find("li:last"); if(wrap[1]=="layout") { var newfull = last.outerWidth(); var full = $("#body-wrapper").outerWidth(); $("body").removeClass("fullwidth"); $("#body-wrapper").stop(true,true).animate({ width: full+newfull+30+"px" }, function() { last.show(); }); } $("#"+wrap[1]+"_option").val( main.sortable("toArray") ); } }); } }); $(".save_option").click(function() { if($(this).hasClass("active")) { var value = "off"; } else { var value = "on"; } var theID = $(this).attr("id"); var loader = $("#ajaxloader"); loader.show(); var data = { action: 'save_option', option: value, id: theID }; $.post('<?php echo admin_url('admin-ajax.php'); ?> ', data, function(response){ setTimeout(function() { location.reload(); }, 1000); }); }); $("#reset_options").click(function() { var message = "Are you sure you want to reset the theme options?"; if(confirm(message)) { var loader = $("#ajaxloader"); loader.show(); var data = { action: 'reset_theme_options' }; $.post('<?php echo admin_url('admin-ajax.php'); ?> ', data, function(response){ setTimeout(function() { location.reload(); }, 1000); }); } else { return false; } }); $(".layout_widths").change(function(){ var value = $(this).val(); var id = $(this).attr("rel"); var current = $("#"+id).width(); var full = $("#body-wrapper").outerWidth(); var newfull = parseInt(full) - parseInt(current) + parseInt(value); if(value>current) { $("#body-wrapper").stop(true,true).animate({ width: newfull+"px" }, function() { $("#"+id).stop(true,true).animate({ width: value+"px" }); }); } else { $("#"+id).stop(true,true).animate({ width: value+"px" }, function() { $("#body-wrapper").stop(true,true).animate({ width: newfull+"px" }); }); } }); $(".margins").change(function(){ var value = $(this).val(); var id = $(this).attr("rel"); if(id!="body-wrapper") { var current = $("#"+id).css("margin-right").replace("px", ""); var full = $("#body-wrapper").width(); var newfull = parseInt(full) - parseInt(current*2) + parseInt(value); newvalue = "0 " + (value/2); if((value/2)>current) { $("#body-wrapper").stop(true,true).animate({ width: newfull+"px" }, function() { $("#"+id).css({ margin: newvalue+"px" }); }); } else { $("#"+id).css({ margin: newvalue+"px" }); $("#body-wrapper").stop(true,true).animate({ width: newfull+"px" }); } } else { $("#"+id).css({ padding: value+"px" }); } }); $("#social .themeoptions input").change(function() { var value = $(this).val(); var el = $(this).attr('name'); if(value=='') { $("#social-icons a."+el+"-icon").remove(); } else if($("#social-icons a."+el+"-icon").length==0) { var theURL; if(el=="twitter") theURL = "http://twitter.com/"+value; if(el=="facebook") theURL = "http://facebook.com/"+value; if(el=="flickr") theURL = "http://flickr.com/photos/"+value; $("#social-icons").append("<a href='"+theURL+"' class='"+el+"-icon'></a>"); } }); $(".open_toolbox").click(function() { var button = $(this); var it = $(this).attr("rel"); var par = $("#"+it); if(button.hasClass("open")) { par.stop(true,true).fadeOut('fast'); button.removeClass("open"); return; } $(".open_toolbox").removeClass("open"); button.addClass("open"); if($(".pw_toolbox_content").not(par).is(".open")) { $(".pw_toolbox_content.open").fadeOut('fast', function() { if(!par.hasClass("open")) par.stop(true,true).fadeIn().addClass("open"); }).removeClass("open"); } else { par.stop(true,true).fadeIn().addClass("open"); } }); $(".closewindow").click(function() { $(".pw_toolbox_content").fadeOut('fast'); $(".open_toolbox").removeClass("open"); }); <?php if (theme_option("dragdrop") == "on") { ?> $(".delete_element").live("click", function(){ nonce = $("input#bavotasan_nonce").val(); var loader = $("#ajaxloader"); var main = $("#main-wrapper"); loader.show(); var el = $(this); var element = $(this).attr("key"); var option = $(this).attr("rel"); $('.add-item[key="'+element+'"]').removeClass("disabled"); var data = { action: 'delete_element', element: element, option: option, nonce: nonce, }; $.post('<?php echo admin_url('admin-ajax.php'); ?> ', data, function(response){ loader.hide(); if(option=="layout_option") { var theitem = el.parent().parent().parent(); var newfull = theitem.outerWidth(); var full = $("#body-wrapper").outerWidth(); theitem.remove(); $("#body-wrapper").stop(true,true).animate({ width: full-newfull-30+"px" }); var parent = "main-wrapper"; } if(option=="header_option") { var theitem = el.parent().parent(); theitem.remove(); var parent = "headerbanner"; } if(option=="footer_option") { var theitem = el.parent().parent(); theitem.remove(); var parent = "footer"; } $("#"+option).val( $("#"+parent).sortable("toArray") ); }); }); <?php } ?> $("#main-wrapper") .sortable({ placeholder: 'placeholder', handle: "div.handle", forcePlaceholderSize: true, update: function(){ $("#layout_option").val( $(this).sortable("toArray") ); } }) $("#headerbanner") .sortable({ placeholder: 'placeholder', handle: "div.handle", forcePlaceholderSize: true, update: function(){ $("#header_option").val( $(this).sortable("toArray") ); } }) $("#footer") .sortable({ placeholder: 'placeholder', handle: "div.handle", forcePlaceholderSize: true, update: function(){ $("#footer_option").val( $(this).sortable("toArray") ); } }) })(jQuery); /* ]]> */ </script> <?php }
?> </a> </div> <?php } ?> <div id="description"<?php echo $float; ?> > <?php if (theme_option('tag_line') != 2) { bloginfo('description'); } ?> </div> </div> <!-- end header --> <div id="mainwrapper"> <?php $loc = theme_option('sidebar_location'); if ($loc == 1 || $loc == 3 || $loc == 5) { get_sidebar(); // calling the First Sidebar } if ($loc == 3) { get_sidebar("second"); } ?> <div id="leftcontent">
* @version 1.6.4 */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly global $post, $product; ?> <div class="product_meta meta"> <?php do_action('woocommerce_product_meta_start'); ?> <?php if (theme_option('shop_sku') && $product->get_sku()) { ?> <div itemprop="productID" class="sku_wrapper sku"><i class="icon-pencil"></i> <span rel="tooltip" title="SKU is <?php echo $product->get_sku(); ?> "><?php echo $product->get_sku(); ?> </span> </div> <?php } ?>
<body class="<?php echo body_class(); ?> "> <div class="main"> <header class="header"> <div class="header__wrapper"> <a class="header__logo" href="<?php echo base_url(); ?> "> <?php if (theme_option('header_logo')) { ?> <img src="<?php echo theme_option('logo_src'); ?> "> <?php } else { ?> <?php echo site_name(); ?> <?php } ?> </a> <?php theme_include('partials/navigation'); ?>
?> </title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link href='http://fonts.googleapis.com/css?family=<?php echo str_replace(" ", "+", theme_option("body_font")); ?> |<?php echo str_replace(" ", "+", theme_option("headers_font")); ?> ' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?> " type="text/css" media="screen" /> <?php if (theme_option("toolbox") == "on" && current_user_can("manage_options")) { echo '<link rel="stylesheet" href="' . get_template_directory_uri() . '/admin/css/toolbox-styles.css" type="text/css" media="screen" />'; } pw_header_css(); ?> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?> " /> <link rel="shortcut icon" type="image/x-icon" href="<?php echo get_template_directory_uri(); ?> /admin/images/favicon.ico" /> <?php if (is_singular() && get_option('thread_comments')) {
echo resize(get_option('thumbnail_size_w'), get_option('thumbnail_size_h')); } ?> <?php the_title(); ?> </a></h2> <?php /*<div class="meta"> <?php if(theme_option('dates_index')=='on') { echo '<div class="date">'; the_time(get_option('date_format')); echo '</div>'; } ?> <?php if(theme_option('authors_index')=='on') { _e("By", "magazine-basic"); echo ' '; the_author_posts_link(); } ?> </div>*/ ?> <div class="clear"> </div> <div class="storycontent"> <?php if (theme_option('excerpt_content') == '2') { theme_content(__('Read more »', "magazine-basic")); } else { theme_excerpt(theme_option('excerpt_one')); } ?> </div> </div> <?php } } ?> <?php get_footer();
function laboutique_widget_product_small($r) { $r->the_post(); global $product; echo '<li>'; if (has_post_thumbnail()) { echo '<div class="image"> <a href="' . esc_url(get_permalink()) . '" title="' . esc_attr(get_the_title()) . '"> ' . get_the_post_thumbnail($r->post->ID, 'shop_thumbnail') . ' </a> </div>'; } echo '<div class="desc"> <h6> <a href="' . esc_url(get_permalink()) . '" title="' . esc_attr(get_the_title()) . '">' . get_the_title() . '</a> </h6>'; if ($price = $product->get_price_html()) { echo '<div class="price">'; echo $price; $sale = get_post_meta($product->id, '_sale_price', true); if ($sale) { echo '<span class="label label-sale">' . __("Sale") . '</span>'; } echo '</div>'; } if (!theme_option('shop_disable_reviews')) { if ($product->get_average_rating()) { echo '<div class="rating rating-' . (int) $product->get_average_rating() . '">'; for ($i = 1; $i <= (int) $product->get_average_rating(); $i++) { echo '<i class="icon-heart"></i>' . "\n"; } echo '</div>'; } else { echo '<div class="rating rating-0"> <a href="' . esc_url(get_permalink()) . '#tab-reviews">' . __("No reviews — be the first?", DOMAIN) . '</a> </div>'; } } echo '</div> </li>'; }
<ul class="thumbs-list"> <?php if (has_post_thumbnail()) { echo '<li><a href="#" data-image="' . $image_link . '" data-zoom-image="' . $image_link . '" class="active" title="' . esc_attr($image_title) . '" ><img src="' . $thumbnail_image_link . '" alt="' . esc_attr($image_title) . '" /></a></li>'; } ?> <?php do_action('woocommerce_product_thumbnails'); ?> </ul> </div> <?php } ?> <?php if (!theme_option('shop_disable_sharing')) { ?> <div class="social"> <div id="sharrre"> <div class="facebook"> </div> <div class="twitter"> </div> <div class="googleplus"> </div> <div class="pinterest"> </div> </div> </div> <?php } ?> </div> </div>
/** * Display social icons. * * @since La Boutique 1.1 * * @return void */ function laboutique_social_icons($args = array()) { $output = ''; foreach (array('Twitter', 'Facebook', 'Pinterest', 'YouTube', 'Vimeo', 'Flickr', 'Google+', 'Dribbble', 'Forrst', 'Tumblr', 'Digg', 'Linkedin', 'Instagram') as $k => $v) { $option_id = str_replace("+", "plus", str_replace(" ", "_", strtolower($v))); $option_value = theme_option($option_id); if ($option_value) { $output .= '<li> <a class="' . $option_id . '" href="' . $option_value . '" target="_blank" title="' . $v . '">' . $v . '</a> </li>'; } } if ($output) { $list = '<ul'; if ($args['class']) { $list .= ' class="' . $args['class'] . '"'; } $list .= '>'; return $list . $output . '</ul>'; } }
<?php } elseif (!woocommerce_product_subcategories(array('before' => woocommerce_product_loop_start(false), 'after' => woocommerce_product_loop_end(false)))) { ?> <?php woocommerce_get_template('loop/no-products-found.php'); ?> <?php } ?> </div> <?php if (!theme_option('shop_home_sidebar') || theme_option('shop_home_sidebar') == 'right') { ?> <div class="span3"> <?php dynamic_sidebar('sidebar-4'); ?> </div> <?php } ?> </div> </div> </section> <?php get_footer();
echo menu_url(); ?> " title="<?php echo menu_title(); ?> "> <?php echo menu_name(); ?> </a> </li> <?php } ?> <?php if (theme_option('show_admin_links')) { ?> <li> <?php if (user_authed()) { ?> <a class="navigation__link" href="/admin" title="Admin"> Admin </a> <?php } else { ?> <a class="navigation__link" href="/admin/login" title="Login">
<?php echo nl2br(theme_option('shop_return')); ?> </div> <?php } ?> <!-- End id="returns" --> <?php if (!empty($tabs)) { ?> <?php foreach ($tabs as $key => $tab) { ?> <?php if ($key == 'reviews' && !theme_option('shop_disable_reviews') || $key != 'reviews') { ?> <div class="tab-pane entry-content" id="tab-<?php echo $key; ?> "> <?php call_user_func($tab['callback'], $key, $tab); ?> </div> <?php } ?> <?php }
echo page_content(); ?> </div> </section> <section class="content__two--primary"> <div class="content__wrap"> <?php echo page_content(); ?> <?php echo page_content(); ?> </div> </section> <?php $services = theme_option('services', false); if ($services) { ?> <section class="content__three--secondary"> <div class="content__wrap"> <?php foreach (range(0, 2) as $i) { ?> <?php $service = $services[$i]; ?> <p> <i class="fa fa-<?php echo $service->icon; ?> "></i>
/** * Functionality for PressWork's toolbox editor * * @since PressWork 1.0 */ function pw_toolbox() { ?> <div id="pw_toolbox"> <div id="pw_toolbox_controls"> <div class="open_toolbox options clear fl" rel="options"></div> <div class="open_toolbox layout clear fl" rel="layout"></div> <div class="open_toolbox color clear fl" rel="color"></div> <div class="open_toolbox fonts clear fl" rel="fonts"></div> <div class="open_toolbox social clear fl" rel="social"></div> <div id="savetheme" class="clear fl"></div> </div> <form action="" method="post" name="themeform" id="themeform"> <div id="options" class="pw_toolbox_content"> <div class="pw_toolbox_arrow"></div> <h4><?php _e('PressWork Settings', "presswork"); ?> </h4> <div class="closewindow">X</div> <table class="themeoptions"> <tr><th><?php _e('Drag & Drop Editor', "presswork"); ?> </th><td> <?php $dragdrop = theme_option('dragdrop'); $guides = theme_option('guides'); $functions = theme_option('functions'); ?> <a href="javascript:void(0)" class="save_option green-button<?php if ($dragdrop == "on") { echo ' active'; } ?> " id="dragdrop"><?php if ($dragdrop != "on") { _e('OFF', "presswork"); } else { _e('ON', "presswork"); } ?> </a> </td></tr> <tr><th><?php _e('Guides', "presswork"); ?> </th><td><a href="javascript:void(0)" class="save_option green-button<?php if ($guides == "on") { echo ' active'; } ?> " id="guides"><?php if ($guides != "on") { _e('OFF', "presswork"); } else { _e('ON', "presswork"); } ?> </a></td></tr> <tr><th><?php _e('Functions', "presswork"); ?> </th><td><a href="javascript:void(0)" class="save_option green-button<?php if ($functions == "on") { echo ' active'; } ?> " id="functions"><?php if ($functions != "on") { _e('OFF', "presswork"); } else { _e('ON', "presswork"); } ?> </a></td></tr> <tr><th><?php _e('Reset all options', "presswork"); ?> </th><td><a href="javascript:void(0)" class="green-button" id="reset_options"><?php _e('Reset', "presswork"); ?> </a></td></tr> </table> </div> <div id="layout" class="pw_toolbox_content"> <div class="pw_toolbox_arrow"></div> <h4><?php _e('Layout', "presswork"); ?> </h4> <div class="closewindow">X</div> <div class="lower_box"> <label><?php _e('Main Content', "presswork"); ?> </label><input type="texbox" class="layout_widths" rel="maincontent" name="content_width" size="4" id="content_width" value="<?php echo theme_option('content_width'); ?> " /> <label><?php _e('First Sidebar', "presswork"); ?> </label><input type="texbox" class="layout_widths" rel="firstsidebar" name="first_sidebar_width" size="4" id="first_sidebar_width" value="<?php echo theme_option('first_sidebar_width'); ?> " /> <label><?php _e('Second Sidebar', "presswork"); ?> </label><input type="texbox" class="layout_widths" name="second_sidebar_width" size="4" id="second_sidebar_width" rel="secondsidebar" value="<?php echo theme_option('second_sidebar_width'); ?> " /><br /> <label><?php _e('Body Margins', "presswork"); ?> </label><input type="texbox" class="margins" rel="body-wrapper" name="body_margins" size="4" id="body_margins" value="<?php echo theme_option('body_margins'); ?> " /> <label><?php _e('Content Margins', "presswork"); ?> </label><input type="texbox" class="margins" rel="main-wrapper > li" name="content_margins" size="4" id="content_margins" value="<?php echo theme_option('content_margins'); ?> " /> <br class="clear" /> <div class="styled-select"> <select id="layoutselect"> <option value="header"><?php _e('Header', "presswork"); ?> </option> <option value="layout"><?php _e('Main Content', "presswork"); ?> </option> <option value="footer"><?php _e('Footer', "presswork"); ?> </option> </select> </div> <div class="pw-items"> <?php pw_add_all_elements(); ?> <div class="logo-input clear"><label for="header_logo"><?php _e('Logo Image URL', "presswork"); ?> </label><input size="50" type="text" name="header_logo" id="the_header_logo" class="header-item" value="<?php echo theme_option("header_logo"); ?> " /></div> </div> </div> </div> <div id="color" class="pw_toolbox_content"> <div class="pw_toolbox_arrow"></div> <h4><?php _e('Colors', "presswork"); ?> </h4> <div class="closewindow">X</div> <div class="lower_box"> <div class="styled-select"> <select id="colorselect"> <option value="siteheader"><?php _e('Blog Name', "presswork"); ?> </option> <option value="description"><?php _e('Description', "presswork"); ?> </option> <option value="links"><?php _e('Links', "presswork"); ?> </option> <option value="text"><?php _e('Main Text', "presswork"); ?> </option> <option value="nav"><?php _e('Navigation Menu', "presswork"); ?> </option> <option value="subnav"><?php _e('Sub-Navigation Menu', "presswork"); ?> </option> <option value="category_header"><?php _e('Category Header', "presswork"); ?> </option> <option value="post_title"><?php _e('Post Title', "presswork"); ?> </option> <option value="post_meta"><?php _e('Post Meta', "presswork"); ?> </option> <option value="page_background"><?php _e('Page Background', "presswork"); ?> </option> </select> </div> <table class="themeoptions"> <?php pw_add_all_color_options(); ?> </table> <a href="javascript:void(0)" class="green-button" id="pw-preview"><?php _e('Preview', "presswork"); ?> </a> <div id="closepicker">←</div> <div id="picker"></div> </div> </div> <div id="fonts" class="pw_toolbox_content"> <div class="pw_toolbox_arrow"></div> <h4><?php _e('Fonts', "presswork"); ?> </h4> <div class="closewindow">X</div> <table class="themeoptions"> <?php pw_font_option('headers', __('Headers', "presswork"), 'h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a'); ?> <?php pw_font_option('body', __('Body', "presswork"), '#body-wrapper'); ?> <tr><th><?php _e('Font Size', "presswork"); ?> </th><td><input type="text" name="body_font_size" id="body_font_size" value="<?php echo theme_option("body_font_size"); ?> " size="4" /> px</td></tr> </table> <p><?php _e('Fonts by', "presswork"); ?> <a href="http://www.google.com/webfonts?subset=latin&sort=pop" target="_blank">Google</a></p> </div> <div id="social" class="pw_toolbox_content"> <div class="pw_toolbox_arrow"></div> <h4><?php _e('Social', "presswork"); ?> </h4> <div class="closewindow">X</div> <table class="themeoptions"> <?php pw_social_option("twitter", "Twitter"); ?> <?php pw_social_option("facebook", "Facebook"); ?> <?php pw_social_option("flickr", "Flickr"); ?> </table> </div> <input type="hidden" name="font_option" id="font_option" value="<?php echo theme_option('font_option'); ?> " /> <input type="hidden" name="layout_option" id="layout_option" value="<?php echo theme_option('layout_option'); ?> " /> <input type="hidden" name="header_option" id="header_option" value="<?php echo theme_option('header_option'); ?> " /> <input type="hidden" name="footer_option" id="footer_option" value="<?php echo theme_option('footer_option'); ?> " /> <?php if (function_exists('wp_nonce_field')) { wp_nonce_field('bavotasan_nonce', 'bavotasan_nonce'); } ?> </form> </div> <div id="ajaxloader"></div> <div id="save_message"><?php echo THEME_NAME; echo ' '; _e('Updated', "presswork"); ?> </div> <?php }