-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate-nosotros.php
More file actions
162 lines (144 loc) · 8.09 KB
/
template-nosotros.php
File metadata and controls
162 lines (144 loc) · 8.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?php
/**
* Template Name: Plantilla nosotros
*/
?>
<div class="row">
<?php while (have_posts()) : the_post(); ?>
<div class="col-sm-12">
<?php get_template_part('templates/page', 'header'); ?>
</div>
<div class="col-sm-9">
<div class="row liquidator">
<div class="col-sm-4 frame">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink= "http://www.w3.org/1999/xlink">
<rect width="100%" height="100%" fill="#fff"/>
<image xmlns:xlink= "http://www.w3.org/1999/xlink" xlink:href="<?= get_template_directory_uri();?>/dist/images/liquidator1.svg" width="100%" height="100%" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink= "http://www.w3.org/1999/xlink">
<defs>
<clipPath id="mask1">
<circle class="mask-circle" cx="50%" cy="50%" r="20%" style="fill: #ffffff"/>
</clipPath>
</defs>
<g clip-path="url(#mask1)">
<rect width="100%" height="100%" fill="#fff"/>
<image xmlns:xlink= "http://www.w3.org/1999/xlink" xlink:href="<?= get_template_directory_uri();?>/dist/images/liquidator1-pixel.svg" width="100%" height="100%" />
</g>
<circle class="circle-shadow" cx="50%" cy="50%" r="20%" style="stroke: #ccc; fill: transparent; stroke-width: 5;" />
</svg>
</div>
<article class="col-sm-8 description">
<h3>Liquidadora Alfa</h3>
<p>
<?php echo get_post_meta($post->ID, 'liquidador1', true); ?>
</p>
<?php if(get_post_meta($post->ID, 'liquidador1_twitter', true)): ?>
<footer>
<a target="_blank" href="http://twitter.com/<?php echo get_post_meta($post->ID, 'liquidador1_twitter', true); ?>"><?php echo '@' .get_post_meta($post->ID, 'liquidador3_twitter', true); ?></a>
</footer>
<?php endif; ?>
</article>
</div>
<div class="row liquidator">
<div class="col-sm-4 frame">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink= "http://www.w3.org/1999/xlink">
<rect width="100%" height="100%" fill="#fff"/>
<image xmlns:xlink= "http://www.w3.org/1999/xlink" xlink:href="<?= get_template_directory_uri();?>/dist/images/liquidator2.svg" width="100%" height="100%" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink= "http://www.w3.org/1999/xlink">
<defs>
<clipPath id="mask2">
<circle class="mask-circle" cx="50%" cy="50%" r="20%" style="fill: #ffffff"/>
</clipPath>
</defs>
<g clip-path="url(#mask2)">
<rect width="100%" height="100%" fill="#fff"/>
<image xmlns:xlink= "http://www.w3.org/1999/xlink" xlink:href="<?= get_template_directory_uri();?>/dist/images/liquidator2-pixel.svg" width="100%" height="100%" />
</g>
<circle class="circle-shadow" cx="50%" cy="50%" r="20%" style="stroke: #ccc; fill: transparent; stroke-width: 5;" />
</svg>
</div>
<article class="col-sm-8 description">
<h3>Liquidador Beta</h3>
<p>
<?php echo get_post_meta($post->ID, 'liquidador2', true); ?>
</p>
<?php if(get_post_meta($post->ID, 'liquidador2_twitter', true)): ?>
<footer>
<a target="_blank" href="http://twitter.com/<?php echo get_post_meta($post->ID, 'liquidador2_twitter', true); ?>"><?php echo '@' .get_post_meta($post->ID, 'liquidador2_twitter', true); ?></a>
</footer>
<?php endif; ?>
</article>
</div>
<div class="row liquidator">
<div class="col-sm-4 frame">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink= "http://www.w3.org/1999/xlink">
<rect width="100%" height="100%" fill="#fff"/>
<image xmlns:xlink= "http://www.w3.org/1999/xlink" xlink:href="<?= get_template_directory_uri();?>/dist/images/liquidator3.svg" width="100%" height="100%" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink= "http://www.w3.org/1999/xlink">
<defs>
<clipPath id="mask3">
<circle class="mask-circle" cx="50%" cy="50%" r="20%" style="fill: #ffffff"/>
</clipPath>
</defs>
<g clip-path="url(#mask3)">
<rect width="100%" height="100%" fill="#fff"/>
<image xmlns:xlink= "http://www.w3.org/1999/xlink" xlink:href="<?= get_template_directory_uri();?>/dist/images/liquidator3-pixel.svg" width="100%" height="100%" />
</g>
<circle class="circle-shadow" cx="50%" cy="50%" r="20%" style="stroke: #ccc; fill: transparent; stroke-width: 5;" />
</svg>
</div>
<article class="col-sm-8 description">
<h3>Liquidador Gamma</h3>
<p>
<?php echo get_post_meta($post->ID, 'liquidador3', true); ?>
</p>
<?php if(get_post_meta($post->ID, 'liquidador3_twitter', true)): ?>
<footer>
<a target="_blank" href="http://twitter.com/<?php echo get_post_meta($post->ID, 'liquidador3_twitter', true); ?>"><?php echo '@' .get_post_meta($post->ID, 'liquidador3_twitter', true); ?></a>
</footer>
<?php endif; ?>
</article>
</div>
<?php get_template_part('templates/content', 'page'); ?>
</div>
<div id="game-machine" class="col-sm-3">
<img class="img-responsive" src="<?= get_template_directory_uri();?>/dist/images/machine.svg" alt="<?php echo _("Games machine");?>"/>
</div>
<?php endwhile; ?>
</div>
<script type="text/javascript">
(function($) {
function cursorPoint(svgPoint, e, svg) {
svgPoint.x = e.clientX;
svgPoint.y = e.clientY;
return svgPoint.matrixTransform(svg.getScreenCTM().inverse());
}
function update(maskedElement,circleFeedback, svgCoords) {
maskedElement.setAttribute('cx', svgCoords.x);
maskedElement.setAttribute('cy', svgCoords.y);
circleFeedback.setAttribute('cx', svgCoords.x);
circleFeedback.setAttribute('cy', svgCoords.y);
}
$(".frame").mousemove(function(e){
var svgElement = $(this).find('svg').get(0);
var maskedElement = $(this).find('.mask-circle').get(0);
var circleFeedback = $(this).find('.circle-shadow').get(0);
var svgPoint = svgElement.createSVGPoint();
update(maskedElement, circleFeedback, cursorPoint(svgPoint, e, svgElement));
});
$(".frame").bind('touchmove', function(e){
e.preventDefault();
var touch = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0];
if (touch) {
var svgElement = $(this).find('svg').get(0);
var maskedElement = $(this).find('.mask-circle').get(0);
var circleFeedback = $(this).find('.circle-shadow').get(0);
var svgPoint = svgElement.createSVGPoint();
update(maskedElement, circleFeedback, cursorPoint(svgPoint, touch, svgElement));
}
});
})(jQuery);
</script>