This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $wpcoDb, $Order, $Item, $Style, $Option; | |
$wpcoDb -> model = $Item -> model; | |
if ($items = $wpcoDb -> find_all(array('order_id' => $order -> id))) { | |
$variations = maybe_unserialize($item -> styles); | |
foreach ($variations as $variation_id => $option_id) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function replace_wpmlcontent($body = null) { | |
return preg_replace("/\[wpmlcontent\]/si", "", $body); | |
} | |
add_filter('wpml_wpmlcontent_before_replace', 'replace_wpmlcontent', 10, 1); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// www.tribulant.com | |
function remove_meta_boxes() { | |
remove_meta_box('listsdiv', 'newsletters_page_newsletters', 'normal'); | |
remove_meta_box('publishdiv', 'newsletters_page_newsletters-create', 'normal'); | |
} | |
add_action('admin_menu', 'remove_meta_boxes', 99, 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function replace_wpmlcontent($body = null) { | |
$newbody = preg_replace("/\[wpmlcontent\]/si", "testing this out", $body); | |
return $newbody; | |
} | |
add_filter('newsletters_theme_before_wpmlcontent_replace', 'replace_wpmlcontent', 10, 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('newsletters_theme_before_wpmlcontent_replace', 'replace_wpmlcontent', 10, 1); | |
function replace_wpmlcontent($body = null) { | |
//let's see if this is a post/page editing screen | |
//if it is, we'll replace the [wpmlcontent] code in the newsletter theme with nothing | |
if (preg_match("/(post\.php|post\-new\.php)/", $_SERVER['REQUEST_URI'], $matches)) { | |
return preg_replace("/\[wpmlcontent\]/si", "", $body); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase /blog/ | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /blog/index.php [L] | |
</IfModule> | |
# END WordPress |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wpmlposts"> | |
[newsletters_post_loop] | |
<h2>[newsletters_category_heading]</h2> | |
<div class="wpmlpost"> | |
<h3><a href="[newsletters_post_link]" title="[newsletters_post_title]">[newsletters_post_title]</a></h3> | |
[newsletters_post_date_wrapper]<p><small>Posted on [newsletters_post_date format="F jS, Y"] by [newsletters_post_author]</small></p>[/newsletters_post_date_wrapper] | |
<div class="wpmlpost_content"> | |
[newsletters_post_thumbnail] | |
<p>[newsletters_post_excerpt]</p> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.button { | |
display: inline-block; | |
outline: none; | |
cursor: pointer; | |
text-align: center; | |
text-decoration: none; | |
font-size: 14px; | |
font-weight: bold; | |
padding: .6em 1em .7em 1em; | |
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media only screen and (-webkit-min-device-pixel-ratio: 2), | |
only screen and (min-device-pixel-ratio: 2) { | |
.page-title { | |
background: url(images/[email protected]) no-repeat center center #194c6a; | |
background-size: 2500px; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (class_exists('wpMail')) { | |
$wpMail = new wpMail(); | |
if (!empty($_GET['page']) && in_array($_GET['page'], (array) $wpMail -> sections)) { | |
//run remove filters here... | |
} | |
} | |
?> |