Skip to content

Instantly share code, notes, and snippets.

@jhouedanou
Created October 22, 2019 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhouedanou/76b6219b14fdc36921420f25846e4c51 to your computer and use it in GitHub Desktop.
Save jhouedanou/76b6219b14fdc36921420f25846e4c51 to your computer and use it in GitHub Desktop.
Wordpress Snippets for Visual Studio Code
{
"acfdate": {
"prefix": "acfdate",
"body": "\n $date_d = get_field('jalon');\n $y = substr($date_d, 0, 4);\n $m = substr($date_d, 4, 2);\n $d = substr($date_d, 6, 2);\n $time_d = strtotime(\"{$d}-{$m}-{$y}\");\n echo date('Y', $time_d);\n",
"description": "",
"scope": ""
},
"activetrailhome": {
"prefix": "activetrailhome",
"body": "\n function YOURTHEMENAME_menu_link($variables) {\n\n $element = $variables['element'];\n $sub_menu = '';\n\n if ($element['#href'] == '' && drupal_is_front_page()) {\n $element['#attributes']['class'][] = 'active-trail';\n }\n\n if ($element['#below']) {\n $sub_menu = drupal_render($element['#below']);\n }\n $output = l($element['#title'], $element['#href'], $element['#localized_options']);\n return '' . $output . $sub_menu . \"\\n\";\n}",
"description": "",
"scope": ""
},
"autopcontent": {
"prefix": "autopcontent",
"body": "\nremove_filter( 'the_content', 'wpautop' );\n\n",
"description": "",
"scope": ""
},
"autopexcerpt": {
"prefix": "autopexcerpt",
"body": "\nremove_filter( 'the_excerpt', 'wpautop' );\n",
"description": "",
"scope": ""
},
"background-size": {
"prefix": "background-size",
"body": "\nbackground: url(images/bg.jpg) no-repeat center center fixed; \n -webkit-background-size: cover;\n -moz-background-size: cover;\n -o-background-size: cover;\n background-size: cover;\n filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='.myBackground.jpg', sizingMethod='scale');\n-ms-filter: \"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='myBackground.jpg', sizingMethod='scale')\";\n\n",
"description": "",
"scope": ""
},
"bodyterm": {
"prefix": "bodyterm",
"body": "\n<body style=\"background:black;color:green;font-family:'Anonymous Pro';font-weight:bold;padding:10px;font-size:18px;line-height:25px\"></body>\n",
"description": "",
"scope": ""
},
"center": {
"prefix": "center",
"body": "\n position: absolute;\n top:0;\n margin:auto;\n right:0;\n bottom:0;\n left:0;\n",
"description": "",
"scope": ""
},
"cerberus": {
"prefix": "cerberus",
"body": "\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width\"> \n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"x-apple-disable-message-reformatting\"> \n <title>Garantissez votre santé financière à vie en investissant dans Valoris</title>\n <!--[if mso]>\n <style>\n * {\n font-family: sans-serif !important;\n }\n </style>\n <![endif]-->\n <!--[if !mso]><!-->\n <!-- insert web font reference, eg: <link href='https://fonts.googleapis.com/css?family=Roboto:400,700' rel='stylesheet' type='text/css'> -->\n <!--<![endif]-->\n <style>\n html,\n body {\n margin: 0 auto !important;\n padding: 0 !important;\n height: 100% !important;\n width: 100% !important;\n } \n * {\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n }\n \n div[style*=\"margin: 16px 0\"] {\n margin:0 !important;\n }\n table,\n td {\n mso-table-lspace: 0pt !important;\n mso-table-rspace: 0pt !important;\n }\n table {\n border-spacing: 0 !important;\n border-collapse: collapse !important;\n table-layout: fixed !important;\n margin: 0 auto !important;\n }\n table table table {\n table-layout: auto; \n }\n img {\n -ms-interpolation-mode:bicubic;\n }\n\n .mobile-link--footer a,\n a[x-apple-data-detectors] {\n color:inherit !important;\n text-decoration: underline !important;\n }\n \n /* What it does: Prevents underlining the button text in Windows 10 */\n .button-link {\n text-decoration: none !important;\n }\n \n </style>\n \n <!-- Progressive Enhancements -->\n <style>\n \n .button-td,\n .button-a {\n transition: all 100ms ease-in;\n }\n .button-td:hover,\n .button-a:hover {\n background: #555555 !important;\n border-color: #555555 !important;\n }\n\t\t@media screen and (max-width: 480px) {\n .fluid {\n width: 100% !important;\n max-width: 100% !important;\n height: auto !important;\n margin-left: auto !important;\n margin-right: auto !important;\n }\n\n /* What it does: Forces table cells into full-width rows. */\n .stack-column,\n .stack-column-center {\n display: block !important;\n width: 100% !important;\n max-width: 100% !important;\n direction: ltr !important;\n }\n .stack-column-center {\n text-align: center !important;\n }\n \n .center-on-narrow {\n text-align: center !important;\n display: block !important;\n margin-left: auto !important;\n margin-right: auto !important;\n float: none !important;\n }\n table.center-on-narrow {\n display: inline-block !important;\n }\n \n }\n \n </style>\n\n</head>\n<body width=\"100%\" bgcolor=\"#222222\" style=\"margin: 0;\">\n <center style=\"width: 100%; background: #222222;\">\n\n <!-- Visually Hidden Preheader Text : BEGIN -->\n <div style=\"display:none;font-size:1px;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;mso-hide:all;font-family: sans-serif;\">\n (Optional) This text will appear in the inbox preview, but not the email body.\n </div>\n <!-- Visually Hidden Preheader Text : END -->\n\n <!-- \n Set the email width. Defined in two places:\n 1. max-width for all clients except Desktop Windows Outlook, allowing the email to squish on narrow but never go wider than 680px.\n 2. MSO tags for Desktop Windows Outlook enforce a 680px width.\n Note: The Fluid and Responsive templates have a different width (600px). The hybrid grid is more \"fragile\", and I've found that 680px is a good width. Change with caution. \n -->\n <div style=\"max-width: 680px; margin: auto;\">\n <!--[if mso]>\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"680\" align=\"center\">\n <tr>\n <td>\n <![endif]-->\n\n <!-- Email Header : BEGIN -->\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"center\" width=\"100%\" style=\"max-width: 680px;\">\n <tr>\n <td style=\"padding: 20px 0; text-align: center\">\n <img src=\"http://placehold.it/200x50\" width=\"200\" height=\"50\" alt=\"alt_text\" border=\"0\" style=\"height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555;\">\n </td>\n </tr>\n </table>\n <!-- Email Header : END -->\n \n <!-- Email Body : BEGIN -->\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"center\" width=\"100%\" style=\"max-width: 680px;\">\n \n <!-- Hero Image, Flush : BEGIN -->\n <tr>\n <td bgcolor=\"#ffffff\">\n <img src=\"http://placehold.it/680x300\" width=\"680\" height=\"\" alt=\"alt_text\" border=\"0\" align=\"center\" class=\"fluid\" style=\"width: 100%; max-width: 680px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555;\">\n </td>\n </tr>\n <!-- Hero Image, Flush : END -->\n\n <!-- 1 Column Text + Button : BEGIN -->\n <tr>\n <td bgcolor=\"#ffffff\">\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\n <tr>\n <td style=\"padding: 40px; text-align: center; font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555;\">\n Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Praesent laoreet malesuada cursus. Maecenas scelerisque congue eros eu posuere. Praesent in felis ut velit pretium lobortis rhoncus ut&nbsp;erat.\n <br><br>\n <!-- Button : BEGIN -->\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"center\" style=\"margin: auto\">\n <tr>\n <td style=\"border-radius: 3px; background: #222222; text-align: center;\" class=\"button-td\">\n <a href=\"http://www.google.com\" style=\"background: #222222; border: 15px solid #222222; font-family: sans-serif; font-size: 13px; line-height: 1.1; text-align: center; text-decoration: none; display: block; border-radius: 3px; font-weight: bold;\" class=\"button-a\">\n <span style=\"color:#ffffff;\" class=\"button-link\">&nbsp;&nbsp;&nbsp;&nbsp;A Button&nbsp;&nbsp;&nbsp;&nbsp;</span>\n </a>\n </td>\n </tr>\n </table>\n <!-- Button : END -->\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <!-- 1 Column Text + Button : END -->\n\n <!-- Background Image with Text : BEGIN -->\n <tr>\n <!-- Bulletproof Background Images c/o https://backgrounds.cm -->\n <td background=\"http://placehold.it/680x230/222222/666666\" bgcolor=\"#222222\" valign=\"middle\" style=\"text-align: center; background-position: center center !important; background-size: cover !important;\">\n <!--[if gte mso 9]>\n <v:rect xmlns:v=\"urn:schemas-microsoft-com:vml\" fill=\"true\" stroke=\"false\" style=\"width:680px;height:175px; background-position: center center !important;\">\n <v:fill type=\"tile\" src=\"http://placehold.it/680x230/222222/666666\" color=\"#222222\" />\n <v:textbox inset=\"0,0,0,0\">\n <![endif]-->\n <div>\n <!--[if mso]>\n <table role=\"presentation\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" width=\"500\">\n <tr>\n <td align=\"center\" valign=\"top\" width=\"500\">\n <![endif]-->\n <table role=\"presentation\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"100%\" style=\"max-width:500px; margin: auto;\">\n <tr>\n <td valign=\"middle\" style=\"text-align: center; padding: 40px 20px; font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #ffffff;\">\n Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Praesent laoreet malesuada cursus. Maecenas scelerisque congue eros eu posuere. Praesent in felis ut velit pretium lobortis rhoncus ut&nbsp;erat.\n </td>\n </tr>\n </table>\n <!--[if mso]>\n </td>\n </tr>\n </table>\n <![endif]-->\n </div>\n <!--[if gte mso 9]>\n </v:textbox>\n </v:rect>\n <![endif]-->\n </td>\n </tr>\n <!-- Background Image with Text : END -->\n \n <!-- 2 Even Columns : BEGIN -->\n <tr>\n <td bgcolor=\"#ffffff\" align=\"center\" height=\"100%\" valign=\"top\" width=\"100%\">\n <!--[if mso]>\n <table role=\"presentation\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" width=\"660\">\n <tr>\n <td align=\"center\" valign=\"top\" width=\"660\">\n <![endif]-->\n <table role=\"presentation\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"100%\" style=\"max-width:660px;\">\n <tr>\n <td align=\"center\" valign=\"top\" style=\"font-size:0; padding: 10px 0;\">\n <!--[if mso]>\n <table role=\"presentation\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" width=\"660\">\n <tr>\n <td align=\"left\" valign=\"top\" width=\"330\">\n <![endif]-->\n <div style=\"display:inline-block; margin: 0 -2px; width:100%; min-width:200px; max-width:330px; vertical-align:top;\" class=\"stack-column\">\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\n <tr>\n <td style=\"padding: 10px 10px;\">\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" style=\"font-size: 14px;text-align: left;\">\n <tr>\n <td>\n <img src=\"http://placehold.it/310\" width=\"310\" height=\"\" border=\"0\" alt=\"alt_text\" class=\"center-on-narrow\" style=\"width: 100%; max-width: 310px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555;\">\n </td>\n </tr>\n <tr>\n <td style=\"font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555; padding-top: 10px;\" class=\"stack-column-center\">\n Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. \n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </div>\n <!--[if mso]>\n </td>\n <td align=\"left\" valign=\"top\" width=\"330\">\n <![endif]-->\n <div style=\"display:inline-block; margin: 0 -2px; width:100%; min-width:200px; max-width:330px; vertical-align:top;\" class=\"stack-column\">\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\n <tr>\n <td style=\"padding: 10px 10px;\">\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" style=\"font-size: 14px;text-align: left;\">\n <tr>\n <td>\n <img src=\"http://placehold.it/310\" width=\"310\" height=\"\" border=\"0\" alt=\"alt_text\" class=\"center-on-narrow\" style=\"width: 100%; max-width: 310px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555;\">\n </td>\n </tr>\n <tr>\n <td style=\"font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555; padding-top: 10px;\" class=\"stack-column-center\">\n Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. \n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </div>\n <!--[if mso]>\n </td>\n </tr>\n </table>\n <![endif]-->\n </td>\n </tr>\n </table>\n <!--[if mso]>\n </td>\n </tr>\n </table>\n <![endif]-->\n </td>\n </tr>\n <!-- 2 Even Columns : END -->\n\n <!-- 3 Even Columns : BEGIN -->\n <tr>\n <td bgcolor=\"#ffffff\" align=\"center\" height=\"100%\" valign=\"top\" width=\"100%\" style=\"padding: 10px 0;\">\n <!--[if mso]>\n <table role=\"presentation\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" width=\"660\">\n <tr>\n <td align=\"center\" valign=\"top\" width=\"660\">\n <![endif]-->\n <table role=\"presentation\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"100%\" style=\"max-width:660px;\">\n <tr>\n <td align=\"center\" valign=\"top\" style=\"font-size:0;\">\n <!--[if mso]>\n <table role=\"presentation\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" width=\"660\">\n <tr>\n <td align=\"left\" valign=\"top\" width=\"220\">\n <![endif]-->\n <div style=\"display:inline-block; margin: 0 -2px; max-width:33.33%; min-width:220px; vertical-align:top; width:100%;\" class=\"stack-column\">\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\n <tr>\n <td style=\"padding: 10px 10px;\">\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" style=\"font-size: 14px;text-align: left;\">\n <tr>\n <td>\n <img src=\"http://placehold.it/200\" width=\"200\" height=\"\" border=\"0\" alt=\"alt_text\" class=\"center-on-narrow\" style=\"width: 100%; max-width: 200px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555;\">\n </td>\n </tr>\n <tr>\n <td style=\"font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555; padding-top: 10px;\" class=\"stack-column-center\">\n Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. \n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </div>\n <!--[if mso]>\n </td>\n <td align=\"left\" valign=\"top\" width=\"220\">\n <![endif]-->\n <div style=\"display:inline-block; margin: 0 -2px; max-width:33.33%; min-width:220px; vertical-align:top; width:100%;\" class=\"stack-column\">\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\n <tr>\n <td style=\"padding: 10px 10px;\">\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" style=\"font-size: 14px;text-align: left;\">\n <tr>\n <td>\n <img src=\"http://placehold.it/200\" width=\"200\" height=\"\" border=\"0\" alt=\"alt_text\" class=\"center-on-narrow\" style=\"width: 100%; max-width: 200px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555;\">\n </td>\n </tr>\n <tr>\n <td style=\"font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555; padding-top: 10px;\" class=\"stack-column-center\">\n Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. \n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </div>\n <!--[if mso]>\n </td>\n <td align=\"left\" valign=\"top\" width=\"220\">\n <![endif]-->\n <div style=\"display:inline-block; margin: 0 -2px; max-width:33.33%; min-width:220px; vertical-align:top; width:100%;\" class=\"stack-column\">\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\n <tr>\n <td style=\"padding: 10px 10px;\">\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" style=\"font-size: 14px;text-align: left;\">\n <tr>\n <td>\n <img src=\"http://placehold.it/200\" width=\"200\" height=\"\" border=\"0\" alt=\"alt_text\" class=\"center-on-narrow\" style=\"width: 100%; max-width: 200px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555;\">\n </td>\n </tr>\n <tr>\n <td style=\"font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555; padding-top: 10px;\" class=\"stack-column-center\">\n Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. \n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </div>\n <!--[if mso]>\n </td>\n </tr>\n </table>\n <![endif]-->\n </td>\n </tr>\n </table>\n <!--[if mso]>\n </td>\n </tr>\n </table>\n <![endif]-->\n </td>\n </tr>\n <!-- 3 Even Columns : END -->\n \n <!-- Thumbnail Left, Text Right : BEGIN -->\n <tr>\n <!-- dir=ltr is where the magic happens. This can be changed to dir=rtl to swap the alignment on wide while maintaining stack order on narrow. -->\n <td dir=\"ltr\" bgcolor=\"#ffffff\" align=\"center\" height=\"100%\" valign=\"top\" width=\"100%\" style=\"padding: 10px 0;\">\n <!--[if mso]>\n <table role=\"presentation\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" width=\"660\">\n <tr>\n <td align=\"center\" valign=\"top\" width=\"660\">\n <![endif]-->\n <table role=\"presentation\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"100%\" style=\"max-width:660px;\">\n <tr>\n <td align=\"center\" valign=\"top\" style=\"font-size:0; padding: 10px 0;\">\n <!--[if mso]>\n <table role=\"presentation\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" width=\"660\">\n <tr>\n <td align=\"left\" valign=\"top\" width=\"220\">\n <![endif]-->\n <div style=\"display:inline-block; margin: 0 -2px; max-width: 200px; min-width:160px; vertical-align:top; width:100%;\" class=\"stack-column\">\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\n <tr>\n <td dir=\"ltr\" style=\"padding: 0 10px 10px 10px;\">\n <img src=\"http://placehold.it/200\" width=\"200\" height=\"\" border=\"0\" alt=\"alt_text\" class=\"center-on-narrow\" style=\"width: 100%; max-width: 200px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555;\">\n </td>\n </tr>\n </table>\n </div>\n <!--[if mso]>\n </td>\n <td align=\"left\" valign=\"top\" width=\"440\">\n <![endif]-->\n <div style=\"display:inline-block; margin: 0 -2px; max-width:66.66%; min-width:320px; vertical-align:top;\" class=\"stack-column\">\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\n <tr>\n <td dir=\"ltr\" style=\"font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555; padding: 10px 10px 0; text-align: left;\" class=\"center-on-narrow\">\n <strong style=\"color:#111111;\">Class aptent taciti sociosqu</strong>\n <br><br>\n Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.\n <br><br>\n <!-- Button : Begin -->\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" class=\"center-on-narrow\" style=\"float:left;\">\n <tr>\n <td style=\"border-radius: 3px; background: #222222; text-align: center;\" class=\"button-td\">\n <a href=\"http://www.google.com\" style=\"background: #222222; border: 15px solid #222222; font-family: sans-serif; font-size: 13px; line-height: 1.1; text-align: center; text-decoration: none; display: block; border-radius: 3px; font-weight: bold;\" class=\"button-a\">\n <span style=\"color:#ffffff;\" class=\"button-link\">&nbsp;&nbsp;&nbsp;&nbsp;A Button&nbsp;&nbsp;&nbsp;&nbsp;</span>\n </a>\n </td>\n </tr>\n </table>\n <!-- Button : END -->\n </td>\n </tr>\n </table>\n </div>\n <!--[if mso]>\n </td>\n </tr>\n </table>\n <![endif]-->\n </td>\n </tr>\n </table>\n <!--[if mso]>\n </td>\n </tr>\n </table>\n <![endif]-->\n </td>\n </tr>\n <!-- Thumbnail Left, Text Right : END -->\n\n <!-- Thumbnail Right, Text Left : BEGIN -->\n <tr>\n <!-- dir=rtl is where the magic happens. This can be changed to dir=ltr to swap the alignment on wide while maintaining stack order on narrow. -->\n <td dir=\"rtl\" bgcolor=\"#ffffff\" align=\"center\" height=\"100%\" valign=\"top\" width=\"100%\" style=\"padding: 10px 0;\">\n <!--[if mso]>\n <table role=\"presentation\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" width=\"660\">\n <tr>\n <td align=\"center\" valign=\"top\" width=\"660\">\n <![endif]-->\n <table role=\"presentation\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"100%\" style=\"max-width:660px;\">\n <tr>\n <td align=\"center\" valign=\"top\" style=\"font-size:0; padding: 10px 0;\">\n <!--[if mso]>\n <table role=\"presentation\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" width=\"660\">\n <tr>\n <td align=\"left\" valign=\"top\" width=\"220\">\n <![endif]-->\n <div style=\"display:inline-block; margin: 0 -2px; max-width: 200px; min-width:160px; vertical-align:top; width:100%;\" class=\"stack-column\">\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\n <tr>\n <td dir=\"ltr\" style=\"padding: 0 10px 10px 10px;\">\n <img src=\"http://placehold.it/200\" width=\"200\" height=\"\" border=\"0\" alt=\"alt_text\" class=\"center-on-narrow\" style=\"width: 100%; max-width: 200px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555;\">\n </td>\n </tr>\n </table>\n </div>\n <!--[if mso]>\n </td>\n <td align=\"left\" valign=\"top\" width=\"440\">\n <![endif]-->\n <div style=\"display:inline-block; margin: 0 -2px; max-width:66.66%; min-width:320px; vertical-align:top;\" class=\"stack-column\">\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\n <tr>\n <td dir=\"ltr\" style=\"font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555; padding: 10px 10px 0; text-align: left;\" class=\"center-on-narrow\">\n <strong style=\"color:#111111;\">Class aptent taciti sociosqu</strong>\n <br><br>\n Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.\n <br><br>\n <!-- Button : Begin -->\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" class=\"center-on-narrow\" style=\"float:left;\">\n <tr>\n <td style=\"border-radius: 3px; background: #222222; text-align: center;\" class=\"button-td\">\n <a href=\"http://www.google.com\" style=\"background: #222222; border: 15px solid #222222; font-family: sans-serif; font-size: 13px; line-height: 1.1; text-align: center; text-decoration: none; display: block; border-radius: 3px; font-weight: bold;\" class=\"button-a\">\n <span style=\"color:#ffffff;\" class=\"button-link\">&nbsp;&nbsp;&nbsp;&nbsp;A Button&nbsp;&nbsp;&nbsp;&nbsp;</span>\n </a>\n </td>\n </tr>\n </table>\n <!-- Button : END -->\n </td>\n </tr>\n </table>\n </div>\n <!--[if mso]>\n </td>\n </tr>\n </table>\n <![endif]-->\n </td>\n </tr>\n </table>\n <!--[if mso]>\n </td>\n </tr>\n </table>\n <![endif]-->\n </td>\n </tr>\n <!-- Thumbnail Right, Text Left : END -->\n\n <!-- Clear Spacer : BEGIN -->\n <tr>\n <td height=\"40\" style=\"font-size: 0; line-height: 0;\">\n &nbsp;\n </td>\n </tr>\n <!-- Clear Spacer : END -->\n\n <!-- 1 Column Text + Button : BEGIN -->\n <tr>\n <td bgcolor=\"#ffffff\">\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\n <tr>\n <td style=\"padding: 40px; font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555;\">\n Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Praesent laoreet malesuada cursus. Maecenas scelerisque congue eros eu posuere. Praesent in felis ut velit pretium lobortis rhoncus ut&nbsp;erat.\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <!-- 1 Column Text + Button : BEGIN -->\n\n </table>\n <!-- Email Body : END -->\n \n <!-- Email Footer : BEGIN -->\n <table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"center\" width=\"100%\" style=\"max-width: 680px;\">\n <tr>\n <td style=\"padding: 40px 10px;width: 100%;font-size: 12px; font-family: sans-serif; mso-height-rule: exactly; line-height:18px; text-align: center; color: #888888;\">\n <webversion style=\"color:#cccccc; text-decoration:underline; font-weight: bold;\">View as a Web Page</webversion>\n <br><br>\n Company Name<br><span class=\"mobile-link--footer\">123 Fake Street, SpringField, OR, 97477 US</span><br><span class=\"mobile-link--footer\">(123) 456-7890</span>\n <br><br>\n <unsubscribe style=\"color:#888888; text-decoration:underline;\">unsubscribe</unsubscribe>\n </td>\n </tr>\n </table>\n <!--[if mso]>\n </td>\n </tr>\n </table>\n <![endif]-->\n </div>\n </center>\n</body>\n</html>\n",
"description": "",
"scope": ""
},
"cycle": {
"prefix": "cycle",
"body": "\n<ul class=\"cycle-slideshow\" \n\t\t\t\tdata-cycle-slides=\"> li\"\n\t\t\t\tdata-cycle-prev=\"#prev\"\n\t\t\t\tdata-cycle-fx=\"scrollHorz\"\n \t\t\tdata-cycle-next=\"#next\">\n\t\t\t\t<li><a href=\"single.html\"><img src=\"http://dummyimage.com/1140x600/000/fff&text=Video\" alt=\"\"></a></li>\n\t\t\t\t<li><a href=\"single.html\"><img src=\"http://dummyimage.com/1140x600/000/fff&text=Video\" alt=\"\"></a></li>\n\t\t\t\t<li><a href=\"single.html\"><img src=\"http://dummyimage.com/1140x600/000/fff&text=Video\" alt=\"\"></a></li>\n\t\t\t\t<li><a href=\"single.html\"><img src=\"http://dummyimage.com/1140x600/000/fff&text=Video\" alt=\"\"></a></li>\n\t\t\t\t<li><a href=\"single.html\"><img src=\"http://dummyimage.com/1140x600/000/fff&text=Video\" alt=\"\"></a></li>\n\t\t\t</ul>\t\n",
"description": "",
"scope": ""
},
"defineurl": {
"prefix": "defineurl",
"body": "\ndefine('WP_HOME','http://example.com');\ndefine('WP_SITEURL','http://example.com');",
"description": "",
"scope": ""
},
"drupal": {
"prefix": "drupal",
"body": "\n <?php print render($page['footer']) ?>\n\n",
"description": "",
"scope": ""
},
"drupallogo": {
"prefix": "drupallogo",
"body": "\n<a rel=\"dofollow\" href=\"<?php print base_path(); ?>\">\n \t<img src=\"<?php print $logo; ?>\" class=\"flexible\" title=\"Cerap\" alt=\"Cerap\"> \n </a>\n",
"description": "",
"scope": ""
},
"echotpldir": {
"prefix": "echotpldir",
"body": "\n<?php echo get_template_directory_uri(); ?>\n",
"description": "",
"scope": ""
},
"field": {
"prefix": "field",
"body": "\n<?php\n print render(field_view_field('node', $node, 'field_imagediapo', array('label'=>'hidden'))); \n?>",
"description": "",
"scope": ""
},
"fielddrupal": {
"prefix": "fielddrupal",
"body": "\n <?php\n print render(field_view_field('node', $node, 'field_imagediapo', array('label'=>'hidden'))); \n ?>\n ",
"description": "",
"scope": ""
},
"fontawesome": {
"prefix": "fontawesome",
"body": "\n<script src=\"https://use.fontawesome.com/7ae4406edb.js\"></script>\n",
"description": "",
"scope": ""
},
"guard": {
"prefix": "guard",
"body": "\n watch(%r{(php|html|js|html)})\n",
"description": "",
"scope": ""
},
"guardcompass": {
"prefix": "guardcompass",
"body": "\ngroup :development do\n guard :livereload do\n watch(%r{.+\\.(css|js|html?)$})\n end\n\n if File.exists?(\"./config.rb\")\n # Compile on start.\n puts `compass compile --time --quiet`\n guard :compass do\n watch(%r{(.*)\\.s[ac]ss$})\n end\n end\nend\n",
"description": "",
"scope": ""
},
"gulpfile": {
"prefix": "gulpfile",
"body": "\n\t\t\t\t\tvar gulp = require('gulp'),\n\t\t\t concat = require('gulp-concat'),\n\t\t\t uglify = require('gulp-uglify'),\n\t\t\t rename = require('gulp-rename'),\n\t\t\t sass = require('gulp-sass'),\n\t\t\t livereload = require('gulp-livereload'),\n\t\t\t svgSprite = require(\"gulp-svg-sprite\"),\n\t\t\t svg2png = require('gulp-svg2png');\n\t\t\t \n\t\t\tvar config = {\n\t\t\t scripts: [\n\t\t\t // Any Custom Scripts\n\t\t\t './assets/js/*.js'\n\t\t\t ]\n\t\t\t};\n\t\t\t \n\t\t\tgulp.task('scripts', function() {\n\t\t\t return gulp.src(config.scripts)\n\t\t\t .pipe(concat('functions.js'))\n\t\t\t .pipe(gulp.dest('./assets/js/'))\n\t\t\t .pipe(uglify())\n\t\t\t .pipe(rename({ extname: '.min.js' }))\n\t\t\t .pipe(livereload())\n\t\t\t .pipe(gulp.dest('./assets/js/'));\n\t\t\t});\n\t\t\t \n\t\t\tgulp.task('sass', function () {\n\t\t\t return gulp.src('./assets/sass/style.scss')\n\t\t\t .pipe(sass.sync({outputStyle: 'compressed'}).on('error', sass.logError))\n\t\t\t .pipe(gulp.dest('./css'));\n\t\t\t});\n\t\t\t \n\t\t\tgulp.task('sprites', function () {\n\t\t\t return gulp.src('**/*.svg', {cwd: './assets/svg/individual'})\n\t\t\t .pipe(svgSprite({ shape: { transform: ['svgo'] }, mode: { defs: {dest: '.'} } } ) )\n\t\t\t .pipe(gulp.dest('./assets/svg/'));\n\t\t\t});\n\t\t\t \n\t\t\tgulp.task('svg2png', function () {\n\t\t\t return gulp.src('./assets/svg/individual/**/*.svg')\n\t\t\t .pipe(svg2png())\n\t\t\t .pipe(gulp.dest('./assets/svg/pngs/'));\n\t\t\t});\n\t\t\t \n\t\t\tgulp.task('icons', ['sprites', 'svg2png']);\n\t\t\t \n\t\t\tgulp.task('watch', function () {\n\t\t\t livereload.listen(35729);\n\t\t\t gulp.watch('**/*.php').on('change', function(file) {\n\t\t\t livereload.changed(file.path);\n\t\t\t });\n\t\t\t gulp.watch('./assets/sass/**/*.scss', ['sass']);\n\t\t\t gulp.watch('./assets/js/**/*.js', ['scripts']);\n\t\t\t});\n\t\t\t \n\t\t\tgulp.task('default', ['icons', 'sass', 'scripts', 'watch']);\n",
"description": "",
"scope": ""
},
"htmlspecial": {
"prefix": "htmlspecial",
"body": "\nhtmlspecialchars($name,ENT_QUOTES,'UTF-8')\n",
"description": "",
"scope": ""
},
"imgdrupal": {
"prefix": "imgdrupal",
"body": "\n <?php echo theme('image', array('path' => drupal_get_path('theme', 'rcliane').'/images/Untitled1.png')); ?>\n",
"description": "",
"scope": ""
},
"isfrontpage": {
"prefix": "isfrontpage",
"body": "\n\t<?php is_front_page(); ?>\n",
"description": "",
"scope": ""
},
"ishome": {
"prefix": "ishome",
"body": "\n\n<?php\nif ( is_home() ) {\n // This is the blog posts index\n \n} else {\n // This is not the blog posts index\n \n}\n?>\n\n",
"description": "",
"scope": ""
},
"langpresta": {
"prefix": "langpresta",
"body": "\n{if $lang_iso == fr }\n\t\t\n\t{else if $lang_iso == en } \n\t\t\n\t{/if}\n",
"description": "",
"scope": ""
},
"livereload": {
"prefix": "livereload",
"body": "\n<script>document.write('<script src=\"http://' + (location.host || 'localhost').split(':')[0] +\n':35729/livereload.js?snipver=2\"></' + 'script>')</script>\n",
"description": "",
"scope": ""
},
"livereloadx": {
"prefix": "livereloadx",
"body": "\n<script>document.write('<script src=\"http://' + (location.host || 'localhost').split(':')[0] +\n':35729/livereload.js?snipver=2\"></' + 'script>')</script>",
"description": "",
"scope": ""
},
"magicquotes": {
"prefix": "magicquotes",
"body": "\nif (get_magic_quotes_gpc())\n{\n $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);\n while (list($key, $val) = each($process))\n {\n foreach ($val as $k => $v)\n {\n unset($process[$key][$k]);\n if (is_array($v))\n {\n $process[$key][stripslashes($k)] = $v;\n $process[] = &$process[$key][stripslashes($k)];\n }\n else\n {\n $process[$key][stripslashes($k)] = stripslashes($v);\n }\n }\n }\n unset($process);\n}\n",
"description": "",
"scope": ""
},
"wpmultisite": {
"prefix": "wpmultisite",
"body": "\r\n<ul class='postlist no-mp'>\r\n\r\n<?php \r\n/**\r\n * Old version, change on 07/23/2013\r\n *\r\n$blogs = $wpdb->get_results( \r\n \"SELECT blog_id,path FROM {$wpdb->blogs} \r\n WHERE blog_id != {$wpdb->blogid} \r\n AND site_id = '{$wpdb->siteid}' \r\n AND spam = '0' \r\n AND deleted = '0' \r\n AND archived = '0' \r\n order by blog_id\", ARRAY_A\r\n); \r\n */\r\n\r\n// get all blogs\r\n$blogs = get_blog_list( 0, 'all' );\r\n\r\nif ( 0 < count( $blogs ) ) :\r\n foreach( $blogs as $blog ) : \r\n switch_to_blog( $blog[ 'blog_id' ] );\r\n\r\n if ( get_theme_mod( 'show_in_home', 'on' ) !== 'on' ) {\r\n continue;\r\n }\r\n\r\n $description = get_bloginfo( 'description' );\r\n $blog_details = get_blog_details( $blog[ 'blog_id' ] );\r\n ?>\r\n <li class=\"no-mp\">\r\n\r\n <h2 class=\"no-mp blog_title\">\r\n <a href=\"<?php echo $blog_details->path ?>\">\r\n <?php echo $blog_details->blogname; ?>\r\n </a>\r\n </h2>\r\n\r\n <div class=\"blog_description\">\r\n <?php echo $description; ?>\r\n </div>\r\n\r\n <?php \r\n query_posts( 'showposts=5' );\r\n if ( have_posts() ) :\r\n while( have_posts() ) :\r\n the_post();\r\n ?>\r\n <div class=\"blog_post\">\r\n <div class=\"post_title\">\r\n <a href=\"<?php the_permalink(); ?>\"><?php the_title(); ?></a>\r\n </div>\r\n <div class=\"post_excerpt\">\r\n <?php the_excerpt(); ?>\r\n </div>\r\n </div>\r\n <?php endwhile; ?>\r\n <?php endif; \r\n restore_current_blog();\r\n ?>\r\n </li>\r\n<?php endforeach;\r\nendif; ?>\r\n</ul>\r\n",
"description": "",
"scope": ""
},
"opacity": {
"prefix": "opacity",
"body": "\nfilter: alpha(opacity=50); /* internet explorer */\n\t-khtml-opacity: 0.5; /* khtml, old safari */\n\t-moz-opacity: 0.5; /* mozilla, netscape */\n\topacity: 0.5; /* fx, safari, opera */\n\t",
"description": "",
"scope": ""
},
"opacity1": {
"prefix": "opacity1",
"body": "\n\n filter: alpha(opacity=100); /* internet explorer */\n \t-khtml-opacity: 1; /* khtml, old safari */\n \t-moz-opacity: 1; /* mozilla, netscape */\n \topacity: 1; /* fx, safari, opera */\n \t",
"description": "",
"scope": ""
},
"pdo": {
"prefix": "pdo",
"body": "\n?php \n\ttry {\n\t\t$pdo = new PDO('mysql:host=localhost;dbname=ijdb','ijdbuser','mypassword');\n\t\t$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t$pdo->exec('SET NAMES \"utf8\"');\n\t} catch (PDOException $e) {\n\t\t$output ='unable to connect to the database server'.$e->getMessage();\n\t\tinclude 'output.html.php';\n\t\texit();\n\t}\n\t$output = 'database connection established';\n\tinclude 'output.html.php';\n ?>",
"description": "",
"scope": ""
},
"pythonencoding": {
"prefix": "pythonencoding",
"body": "\r\n# -*-coding:Latin-1 -*\r\n",
"description": "",
"scope": ""
},
"qtranslate": {
"prefix": "qtranslate",
"body": "\n <?php \n if (qtranxf_getLanguage() == 'fr') { ?>\n <a href=\"<?php echo esc_url( home_url( '/' ) ); ?>\">Pouget rail</a> - Tous droits réservés\n <?php\n } elseif (qtranxf_getLanguage() == 'en') {?>\n <a href=\"<?php echo esc_url( home_url( '/' ) ); ?>\">Pouget rail</a> - All Rights Reserved\n <?php \n }\n ?>\n",
"description": "",
"scope": ""
},
"rubrique": {
"prefix": "rubrique",
"body": "\n <div id=\"futebol\" class=\"ym-g50 ym-gl rubrique\">\n <div class=\"ym-gbox\">\n <!--a la une -->\n <?php \n $categoryname1 = get_cat_name(12);\n $category_link1 = get_category_link(12);\n ?>\n <h2 class=\"title\"><?php echo($categoryname1); ?></h2>\n <div class=\"alaune newsblock\">\n <?php\n $args3 = array( 'cat'=> 12, 'posts_per_page'=> 1);\n $loop3 = new WP_Query( $args3 );\n while ( $loop3->have_posts() ) : $loop3->the_post();\n $do_not_duplicate = $post->ID; //This is the magic line\n ?>\n <div class=\"entry-image\">\n <div class=\"overlayarticle\">\n <a class=\"btn btn-primary btn-sm\" href=\"<?php the_permalink(); ?>\">Voir l'article</a>\n </div>\n <a href=\"<?php the_permalink(); ?> \"><?php the_post_thumbnail(); ?></a>\n </div>\n <h4 class=\"entry-title\"><a href=\"<?php the_permalink(); ?>\"><?php the_title(); ?></a></h4>\n <div class=\"entry-meta small ym-grid\">\n <div id=\"heur\" class=\"ym-g25 ym-gl\">\n <div class=\"ym-g20 ym-gl\">\n <i class=\"fa fa-clock-o\"></i>\n </div>\n <div class=\"ym-g80 ym-gl\">\n <p class=\"jeanrene\"><?php the_time(); ?></p>\n </div> \n </div>\n <div id=\"cale\" class=\"ym-g75 ym-gr\">\n <div class=\"ym-g20 ym-gl\">\n <i class=\"fa fa-calendar\"></i> \n </div>\n <div class=\"ym-g80 ym-gl\">\n <p class=\"jeanrene\"><?php echo get_the_date(); ?></p> \n </div>\n </div>\n </div>\n <?php\n endwhile;\n wp_reset_query(); // Remember to reset\n ?>\n\n </div> \n <!--a la deux-->\n <div class=\"aladeux\">\n <?php\n $args3 = array( 'cat'=> 12, 'posts_per_page'=> 4);\n $loop3 = new WP_Query( $args3 );\n while ( $loop3->have_posts() ) : $loop3->the_post();\n if( $post->ID == $do_not_duplicate ) continue; //This is the Magic Line\n ?>\n <div class=\"zaz\">\n <h4 class=\"entry-title\"><a href=\"<?php the_permalink(); ?>\"><?php the_title(); ?></a></h4>\n <div class=\"entry-meta small ym-grid\">\n <div id=\"heur\" class=\"ym-g25 ym-gl\">\n <div class=\"ym-g20 ym-gl\">\n <i class=\"fa fa-clock-o\"></i>\n </div>\n <div class=\"ym-g80 ym-gl\">\n <p class=\"jeanrene\"><?php the_time(); ?></p>\n </div> \n </div>\n <div id=\"cale\" class=\"ym-g75 ym-gr\">\n <div class=\"ym-g20 ym-gl\">\n <i class=\"fa fa-calendar\"></i> \n </div>\n <div class=\"ym-g80 ym-gl\">\n <p class=\"jeanrene\"><?php echo get_the_date(); ?></p> \n </div>\n </div>\n </div> \n </div> \n <?php\n endwhile;\n wp_reset_query(); // Remember to reset\n ?>\n </div>\n\n </div>\n </div>\n",
"description": "",
"scope": ""
},
"scale": {
"prefix": "scale",
"body": "\n -webkit-transform: scale(1, 1) ;\n -moz-transform: scale(1, 1) ;\n -ms-transform:scale(1, 1) ;\n -o-transform: scale(1, 1) ;\n transform: scale(1, 1) ;\n -webkit-transition: all 0.4s ease-in-out 0.2s;\n -moz-transition: all 0.4s ease-in-out 0.2s;\n -o-transition: all 0.4s ease-in-out 0.2s;\n -ms-transition: all 0.4s ease-in-out 0.2s;\n transition: all 0.4s ease-in-out 0.2s;\n",
"description": "",
"scope": ""
},
"signature": {
"prefix": "signature",
"body": "\n<!-- \n################################################\n## ##\n## Template développé par jean luc Houedanou ## \n## jeanluc@houedanou.com ##\n## wwww.houedanou.com ##\n## ## \n################################################\n-->\n",
"description": "",
"scope": ""
},
"wpsingle": {
"prefix": "wpsingle",
"body": "\n<?php\n $args = array(\n 'p' => 52, \n 'post_type' => 'any');\n $my_posts = new WP_Query($args);\n?>\n<?php\n the_excerpt();\n?>\n",
"description": "",
"scope": ""
},
"transition": {
"prefix": "transition",
"body": "\n-webkit-transition: all 0.4s ease-in-out 0.2s;\n -moz-transition: all 0.4s ease-in-out 0.2s;\n -o-transition: all 0.4s ease-in-out 0.2s;\n -ms-transition: all 0.4s ease-in-out 0.2s;\n transition: all 0.4s ease-in-out 0.2s;\n",
"description": "",
"scope": ""
},
"wpcat": {
"prefix": "wpcat",
"body": "\n<?php\n$wpcats = wp_get_post_categories( $post->ID );\n$cats = array();\n\n foreach ($wpcats as $c) {\n $cats[] = get_cat_name( $c );\n }\n$lister = implode(\" , \", $cats);\necho $lister;\n?>\n",
"description": "",
"scope": ""
},
"wpcatid": {
"prefix": "wpcatid",
"body": "\n <?php\n $wpcats = wp_get_post_categories( $post->ID );\n $cats = array();\n foreach ($wpcats as $c) {\n $cats[] = '<div class=\"guncontrol'. get_cat_ID(get_cat_name( $c )).'\">'.get_cat_name( $c ).'</div>';\n }\n $lister = implode($cats);\n echo $lister;\n ?>\n ",
"description": "",
"scope": ""
},
"wpcatloop": {
"prefix": "wpcatloop",
"body": "\n<?php if (have_posts()) : ?>\n \t\t\t<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>\n\t\t\n\n\t\t\t<?php post_navigation(); ?>\n\n\t\t\t<?php while (have_posts()) : the_post(); ?>\n\t\t\t\n\t\t\t\t<article <?php post_class() ?>>\n\t\t\t\t\n\t\t\t\t\t\t<h2 id=\"post-<?php the_ID(); ?>\"><a href=\"<?php the_permalink() ?>\"><?php the_title(); ?></a></h2>\n\t\t\t\t\t\n\t\t\t\t\t\t<?php posted_on(); ?>\n\n\t\t\t\t\t\t<div class=\"entry\">\n\t\t\t\t\t\t\t<?php the_content(); ?>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t</article>\n\n\t\t\t<?php endwhile; ?>\n\n\t\t\t<?php post_navigation(); ?>\n\t\t\t\n\t<?php else : ?>\n\n\t\t<h2><?php _e('Nothing Found','html5reset'); ?></h2>\n\n\t<?php endif; ?>\n",
"description": "",
"scope": ""
},
"wpcurrentcatid": {
"prefix": "wpcurrentcatid",
"body": "\n$categories = get_the_category();\n$category_id = $categories[0]->cat_ID;\n",
"description": "",
"scope": ""
},
"wpecloop": {
"prefix": "wpecloop",
"body": "\n<?php \n\t$my_query = new WP_Query( array( 'post_type' => 'wpsc-product', 'wpsc_product_category'=>'mycategory' ) );\n\twhile( $my_query->have_posts() ) : $my_query->the_post();?>\n\t<a href=\"<?php echo get_permalink( $product->ID ); ?>\" title=\"<?php echo get_the_title( $product->ID ); ?>\"><h2><?php the_title();?></h2>\n <img src=\"<?php echo wpsc_the_product_thumbnail(get_option('product_image_width'),get_option('product_image_height'),'','single'); ?>\" alt=\"<?php the_title();?>\"/></a>\n<?php endwhile; wp_reset_query();?>\n",
"description": "",
"scope": ""
},
"wpimg": {
"prefix": "wpimg",
"body": "\n<img src=\"<?php echo get_template_directory_uri(); ?>/images/img.jpg\"/>\n",
"description": "",
"scope": ""
},
"wpimgsize": {
"prefix": "wpimgsize",
"body": "\n add_image_size( 'homepageslider', 1920, 687, true ); \n",
"description": "",
"scope": ""
},
"wpimgsrc": {
"prefix": "wpimgsrc",
"body": "\n <?php $src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full', false );\n echo $src[0]; // the url of featured image?>\n",
"description": "",
"scope": ""
},
"wpimgurl": {
"prefix": "wpimgurl",
"body": "\n\t\t<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full', false ); echo $src[0];?>\n",
"description": "",
"scope": ""
},
"wplogo": {
"prefix": "wplogo",
"body": "\n\t\t<a id=\"logo\" href=\"<?php echo esc_url( home_url( '/' ) ); ?>\" title=\"<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>\" rel=\"home\" class=\"sprite sprite-logoacolonie\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/logo.png\"/></a>\n\t\t\t\t\t\t<div class=\"description\" style=\"display:none\"><?php bloginfo( 'description' ); ?></div>\n",
"description": "",
"scope": ""
},
"wploop": {
"prefix": "wploop",
"body": "\n\t\t<?php\n \t\t\t$args = array( 'cat'=> 2);\n \t\t\t$loop = new WP_Query( $args );\n \t\t\tif ($loop->have_posts()){?>\n\t\t \t<ul> \n\t \t\t\t<?php while ( $loop->have_posts() ) : $loop->the_post();?>\n\t\t \t<li>\n\t\t <h2><?php the_title(); ?></h2>\n\t\t <?php the_content(); ?>\n \t\t\t</li>\n \t\t \t<?php endwhile;?>\n \t\t \t</ul>\n \t\t \t<?php \n\t \t\t\t}else{\n\t \t\t\t//echo('qsqs');\t\n\t \t\t\t}\n\t \t\t\twp_reset_query(); // Remember to reset\n\t \t\t?> \n",
"description": "",
"scope": ""
},
"wploop1": {
"prefix": "wploop",
"body": "\n<?php if (have_posts()) : while (have_posts()) : the_post(); ?>\n <?php the_content(); ?>\n\t<?php endwhile; endif; ?>\n",
"description": "",
"scope": ""
},
"wpmenu": {
"prefix": "wpmenu",
"body": "\n<?php\n\t\t\t\t\t\t\t wp_nav_menu(array(\n\t\t\t\t\t\t\t\t 'menu' => 'Main Navigation',\n\t\t\t\t\t\t\t\t 'container_id' => 'cssmenu',\n\t\t\t\t\t\t\t\t 'menu_class' =>' ',\n\t\t\t\t\t\t\t\t 'menu_id'=>' ',\n\t\t\t\t\t\t\t\t 'walker' => new CSS_Menu_Maker_Walker()\n\t\t\t\t\t\t\t\t 'theme_location' => 'Top' \n\t\t\t\t\t\t\t ));\n\t\t\t\t\t\t\t ?>\n",
"description": "",
"scope": ""
},
"wpmenulocation": {
"prefix": "wpmenulocation",
"body": "\nregister_nav_menus( array(\n 'Top' => 'Navigation du haut',\n ) );\n",
"description": "",
"scope": ""
},
"wppost": {
"prefix": "wppost",
"body": "\n<?php\n global $more;\n $more = 0;\n $args = array(\n 'p' => 27, // id of a page, post, or custom type\n 'post_type' => 'any');\n $the_query = new WP_Query($args);\n while ( $the_query->have_posts() ) : $the_query->the_post(); \n?>\n <p><?php the_excerpt(); ?></p>\n<?php \n endwhile; \n wp_reset_query();\n?>\n ",
"description": "",
"scope": ""
},
"wppostcat": {
"prefix": "wppostcat",
"body": "\n<ul>\n<?php\n $wpcats2 = wp_get_post_categories( $post->ID );\n $cats2 = array();\n foreach ($wpcats2 as $c) {\n $cats2[] = '<li class=\"lacategoriel'.get_cat_ID(get_cat_name($c)).'\"><a href=\"'.get_category_link($c).'\">'.get_cat_name($c).'</a></li>';\n }\n $listerz = implode($cats2);\n echo $listerz;\n?>\n</ul>\n",
"description": "",
"scope": ""
},
"wpslider": {
"prefix": "wpslider",
"body": "\n <ul id=\"bannerslider\" class=\"cycle-slideshow\" data-cycle-slides=\"li\">\n <?php\n $args = array( 'cat'=> 2, 'showposts'=> 5);\n $boucle = new WP_Query( $args );\n while ( $boucle ->have_posts() ) : $boucle ->the_post();\n ?>\n <li><?php if ( has_post_thumbnail()) { the_post_thumbnail('full', array('class' => 'riches flexible'));}?><div class=\"banner-infors\"><?php the_title(); ?></div></li>\n <?php\n endwhile;\n wp_reset_query(); // Remember to reset\n ?>\n </ul>\n",
"description": "",
"scope": ""
},
"wpsliderloop": {
"prefix": "wpsliderloop",
"body": "\n<?php\n\t\t\t$args2 = array( 'cat'=> 7, 'showposts'=> 3);\n\t\t\t$loop2 = new WP_Query( $args2 );\n\t\t\twhile ( $loop2->have_posts() ) : $loop2->the_post();\n\t\t?>\n\t\t<li class=\"slidecontent nomp\">\n\t\t\t<div class=\"parallax-container\">\n\t\t\t\t<div class=\"parallax\">\n\t\t\t\t\t<?php\n\t\t\t\t\t\tif ( has_post_thumbnail()) {\n\t\t\t\t\t\t\tthe_post_thumbnail('full', array('class' => 'riches'));\n\t\t\t\t\t\t}\n\t\t\t\t\t?>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"infos ym-wrapper\">\n\t\t\t\t<div class=\"infor ym-wbox\">\n\t\t\t\t\t<h3 id=\"obi\" class=\"center-align\"><a class=\"orange lighten-1 text-white robotoslab\" href=\"<?php the_permalink(); ?>\"><?php the_title(); ?></a></h3>\n\t\t\t\t\t<div class=\"infotext green darken-3 white-text\">\n\t\t\t\t\t\t<?php the_excerpt(); ?>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</li>\n\t\t <?php\n\t\t\tendwhile;\n\t\t\twp_reset_query(); // Remember to reset\n\t\t?>\n",
"description": "",
"scope": ""
},
"wpsubcat": {
"prefix": "wpsubcat",
"body": "\n<?php\n if (is_category()) {\n $this_category = get_category($cat);\n }\n ?>\n <?php\n if($this_category->category_parent)\n $this_category = wp_list_categories('orderby=id&show_count=0\n \\&title_li=&use_desc_for_title=1&child_of='.$this_category->category_parent.\n \"&echo=0\"); else\n $this_category = wp_list_categories('orderby=id&depth=1&show_count=0\n \\&title_li=&use_desc_for_title=1&child_of='.$this_category->cat_ID.\n \"&echo=0\");\n if ($this_category) { ?> \n\t<ul>\n\t<?php echo $this_category; ?>\n\t</ul>\n<?php } ?>\n",
"description": "",
"scope": ""
},
"wpthumb": {
"prefix": "wpthumb",
"body": "\n<?php\n\t\t\t\t\t\tif ( has_post_thumbnail()) {\n\t\t\t\t\t\t\tthe_post_thumbnail('full', array('class' => 'riches'));\n\t\t\t\t\t\t}\n\t\t\t\t\t?>\n",
"description": "",
"scope": ""
},
"wpthumbnailclass": {
"prefix": "wpthumbnailclass",
"body": "\n<?php\n if ( has_post_thumbnail()) {\n the_post_thumbnail('large', array('class' => 'flexible'));\n }\n ?>\n ",
"description": "",
"scope": ""
},
"wpimg1": {
"prefix": "wpimg",
"body": "\n<img src=\"<?php echo get_template_directory_uri(); ?>/images/img.jpg\"/>\n",
"description": "",
"scope": ""
},
"wpwidget": {
"prefix": "wpwidget",
"body": "\n<?php if ( is_active_sidebar( 'home_right_1' ) ) : ?>\n\t<div id=\"primary-sidebar\" class=\"primary-sidebar widget-area\" role=\"complementary\">\n\t\t<?php dynamic_sidebar( 'home_right_1' ); ?>\n\t</div><!-- #primary-sidebar -->\n<?php endif; ?>\n",
"description": "",
"scope": ""
},
"wpwidgetfunc": {
"prefix": "wpwidgetfunc",
"body": "\n\n<?php\n/**\n * Register our sidebars and widgetized areas.\n *\n */\nfunction arphabet_widgets_init() {\n\n\tregister_sidebar( array(\n\t\t'name' => 'Home right sidebar',\n\t\t'id' => 'home_right_1',\n\t\t'before_widget' => '<div>',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h2 class=\"rounded\">',\n\t\t'after_title' => '</h2>',\n\t) );\n\n}\nadd_action( 'widgets_init', 'arphabet_widgets_init' );\n?>\n",
"description": "",
"scope": ""
},
"yb": {
"prefix": "yb",
"body": "\nym-wbox\n",
"description": "",
"scope": ""
},
"yg": {
"prefix": "yg",
"body": "\nym-grid linearize-level-1\n",
"description": "",
"scope": ""
},
"ym": {
"prefix": "ym",
"body": "\nym-g\n",
"description": "",
"scope": ""
},
"ymg25": {
"prefix": "ymg25",
"body": "\ndiv#.ym-wrapper>div#.ym-wbox>div#.ym-grid.linearize-level-1>(div#.ym-g25.ym-gl>div#.ym-gbox)+(div#.ym-g25.ym-gl>div#.ym-gbox)+(div#.ym-g25.ym-gl>div#.ym-gbox)+(div#.ym-g25.ym-gl>div#.ym-gbox)\n",
"description": "",
"scope": ""
},
"ymg33": {
"prefix": "ymg33",
"body": "\ndiv#.ym-wrapper>div#.ym-wbox>div#.ym-grid.linearize-level-1>(div#.ym-g25.ym-gl>div#.ym-gbox)+(div#.ym-g25.ym-gl>div#.ym-gbox)+(div#.ym-g25.ym-gl>div#.ym-gbox)+(div#.ym-g25.ym-gl>div#.ym-gbox)\n",
"description": "",
"scope": ""
},
"ymg50": {
"prefix": "ymg50",
"body": "\ndiv#.ym-wrapper>div#.ym-wbox>div#.ym-grid.linearize-level-1>(div#.ym-g50.ym-gl>div#.ym-gbox)+(div#.ym-g50.ym-gl>div#.ym-gbox)\n",
"description": "",
"scope": ""
},
"ymg66": {
"prefix": "ymg66",
"body": "\ndiv#.ym-wrapper>div#.ym-wbox>div#.ym-grid.linearize-level-1>(div#.ym-g66.ym-gl>div#.ym-gbox)+(div#.ym-g33.ym-gl>div#.ym-gbox)\n",
"description": "",
"scope": ""
},
"ymwbox": {
"prefix": "ymwbox",
"body": "\ndiv#.ym-wrapper>div#.ym-wbox>div#\n",
"description": "",
"scope": ""
},
"yp": {
"prefix": "yp",
"body": "\nym-wrapper\n",
"description": "",
"scope": ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment