c18b0b18 by Jeremy Groot

videos

1 parent 2f28d3fb
......@@ -8636,6 +8636,17 @@ a.extern:hover:before, .item a.extern:hover:before {
background-size: contain;
background-repeat: no-repeat;
}
a.video:before, .item a.video:before {
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24.976" height="18.728" viewBox="0 0 24.976 18.728"><defs><clipPath id="clip-path"><rect id="Rectangle_173" data-name="Rectangle 173" width="24.976" height="18.728" fill="%23009ade"/></clipPath></defs><g id="Group_1069" data-name="Group 1069" clip-path="url(%23clip-path)"><path id="Path_1282" data-name="Path 1282" d="M0,16.622V2.1a.408.408,0,0,0,.023-.071A2.337,2.337,0,0,1,2.35,0Q12.486,0,22.622,0a2.451,2.451,0,0,1,.616.078,2.322,2.322,0,0,1,1.735,2.235c.007,1.342,0,2.684,0,4.025q0,4.987,0,9.974a2.341,2.341,0,0,1-.758,1.785,2.389,2.389,0,0,1-1.712.627q-10.015-.005-20.029,0H2.387A2.339,2.339,0,0,1,.065,16.917c-.022-.1-.043-.2-.065-.3M18.724,1.568H6.253V17.156h12.47Zm3.124,3.109c.255,0,.51,0,.764,0a.773.773,0,0,0,.8-.8q.006-.758,0-1.516a.77.77,0,0,0-.8-.795q-.764,0-1.529,0a.762.762,0,0,0-.794.771q-.017.783,0,1.566a.767.767,0,0,0,.8.776c.251,0,.5,0,.752,0m.01,3.127c-.255,0-.51,0-.764,0a.766.766,0,0,0-.8.778q-.014.776,0,1.554a.767.767,0,0,0,.8.781q.764.005,1.529,0a.767.767,0,0,0,.795-.784q.01-.77,0-1.541a.77.77,0,0,0-.792-.787c-.255,0-.51,0-.764,0m-.009,9.357c.255,0,.51,0,.764,0a.771.771,0,0,0,.8-.791q.009-.764,0-1.528a.77.77,0,0,0-.8-.794q-.764-.005-1.529,0a.762.762,0,0,0-.794.771q-.016.783,0,1.567a.766.766,0,0,0,.8.776c.25,0,.5,0,.752,0M3.132,1.561c-.246,0-.492,0-.739,0a.775.775,0,0,0-.83.827q-.005.732,0,1.464a.774.774,0,0,0,.834.823q.726,0,1.452,0a.777.777,0,0,0,.836-.822q.008-.751,0-1.5a.77.77,0,0,0-.79-.789c-.255,0-.51,0-.764,0m0,9.357c.242,0,.484,0,.726,0a.777.777,0,0,0,.826-.82c.005-.5,0-1,0-1.5A.768.768,0,0,0,3.9,7.8q-.77-.006-1.541,0a.746.746,0,0,0-.786.735c-.02.547-.02,1.1,0,1.642a.748.748,0,0,0,.786.736c.259,0,.518,0,.777,0M3.118,17.16h.726a.78.78,0,0,0,.843-.829q.006-.745,0-1.49a.77.77,0,0,0-.8-.8q-.764-.005-1.528,0a.745.745,0,0,0-.789.731c-.021.551-.021,1.1,0,1.655a.746.746,0,0,0,.781.727c.255,0,.509,0,.764,0" transform="translate(0 0)" fill="%23009ade"/><path id="Path_1283" data-name="Path 1283" d="M60.392,42.327c0-1.036,0-2.072,0-3.108a.766.766,0,0,1,.838-.787.875.875,0,0,1,.314.092q3.1,1.543,6.192,3.092a.785.785,0,0,1,0,1.421q-3.1,1.548-6.192,3.093a.775.775,0,0,1-1.154-.72c0-1.028,0-2.055,0-3.083" transform="translate(-51.806 -32.966)" fill="%23009ade"/></g></svg>');
background-size: contain;
background-repeat: no-repeat;
top: 2px !important;
}
a.video:hover:before, .item a.video:hover:before {
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24.976" height="18.728" viewBox="0 0 24.976 18.728"><defs><clipPath id="clip-path"><rect id="Rectangle_173" data-name="Rectangle 173" width="24.976" height="18.728" fill="%23009ade"/></clipPath></defs><g id="Group_1069" data-name="Group 1069" clip-path="url(%23clip-path)"><path id="Path_1282" data-name="Path 1282" d="M0,16.622V2.1a.408.408,0,0,0,.023-.071A2.337,2.337,0,0,1,2.35,0Q12.486,0,22.622,0a2.451,2.451,0,0,1,.616.078,2.322,2.322,0,0,1,1.735,2.235c.007,1.342,0,2.684,0,4.025q0,4.987,0,9.974a2.341,2.341,0,0,1-.758,1.785,2.389,2.389,0,0,1-1.712.627q-10.015-.005-20.029,0H2.387A2.339,2.339,0,0,1,.065,16.917c-.022-.1-.043-.2-.065-.3M18.724,1.568H6.253V17.156h12.47Zm3.124,3.109c.255,0,.51,0,.764,0a.773.773,0,0,0,.8-.8q.006-.758,0-1.516a.77.77,0,0,0-.8-.795q-.764,0-1.529,0a.762.762,0,0,0-.794.771q-.017.783,0,1.566a.767.767,0,0,0,.8.776c.251,0,.5,0,.752,0m.01,3.127c-.255,0-.51,0-.764,0a.766.766,0,0,0-.8.778q-.014.776,0,1.554a.767.767,0,0,0,.8.781q.764.005,1.529,0a.767.767,0,0,0,.795-.784q.01-.77,0-1.541a.77.77,0,0,0-.792-.787c-.255,0-.51,0-.764,0m-.009,9.357c.255,0,.51,0,.764,0a.771.771,0,0,0,.8-.791q.009-.764,0-1.528a.77.77,0,0,0-.8-.794q-.764-.005-1.529,0a.762.762,0,0,0-.794.771q-.016.783,0,1.567a.766.766,0,0,0,.8.776c.25,0,.5,0,.752,0M3.132,1.561c-.246,0-.492,0-.739,0a.775.775,0,0,0-.83.827q-.005.732,0,1.464a.774.774,0,0,0,.834.823q.726,0,1.452,0a.777.777,0,0,0,.836-.822q.008-.751,0-1.5a.77.77,0,0,0-.79-.789c-.255,0-.51,0-.764,0m0,9.357c.242,0,.484,0,.726,0a.777.777,0,0,0,.826-.82c.005-.5,0-1,0-1.5A.768.768,0,0,0,3.9,7.8q-.77-.006-1.541,0a.746.746,0,0,0-.786.735c-.02.547-.02,1.1,0,1.642a.748.748,0,0,0,.786.736c.259,0,.518,0,.777,0M3.118,17.16h.726a.78.78,0,0,0,.843-.829q.006-.745,0-1.49a.77.77,0,0,0-.8-.8q-.764-.005-1.528,0a.745.745,0,0,0-.789.731c-.021.551-.021,1.1,0,1.655a.746.746,0,0,0,.781.727c.255,0,.509,0,.764,0" transform="translate(0 0)" fill="black"/><path id="Path_1283" data-name="Path 1283" d="M60.392,42.327c0-1.036,0-2.072,0-3.108a.766.766,0,0,1,.838-.787.875.875,0,0,1,.314.092q3.1,1.543,6.192,3.092a.785.785,0,0,1,0,1.421q-3.1,1.548-6.192,3.093a.775.775,0,0,1-1.154-.72c0-1.028,0-2.055,0-3.083" transform="translate(-51.806 -32.966)" fill="black"/></g></svg>') !important;
background-size: contain !important;
background-repeat: no-repeat !important;
}
a.pdf, .item a.pdf {
border-top: 1px solid #949598;
border-bottom: 1px solid #949598;
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -206,6 +206,21 @@ html{
}
}
}
&.video {
&:before {
background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24.976" height="18.728" viewBox="0 0 24.976 18.728"><defs><clipPath id="clip-path"><rect id="Rectangle_173" data-name="Rectangle 173" width="24.976" height="18.728" fill="%23009ade"/></clipPath></defs><g id="Group_1069" data-name="Group 1069" clip-path="url(%23clip-path)"><path id="Path_1282" data-name="Path 1282" d="M0,16.622V2.1a.408.408,0,0,0,.023-.071A2.337,2.337,0,0,1,2.35,0Q12.486,0,22.622,0a2.451,2.451,0,0,1,.616.078,2.322,2.322,0,0,1,1.735,2.235c.007,1.342,0,2.684,0,4.025q0,4.987,0,9.974a2.341,2.341,0,0,1-.758,1.785,2.389,2.389,0,0,1-1.712.627q-10.015-.005-20.029,0H2.387A2.339,2.339,0,0,1,.065,16.917c-.022-.1-.043-.2-.065-.3M18.724,1.568H6.253V17.156h12.47Zm3.124,3.109c.255,0,.51,0,.764,0a.773.773,0,0,0,.8-.8q.006-.758,0-1.516a.77.77,0,0,0-.8-.795q-.764,0-1.529,0a.762.762,0,0,0-.794.771q-.017.783,0,1.566a.767.767,0,0,0,.8.776c.251,0,.5,0,.752,0m.01,3.127c-.255,0-.51,0-.764,0a.766.766,0,0,0-.8.778q-.014.776,0,1.554a.767.767,0,0,0,.8.781q.764.005,1.529,0a.767.767,0,0,0,.795-.784q.01-.77,0-1.541a.77.77,0,0,0-.792-.787c-.255,0-.51,0-.764,0m-.009,9.357c.255,0,.51,0,.764,0a.771.771,0,0,0,.8-.791q.009-.764,0-1.528a.77.77,0,0,0-.8-.794q-.764-.005-1.529,0a.762.762,0,0,0-.794.771q-.016.783,0,1.567a.766.766,0,0,0,.8.776c.25,0,.5,0,.752,0M3.132,1.561c-.246,0-.492,0-.739,0a.775.775,0,0,0-.83.827q-.005.732,0,1.464a.774.774,0,0,0,.834.823q.726,0,1.452,0a.777.777,0,0,0,.836-.822q.008-.751,0-1.5a.77.77,0,0,0-.79-.789c-.255,0-.51,0-.764,0m0,9.357c.242,0,.484,0,.726,0a.777.777,0,0,0,.826-.82c.005-.5,0-1,0-1.5A.768.768,0,0,0,3.9,7.8q-.77-.006-1.541,0a.746.746,0,0,0-.786.735c-.02.547-.02,1.1,0,1.642a.748.748,0,0,0,.786.736c.259,0,.518,0,.777,0M3.118,17.16h.726a.78.78,0,0,0,.843-.829q.006-.745,0-1.49a.77.77,0,0,0-.8-.8q-.764-.005-1.528,0a.745.745,0,0,0-.789.731c-.021.551-.021,1.1,0,1.655a.746.746,0,0,0,.781.727c.255,0,.509,0,.764,0" transform="translate(0 0)" fill="%23009ade"/><path id="Path_1283" data-name="Path 1283" d="M60.392,42.327c0-1.036,0-2.072,0-3.108a.766.766,0,0,1,.838-.787.875.875,0,0,1,.314.092q3.1,1.543,6.192,3.092a.785.785,0,0,1,0,1.421q-3.1,1.548-6.192,3.093a.775.775,0,0,1-1.154-.72c0-1.028,0-2.055,0-3.083" transform="translate(-51.806 -32.966)" fill="%23009ade"/></g></svg>');
background-size: contain;
background-repeat: no-repeat;
top: 2px !important;
}
&:hover {
&:before {
background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24.976" height="18.728" viewBox="0 0 24.976 18.728"><defs><clipPath id="clip-path"><rect id="Rectangle_173" data-name="Rectangle 173" width="24.976" height="18.728" fill="%23009ade"/></clipPath></defs><g id="Group_1069" data-name="Group 1069" clip-path="url(%23clip-path)"><path id="Path_1282" data-name="Path 1282" d="M0,16.622V2.1a.408.408,0,0,0,.023-.071A2.337,2.337,0,0,1,2.35,0Q12.486,0,22.622,0a2.451,2.451,0,0,1,.616.078,2.322,2.322,0,0,1,1.735,2.235c.007,1.342,0,2.684,0,4.025q0,4.987,0,9.974a2.341,2.341,0,0,1-.758,1.785,2.389,2.389,0,0,1-1.712.627q-10.015-.005-20.029,0H2.387A2.339,2.339,0,0,1,.065,16.917c-.022-.1-.043-.2-.065-.3M18.724,1.568H6.253V17.156h12.47Zm3.124,3.109c.255,0,.51,0,.764,0a.773.773,0,0,0,.8-.8q.006-.758,0-1.516a.77.77,0,0,0-.8-.795q-.764,0-1.529,0a.762.762,0,0,0-.794.771q-.017.783,0,1.566a.767.767,0,0,0,.8.776c.251,0,.5,0,.752,0m.01,3.127c-.255,0-.51,0-.764,0a.766.766,0,0,0-.8.778q-.014.776,0,1.554a.767.767,0,0,0,.8.781q.764.005,1.529,0a.767.767,0,0,0,.795-.784q.01-.77,0-1.541a.77.77,0,0,0-.792-.787c-.255,0-.51,0-.764,0m-.009,9.357c.255,0,.51,0,.764,0a.771.771,0,0,0,.8-.791q.009-.764,0-1.528a.77.77,0,0,0-.8-.794q-.764-.005-1.529,0a.762.762,0,0,0-.794.771q-.016.783,0,1.567a.766.766,0,0,0,.8.776c.25,0,.5,0,.752,0M3.132,1.561c-.246,0-.492,0-.739,0a.775.775,0,0,0-.83.827q-.005.732,0,1.464a.774.774,0,0,0,.834.823q.726,0,1.452,0a.777.777,0,0,0,.836-.822q.008-.751,0-1.5a.77.77,0,0,0-.79-.789c-.255,0-.51,0-.764,0m0,9.357c.242,0,.484,0,.726,0a.777.777,0,0,0,.826-.82c.005-.5,0-1,0-1.5A.768.768,0,0,0,3.9,7.8q-.77-.006-1.541,0a.746.746,0,0,0-.786.735c-.02.547-.02,1.1,0,1.642a.748.748,0,0,0,.786.736c.259,0,.518,0,.777,0M3.118,17.16h.726a.78.78,0,0,0,.843-.829q.006-.745,0-1.49a.77.77,0,0,0-.8-.8q-.764-.005-1.528,0a.745.745,0,0,0-.789.731c-.021.551-.021,1.1,0,1.655a.746.746,0,0,0,.781.727c.255,0,.509,0,.764,0" transform="translate(0 0)" fill="black"/><path id="Path_1283" data-name="Path 1283" d="M60.392,42.327c0-1.036,0-2.072,0-3.108a.766.766,0,0,1,.838-.787.875.875,0,0,1,.314.092q3.1,1.543,6.192,3.092a.785.785,0,0,1,0,1.421q-3.1,1.548-6.192,3.093a.775.775,0,0,1-1.154-.72c0-1.028,0-2.055,0-3.083" transform="translate(-51.806 -32.966)" fill="black"/></g></svg>') !important;
background-size: contain !important;
background-repeat: no-repeat !important;
}
}
}
&.pdf {
border-top:1px solid #949598;
......
......@@ -85,13 +85,13 @@ function resources_list($atts){
try{
$custom_args = array(
'post_type' => 'attachment',
'post_type' => ['attachment','video'],
'posts_per_page' => -1,
'paged' => 1,
'post_status' => 'any',
'order' => 'DESC',
'orderby' => 'rand',
'tax_query' => $tax_queries,
'tax_query' => ['relation' => 'OR', $tax_queries],
);
$custom_query = new \WP_Query($custom_args);
......@@ -262,7 +262,11 @@ function resources($id, $taxes, $is_fav = false){
<tr class="table-like__item">
<td class="item">
<a target="_blank" role="button" class="item-link <?= getFileTypeClass(wp_get_attachment_url($id)) ?>" href="<?php echo wp_get_attachment_url($id); ?>"><?php echo $post->post_title; ?></a>
<?php if(get_post_type($id) == 'video') { ?>
<a target="_blank" role="button" class="item-link video" href="<?php echo get_field('video_url', $id); ?>"><?php echo $post->post_title; ?></a>
<?php } else { ?>
<a target="_blank" role="button" class="item-link <?= getFileTypeClass(wp_get_attachment_url($id)) ?>" href="<?php echo wp_get_attachment_url($id); ?>"><?php echo $post->post_title; ?></a>
<?php } ?>
<span class='updated-at'>
<?php if($is_new && !empty($updated_at)) { ?>
<b>NEW:</b> <?= date('M d/Y', strtotime($updated_at)) ?>
......